/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Supprimer toute possibilité de scroll par défaut */
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  position: relative;
  z-index: 0; /* Fond en arrière-plan */
}

/* Permettre le scroll sur le body quand la section finale est active */
body.final-active {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling sur iOS */
  height: auto !important;
  min-height: 100vh;
}

html.final-active {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}

/* Permettre le scroll sur la section finale */
.image-section#final {
  opacity: 0;
  visibility: hidden;
}

.image-section#final.active {
  opacity: 1 !important;
  visibility: visible !important;
  overflow-y: visible;
  overflow-x: hidden;
  position: relative;
  height: auto;
  min-height: 100vh;
  display: block !important;
}

.image-section#final.active .final-content {
  min-height: 100vh;
  padding-bottom: 50px; /* Espace en bas pour le scroll */
  display: flex !important;
}

/* Header Sticky */
.header {
  position: fixed;
  top: 12px;
  right: 12px;
  left: auto; /* éviter toute expansion plein écran */
  z-index: 10002; /* Au-dessus de l'overlay de démarrage (10001) */
  padding: 12px 16px;
  display: inline-flex; /* largeur au contenu */
  width: auto; /* ne pas prendre toute la largeur */
  max-width: calc(100vw - 24px);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-dark) 100%);
  backdrop-filter: blur(8px);
  border-bottom-left-radius: 15px;
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 20px var(--color-shadow);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px var(--color-glow));
  animation: pulse 2s ease-in-out infinite;
}

.site-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--color-glow);
  white-space: nowrap;
  padding: 2px 8px;
  border-left: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .header {
    padding: 10px 12px;
    top: 8px;
    right: 8px;
  }

  .logo-img {
    height: 2rem;
  }

  .site-title {
    display: none; /* garder le header minimal sur mobile */
    border-left: none; /* Supprimer la bordure quand masqué */
  }

  .hamburger-line {
    width: 22px;
    height: 2.5px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 8px 10px;
    top: 6px;
    right: 6px;
    max-width: calc(100vw - 12px);
  }

  .logo-img {
    height: 1.8rem;
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
    gap: 3px;
  }

  .side-menu {
    width: 280px;
    max-width: 90vw;
  }

  .menu-content {
    padding: 60px 20px 20px;
  }

  .menu-link {
    font-size: 1.1rem;
  }

  .menu-close {
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
  }
}


@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Menu Burger */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.menu-toggle:hover .hamburger-line {
  background-color: var(--color-text);
  box-shadow: 0 0 8px var(--color-glow);
}

/* Menu latéral */
.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, var(--color-bg) 0%, #0f0a03 100%);
  border-left: 2px solid var(--color-border);
  z-index: 10003; /* Au-dessus du header (10002) et de l'overlay (10001) */
  transition: var(--transition-smooth);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling sur iOS */
  /* Masquer complètement quand fermé pour éviter les lignes visibles */
  opacity: 0;
  pointer-events: none;
}

.side-menu.active {
  right: 0;
  opacity: 1;
  pointer-events: all;
}

.menu-content {
  padding: 80px 0 0;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-close:hover {
  color: var(--color-text);
  transform: scale(1.1);
}

.menu-list {
  list-style: none;
}

.menu-list li {
  margin-bottom: 20px;
}

.menu-link {
  display: block;
  padding: 15px 20px;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 1.2rem;
}

/* Lien Photos mis en avant en rouge */
.menu-link.photos-link {
  color: #ff4040 !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 64, 64, 0.8);
  animation: pulse-red 2s ease-in-out infinite;
}

.menu-link.photos-link:hover {
  color: #ff7070 !important;
  text-shadow: 0 0 15px rgba(255, 64, 64, 1);
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}
  border-radius: 8px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1); /* Meilleur feedback tactile sur mobile */
}

.menu-link:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-border);
  box-shadow: 0 4px 15px var(--color-shadow);
  transform: translateX(5px);
}

/* Conteneur principal */
.main-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Sections d'images */
.image-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1; /* Assurer que les images sont au-dessus du fond */
}

