:root {
  --color-primary: #ff3c00;
  --color-primary-dark: #e13800;
  --color-black: #000;
  --color-white: #fff;
  --color-grey-light: #f5f5f5;
  --color-grey-dark: #555;
  --color-divider: #ddd;
  --font-family: "Montserrat", sans-serif;
  --font-size-base: 14px;
  --font-size-heading: 48px;
  --font-size-subheading: 20px;
  --header-height: 80px;
  --border-radius-round: 50px;
  --transition-speed: 0.3s;
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 2px 10px rgba(0, 0, 0, 0.1);
  --color-bg-body: #f8f9fa;
}


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

body {
  font-family: var(--font-family);
  background: var(--color-white);
  padding-top: var(--header-height);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  z-index: 1000;
}

.logo img {
  height: 45px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--color-grey-light);
  border-radius: var(--border-radius-round);
  padding: 6px 15px;
  width: 70%;
}

.search-field {
  display: flex;
  align-items: center;
  flex: 1;
}

.search-field i {
  color: #777;
  margin-right: 8px;
  font-size: 15px;
}

.search-bar input,
.search-bar select {
  border: none;
  background: none;
  outline: none;
  color: var(--color-grey-dark);
  font-size: var(--font-size-base);
  width: 100%;
}

.divider {
  width: 1px;
  height: 25px;
  background: var(--color-divider);
  margin: 0 10px;
}

.search-btn,
.btn-buy {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-round);
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-speed);
}

.search-btn:hover {
  background: var(--color-primary-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: var(--color-grey-light);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.icon-btn i {
  font-size: 18px;
  color: var(--color-black);
}

.icon-btn:hover {
  background: #ddd;
}

.profile-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar {
  position: fixed;
  right: -350px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: #111;
  color: var(--color-white);
  padding: 30px;
  transition: right 0.4s ease;
  z-index: 9999;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-logo img {
  height: 50px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 22px;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.close-btn:hover {
  color: var(--color-primary);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.menu-list li {
  margin: 18px 0;
  font-size: 18px;
  cursor: pointer;
  transition: color var(--transition-speed);

}

.menu-list li:hover {
  color: var(--color-primary);
}

.menu-list li a {
  color: var(--color-white);
  text-decoration: none;

}

.sidebar-footer {
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.sidebar-footer h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.sidebar-footer p {
  font-size: 14px;
  margin-bottom: 15px;
}

.social-icons a {
  color: var(--color-white);
  margin-right: 12px;
  font-size: 16px;
  transition: color var(--transition-speed);
}

.social-icons a:hover {
  color: var(--color-primary);
}

.mobile-search {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--color-white);
  padding: 20px 15px;
  box-shadow: var(--shadow-strong);
  display: none;
  z-index: 999;
}

.mobile-search.active {
  display: block;
  animation: fadeIn var(--transition-speed) ease;
}

.mobile-search-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-grey-light);
  border-radius: 25px;
  padding: 15px;
}

.mobile-search .search-field {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--border-radius-round);
  padding: 8px 15px;
}

.mobile-search .search-field i {
  color: #777;
  margin-right: 10px;
  font-size: 15px;
}

.mobile-search input,
.mobile-search select {
  border: none;
  outline: none;
  background: none;
  font-size: var(--font-size-base);
  color: var(--color-grey-dark);
  width: 100%;
}

.mobile-search .search-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 30px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed);
  margin-top: 5px;
}

.mobile-search .search-btn:hover {
  background: var(--color-primary-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .search-bar {
    display: none;
  }

  .icon-btn {
    display: flex;
  }
}

@media (min-width: 992px) {
  #searchToggle {
    display: none;
  }

  .mobile-search {
    display: none !important;
  }
}

