/* ==============================
   RESET & BASE
   ============================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fffbf3;
  position: relative;
}

/* ==============================
   HERO / BACKGROUND
   ============================== */

.background-color {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../images/Header_Gradient.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  z-index: 0;
}

.background {
  background-color: #fffbf3;
  margin-top: -7px;
}

.fond-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .15s linear;
  z-index: -1;
}

.fond-stickers {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

/* ==============================
   HEADER
   ============================== */

header {
  position: absolute;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  z-index: 10;
}

.logo-haut {
  height: 55px;
  width: auto;
  transition: .3s;
  cursor: pointer;
}

.logo-haut:hover {
  transform: scale(1.1);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  transition: .25s;
  padding: 6px 14px;
  border-radius: 30px;
}

header li:hover a {
  background: white;
  color: #a01abf;
}

.translate-btn {
  background: white;
  color: #a01abf;
  border: 2px solid white;
  padding: 6px 16px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s;
}

.translate-btn:hover {
  background: #a01abf;
  color: white;
}

/* ==============================
   HERO CONTENT
   ============================== */

main.page_principale {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 6;
  width: 100%;
  pointer-events: none;
}

.hero-background-cloud {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5vw;
  pointer-events: auto;
  background: transparent;
  padding: 0;
}

.logo-centre {
  width: 25vw;
  min-width: 180px;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  transition: transform 0.25s ease;
  z-index: 10;
}

.logo-centre:hover {
  transform: scale(1.1);
}

.tagline {
  display: inline-flex;
  align-items: center;
  background: black;
  border: 2px solid white;
  border-radius: 40px;
  padding: 1.2vw 2.5vw;
  font-size: 1.4vw;
  font-weight: bold;
  color: white;
  font-family: 'Fredoka One', cursive, sans-serif;
  pointer-events: auto;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ==============================
   CLOUD SEPARATOR
   ============================== */

.nuage {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  padding: 0;
  line-height: 0;
}

/* ==============================
   ABOUT US
   ============================== */

.about-us {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 80px 8% 120px 8%;
  align-items: flex-start;
  background-color: #fffbf3;
  position: relative;
  z-index: 4;
  margin-top: 0;
}

.about-title {
  font-family: 'Erica One', sans-serif;
  font-size: 6vw;
  line-height: 0.85;
  color: #a01abf;
  margin: 0;
  font-weight: 1000;
  letter-spacing: -1px;
}

.about-text {
  font-family: 'Montserrat', sans-serif;
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==============================
   OUR WORK
   ============================== */

.ourwork-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #ff4457;
  padding: 120px 8%;
  gap: 60px;
  font-weight: 1000;
}

.ourwork-left h2 {
  font-family: 'Erica One', sans-serif;
  font-size: 6vw;
  color: white;
  margin: 0;
  line-height: 0.9;
}

.ourwork-right {
  display: flex;
  gap: 25px;
}

/* 🔥 WORK-CARD RESPONSIVE */
.work-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}

.work-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 18px 0;
  background: rgba(0, 0, 0, .55);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

.work-card:hover {
  transform: translateY(-15px);
  animation: floatCard 0.6s ease infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* ==============================
   OUR TEAM
   ============================== */

.ourteam-section {
  padding: 120px 8%;
  background-color: #fffbf3;
  overflow: hidden;
}

.ourteam-left h2 {
  font-family: 'Erica One', sans-serif;
  font-size: 6vw;
  color: #f40f5a;
  margin-bottom: 60px;
  line-height: 0.9;
  font-weight: 1000;
}

.carousel-wrapper {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
  display: flex;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: inline-flex;
  gap: 25px;
  width: max-content;
  will-change: transform;
  animation: none;
}

.carousel-wrapper:active {
  cursor: grabbing;
}

.carousel-wrapper:hover .carousel-track,
.carousel-wrapper:active .carousel-track {
  animation-play-state: paused;
}

.card {
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  background: white;
  user-select: none;
  -webkit-user-drag: none;
}

.card img {
  width: auto;
  height: 400px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ==============================
   FOOTER
   ============================== */

.footer {
  background-image: url("../images/Footer_Gradient.png");
  background-size: cover;
  background-position: center;
  padding: 25px 8%;
  color: white;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left h3 {
  margin-top: 0;
  font-family: 'Erica One', sans-serif;
  color: #fffbf3;
}

.footer-left p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.footer-left a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-left a:hover {
  color: #a01abf;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-right img {
  width: 40px;
  margin-left: 15px;
  transition: .2s;
  cursor: pointer;
}

.footer-right img:hover {
  transform: scale(1.2);
}
@media (max-width: 1215px) {
  .logo-centre {
    margin-top: 100px;
  }
  .logo-centre {
    width: 30vw;
  }
}
@media (max-width: 1150px) {
  .logo-centre {
    width: 30vw;
    margin-top: 200px;
  }
  .nuage {
    width: 1200px;
    max-width: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -17px;
  }
}
/* ==============================
   RESPONSIVE MOBILE
   ============================== */

@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  header {
    flex-direction: row; /* ⬅️ au lieu de column */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* permet au menu d'aller en dessous */
  }

  nav {
    width: 100%;
    order: 3;
  }

  .nav-center {
      flex-direction: column;
      align-items: center;
      /* Fond transparent par défaut */
      background: transparent; 
      width: 100%;
      border-radius: 20px;
      margin-top: 10px;
      padding: 10px 0;

      /* Caché par défaut */
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, background 0.3s ease;
  }

  /* Le fond sombre n'apparaît que quand le menu est actif */
  .nav-center.active {
      background: rgba(0, 0, 0, 0.85);
      max-height: 300px;
  }

  .nav-center li {
    margin: 10px 0;
  }
  
  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .logo-haut {
    height: 40px;
    margin-right: auto;
  }
  .translate-btn {
    margin-left: auto;
  }

  main.page_principale {
    top: 65%;
    padding: 0 10px;
  }

  .tagline {
    font-size: 3.5vw;
    padding: 10px 18px;
    white-space: normal;
    text-align: center;
  }

  .about-us {
    flex-direction: column;
    gap: 30px;
    padding: 60px 6%;
    margin-top: -40px;
  }

  .about-title {
    font-size: 12vw;
  }

  .logo-centre {
    margin-top: 0px;
  }

  .about-text {
    font-size: 1rem;
  }

  .ourwork-section {
    flex-direction: column;
    gap: 40px;
    padding: 80px 6%;
  }

  .ourwork-left {
    margin-bottom: 20px;
  }

  .ourwork-left h2 {
    font-size: 12vw;
  }

  .ourwork-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0;
  }

  /* 🔥 MOBILE WORK-CARD */
  .work-card {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .ourteam-section {
    padding: 80px 6%;
  }

  .ourteam-left h2 {
    font-size: 12vw;
  }

  .card img {
    height: 280px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .nuage {
    width: 1200px;
    max-width: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==============================
   PETITS TÉLÉPHONES
   ============================== */

@media (max-width: 480px) {

  .logo-centre {
    width: 75vw;
  }

  .tagline {
    font-size: 4vw;
  }

  .about-title,
  .ourwork-left h2,
  .ourteam-left h2 {
    font-size: 14vw;
  }

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

  .card img {
    height: 240px;
  }

  .nuage {
    width: 1300px;
    max-width: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}