/* Première section visible par défaut pour éviter le flash bleu */
.image-section:first-of-type {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.image-section.active {
  opacity: 1;
  visibility: visible;
  z-index: 2; /* Section active au premier plan */
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.pyramid-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  transition: none;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  min-width: 100vw;
  min-height: 100vh;
}

/* S'assurer que l'image active est visible immédiatement */
.image-section.active .pyramid-image {
  opacity: 1 !important;
}

/* Couloir overlays */
.couloir-main {
  z-index: 1;
}

.couloir-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  opacity: 0;
}

.couloir-layer2 {
  z-index: 2;
}

.couloir-layer3 {
  z-index: 3;
}

.couloir-layer4 {
  z-index: 4;
}

.couloir-layer5 {
  z-index: 5;
}

/* Texte du couloir */
.couloir-text-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10; /* Au-dessus des images */
  width: min(60ch, 75vw);
  text-align: center;
  padding: 24px 32px;
  background: rgba(17, 63, 96, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transform-origin: center center;
  /* Position initiale à droite (sera animée par GSAP) */
  opacity: 0;
  will-change: transform, opacity, scale;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  /* S'assurer que le conteneur est parfaitement centré */
  right: auto;
  bottom: auto;
}

/* Masquer complètement la section "Qu'est-ce que la média ?" - on passe directement à l'activité */
#couloirText5 {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.couloir-text-wide {
  width: 90vw;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 16px 20px;
  box-sizing: border-box;
}

.couloir-text-wide .couloir-text-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.couloir-text-wide .couloir-text-content {
  font-size: 1rem;
  line-height: 1.6;
}

/* Conteneur réseaux sociaux */
.couloir-social-container {
  width: 90vw;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px 12px;
}

.couloir-social-container .couloir-text-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.social-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 24px;
}

.social-post-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background: rgba(17, 63, 96, 0.8);
  backdrop-filter: blur(15px);
  min-height: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.social-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.social-post-card:hover::before {
  opacity: 1;
}


.social-instagram {
  border-color: rgba(225, 48, 108, 0.5);
}

.social-instagram:hover {
  border-color: rgba(225, 48, 108, 1);
  box-shadow: 0 12px 40px rgba(225, 48, 108, 0.4), 0 0 20px rgba(225, 48, 108, 0.2);
  transform: translateY(-8px);
}

.social-instagram .social-post-header {
  border-top: 2px solid rgba(225, 48, 108, 0.4);
  background: linear-gradient(135deg, rgba(17, 63, 96, 0.95), rgba(225, 48, 108, 0.1));
}

.social-tiktok {
  border-color: rgba(37, 244, 238, 0.5);
}

.social-tiktok:hover {
  border-color: rgba(37, 244, 238, 1);
  box-shadow: 0 12px 40px rgba(37, 244, 238, 0.4), 0 0 20px rgba(37, 244, 238, 0.2);
  transform: translateY(-8px);
}

.social-tiktok .social-post-header {
  border-top: 2px solid rgba(37, 244, 238, 0.4);
  background: linear-gradient(135deg, rgba(17, 63, 96, 0.95), rgba(37, 244, 238, 0.1));
}

.social-youtube {
  border-color: rgba(255, 0, 0, 0.5);
}

.social-youtube:hover {
  border-color: rgba(255, 0, 0, 1);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2);
  transform: translateY(-8px);
}

.social-youtube .social-post-header {
  border-top: 2px solid rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(17, 63, 96, 0.95), rgba(255, 0, 0, 0.1));
}


.social-post-platform {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-primary);
  text-shadow: 0 0 10px var(--color-glow), 0 0 20px rgba(247, 221, 137, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: text-shadow 0.3s ease;
}

.social-post-card:hover .social-post-platform {
  text-shadow: 0 0 15px var(--color-glow), 0 0 30px rgba(247, 221, 137, 0.5);
}

.social-post-preview {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.8;
  text-align: center;
}

.social-post-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-post-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

.social-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95) contrast(1.05);
}

.social-post-card:hover .social-post-thumbnail img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1);
}

.social-thumbnail-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tiktok-preview {
  position: relative;
  overflow: hidden;
}

.tiktok-preview::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(37, 244, 238, 0.1) 10px,
    rgba(37, 244, 238, 0.1) 20px
  );
  animation: tiktokPattern 20s linear infinite;
}