/*--------Inscription+Connexion---------*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #f5f5f5;
  color: #333;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 30px;
  padding-top: 30px;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: #ff5722;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ff5722;
  border-radius: 3px 3px 0 0;
}

.tab-btn:hover {
  color: #ff5722;
}

.tab-content {
  padding: 40px 30px;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i:not(.toggle-password) {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-group select {
  cursor: pointer;
  appearance: none;
  width: 100%;
  padding: 14px 16px;
  padding-left: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-group .toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
  transition: color 0.2s ease;
  z-index: 1;
}

.input-group .toggle-password:hover {
  color: #666;
}

.tab-content input[type="text"],
.tab-content input[type="email"],
.tab-content input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  padding-left: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
}

.input-group:has(.toggle-password) input[type="password"] {
  padding-right: 45px;
}

.tab-content input[type="text"]:focus,
.tab-content input[type="email"]:focus,
.tab-content input[type="password"]:focus {
  outline: none;
  border-color: #ff5722;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.input-group:has(input:focus) i:not(.toggle-password) {
  color: #ff5722;
}

.tab-content label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  cursor: pointer;
}

.tab-content label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff5722;
}

.tab-content label a {
  color: #ff5722;
  text-decoration: none;
}

.tab-content label a:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.submit-btn:hover {
  background-color: #f4511e;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.tab-content p {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.tab-content p a {
  color: #ff5722;
  text-decoration: none;
}

.tab-content p a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .tabs {
    padding: 0 20px;
    padding-top: 25px;
  }

  .tab-content {
    padding: 30px 20px;
  }

  .tab-btn {
    font-size: 15px;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    border-radius: 8px;
  }

  .tab-content input[type="text"],
  .tab-content input[type="email"],
  .tab-content input[type="password"] {
    padding: 12px 14px;
    padding-left: 42px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 15px;
  }
}

/*-------Home------------------*/
.hero-section {
  background-image: url('../images/Hero_section.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 150px 20px;
  color: var(--color-black);
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: var(--font-size-heading);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content h1 span.highlight {
  color: var(--color-primary);
}

.hero-content p {
  font-size: var(--font-size-subheading);
  color: #111;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  transition: var(--transition-speed);
}

.btn-orange {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-orange:hover {
  background-color: var(--color-primary-dark);
}

.btn-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-black:hover {
  background-color: #333;
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-buttons a {
    padding: 12px 32px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons a {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/*---------Categories Section---------------*/
.categories-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-black);
  margin-top: 0px;
}

.categories-carousel {
  position: relative;
  padding: 0 50px;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card {
  flex: 0 0 calc(20% - 20px);
  position: relative;
  height: 400px;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  transition: all 0.4s ease;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card:hover::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: white;
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.category-btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: white;
  color: #2d3436;
  transform: translateY(-2px);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
  color: #2d3436;
  font-size: 20px;
}

.carousel-nav-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav-btn:disabled:hover {
  background: white;
  color: #2d3436;
  transform: translateY(-50%);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe6e9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-primary);
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 1200px) {
  .category-card {
    flex: 0 0 calc(25% - 19px);
  }
}

@media (max-width: 992px) {
  .category-card {
    flex: 0 0 calc(33.333% - 17px);
  }
}

@media (max-width: 768px) {
  .categories-carousel {
    padding: 0 40px;
  }

  .category-card {
    flex: 0 0 calc(50% - 12.5px);
    height: 350px;
  }

  .section-title {
    font-size: 28px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .category-card {
    flex: 0 0 100%;
    height: 400px;
  }

  .section-title {
    font-size: 24px;
  }
}

/*----------Annonce section---------------*/

.annonces-section,
.produits-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 50px;
}

.site-name {
  color: var(--color-primary);
}

.annonces-carousel,
.produits-carousel {
  position: relative;
}

.carousel-wrapper {
  overflow: hidden;
  margin: 0 60px;
}

.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
}

.annonce-card,
.product-card {
  flex: 0 0 calc(33.333% - 20px);
  background: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.annonce-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #e0e0e0;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.annonce-card:hover .card-image,
.product-card:hover .card-image {
  transform: scale(1.05);
}

.watermark {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 2;
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 3;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 3;
  font-size: 18px;
  color: var(--color-primary);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active i {
  font-weight: 900;
}

.favorite-btn.active i:before {
  content: "\f004";
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  min-height: 60px;
}

.info-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-black);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: help;
}

.card-price {
  font-size: 16px;
  color: var(--color-black);
  font-weight: 500;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.card-qte {
  font-size: 16px;
  color: var(--color-black);
  font-weight: 500;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 18px;
  color: var(--color-black);
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: white;
  color: #2d3436;
  transform: translateY(-50%);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dfe6e9;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.dot.active {
  background: #636e72;
}

@media (max-width: 1200px) {

  .annonce-card,
  .product-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 992px) {

  .annonce-card,
  .product-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    margin: 0 50px;
  }

  .annonce-card,
  .product-card {
    flex: 0 0 calc(50% - 15px);
  }

  .section-title {
    font-size: 24px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {

  .annonce-card,
  .product-card {
    flex: 0 0 100%;
  }
}

/*------------Créer un site page---------------*/
.create-site-section {
  padding: 60px 20px;
  color: var(--color-black);
}


.create-site-form {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--color-divider);
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

textarea {
  resize: vertical;
}

.btn-submit {
  display: block;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--color-primary);
}

/* Responsive tablette */
@media (max-width: 992px) {
  .create-site-section h2 {
    font-size: 28px;
  }

  .create-site-form {
    padding: 30px 20px;
  }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .create-site-section {
    padding: 40px 15px;
  }

  .create-site-section h2 {
    font-size: 24px;
  }

  .btn-submit {
    font-size: 15px;
    padding: 12px 0;
  }
}

/*-------------Contact Page------------------*/
.hero-map-section {
  display: flex;
  align-items: strectch;
  justify-content: center;
  width: 100%;
  height: 500px;
}

.map-container {
  flex: 2;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-contact-info {
  flex: 1;
  background: #303032;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0px;
  text-align: center;
}

.contact-contact-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 500;
}

.separator {
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border: none;
  margin: 0 auto 25px auto;
  display: block;
}

.contact-contact-info p {
  font-size: 18px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 10px;
}

.contact-contact-info a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.contact-contact-info a:hover {
  text-decoration: underline;
}

/* Responsive Tablette */
@media (max-width: 991px) {
  .hero-map-section {
    flex-direction: column;
    height: auto;
  }

  .map-container {
    height: 350px;
  }

  .contact-contact-info {
    padding: 40px 25px;
    text-align: center;
  }

  .separator {
    margin: 0 auto 20px auto;
  }
}

/* Responsive Mobile */
@media (max-width: 600px) {
  .contact-contact-info h2 {
    font-size: 22px;
  }

  .contact-contact-info p {
    font-size: 15px;
  }

  .map-container {
    height: 300px;
  }
}

.contact-contact-section {
  padding: 80px 20px;

  text-align: center;
}

.contact-contact-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 15px;
  padding: 40px 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fefefe;
  outline: none;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff3b00;
}

.btn-submit {
  display: inline-block;
  background: #ff3b00;
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #e13200;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-contact-section {
    padding: 60px 15px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .contact-contact-section h2 {
    font-size: 26px;
  }
}

/*------------Annonce details----------------*/
/* Galerie d'images */
.image-gallery {
  position: relative;
  width: 100%;
  height: 450px;
  background-color: #000;
  overflow: hidden;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
  height: 100%;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  transition: background-color 0.2s;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s;
}

.indicator.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin-top: 20px;
}

/* Section gauche */
.left-section {
  padding: 30px;
  border-radius: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #ff6b35;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

.status-badge i {
  font-size: 14px;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.meta-info {
  display: none;
}

.meta-item {
  display: none;
}

.meta-label {
  display: none;
}

.meta-value {
  display: none;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #fff3e0;
  color: #e65100;
  border-radius: 20px;
  font-size: 13px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.category-tag i {
  font-size: 14px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #e3f2fd;
  color: #1565c0;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

.location-tag i {
  font-size: 14px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.tabs-navigation {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-link {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  bottom: -2px;
}

.tab-link:hover {
  color: #ff6b35;
}

.tab-link.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
  scroll-margin-top: 20px;
}

.content-section {
  width: 100%;
  scroll-margin-top: 20px;
  display: none;
}

.always-visible {
  display: block !important;
}

span.expired {
  background-color: #dc3545;
  height: 26px;
  width: 4rem;
  padding: 0 5px 0 5px;
  border-radius: 15px;
  font-size: 12px;
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.content-section.active {
  display: block;
  width: 100%;
}

.left-section-annonce,
.left-section-product {
  margin: 2rem;
}

.purchase-box {
  border: 1px solid;
  width: 50%;
  padding: 1rem;
  margin: 2rem;
}

.description {
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.location-section {
  margin-top: 30px;
}

.map-container {
  width: 100%;
  height: 250px;
  background-color: #e0e0e0;
  border-radius: 8px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Section droite */
.right-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert-box {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #856404;
}

.alert-icon {
  font-size: 18px;
}

.reservation-box {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reservation-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-selector {
  margin-bottom: 15px;
}

.date-selector label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

.date-selector input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.reserve-button {
  width: 100%;
  padding: 15px;
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 15px;
}

.reserve-button:hover {
  background-color: #e55a2b;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.action-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.action-btn:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.btn-favorite.active {
  border-color: #ff6b35;
  color: #ff6b35;
}

.signal-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    height: 300px;
  }
}

/*-------------Category_detail page--------------------*/
.main-container {
  display: flex;
  height: 100vh;
}

/* SIDEBAR FILTERS */
.filters-sidebar {
  width: 280px;
  background: white;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
  flex-shrink: 0;
  transition: margin-left 0.3s ease;
}

.filters-sidebar.hidden {
  margin-left: -280px;
}

.filters-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--color-black);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  margin-bottom: 10px;
  display: block;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.search-input:focus {
  border-color: var(--color-primary);
}

.select-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.location-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-icon {
  color: var(--color-gray);
}

.price-range {
  margin-top: 15px;
}

.range-slider {
  width: 100%;
  height: 6px;
  background: var(--color-grey-light);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.filter-btn {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-btn:hover {
  background: #e85a2a;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.content-header {
  background: white;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.header-categories {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-pill:hover {
  background: #e85a2a;
}

.filter-pill i {
  font-size: 16px;
}

.categories-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
  cursor: pointer;
  transition: transform 0.2s;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-icon {
  width: 50px;
  height: 50px;
  background: #fff5f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
}

.category-name {
  font-size: 12px;
  text-align: center;
  color: var(--color-gray);
  line-height: 1.3;
}

/* VIEW OPTIONS */
.view-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.view-toggle {
  display: flex;
  gap: 5px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--color-gray);
}

.view-btn.active {
  background: var(--color-primary);
  color: white;
}

.view-btn:hover:not(.active) {
  background: #fff5f2;
}

.sort-dropdown {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* CONTENT AREA WITH MAP */
.content-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.listings-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 300px;
  position: relative;
  flex-shrink: 0;
}

#map {
  width: 100%;
  height: 100%;
}

/* GRID VIEW - 3 COLONNES */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ANNONCE CARDS */
.annonce-card,
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.annonce-card:hover,
product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #e0e0e0;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.annonce-card:hover .card-image,
.product-card:hover .card-image {
  transform: scale(1.05);
}

.watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 2;
}

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
}

.favorite-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 3;
  font-size: 18px;
  color: var(--color-primary);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active i {
  font-weight: 900;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}

.card-title-text {
  flex: 1;
}

.info-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-black);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: help;
  font-weight: 700;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.card-location i {
  font-size: 12px;
}

.card-price {
  font-size: 16px;
  color: var(--color-black);
  font-weight: 600;
}

/* LIST VIEW */
.listings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listings-list .annonce-card,
.listings-list .card-image {
  display: flex;
  flex-direction: row;
}

.listings-list .card-image-container {
  flex: 0 0 350px;
  padding-top: 0;
  height: 250px;
}

.listings-list .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

/* MAP CONTROLS */
.map-zoom-control {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-gray);
  transition: background 0.2s;
}

.zoom-btn:hover {
  background: var(--color-bg);
}

.zoom-btn:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

.locate-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  z-index: 1000;
  transition: transform 0.2s;
}

.locate-btn:hover {
  transform: scale(1.1);
}

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

@media (max-width: 1200px) {
  .map-container {
    display: none;
  }

  .content-area {
    margin-right: 0;
  }

  .listings-container {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .filters-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .filters-sidebar.hidden {
    margin-left: -280px;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-scroll {
    gap: 15px;
  }

  .category-item {
    min-width: 80px;
  }

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

@media (max-width: 576px) {
  .listings-list .annonce-card {
    flex-direction: column;
  }

  .listings-list .card-image-container {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 75%;
    height: auto;
  }
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 40px 0;
  position: relative;
  font-family: var(--font-family);
  box-shadow: var(--shadow-light);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 20px;
}

.footer-section p {
  color: var(--color-grey-light);
  font-size: var(--font-size-base);
  line-height: 1.6;
  font-size: 16px;

}

.footer-section h3 {
  margin-bottom: 18px;
  font-size: var(--font-size-subheading);
  color: var(--color-white);
}

.links-section ul {
  list-style: none;
  padding: 0;
  line-height: 2;
}

.links-section ul li a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-speed);
  font-size: 16px;
}

.links-section ul li a:hover {
  color: var(--color-primary);
}

.contact-section a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-speed);
  font-size: 16px;

}

.contact-section a:hover {
  color: var(--color-primary);
}

.social-icons a {
  color: var(--color-white);
  margin-right: 10px;
  font-size: 18px;
  transition: color var(--transition-speed);
}

.social-icons a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 30px;
  padding-top: 20px;
  font-size: var(--font-size-base);
  color: var(--color-grey-light);
}

.footer-bottom a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-speed);
  font-size: 16px;

}

.footer-bottom a:hover {
  color: var(--color-primary);
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: var(--shadow-strong);
  transition: background var(--transition-speed);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
}

.toast-success {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  color: #fff;
  padding: 16px 20px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 9999;
}

.toast-success.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 2rem;
}

.toast-message h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.toast-message p {
  margin: 4px 0 0 0;
  font-size: 0.95rem;
}

.toast-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.35);
}


