/* ============================================
   PRESENTATION APP - STYLESHEET
   Design Philosophy: Minimalist, performant, elegant
   ============================================ */

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

html, body { 
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background: #111; 
  color: #fff; 
  font-family: 'Raleway', sans-serif; 
}

/* ============================================
   SLIDES CONTAINER
   ============================================ */

.slides { 
  width: 100%; 
  height: 100%; 
  position: relative; 
  overflow: hidden; 
}

/* ============================================
   SLIDE BASE STYLES
   ============================================ */

.slide { 
  width: 100%; 
  height: 100%; 
  position: absolute; 
  top: 0; 
  left: 0;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  padding: 0; 
  transition: transform 0.6s ease; 
  overflow: hidden;
}

/* Pour les slides a puces, ne pas centrer par flexbox */
.slide.bullet-slide {
  justify-content: flex-start;
}

/* ============================================
   CONTENT BOX (Text Area)
   
   Layout Calculation:
   - Total Width: 100%
   - Image Width: 55% (right side)
   - Gap: 10%
   - Left Margin: 10%
   - Content Box Width: 25%
   ============================================ */

.content-box { 
  width: 25%; 
  margin-left: 10%;
  margin-right: auto;
  z-index: 2; 
  position: relative;
  padding-right: 2rem;
  transition: transform 0.4s ease;
}

.content-box h2 { 
  font-size: 1rem; 
  opacity: 0.6; 
  text-align: left; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  font-weight: 500;
}

.content-box h1 { 
  font-size: 2rem; 
  margin-top: 0.5rem; 
  text-align: left; 
  word-wrap: break-word;
  font-weight: 700;
  line-height: 1.3;
}

.content-box h3 { 
  font-size: 1.2rem; 
  opacity: 0.9; 
  margin-top: 0.3rem; 
  text-align: left;
  font-weight: 500;
}

.content-box p { 
  font-size: 1rem; 
  margin-top: 1rem; 
  opacity: 0.85; 
  line-height: 1.4; 
  text-align: left;
  font-weight: 300;
}

.quote-ref { 
  font-variant: small-caps; 
  font-size: 0.8rem; 
  margin-top: 2rem; 
  border-top: 1px solid #444; 
  padding-top: 0.5rem; 
  display: inline-block;
  opacity: 0.7;
}

/* ============================================
   IMAGE BOX (Right Side)
   ============================================ */

.image-box { 
  position: absolute; 
  right: 0; 
  top: 0; 
  width: 55%;
  height: 100%; 
  background-size: cover; 
  background-position: center; 
  opacity: 0.8; 
  z-index: 1;
  transition: background-image 0.4s ease;
}

/* ============================================
   IMAGE CAPTION (Below Image)
   
   Positioned at bottom of image area,
   varies in height based on content
   ============================================ */

.image-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.4s ease;
  max-height: 30%;
  overflow-y: auto;
  z-index: 3;
}

.image-caption.visible {
  opacity: 1;
}

/* ============================================
   BULLET LIST STYLES
   ============================================ */

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.bullet-list li { 
  opacity: 0; 
  transition: opacity 0.4s ease; 
  font-size: 1.4rem; 
  margin: 1rem 0;
  font-weight: 300;
  line-height: 1.5;
}

.bullet-list li.visible {
  opacity: 1;
}

.bullet-list li::before {
  content: "→ ";
  margin-right: 0.5rem;
  opacity: 0.6;
}

/* ============================================
   BULLET SLIDE HELPER TEXT
   ============================================ */

.bullet-helper {
  position: fixed;
  bottom: 10%;
  left: 10%;
  z-index: 10;
  opacity: 0.5; 
  font-size: 0.8rem; 
  border-top: 1px solid #333; 
  padding-top: 0.5rem;
  line-height: 1.6;
  width: 25%;
}

/* ============================================
   FULLSCREEN BUTTON
   ============================================ */

.fullscreen-button {
  position: fixed; 
  top: 15px; 
  right: 15px; 
  z-index: 100;
  cursor: pointer; 
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2); 
  color: #fff;
  padding: 5px 12px; 
  border-radius: 4px; 
  font-size: 0.8rem;
  transition: opacity 0.3s ease, background 0.3s ease;
  opacity: 0.5;
  font-family: 'Raleway', sans-serif;
}

.fullscreen-button:hover { 
  opacity: 1; 
  background: rgba(255, 255, 255, 0.2); 
}

/* ============================================
   SLIDE TRANSITIONS
   ============================================ */

.slide.active {
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.slide.next {
  transform: translateX(100%);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .content-box {
    width: 40%;
    margin-left: 5%;
  }
  
  .image-box,
  .image-caption {
    width: 55%;
  }
}

@media (max-width: 768px) {
  .content-box {
    width: 100%;
    margin-left: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3;
  }
  
  .content-box h1 {
    font-size: 1.5rem;
  }
  
  .content-box p {
    font-size: 0.9rem;
  }
  
  .image-box,
  .image-caption {
    width: 100%;
  }
  
  .bullet-list li {
    font-size: 1.1rem;
  }
}