@keyframes tiktokPattern {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.tiktok-preview-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.tiktok-preview-text {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: #25F4EE;
  text-shadow: 0 0 10px rgba(37, 244, 238, 0.8);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tiktok-play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: tiktokPulse 2s ease-in-out infinite;
}

@keyframes tiktokPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 244, 238, 0.6);
  }
}

.social-logo-svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 8px var(--color-glow));
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-post-card:hover .social-logo-svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px var(--color-glow));
}

.social-logo-svg-large {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 12px var(--color-glow));
}

.social-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(17, 63, 96, 0.95), rgba(8, 25, 44, 0.95));
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
}

.social-post-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.social-post-card:hover .social-post-header::before {
  left: 100%;
}

.social-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.social-post-card:hover .social-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 0, 0, 0.9);
  box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);
}

.social-play-overlay svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.social-post-card:hover .social-play-overlay svg {
  transform: scale(1.1);
}

.couloir-text-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--color-glow);
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.couloir-text-content {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  text-align: center;
}

/* Style égyptien antique pour le couloir 5 */
.couloir-egyptian {
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.15) 0%, rgba(184, 134, 11, 0.1) 50%, rgba(139, 90, 43, 0.15) 100%);
  border: 3px solid rgba(218, 165, 32, 0.4);
  box-shadow: 
    0 0 20px rgba(218, 165, 32, 0.3),
    inset 0 0 30px rgba(184, 134, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.couloir-egyptian::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(218, 165, 32, 0.8) 0px,
    rgba(218, 165, 32, 0.8) 20px,
    rgba(184, 134, 11, 0.6) 20px,
    rgba(184, 134, 11, 0.6) 40px
  );
  z-index: 1;
}

.couloir-egyptian::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(218, 165, 32, 0.8) 0px,
    rgba(218, 165, 32, 0.8) 20px,
    rgba(184, 134, 11, 0.6) 20px,
    rgba(184, 134, 11, 0.6) 40px
  );
  z-index: 1;
}

.couloir-egyptian-title {
  color: #DAA520;
  text-shadow: 
    0 0 20px rgba(218, 165, 32, 0.8),
    0 0 40px rgba(184, 134, 11, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  padding: 10px 0;
}

.couloir-egyptian-title::before,
.couloir-egyptian-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.6), transparent);
}

.couloir-egyptian-title::before {
  left: -50px;
}

.couloir-egyptian-title::after {
  right: -50px;
}

.hieroglyph-icon {
  font-size: 2.2rem;
  color: #DAA520;
  text-shadow: 
    0 0 15px rgba(218, 165, 32, 0.9),
    0 0 30px rgba(184, 134, 11, 0.6);
  animation: hieroglyphGlow 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes hieroglyphGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.8));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(218, 165, 32, 1));
    transform: scale(1.05);
  }
}

.couloir-egyptian-content {
  position: relative;
  z-index: 2;
}

.couloir-egyptian-text {
  position: relative;
  padding-left: 20px;
  margin-bottom: 20px;
  margin-left: 10px;
  color: #F5DEB3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  border-left: 3px solid rgba(218, 165, 32, 0.5);
}

.couloir-egyptian-text:first-of-type {
  margin-top: 10px;
}

.hieroglyph-decor {
  font-size: 1.4rem;
  color: #DAA520;
  text-shadow: 0 0 10px rgba(218, 165, 32, 0.8);
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
  animation: hieroglyphFloat 4s ease-in-out infinite;
}

@keyframes hieroglyphFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}

.couloir-egyptian-text strong {
  color: #FFD700;
  text-shadow: 
    0 0 8px rgba(255, 215, 0, 0.8),
    0 0 15px rgba(218, 165, 32, 0.5);
  font-weight: 700;
}