/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .footer-section {
    max-width: 500px;
    padding-left: 20px;
  }
}

/* ════════════════════════════════════════
   DROPDOWN USER-MENU (header public)
   Identique au header connecté
════════════════════════════════════════ */

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px 5px 5px;
  border-radius: 25px;
  border: 1px solid #dee2e6;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.user-menu:hover {
  background: #f8f9fa;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3c00, #66a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.user-menu>.fa-chevron-down {
  font-size: 10px;
  color: #adb5bd;
  transition: transform 0.2s ease;
}

.user-menu.open>.fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdown — caché par défaut */
.user-dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;

  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 9999;
}

/* Dropdown — visible quand .open */
.user-menu.open .user-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* Items */
.user-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}

.user-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
}

.user-dropdown li:hover {
  background: var(--color-bg-body);
}


.user-dropdown li i {
  font-size: 14px;
  color: #ff3c00;
  width: 18px;
}

.user-dropdown li form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.user-dropdown li form a {
  padding: 0;
}

/* Séparateur déconnexion */
.user-dropdown li:last-child {
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #66a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.username {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.user-menu>i {
  font-size: 10px;
  color: var(--color-text-muted);
}


.user-dropdown li {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--color-text);
  font-size: 14px;
  transition: background 0.2s;
}

.user-dropdown li a {
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--color-text);
  font-size: 14px;
  gap: 10px;
  transition: background 0.2s;
}

