* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h2 {
  color: #fff;
  font-size: 2.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(101, 32, 153, 0.6);
}

h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #652099, transparent);
  border-radius: 2px;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.background {
  background: url("img/background.webp") no-repeat center center/cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.4);
  z-index: -1;
}

.content {
  padding: 40px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header .subtitle {
  font-size: 1.2rem;
  font-style: italic;
  color: #ddd;
}

.presentation {
  margin: 40px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.presentation h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.presentation p {
  margin-bottom: 20px;
  text-align: justify;
}

.technique {
  margin: 40px 0;
}

.technique h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.technique p {
  margin-bottom: 20px;
}

.technique a {
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #652099;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
  margin-bottom: 10px;
}

.btn:hover {
  background: #652099;
}

.videos h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-grid iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.clip-grid iframe {
  width: 560px;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #bbb;
}

.extra {
  margin: 60px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.extra h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.extra p, .extra ul {
  margin-bottom: 15px;
  text-align: justify;
  color: #e0dff4;
}

.center {
  margin-bottom: 15px;
  text-align: center !important; 
  color: #e0dff4;
}

.extra ul {
  list-style: disc;
  margin-left: 30px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.socials a {
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 14px;
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
  background: #652099;
}

.medias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.medias-grid figure {
  background: rgba(0,0,0,0.4);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.medias-grid img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.medias-grid figcaption {
  font-size: 0.95rem;
  color: #ddd;
  font-style: italic;
}

.logo-header {
  max-width: 400px;   
  width: 100%;  
  height: auto;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.video-caption {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  cursor: help; 
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.video-caption {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.tooltip {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #652099;
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  width: 600px;
  max-width: 600px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 2px solid #652099;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  z-index: 10;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #652099 transparent transparent transparent;
}

.video-caption:hover .tooltip {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.7);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  height: 500px; 
  object-fit: cover; 
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #652099; 
}

.carousel-btn.prev {
  left: 15px;
}
.carousel-btn.next {
  right: 15px;
}

.medias-grid img {
  width: 100%;
  height: 300px;
  object-fit: contain; 
  background: #000;    
}

.visuels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.visuels-grid figure {
  text-align: center;
}

.visuels-grid img {
  width: 100%;
  height: 250px;         
  object-fit: contain;
  background: #111;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.visuels-grid img.fond-clair {
  background: #f2f2f2; 
}

.visuels-grid figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #ddd;
  font-style: italic;
}
