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

body {
  font-family: Arial, sans-serif;
  background: #F8F9F4;
  color: #333;
  padding-top: 80px; /* évite que le contenu passe sous la navbar */
  height: 100%;
  overflow-x: hidden;
}

/* Navbar fixe */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8%;
  background: #F8F9F4;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.logo span {
  color: #ddb608b0;
}

/* Menu nav */
.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: #444;
  font-size: 15px;
  transition: color 0.3s;
}

.navbar nav ul li a:hover {
  color: #ddb608b0;
}

/* Bouton Login / CTA */
.cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta .btn {
  background: #111;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s;
  
}
.cta .btn:hover {
  background: #333;
}

.cta .btn-gold {
  background: #ddb608b0; /* gold */
  color: #111;
}
.cta .btn-gold:hover {
  background: #c7a808;
}

/* === Menu hamburger === */
.menu-toggle {
  position: relative;
  width: 30px;
  height: 22px;
  display: none; /* visible seulement mobile */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1300;
}

/* Burger bars */
.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* === Burger animé en X === */
.navbar.active .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.navbar.active .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.navbar.active .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* === Menu déroulant mobile === */
.navbar nav {
  display: flex;
  align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    order: -1; /* burger à gauche */
  }

  .navbar nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #F8F9F4;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: max-height 0.4s ease-in-out;
  }

  .navbar.active nav {
    max-height: 500px; /* assez pour tous les liens */
    padding: 20px 0;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .cta {
    /* Login reste visible, pas dans le menu */
    order: 2;
  }
}

/* Hero */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 20px;
}
.hero-text h1 span {
  color: #555;
}
.hero-text p {
  font-size: 16px;
  color: #666;
}
/* Effet doré dégradé */
.gold-gradient {
  background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-style: italic;
}
/* Rouge simple pour COEUR */
.red {
  color: red;
  font-style: italic;
  font-weight: bold;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Floating icons */
.icon {
  position: absolute;
  font-size: 28px;
  padding: 18px;
  border-radius: 12px;
  background: transparent;
}
.icon.green {
  top: 160px;
  left: 20px;
}
.icon.purple {
  top: 20px;
  right: 100px;
}
.icon.orange {
  bottom: 270px;
  left: 85%;
  transform: translateX(-50%);
}

/* Barre de recherche moderne */
.search-container {
  margin-top: 25px;
  flex: 1;
  max-width: 500px;
  margin-left: 30px;
  margin-right: 30px;
}

.search-form {
  width: 100%;
}

/* Nouvelle barre de recherche home */
.search-container-home {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  max-width: 520px;
  margin-top: 35px;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.search-container-home input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 28px;
  font-size: 15px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  background: transparent;
}

.search-container-home input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.search-container-home button {
  background: linear-gradient(135deg, #f4d03f 0%, #eab308 100%);
  color: white;
  border: none;
  padding: 18px 38px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.25);
}

.search-container-home button:hover {
  background: linear-gradient(135deg, #eab308 0%, #d4af37 100%);
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
  transform: translateY(-1px);
}

.search-container-home button:active {
  transform: translateY(0);
}

.search-container-home:focus-within {
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.15);
  border-color: #eab308;
}

/* Responsive */
@media (max-width: 768px) {
  .search-container {
    max-width: 300px;
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .search-input::placeholder {
    font-size: 12px;
  }
}

/* Icônes utilisateur dans le header */
.user-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.user-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.user-icons a:hover {
  transform: scale(1.1);
}

.user-icons .icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

.user-icons .icon-img:hover {
  transform: scale(1.1);
}

/* Photo de profil dans le header */
.profile-photo-container {
  display: flex;
  align-items: center;
}

.profile-photo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.profile-photo-icon:hover {
  transform: scale(1.1);
  border-color: #d4af37;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* Photo de profil circulaire */
.profile-link {
  margin-left: 10px;
}

.profile-photo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ddb608b0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.profile-photo:hover {
  border-color: #c7a808;
  box-shadow: 0 4px 12px rgba(221, 182, 8, 0.4);
  transform: scale(1.05);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive text & spacing */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 36px;
  }
  .navbar nav ul {
    gap: 25px;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 30px;
  }
  
  /* Header responsive */
  .user-icons {
    gap: 12px;
  }
  
  .user-icons .icon-img {
    width: 20px;
    height: 20px;
  }
  
  .profile-photo {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }
  
  .navbar {
    padding: 12px 5%;
  }
}
