/* --------------------- */
/* BASE & TYPOGRAPHIE    */
/* --------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f7fa;
  color: #1c1c1e;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------- */
/* CONTAINER & GRILLE    */
/* --------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* --------------------- */
/* HEADER                */
/* --------------------- */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 20px 0;
  margin-bottom: 20px;
}

.main-header .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-img {
  height: 40px;
  margin-bottom: 5px;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #1c1c1e;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: #0066ff;
}

.btn-primary {
  background-color: #0066ff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

/* --------------------- */
/* SEARCH SECTION        */
/* --------------------- */
.search-section {
  margin-top: 30px;
}

.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-container input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

.search-container button {
  background-color: #0066ff;
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* --------------------- */
/* OFFRE CARD            */
/* --------------------- */
/* --------------------- */
/* CARTE OFFRE MODERNE   */
/* --------------------- */
.offer-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  background-image: none !important;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.offer-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Type d'offre : Offre / Demande */
.offer-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  width: fit-content;
}

.offer-type.offer {
  background-color: #34c759;
}

.offer-type.request {
  background-color: #f5731b;
}

/* Titre */
.offer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1c1e;
}

/* Description */
.offer-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Métadonnées : prix, durée, lieu */
.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #666;
}

.offer-price {
  color: #0066ff;
  font-weight: 700;
  font-size: 1rem;
}

.offer-meta i {
  margin-right: 6px;
  color: #888;
}

.offer-duration {
  display: flex;
  align-items: center;
}

.offer-location {
  display: flex;
  align-items: center;
}

/* Créateur */
.offer-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.creator-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.creator-info p {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.creator-type {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
}

.creator-type.pro {
  background-color: #0066ff;
  color: white;
}

.creator-type.particulier {
  background-color: #d1d1d6;
  color: #333;
}

/* Statut de l’offre (fermé, en attente...) */
.offer-status {
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.offer-status.closed {
  background-color: #ff3b30;
  color: white;
}

.offer-status.pending {
  background-color: #ffcc00;
  color: #333;
}

.offer-status.open {
  display: none; /* Caché si statut open */
}


/* --------------------- */
/* BADGES (Offre/Demande) */
/* --------------------- */
.badge {
  display: inline-block;
  background-color: #34c759;
  color: white;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  float: right;
}

/* Pour type "Demande" si nécessaire */
/* .badge.request { background-color: #007aff; } */

/* --------------------- */
/* LOADER & PAGINATION   */
/* --------------------- */
.loading-spinner {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination button {
  background-color: #fff;
  border: 1px solid #ccc;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.pagination button:hover {
  background-color: #0066ff;
  color: white;
}

/* --------------------- */
/* FOOTER                */
/* --------------------- */
.main-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e5ea;
  padding: 30px 20px;
  margin-top: 60px;
  color: #6e6e73;
}

.main-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo h2 {
  font-size: 1.3rem;
  color: #1c1c1e;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #6e6e73;
  font-size: 0.9rem;
}

.footer-social a {
  margin-right: 12px;
  color: #0066ff;
  font-size: 1.2rem;
}



/* la suite de offersInfos.html */

.offer-details {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  padding: 32px;
  margin-top: 40px;
  font-family: 'Open Sans', sans-serif;
}

.offer-details h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.offer-details .meta span {
  display: inline-block;
  margin-right: 15px;
  font-weight: 600;
  color: #555;
}

.offer-body {
  margin-top: 30px;
}

.creator-section {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.creator-avatar {
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin-right: 16px;
}

.creator-info h4 {
  margin: 0;
  font-size: 18px;
}

.badge {
  display: inline-block;
  background: #e5f1ff;
  color: #007bff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 4px;
}


/* --------------------- */
/* MENU TAB BAR MOBILE   */
/* --------------------- */
@media screen and (max-width: 790px) {
  .mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 999;
  }

  .mobile-tabbar .tab-link {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mobile-tabbar .tab-link i {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .mobile-tabbar .tab-link.active {
    color: #0066ff;
  }

  /* Pour éviter que le contenu soit masqué derrière la barre */
  body {
    padding-bottom: 60px;
  }

   .desktop-nav {
    display: none !important;
  }
}