@media (max-width: 768px) {
  .couloir-text-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(90vw, 600px);
    padding: 20px 18px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* Forcer le centrage parfait */
    x: 0 !important;
    y: 0 !important;
  }

  .couloir-text-wide {
    width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 14px 16px;
  }

  .couloir-text-wide .couloir-text-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .couloir-text-wide .couloir-text-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .couloir-social-container {
    width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
  }

  .couloir-social-container .couloir-text-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .couloir-social-container {
    /* S'assurer que le contenu ne déborde pas */
    box-sizing: border-box;
  }
  
  .couloir-social-container .social-posts-grid {
    /* S'assurer que la grille est entièrement visible */
    max-height: none;
    overflow: visible;
    gap: 14px;
    margin-top: 12px;
  }

  .social-posts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
  }

  .social-post-card {
    min-height: auto;
    border-radius: 14px;
    max-width: 100%;
  }

  .social-post-thumbnail {
    aspect-ratio: 1 / 1;
    border-radius: 14px 14px 0 0;
    max-height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .social-post-header {
    padding: 10px 12px;
    border-radius: 0 0 12px 12px;
    gap: 8px;
  }

  .social-post-header .social-logo-svg {
    width: 18px;
    height: 18px;
  }

  .social-post-platform {
    font-size: 0.9rem;
  }

  .social-play-overlay {
    width: 64px;
    height: 64px;
  }

  .social-play-overlay svg {
    width: 28px;
    height: 28px;
  }

  .couloir-text-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.2;
    padding: 0 4px;
  }
  
  .couloir-social-container .couloir-text-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .couloir-text-content {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
  }

  .couloir-egyptian-title {
    font-size: 1.7rem;
    gap: 14px;
  }

  .hieroglyph-icon {
    font-size: 2rem;
  }

  .hieroglyph-decor {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  .couloir-egyptian-text {
    padding-left: 18px;
    margin-left: 8px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .couloir-text-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    padding: 12px 10px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .couloir-text-title {
    text-align: center;
    width: 100%;
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.2;
    padding: 0 4px;
  }
  
  .couloir-social-container .couloir-text-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .couloir-text-content {
    text-align: center;
    width: 100%;
  }
  
  .couloir-text-content strong {
    display: block;
    text-align: center;
    margin-top: 8px;
  }

  .couloir-text-wide {
    width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 12px 14px;
  }

  .couloir-text-wide .couloir-text-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .couloir-text-wide .couloir-text-content {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .couloir-social-container {
    width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px;
  }

  .couloir-social-container .couloir-text-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .couloir-social-container {
    /* S'assurer que le contenu ne déborde pas */
    box-sizing: border-box;
  }
  
  .couloir-social-container .social-posts-grid {
    /* S'assurer que la grille est entièrement visible */
    max-height: none;
    overflow: visible;
    gap: 12px;
    margin-top: 10px;
  }

  .social-posts-grid {
    gap: 12px;
    margin-top: 10px;
  }

  .social-post-card {
    min-height: auto;
    border-radius: 12px;
    max-width: 100%;
  }

  .social-post-thumbnail {
    aspect-ratio: 1 / 1;
    border-radius: 12px 12px 0 0;
    max-height: 180px;
    width: 100%;
    object-fit: cover;
  }
  
  .social-post-header {
    padding: 8px 10px;
    border-radius: 0 0 10px 10px;
    gap: 6px;
  }
  
  .social-post-header .social-logo-svg {
    width: 16px;
    height: 16px;
  }
  
  .social-post-platform {
    font-size: 0.85rem;
  }

  .social-play-overlay {
    width: 56px;
    height: 56px;
  }

  .social-play-overlay svg {
    width: 24px;
    height: 24px;
  }

  .social-logo-svg-large {
    width: 48px;
    height: 48px;
  }

  .couloir-text-title {
    font-size: 1.5rem;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .final-content {
    padding: 30px 20px;
  }
  
  .final-container {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .final-title {
    font-size: 1.6rem;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .final-title .hieroglyph-icon {
    font-size: 1.4rem;
  }

  .final-text {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
  }

  .final-subtext {
    font-size: 0.8rem;
    margin-bottom: 30px;
    line-height: 1.5;
  }

  .launcher-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .launcher-icon {
    font-size: 1.2rem;
  }
  
  .launcher-arrow {
    font-size: 1rem;
  }

  .couloir-text-content {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
  }

  .couloir-egyptian-title {
    font-size: 1.4rem;
    gap: 12px;
  }

  .hieroglyph-icon {
    font-size: 1.8rem;
  }

  .hieroglyph-decor {
    font-size: 1.2rem;
    margin-right: 8px;
  }

  .couloir-egyptian-text {
    padding-left: 16px;
    margin-left: 8px;
    font-size: 0.9rem;
  }
}

/* Trailer dans le couloir */
.couloir-trailer-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20; /* Au-dessus des textes (z-index: 10) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  visibility: hidden;
}

.couloir-trailer-container.visible {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.couloir-trailer-wrapper {
  position: relative;
  width: 560px;
  height: 315px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--color-primary);
  background: rgba(0, 0, 0, 0.8);
}

.couloir-trailer-video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.couloir-trailer-sound-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(17, 63, 96, 0.95);
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  color: var(--color-primary);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 16;
}

.couloir-trailer-sound-btn:hover {
  background: rgba(17, 63, 96, 1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.couloir-trailer-sound-btn.active {
  background: rgba(247, 221, 137, 0.2);
  border-color: rgba(247, 221, 137, 0.8);
}

.sound-icon {
  font-size: 1.1rem;
  display: inline-block;
}

.sound-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .couloir-trailer-container {
    width: 90vw;
    max-width: 480px;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 25 !important; /* Au-dessus de tout sur mobile */
    position: fixed !important;
  }

  .couloir-trailer-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 480px;
    margin: 0 auto;
  }

  .couloir-trailer-sound-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .sound-icon {
    font-size: 1rem;
  }
  
  .sound-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .couloir-trailer-container {
    width: 95vw;
    max-width: 100%;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 25 !important; /* Au-dessus de tout sur mobile */
    position: fixed !important;
  }

  .couloir-trailer-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .couloir-trailer-sound-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 6px;
  }

  .sound-text {
    display: none;
  }

  .sound-icon {
    font-size: 0.9rem;
  }
}

/* Masque de paupières via pseudo-élément */
.image-section#couloir .image-container {
  position: relative;
  overflow: hidden;
}