.user-dropdown li i {
  font-size: 14px;
  color: var(--color-primary);
  width: 18px;
}

.user-dropdown li:hover {
  background: var(--color-bg-body);
}

#ad-link,
#product-link {
  text-decoration: none;
}

#card-element {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background-color: white;
  min-height: 40px;
}

.StripeElement {
  width: 100%;
  padding: 12px 15px;
}

.StripeElement--focus {
  border-color: #635bff;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

/* product show */
.toggle-switch {
  position: relative;
  display: inline-block;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-label {
  display: block;
  width: 50px;
  height: 26px;
  background: #dee2e6;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

.toggle-switch input[type="checkbox"]:checked+.toggle-label {
  background: #28a745;
}

.toggle-switch input[type="checkbox"]:checked+.toggle-label::after {
  left: 27px;
}

.suggestions {
  list-style: none;
  border: 1px solid #ccc;
  background: white;
  max-height: 150px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  z-index: 999;
  width: 100%;
}

.suggestions li {
  padding: 8px;
  cursor: pointer;
}

.suggestions li:hover {
  background: #eee;
}

.radius-2 {
  border-radius: 4px;
}

.expired-card,
.notActive-card {
  opacity: 0.5;
  filter: grayscale(100%);
}

.reservation-datepicker{
    width:100%;
    padding:14px 18px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
    font-size:15px;
    font-weight:500;
}

.date-label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.inRange {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.flatpickr-day:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.inRange:hover,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.today {
    border-color: #ff6b35 !important;
}

.flatpickr-day.today:hover {
    background: #ff6b35 !important;
    color: #fff !important;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected,
.flatpickr-day.inRange {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.flatpickr-day.startRange:before,
.flatpickr-day.endRange:before,
.flatpickr-day.startRange:after,
.flatpickr-day.endRange:after {
    display: none !important;
}