@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* ===== Global ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0f2027, #203a43, #000000);
  color: #eee;
  line-height: 1.6;
  font-weight: 400;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  animation: fadeInBody 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 8%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 110;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.logo {
  font-size: 3.2rem;
  color: #ff3b3b;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2rem;
  transition: transform 0.4s ease, color 0.4s ease;
}

.logo:hover {
  color: #ff6767;
  transform: scale(1.15) rotate(-5deg);
}

/* ===== Navigation ===== */
nav a {
  font-size: 1.8rem;
  color: #eee;
  margin-left: 3.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: #ff3b3b;
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: #ff3b3b;
}

/* ===== Home Section ===== */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14rem 8%;
  gap: 3rem;
  flex-wrap: wrap;
  min-height: 100vh;
  background: linear-gradient(135deg, #232526, #1c1c1c);
  box-shadow: inset 0 0 120px rgba(255, 59, 59, 0.2);
  border-radius: 12px;
}

.home-img {
  flex: 1 1 320px;
  text-align: center;
  filter: drop-shadow(0 8px 15px rgba(255, 59, 59, 0.7));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.home-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-img:hover img {
  transform: scale(1.08) rotate(2deg);
}

.home-content {
  flex: 1 1 400px;
  color: #eee;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-content:hover {
  transform: translateX(10px);
}

.home-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #ff3b3b;
  letter-spacing: 0.1rem;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.8);
}

.home-content h1 span{
  color: #fff;
  text-shadow: none;
}

.home-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #ccc;
}

.home-content p {
  font-size: 1.7rem;
  margin-bottom: 3rem;
  max-width: 480px;
  color: #bbb;
  line-height: 1.5;
}

/* ===== Social Icons ===== */
.social-icons {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #222;
  border-radius: 50%;
  color: #eee;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.social-icons a:hover {
  transform: scale(1.15);
  color: #fff;
}

.social-icons a:nth-child(1):hover { background: #0077b5; }
.social-icons a:nth-child(2):hover { background: #333; }
.social-icons a:nth-child(3):hover { background: #000; }
.social-icons a:nth-child(4):hover { background: #e1306c; }

/* ===== Buttons ===== */
.btn {
  padding: 1.3rem 3rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(45deg, #ff3b3b, #ff6767);
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(255, 59, 59, 0.6);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  user-select: none;
  border: none;
}

.btn:hover {
  background: linear-gradient(45deg, #ff6767, #ff3b3b);
  box-shadow: 0 10px 25px rgba(255, 103, 103, 0.85);
  transform: scale(1.05);
}

.scroll-btn {
  margin-top: 2rem;
  background: transparent;
  color: #ff3b3b;
  border: 2px solid #ff3b3b;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-btn:hover {
  background-color: #ff3b3b;
  color: white;
}

/* ===== Description ===== */
.description {
  padding: 8rem 10%;
  background-color: #111;
  color: #eee;
  text-align: center;
}

.description h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #ff3b3b;
}

.description p {
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* ===== Video Section ===== */
.video {
  padding: 8rem 10%;
  padding-top: calc(8rem + 80px);
  background-color: #111;
  color: #eee;
  text-align: center;
  min-height: calc(100vh - 80px);
}

.video h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #ff3b3b;
}

.video p {
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-button {
  background-color: #333;
  color: #eee;
  border: none;
  padding: 1rem 2rem;
  margin: 0 0.5rem;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.tab-button:hover {
  background-color: #555;
}

.tab-button.active {
  background-color: #ff3b3b;
  color: white;
}

/* ===== Video Gallery ===== */
.video-gallery {
  margin-top: 3rem;
}

.video-category {
  display: none;
  width: 100%;
}

.video-category.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2.4rem;
  justify-content: center;
}

@media (max-width: 1024px) {
  .video-category.active {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 500px) {
  .video-category.active {
    grid-template-columns: 1fr;
  }
}

.video-item {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #111;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.video-item h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.video-item p {
  font-size: 1.4rem;
  color: #bbb;
  margin-bottom: 0.6rem;
}

.video-item iframe,
.video-item video {
  width: 100%;
  height: 270px; /* taille pour 16/9 */
  border-radius: 8px;
  object-fit: cover;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Formulaire Communauté ===== */
.video-form {
  max-width: 520px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 59, 59, 0.25);
  animation: fadeUp 0.8s ease forwards;
}

.video-form h3 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #ff3b3b;
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.7);
}

.video-form input {
  width: 100%;
  padding: 1.3rem;
  margin-bottom: 1.4rem;
  border-radius: 10px;
  background: #111;
  color: #eee;
  font-size: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.video-form input:focus {
  border-color: #ff3b3b;
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.6);
}

.video-form .btn {
  width: 100%;
  margin-top: 1rem;
}

/* ===== Community Videos Grid ===== */
#communityVideos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}

@media (max-width: 1024px) {
  #communityVideos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 500px) {
  #communityVideos {
    grid-template-columns: 1fr;
  }
}
:root {
  --bg-light: #f4f4f4;
  --bg-dark: #0b0f14;
  --text-light: #111;
  --text-dark: #eaeaea;
}
.logout-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.6rem;
  background: #ff3b3b;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
/* ===== Language Switch ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
  padding: 0.6rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ccc;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: 
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}
.lang-fade {
  animation: langFade 0.4s ease;
}

@keyframes langFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lang-btn:hover {
  color: #fff;
  transform: scale(1.05);
}

.lang-btn.active {
  background: linear-gradient(45deg, #ff3b3b, #ff6767);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 59, 59, 0.8);
}

/* Option header */
header .lang-switch {
  margin-left: 3rem;
}