.image-section#couloir .image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 0;
  clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  transition: clip-path 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  pointer-events: none;
}

.image-section#couloir.opening .image-container::before,
.image-section#couloir.active.opening .image-container::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0;
}

/* Overlay noir pour le fondu */
.black-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 10000; /* Au-dessus de tout */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}

.black-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Overlay de démarrage */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent; /* Fond transparent pour voir l'image */
  backdrop-filter: none; /* Pas de flou pour voir l'image clairement */
  z-index: 10001; /* Au-dessus de tout */
  display: flex;
  align-items: flex-start; /* Alignement en haut au lieu de center */
  justify-content: center;
  padding-top: 15vh; /* Décalage vers le haut sur PC */
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.start-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-content {
  text-align: center;
  animation: fadeInUp 1s ease-out;
  background: rgba(17, 63, 96, 0.7); /* Fond semi-transparent pour la lisibilité */
  padding: 30px 40px; /* Padding réduit */
  border-radius: 20px;
  backdrop-filter: blur(5px); /* Léger flou pour améliorer la lisibilité */
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-width: 90vw; /* Limiter la largeur sur mobile */
  max-height: 90vh; /* Limiter la hauteur sur mobile */
  overflow-y: auto; /* Permettre le scroll si nécessaire */
}

.start-title {
  font-family: var(--font-primary);
  font-size: 2.5rem; /* Réduit de 3rem */
  color: var(--color-primary);
  margin-bottom: 20px; /* Réduit de 30px */
  text-shadow: 0 0 20px var(--color-glow);
  letter-spacing: 0.1em;
}

.countdown-section {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 100%;
  padding: 18px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 25, 44, 0.95) 0%, rgba(17, 44, 72, 0.92) 48%, rgba(24, 64, 96, 0.95) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  isolation: isolate;
}

.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 215, 128, 0.12) 0, rgba(255, 215, 128, 0.12) 12px, transparent 12px, transparent 26px),
    radial-gradient(circle at 20% 15%, rgba(255, 239, 196, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(186, 165, 112, 0.24) 0%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
  z-index: -2;
}

.countdown-section::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  border: 2px solid transparent;
  border-image: linear-gradient(130deg, rgba(249, 222, 129, 0.9), rgba(200, 152, 60, 0.75), rgba(255, 244, 199, 0.9)) 1;
  box-shadow:
    inset 0 0 18px rgba(254, 231, 165, 0.25),
    0 0 36px rgba(249, 222, 129, 0.18);
  pointer-events: none;
  z-index: -1;
}

