﻿/* Styles extraits pour ovie.html */


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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #eefafa;
  color: #2d4d4d;
  line-height: 1.6;
  padding: 80px 20px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a.home-link {
  position: fixed;
  top: 20px;
  left: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #0b7c87;
  background: rgba(11,124,135,0.1);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(11,124,135,0.3);
  z-index: 20;
}

h1 {
  color: #0b7c87;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.intro-text, .description-text {
  max-width: 800px;
  font-size: 1.15rem;
  color: #336b6b;
  text-align: center;
  margin-bottom: 28px;
  padding: 0 10px;
}

.quote {
  font-style: italic;
  background: #d6f5f5;
  padding: 15px 20px;
  border-left: 5px solid #0b7c87;
  max-width: 700px;
  margin: 20px auto;
  border-radius: 6px;
}

.carousel-container {
  width: 90%;
  max-width: 900px;
  height: 460px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 5px 22px rgba(11,124,135,0.35);
  background-color: #d6f5f5;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start; /* aligne à gauche du conteneur */
  align-items: flex-end; /* pour baisser la vidéo */
  position: relative;
  overflow: hidden; /* masque tout ce qui dépasse */
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 100%; /* droite + bas */
  transform: scale(1.3); /* FORCE la découpe */
  transform-origin: bottom right;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(11,124,135,0.4);
}


.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(11,124,135,0.8);
  color: #eefafa;
  font-weight: 600;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 0 0 14px 14px;
  text-align: center;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11,124,135,0.85);
  border: none;
  font-size: 32px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 50%;
  color: white;
  user-select: none;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  z-index: 10;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.join-btn {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #0b7c87;
  color: #eefafa;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11,124,135,0.6);
}

/* ===== RESPONSIVE SMARTPHONES ===== */
@media (max-width: 600px) {
  .carousel-container { height: 300px; }

  .carousel-slide video {
    width: 90%;
    height: 90%;
    object-fit: cover;
    object-position: 100% 110%; /* ajuster pour plus bas */
    transform: scale(2.5); /* agrandir pour que la vidéo se positionne encore plus bas */
  }

  .caption { font-size:1rem; height:40px; }
  .intro-text, .description-text { font-size:1rem; max-width:95%; }
}

