/* Couleur principale */
:root {
    --primary-color: #0d2258;
}

.custom-carousel-control {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  z-index: 2;
}

.custom-carousel-control:hover {
  background-color: var(--primary-color);
}

.custom-carousel-icon {
  background-size: 20px 20px;
  filter: invert(1); /* icon white */
  width: 20px;
  height: 20px;
  margin: auto;
}

.aviation-marketplace {
  font-family: "Roboto", sans-serif;
  color: #333;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Categories */
.categories-section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0d6efd;
}

.section-subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.category-card {
  display: block;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: all 0.3s ease;
}

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

.category-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Aircraft Listings */
.listings-section {
  padding: 80px 0;
}

.aircraft-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.aircraft-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.card-delete-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.aircraft-image {
  height: 220px;
  overflow: hidden;
}

.aircraft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.aircraft-card:hover .aircraft-image img {
  transform: scale(1.05);
}

.aircraft-details {
  padding: 20px;
}

.aircraft-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.aircraft-location {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.aircraft-model {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0;
  color: #2c3e50;
}

.aircraft-model span {
  color: #7f8c8d;
  font-weight: 400;
}

.aircraft-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 15px 0;
}

.btn-view-details {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  background: #0d6efd;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    height: 400px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 350px;
    text-align: center;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
  .hero-cta .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 2rem;
  }
}

.gallery-container {
  position: relative;
  max-height: 450px; /* adapte selon ta mise en page */
  background-color: #f8f9fa; /* couleur de fond si l’image ne remplit pas tout */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-image {
  height: 400px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease, opacity 0.4s ease;
  border-radius: 12px;
}

.main-image:hover {
  transform: scale(1.02);
}

.thumbnail-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 15px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
  scroll-behavior: smooth;
}

.thumbnail {
  width: 110px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
  border-radius: 8px;
  flex-shrink: 0;
}
.thumbnail-connect {
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
  border-radius: 8px;
  flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail-connect {
  border-color: #0d6efd;
  transform: translateY(-2px);
}

.thumbnail.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.premium-badge {
  background: linear-gradient(135deg, #ff6b00, #e91e63);
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: #0d6efd;
}

.detail-section {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-icon {
  color: #0d6efd;
  width: 24px;
  margin-right: 10px;
}

.card {
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn {
  border-radius: 50px;
  padding: 10px 24px;
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0062cc);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0b5ed7, #0052b3);
}

.specs-badge {
  background: #f8f9fa;
  color: #495057;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 4px;
}

@media (max-width: 768px) {
  .main-image {
    height: 250px;
  }
  .thumbnail {
    width: 90px;
    height: 65px;
  }
  .price-tag {
    font-size: 1.6rem;
  }
}


/*Godwill*/

.back-to-top {
    background-color: #0d2258; /* Couleur de fond */
    color: #ffffff;            /* Couleur de l’icône ou du texte */
    width: 50px;               /* Largeur du bouton */
    height: 50px;              /* Hauteur du bouton */
    border-radius: 50%;        /* Rond */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #091843; /* Un bleu plus foncé au survol */
}


/* Badge en overlay (en haut de l'image) */
.badge-premium {
    display: inline-block;
    background: linear-gradient(135deg, #0d2258, #0b1c4a); /* bleu gradient */
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(13, 34, 88, 0.4); /* bleu ombre */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.badge-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.badge-premium:hover::before {
    left: 100%;
}

.badge-premium i {
    margin-right: 4px;
    font-size: 8px;
}

/* Badge mini (en bas dans les infos) */
.badge-mini {
    display: inline-block;
    background: #0d2258; /* bleu uni */
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    text-transform: capitalize;
    margin-right: 4px;
    box-shadow: 0 1px 3px rgba(13, 34, 88, 0.3); /* bleu ombre */
    border: 1px solid rgba(13, 34, 88, 0.8);
}

.badge-mini i {
    margin-right: 2px;
    font-size: 8px;
}

/* Container pour les badges en overlay */
.badge-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Container pour les badges dans les infos utilisateur */
.publisher-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

/* Animations */
.badge-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 34, 88, 0.5);
    transition: all 0.3s ease;
}

.badge-mini:hover {
    background: #0b1c4a; /* bleu hover */
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Style pour la zone publisher-info */
.publisher-info {
    border-top: 1px solid #e0e6ed;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 768px) {
    .badge-premium {
        font-size: 8px;
        padding: 3px 6px;
    }

    .badge-mini {
        font-size: 8px;
        padding: 1px 4px;
    }
}


/* Structure pour footer sticky */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Le contenu principal doit grandir pour pousser le footer vers le bas */
main, .main-content {
    flex: 1;
}

/* Styles pour le footer */
footer {
    margin-top: auto;
}

/* Amélioration des interactions */
footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1 !important;
}