.countdown-label {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 0 14px rgba(10, 94, 153, 0.65);
}

.countdown-label::before {
  content: "𓆣";
  font-size: 1.6rem;
  color: rgba(247, 221, 137, 0.92);
  text-shadow: 0 0 16px rgba(249, 223, 142, 0.55);
  transform: translateY(-1px);
}

.countdown-display {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 42, 70, 0.82) 0%, rgba(8, 26, 44, 0.78) 100%);
  border: 1px solid rgba(247, 222, 137, 0.45);
  box-shadow:
    inset 0 0 20px rgba(19, 58, 92, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(84, 140, 180, 0.25);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 100px;
}

.countdown-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(255, 245, 200, 0.28) 0%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

.countdown-value {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(247, 221, 137, 0.95);
  text-shadow:
    0 0 12px rgba(247, 221, 137, 0.45),
    0 0 28px rgba(13, 96, 155, 0.55);
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-unit {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  color: rgba(226, 236, 246, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.start-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  width: min(100%, 900px);
  margin: 32px auto 36px;
}

.start-actions .countdown-section {
  width: 100%;
  max-width: 100%;
}

.start-text {
  font-family: var(--font-secondary);
  font-size: 1.1rem; /* Réduit de 1.3rem */
  color: var(--color-text);
  margin: 0 auto 18px;
  font-style: italic;
}

.start-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-bg);
  border: 3px solid var(--color-primary);
  padding: 15px 35px; /* Réduit de 18px 45px */
  font-size: 1.1rem; /* Réduit de 1.3rem */
  font-family: var(--font-primary);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 8px 25px var(--color-shadow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--color-shadow);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  box-shadow: 0 0 20px var(--color-glow);
}

.start-button:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .start-overlay {
    padding-top: 15vh; /* Plus de décalage pour éviter le menu burger */
    padding-bottom: 5vh; /* Espace en bas */
    align-items: flex-start;
    overflow-y: auto; /* Permettre le scroll si nécessaire */
  }
  
  .start-content {
    padding: 25px 20px; /* Padding réduit sur mobile */
    max-width: 95vw; /* Presque toute la largeur */
    max-height: 85vh; /* Hauteur limitée */
    margin: 0 auto; /* Centrer horizontalement */
  }

  .start-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 20px 0 26px;
    width: 100%;
  }

  .countdown-section {
    width: 100%;
    margin: 0;
    max-width: 100%;
    padding: 20px 20px 24px;
  }

  .countdown-display {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
  }

  .countdown-item {
    padding: 12px 8px;
    flex: 1;
    min-width: calc(50% - 6px);
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .countdown-unit {
    font-size: 0.7rem;
  }

  .start-title {
    font-size: 1.6rem;
    margin-bottom: 18px;
    line-height: 1.3;
  }
  
  .countdown-label {
    font-size: 0.95rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .countdown-label::before {
    font-size: 1.3rem;
  }
  
  .start-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  .start-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* Compte à rebours */
.countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-overlay);
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent) 100%);
  padding: 30px 40px;
  border-radius: 20px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 30px var(--color-shadow);
  backdrop-filter: blur(10px);
  max-width: 600px;
  width: 90%;
}

.countdown-container {
  text-align: center;
}

.countdown-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--color-glow);
}

.countdown-timer {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-value {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 15px var(--color-glow);
  line-height: 1;
}

.time-label {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contenu des sections */
.content-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-content);
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
  padding: 40px 50px;
  border-radius: 20px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 10px 40px var(--color-shadow);
  backdrop-filter: blur(15px);
  max-width: 700px;
  width: 90%;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.content-container {
  animation: fadeInUp 1s ease-out;
}

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

.content-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-shadow: 0 0 15px var(--color-glow);
}

.content-subtitle {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-style: italic;
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: justify;
}

/* Overlay final */
.final-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-content);
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent) 100%);
  padding: 50px 60px;
  border-radius: 25px;
  border: 4px solid var(--color-primary);
  box-shadow: 0 15px 50px var(--color-shadow);
  backdrop-filter: blur(20px);
  text-align: center;
  max-width: 500px;
}

