
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: sans-serif;
    background-color: #F2D7B6;
  }
  
  .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #FAEEE1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.logo {
  height: 50px;
  object-fit: contain;
}

/* Regroupe les éléments de droite */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Bouton "Louer votre espace" */
.btn-main {
  background-color: #401201;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Barre de recherche */
.search-bar {
  display: flex;
  align-items: center;
  background-color: #fdf6ef; /* beige clair */
  border: 1px solid #8a3a13; /* contour marron */
  border-radius: 16px;
  padding: 10px 10px;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #4d1e0b; /* texte marron foncé */
  outline: none;
  padding-left: 10px;
}

.search-bar input::placeholder {
  color: #401201;
  opacity: 1;
}

.search-btn {
  color: white;
  border-radius: 12px;
  padding: 10px;
  margin-left: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 8px;
  transition: background-color 0.3s ease;
}


.icon-search {
  width: 20px;
  height: 20px;
}

/* Icône utilisateur */
.user-icon {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-icon:hover {
  background-color: #f4f4f4;
}

.icon-user {
  width: 22px;
  height: 22px;
}

/* === NAVIGATION TABS === */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-bottom: 4px;
  background-color: #FAEEE1;

  /* Ombre douce */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.tab {
  text-align: center;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  position: relative;
  padding-bottom: 4px;
}

.tab.active {
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
  width: 100%;
}

.icon img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}

.cta-light-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #401201;
  color: #faeee1;
  border: 1px solid #a87847;
  padding: 12px 20px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-light-button:hover {
  transform: translateY(-2px);
}

.icon-btn {
    width: 18px;
    height: 18px;
    display: inline-block;
}


  
  /* Responsive */
  @media (max-width: 768px) {
    .nav {
      display: none;
    }
  
    .btn {
      padding: 8px 16px;
    }
  }
  
  .annonce-detail-page {
    font-family: 'Segoe UI', sans-serif;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
  }
  
  .top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
  }
  
  .gallery {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
    min-width: 280px;
  }

  .gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
  }
  
  
  .img-placeholder {
    background-color: #e0e0e0;
    height: 180px;
    border-radius: 10px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  }
  
  .gallery-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }
  
  .photo-count {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 13px;
    color: #333;
  }
  
  .view-photos {
    background-color: #401201;
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .view-photos:hover {
    background-color: #333;
  }
  
  .side-card {
    flex: 1;
    background-color: #FAEEE1;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 24px;
    min-width: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .side-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ccc;
  }
  
  .side-card .name {
    font-weight: 600;
    margin-top: 10px;
    font-size: 16px;
    color: #222;
  }
  
  .side-card ul {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    font-size: 14px;
    color: #555;
  }
  
  .side-card ul li {
    margin-bottom: 4px;
  }
  
  .side-card button {
    width: 100%;
    margin: 6px 0;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
  }
  
  .main-action {
    background-color: #401201;
    color: #fff;
  }
  
  .secondary {
  background-color: #eee;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.secondary:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}
  
  .tertiary {
  background: none;
  border: 1px solid #ccc;
  color: #401201;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.tertiary:hover {
  background-color: #f4f4f4;
  border-color: #999;
  color: #333;
  transform: translateY(-2px);
}
  
  .secure {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-align: center;
  }
  
  h1 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.3;
    position: relative;
  }
  
  h1::after {
    content: "🔖";
    font-size: 18px;
    position: absolute;
    top: 0;
    right: -30px;
  }
  
  .price {
    font-size: 20px;
    font-weight: 600;
    color: #401201;
    background-color: #fff7f2;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
  }
  
  .update-date {
    font-size: 13px;
    color: #888;
    font-style: italic;
  }
  
  .criteres {
    margin-top: 50px;
    background: #FAEEE1;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
  }
  
  .criteres h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    border-left: 4px solid #401201;
    padding-left: 12px;
  }
  
  .criteres-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px 25px;
  }
  
  .criteres-list div {
    background: white;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: background 0.2s;
  }
  
  .criteres-list div:hover {
    background: #fff6ef;
    border-color: #ff914d;
  }

  .description {
    margin-top: 40px;
    background-color: #FAEEE1;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #eee;
  }
  
  .description h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
    border-left: 4px solid #401201;
    padding-left: 12px;
  }
  
  .description p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
  }
  
  .description a {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #401201;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .description a:hover {
    color: #401201;
  }
  
  .criteres-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 14px;
    background-color: #FAEEE1;
  }
  
  .map {
    height: 220px;
    background: #ccc;
    border-radius: 10px;
  }
  
  .profil-artisan {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #fdf6ef;
  border-radius: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.profil-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profil-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profil-info {
  font-size: 1rem;
  color: #6a3a18;
}

.profil-meta p,
.profil-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
}

