html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* ================================================================
   PARENTS — zéro padding/margin gauche
   ================================================================ */
.page-bg,
.site-wrap,
.main-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100%;
}

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 5px 10px 5px 8px;
  margin-left: 0;
  position: relative;
  z-index: 10002;
}

.boz-btn-group2 {
  margin: 0 !important;
  padding: 0 !important;
}

.boz-btn-group2 .boz-btn {
  margin: 0 !important;
  border-radius: 8px !important;
}

/* ================================================================
   LANG BADGE
   ================================================================ */
.lang-badge {
  font-size: 2rem;
  font-weight: 500;
  color: #000000;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}

/* ================================================================
   LANG BUTTONS
   ================================================================ */
.lang-switcher {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

.lang-btn.active {
  color: #fff;
}

.lang-btn.active .flag-icon {
  box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0,0,0,0.5);
}

.flag-icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.lang-label {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  color: inherit;
}

.lang-divider {
  display: none;
}

/* ================================================================
   VIDEO SECTION & CONTAINER
   ================================================================ */
.video-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  margin: 0;
  width: 100%;
}

.video-container {
  width: 100%;          /* ← 100% au lieu de 100vw */
  height: 85vh;
  max-width: 100%;
  position: relative;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================================================================
   PLAY/PAUSE BUTTON
   ================================================================ */
.play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

.video-container.show-controls .play-pause-btn,
.video-container.paused .play-pause-btn {
  opacity: 1;
  pointer-events: auto;
}

.play-pause-btn svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ================================================================
   SKIP INDICATORS
   ================================================================ */
.skip-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 15;
}

.skip-indicator.show { opacity: 1; }
#skipBack    { left: 20%; }
#skipForward { right: 20%; }

.skip-indicator svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ================================================================
   VIDEO CONTROLS
   ================================================================ */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.video-container.show-controls .video-controls,
.video-container.paused .video-controls {
  opacity: 1;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.progress-bar:hover { height: 7px; }

.progress-filled {
  height: 100%;
  background: #ff0000;
  border-radius: 5px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
  overflow: visible;
}

.progress-scrubber {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 16px;
  height: 16px;
  background: #ff0000;
  border: 2px solid #ff0000;
  border-radius: 50%;
  transition: transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.progress-bar:hover .progress-scrubber,
.progress-bar.dragging .progress-scrubber {
  transform: translateY(-50%) scale(1);
}

.progress-bar:hover .progress-scrubber {
  width: 14px;
  height: 14px;
  right: -7px;
}

.progress-hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  width: 0%;
  pointer-events: none;
}

.controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-display {
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.control-btn:hover       { transform: scale(1.1); }
.control-btn.small-btn svg { width: 20px; height: 20px; }
.control-btn svg         { width: 24px; height: 24px; fill: white; }

/* Volume */
.volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.controls-right:hover .volume-slider,
.volume-slider:hover { width: 80px; }

#volumeRange {
  width: 80px;
  height: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  border-radius: 5px;
}

#volumeRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
}

#volumeRange::-moz-range-thumb {
  width: 12px; height: 12px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

.video-container.hide-cursor { cursor: none; }

/* ================================================================
   DESKTOP
   ================================================================ */
@media (min-width: 1025px) {
  .video-container {
    width: 100% !important;
    height: 89vh;
  }
}

/* ================================================================
   TABLETTE
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .video-container {
    width: 100% !important;
    height: 85vh;
  }
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 768px) {
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .page-bg,
  .site-wrap,
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .video-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    margin: 0 !important;
    padding: 0 !important;
  }

  .video-container {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
  }

  #videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .boz-btn-group2 {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    z-index: 10001;
    margin: 0 !important;
    padding: 10px !important;
  }

  #btnFr {
    position: fixed !important;
    top: 10px !important;
    right: 90px !important;
    z-index: 10005 !important;
    background: rgba(0,0,0,0.75) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
  }

  #btnEn {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10005 !important;
    background: rgba(0,0,0,0.75) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
  }

  .flag-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }

  .lang-label {
    font-size: 11px !important;
    color: white !important;
    display: block !important;
  }

  .lang-divider  { display: none !important; }
  .volume-slider { display: none; }
  .site-footer   { display: none; }

  .play-pause-btn     { width: 60px; height: 60px; }
  .play-pause-btn svg { width: 30px; height: 30px; }

  .skip-indicator     { padding: 10px 15px; font-size: 14px; }
  .skip-indicator svg { width: 24px; height: 24px; }
  #skipBack    { left: 10%; }
  #skipForward { right: 10%; }
}

/* ================================================================
   MESSAGE D'ORIENTATION
   ================================================================ */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .orientation-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 25px;
    border-radius: 15px;
    z-index: 10002;
    text-align: center;
    font-size: 16px;
    width: 85%;
    max-width: 350px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.4s ease;
    font-family: 'Inter', sans-serif;
  }

  .orientation-message.hide {
    animation: fadeOut 0.4s ease forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  @keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  }

  .orientation-icon { font-size: 52px; margin-bottom: 15px; display: block; }

  .orientation-message p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-weight: 500;
  }

  .orientation-countdown {
    font-size: 13px;
    color: #999;
    margin-top: 15px;
    font-weight: 400;
  }
}