.final-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  z-index: 10;
  animation: fadeInUp 1.5s ease-out;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-container {
  background: linear-gradient(135deg, rgba(17, 63, 96, 0.95) 0%, rgba(8, 25, 44, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(218, 165, 32, 0.5);
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: 
    0 0 40px rgba(218, 165, 32, 0.4),
    inset 0 0 50px rgba(184, 134, 11, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(218, 165, 32, 0.8) 0px,
    rgba(218, 165, 32, 0.8) 20px,
    rgba(184, 134, 11, 0.6) 20px,
    rgba(184, 134, 11, 0.6) 40px
  );
}

.final-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(218, 165, 32, 0.8) 0px,
    rgba(218, 165, 32, 0.8) 20px,
    rgba(184, 134, 11, 0.6) 20px,
    rgba(184, 134, 11, 0.6) 40px
  );
}

.final-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  color: #DAA520;
  margin-bottom: 30px;
  text-shadow: 
    0 0 20px rgba(218, 165, 32, 0.8),
    0 0 40px rgba(184, 134, 11, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.final-text {
  font-size: 1.2rem;
  color: #F5DEB3;
  margin-bottom: 20px;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.final-subtext {
  font-size: 1rem;
  color: #DAA520;
  margin-bottom: 40px;
  line-height: 1.6;
  font-style: italic;
  text-shadow: 0 0 10px rgba(218, 165, 32, 0.6);
}

.launcher-button {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
  color: #000;
  border: 3px solid rgba(255, 215, 0, 0.8);
  padding: 18px 40px;
  font-size: 1.3rem;
  font-family: var(--font-primary);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 30px rgba(218, 165, 32, 0.5),
    0 0 20px rgba(255, 215, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.launcher-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.launcher-button:hover::before {
  width: 300px;
  height: 300px;
}

.launcher-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(218, 165, 32, 0.7),
    0 0 30px rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 215, 0, 1);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(218, 165, 32, 0.95) 100%);
}

.launcher-button:active {
  transform: translateY(-2px) scale(1.02);
}

.launcher-icon,
.launcher-text,
.launcher-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.launcher-button:hover .launcher-icon {
  transform: rotate(15deg) scale(1.2);
}

.launcher-button:hover .launcher-arrow {
  transform: translateX(5px);
}

.final-bg {
  filter: brightness(0.4) contrast(1.2);
}

.restart-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-bg);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-family: var(--font-primary);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 5px 15px var(--color-shadow);
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-shadow);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

/* Responsive pour overlays */
@media (max-width: 768px) {
  .header {
    padding: 15px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .side-menu {
    width: 100%;
    right: -100%;
  }
  
  .countdown-timer {
    gap: 15px;
  }

  .countdown-overlay {
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 25px;
    max-width: 90%;
  }
  
  .content-overlay {
    max-width: 90%;
    padding: 25px 30px;
  }
  
  .time-value {
    font-size: 2rem;
  }
  
  .content-overlay,
  .final-overlay {
    margin: 20px;
    padding: 30px;
  }
  
  .content-title {
    font-size: 2rem;
  }
  
  .final-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .start-overlay {
    padding-top: 12vh;
    padding-bottom: 4vh;
  }

  .start-content {
    padding: 20px 16px;
    max-width: 96vw;
    max-height: 88vh;
  }

  .start-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .countdown-section {
    padding: 16px 14px 18px;
  }

  .countdown-display {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
  }

  .countdown-item {
    padding: 10px 6px;
    flex: 1;
    min-width: calc(50% - 5px);
  }

  .countdown-value {
    font-size: 1.4rem;
  }

  .countdown-unit {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .countdown-label {
    font-size: 0.85rem;
    margin-bottom: 10px;
    gap: 8px;
  }

  .countdown-label::before {
    font-size: 1.1rem;
  }

  .start-actions {
    gap: 16px;
    margin: 16px 0 20px;
  }

  .start-text {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .start-button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .countdown-timer {
    gap: 10px;
  }
  
  .time-unit {
    min-width: 50px;
  }
  
  .time-value {
    font-size: 1.8rem;
  }
  
  .time-label {
    font-size: 0.8rem;
  }

  .countdown-overlay {
    top: 70px;
    padding: 14px 18px;
  }
}