.inline-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  object-fit: contain;
}

.profil-actions {
  display: flex;
  align-items: center;
}

.follow-btn {
  background-color: #a87847;
  color: black;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.follow-btn:hover {
  background-color: #6a3a18;
  color: white;
}
  
  hr {
    margin-top: 20px;
    border: none;
    border-top: 1px solid #ccc;
  }
  
  .follow-btn {
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid #333;
    border-radius: 20px;
    background: none;
    cursor: pointer;
  }
  
  .suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    margin-bottom: 24px;
    margin-top: 24px;
  }
  
  .suggestions-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #401201;
  }
  
  .suggestions-header a {
    font-size: 14px;
    color: #401201;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .suggestions-header a:hover {
    color: #000;
    text-decoration: underline;
  }
  
  .annonces-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .annonce-similaire {
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  }
  
  .card-top {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px 0;
    font-size: 12px;
    color: #444;
    background-color: #FAEEE1;
    border-top-left-radius: 10px;
border-top-right-radius: 10px;
  }
  
  .heart {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #666;
  }
  
  .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
    position: relative;
  }
  
  .card-image img.image-annonce {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
  }
  
  .card-image:hover img.image-annonce {
    transform: scale(1.05);
  }
  
  
  .card-body {
    padding: 10px;
    font-size: 13px;
    background-color: #FAEEE1;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .card-body h3 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
  }
  
  .card-body .price {
    font-weight: bold;
    margin-bottom: 6px;
  }
  
  .badge {
    display: inline-block;
    background-color: #dceeff;
    color: #155a8a;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
  }
  
  .meta {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
  }
  
  .more-link {
    text-align: right;
    margin-top: 15px;
    font-size: 14px;
  }
  
  .localisation {
    margin-top: 50px;
    padding: 30px;
    background: #FAEEE1;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  }
  
  .localisation h2 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }
  
  .localisation h2::before {
    content: \"📍\";
    font-size: 18px;
  }
  
  .map {
    width: 100%;
    height: 220px;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-image: url('..//img/maps.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  }
  
  
  /* --- Pop-up overlay --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
}

/* --- Contenu de la popup --- */
.popup-content {
  background-color: #fff;
  padding: 30px 24px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow-y: auto;
  color: #333;
  animation: scaleIn 0.3s ease forwards;
}

.popup-content h2 {
  margin-top: 0;
  color: #6a3a18;
  font-size: 1.4rem;
}


.popup-content {
  white-space: pre-line; /* permet d'interpréter les retours à la ligne dans du texte injecté */
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

/* --- Bouton fermer --- */
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a87847;
  cursor: pointer;
  transition: transform 0.2s;
}

.popup-close:hover {
  transform: scale(1.2);
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: translateY(0);
  opacity: 1;
}

.popup-content h2 {
  color: #6a3a18;
  margin-bottom: 10px;
}

.popup-content p {
  color: #333;
  font-size: 15px;
}

.popup-content .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.popup-content .close:hover {
  color: #000;
}
