* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-decoration: none;
}

body {
  min-height: 100vh;
  font-family: 'Mustica', Arial, sans-serif;
  color: white;
  overflow-x: hidden;
}

@font-face {
  font-family: 'Mustica';
  src: url('font/MusticaPro-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kenyan';
  src: url('font/Kenyan\ Coffee\ Rg.otf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body::-webkit-scrollbar {
  width: 5px;
  background: white;
}

body::-webkit-scrollbar-track {
  background: rgb(0, 0, 0);
}

body::-webkit-scrollbar-thumb {
  background-color: #333;
  border: none;
}

.animated-bg {
  width: 100%;
  height: 100vh;


  background:
    radial-gradient(circle at 20% 30%,  #4b2f58 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, #2a3b9c 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #1b1649 0%, transparent 60%),
    radial-gradient(circle at 30% 80%, #533046 0%, transparent 55%),
    #2a1644;

  background-size: 250% 250%;
  animation: organic-strong 14s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes organic-strong {
  0% {
    background-position: 
      0% 0%, 
      100% 100%, 
      50% 50%, 
      30% 80%;
  }
  20% {
    background-position: 
      70% 40%, 
      20% 90%, 
      80% 20%, 
      60% 10%;
  }
  40% {
    background-position: 
      100% 80%, 
      0% 40%, 
      30% 70%, 
      90% 50%;
  }
  60% {
    background-position: 
      40% 0%, 
      80% 50%, 
      10% 90%, 
      20% 60%;
  }
  80% {
    background-position: 
      10% 60%, 
      50% 0%, 
      90% 40%, 
      70% 90%;
  }
  100% {
    background-position:
      0% 0%, 
      100% 100%, 
      50% 50%, 
      30% 80%;
  }
}

header {
  position: static;
  height: 7vh;
}

.navbar {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  padding: 1rem 2rem;

  border-bottom: 1px solid #eee5c5;
  
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img{
 width: 75px;
}


.menu {
  display: flex;
  gap: 1.5rem;
}

.menu a {
  font-family: 'Poppins', Arial, sans-serif;
  color: #eee5c5;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  transition:0.3s;
}

.menu a:hover {
  color: #ffffff;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    width: 90%;
    padding: 1rem 1rem;
  }

  .menu {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    align-items: center;
    display: none;
    border-radius: 0 0 15px 15px;
    z-index: 1100;
  }

  .menu a {
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .hamburger {
    display: block;
  }

  .menu-toggle:checked+.hamburger+.menu {
    display: flex;
  }
}

.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  
  background-image: url("img/Image.jpg");
  background-size: cover;       
  background-position: center;   
  background-repeat: no-repeat;  
}

.home h1 {
  font-size: clamp(5rem, 6vw, 3rem);
  font-family: 'Kenyan';
  color: #eee5c5;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  font-weight: 100;
  line-height: 1.1;
  max-width: 90vw;
}

.home h2 {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 100;
  color: #eee5c5;
  margin-top: 0;
}

.scroll-down {
  position: absolute;
  text-align: center;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down span {
  display: block;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.scroll-down .arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-bottom: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  margin: 0 auto;
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  50%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(-5px) rotate(45deg);
  }
}

.fade-text {
  position: relative;
  height: 1.5em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;     
  box-sizing: border-box;
  text-align: center;
}

.fade-text span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;   
  opacity: 0;
  animation: fadeAnimation 9s infinite;
  max-width: 100%;      
  box-sizing: border-box;
}

.fade-text span:nth-child(1) {
  animation-delay: 0s;
}

.fade-text span:nth-child(2) {
  animation-delay: 3s;
}

.fade-text span:nth-child(3) {
  animation-delay: 6s;
}
@keyframes fadeAnimation {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  35% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.split-container {
    display: flex;
    width: 100%;
    height: 55vh;
}

.left-panel {
    flex: 1;
    background-image: url(img/image2.jpg);
     background-size: cover;        /* L’image remplit tout l’écran */
  background-position: center;   /* Centre l’image */
  background-repeat: no-repeat;  /* Évite toute répétition */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.overlay-text {
    color: #eee5c5;
    max-width: 450px;
}

.overlay-text h2 {
    font-family: 'Kenyan';
    letter-spacing: 1px;
    font-weight: 100;
    margin: 0 0 60px;
    font-size: clamp(3.5rem, 4vw, 3rem);
    line-height: 1.3;
}

.overlay-text h3 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}



.right-panel {
        flex: 1;
    background-image: url(img/image3.jpg);
     background-size: cover;      
  background-position: center;  
  background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.right-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



@media (max-width: 900px) {

  .split-container {
    flex-direction: column;    
    height: auto;                
  }

  .left-panel,
  .right-panel {
    height: 45vh;            
    padding: 60px 40px;          
    text-align: center;          
    justify-content: flex-end;   
  }

}

@media (max-width: 600px) {

  .left-panel,
  .right-panel {
    height: 40vh; 
  }

}

@media (max-width: 320px) {
  .navbar {
    width: 95%;
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  .fade-text span {
    font-size: clamp(1.2rem, 3vw, 2rem);
  }

  .home h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .home h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
}


.Projets {
  background-color: #000000;
  padding: 50px 100px;
  text-align: right;
  color: #eee5c5;
}

.Projets h2 {
  font-family: 'Kenyan';
  font-weight: 100;
  letter-spacing: 1px;
  font-size: clamp(3.5rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.Projets h3 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #eee5c5;
  margin-bottom: 0.2rem;
}

.Projets p {
  color: #eee5c5;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: center;
  padding: 20px;
}

.video-card {
  width: 100%;
  max-width: 550px; 
  display: flex;
  justify-content: center;
}


.video-card video {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 700px) {

  .home h1 {
  font-size: clamp(2.7rem, 6vw, 3rem);
}

  .gallery {
    grid-template-columns: 1fr;
  }

  .video-card {
    max-width: 100%;
  }
}


@media (max-width: 768px) {


  .Projets {
    text-align: center;
    padding: 50px 30px;
  }

  .Projets h2 {
    margin-bottom: 0;
  }

  .Projets p {
    margin-bottom: 8%;
  }
}

.footer {
  background: radial-gradient(circle at center 250%, transparent 20%, #000000 60%);
  text-align: center;
   padding: 100px 20px 0px 20px;
}

.footer h2 {
  font-family: 'Kenyan';
  letter-spacing: 1px;
  font-weight: 100;
  font-size: clamp(3.5rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  color: #eee5c5;
}

.footer p {
  margin-bottom: 30px;
  color: #eee5c5;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.footer .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer .buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.footer button {
  color: #eee5c5;
  font-family: 'Mustica';
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: 0.2s;
}

.footer button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.2s;
}

.footer .icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer ion-icon {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #eee5c5;
  transition: 0.2s;
}

.footer ion-icon:hover {
  color: #ffffff;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .footer {
  background: radial-gradient(circle at center 150%, transparent 20%, #000000 60%);
  text-align: center;
  padding: 100px 20px;
}


  .footer .btn {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 5%;
}

  .footer {
    padding: 0px 30px;
  }

  .footer .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .footer button {
    width: 100%;
    max-width: 250px;
  }

  .footer .icon {
    margin-top: 30px;
  }
}

.card video {
  width: 50%;
  border-radius: 20px;
}

.tag p {
  margin-top: 100px;
  font-size: 1rem;
  color: #6e6e6e;
}