/* ====== SECTION ANNONCES ====== */
.annonces-page {
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.annonces-header {
  text-align: center;
  margin-bottom: 40px;
}

.annonces-header h1 {
  color: #003366;
  font-size: 2.5rem;
}

.annonces-header p {
  color: #666;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-bar button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #0055aa;
}

.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.annonce-card {
  background: white;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: visible;
  background: #f8f9fa;
  aspect-ratio: 16/9;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 102, 204, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.card-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #444;
}

.card-button {
  width: 100%;
  padding: 10px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-button:hover {
  background: #0055aa;
}

.empty-state, 
.error-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  color: #666;
}

.empty-state i, 
.error-state i {
  margin-bottom: 20px;
  color: #0066cc;
  font-size: 3rem;
}
body {
  display: flex;
  flex-direction: column;
}

.photo-container {
  position: relative;
  display: inline-block; /* ou block selon besoin */
}

.property-photo {
  display: block;
  width: 100%;
  height: auto;
}

.photo-container {
  position: relative;
  display: inline-block; /* ou flex si tu veux */
}

.card-discussion-bandeau {
  position: absolute;
  top: 10px;
  left: -25px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 5px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  transform: rotate(-15deg);
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  border-radius: 3px;
  z-index: 10;
  pointer-events: none; /* pour ne pas gêner le clic sur la photo */
  user-select: none;
  white-space: nowrap;
}
/* Adaptation spécifique pour les cartes */
.annonce-card .card-image {
  overflow: visible;
}

/* Adaptation spécifique pour la page détail */
.property-photo-container .card-discussion-bandeau {
  top: 15px;
  right: 15px;
}

.button-style {
  background-color: #0066cc;       /* bleu vif */
  color: white;
  border: none;
  border-radius: 4px;             /* coins arrondis */
  padding: 10px 20px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,102,204,0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  text-align: center;
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
}

.button-style:hover, .button-style:focus {
  background-color: #004d99;     /* bleu plus foncé au hover */
  box-shadow: 0 6px 12px rgba(0,77,153,0.5);
  outline: none;
}

/* Grille responsive */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .annonces-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .card-image {
        height: 180px;
    }
}

/* États vides/erreurs */
.empty-state, 
.error-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: #666;
}

.empty-state i, 
.error-state i {
    margin-bottom: 20px;
    color: #0066cc;
    font-size: 3rem;
}
/* Pour le conteneur principal */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
}
/* Nouveau style pour le header simplifié */
header {
  background-color: white;
  padding: 1em 5% !important; /* Réduisez à une valeur raisonnable pour tester */
  height: 70px; /* Force une hauteur minimale */
  overflow: visible; /* Désactive le clipping */
  box-sizing: content-box; /* Padding s'ajoute à la hauteur */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0066cc;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
  padding: 0;
}

.login-btn {
  padding: 6px 14px;
  background-color: #0066cc;
  color: white !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: white !important;
}
/* === Logo et entête === */

.logo-container {
  margin-right: auto; /* Pousse la navigation vers la droite */
}

.logo {
  height: 80px; /* Taille du logo */
  max-height: 100%; 
  width: auto;
  display: block !important; /* S'assure qu'il est visible */
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-container {
  display: flex;
  align-items: center;
}

/* Typographie */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 5%;
  gap: 40px;
  flex-wrap: wrap; /* utile sur petits écrans */
  background: linear-gradient(135deg, #eaf1fa 0%, #f7f9fc 100%);
}

.hero-image {
  flex: 1;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #003366;
  line-height: 1.2;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #555;
}

/* Features section */
.features {
  display: flex;
  justify-content: space-around;
  padding: 80px 5%;
  background: white;
}

.feature {
  text-align: center;
  max-width: 300px;
  padding: 0 20px;
}

.feature .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature h3 {
  color: #003366;
  margin-bottom: 15px;
}

/* Testimonials section */
.testimonials {
  text-align: center;
  padding: 80px 5%;
  background: #f7f9fc;
}
.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testimonials h2 {
  margin-bottom: 50px;
  color: #003366;
}

.testimonial {
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
}

.testimonial .author {
  margin-top: 20px;
  font-weight: bold;
  font-style: normal;
}

/* Footer amélioré */
footer {
  background: #003366;
  color: white;
  padding: 50px 5% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 0 5% 30px;
  box-sizing: border-box;
}

.footer-section {
  flex: 1;
  padding: 0 20px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-section a {
  display: block;
  color: #ddd;
  margin-bottom: 10px;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

/* Boutons améliorés */
.cta-container {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cta {
  display: inline-block;
  padding: 15px 30px;
  background-color: #0066cc;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.cta:active,
.card-button:active {
  transform: scale(0.98);
}

.cta,
.card-button {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta.secondary {
  background-color: white;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.cta.secondary:hover {
  background-color: #f0f7ff;
}

/* Responsive */
@media (max-width: 768px) {
  .annonces-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    margin-bottom: 40px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  .cta-container {
    flex-direction: column;
  }
}
* {
    box-sizing: border-box;
  }
  body {
    margin: 0; 
    font-family: 'Open Sans', sans-serif;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  header, footer {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
  }
  footer {
    border-top: 1px solid #ddd;
    border-bottom: none;
    margin-top: auto;
  }
  nav a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #0066cc;
    font-weight: 600;
  }
  nav a:hover {
    text-decoration: underline;
  }
  .logo {
    height: 36px;
    vertical-align: middle;
  }
  /* Conteneur principal de la page messages */
  main.messages-page {
    flex: 1;
    display: flex;
    padding: 1rem 2rem;
    gap: 1rem;
    background: #f0f2f5;
  }

  /* Liste des conversations (colonne gauche) */
  .conversations-list {
    width: 280px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .conversations-list-header {
    padding: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
  }
  .conversation-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
  }
  .conversation-item:hover {
    background-color: #eef3fa;
  }
  .conversation-item.active {
    background-color: #d4dafc;
    font-weight: 700;
  }
  .conversation-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }
  .conversation-name {
    flex: 1;
  }

  /* Zone des messages (colonne droite) */
  .chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: calc(100vh - 120px); /* header+footer+padding approx */
  }
  .chat-header {
    padding: 1rem 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
  }
  .chat-messages {
    flex: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
  }
  .message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    margin: 0.3rem 0;
    border-radius: 15px;
    font-size: 0.95rem;
    word-wrap: break-word;
    color: #000;
  }
  .sent {
    align-self: flex-end;
  }
  .received {
    align-self: flex-start;
  }
  .chat-input {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #ddd;
    background: #fafafa;
    display: flex;
  }
  .chat-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
  }
  .chat-input button {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
  }
  .chat-input button:hover {
    background-color: #004999;
  }
  /* Responsive mobile */
  @media (max-width: 768px) {
    main.messages-page {
      flex-direction: column;
      padding: 1rem;
    }
    .conversations-list {
      width: 100%;
      height: 180px;
      flex-direction: row;
      overflow-x: auto;
      border-radius: 6px 6px 0 0;
    }
    .conversation-item {
      flex-direction: column;
      min-width: 100px;
      border-bottom: none;
      border-right: 1px solid #eee;
      justify-content: center;
      padding: 0.5rem 0.5rem;
    }
    .conversation-item:last-child {
      border-right: none;
    }
    .chat-area {
      height: calc(100vh - 320px);
      border-radius: 0 0 6px 6px;
      margin-top: 0.5rem;
    }
  }
/* Boutons de réponse */
.btn-reply {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-reply:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Formulaire de réponse modal */
.reply-form-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.reply-form {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.reply-form h3 {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.reply-form textarea {
  width: 100%;
  min-height: 120px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

.reply-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

/* Animation échelonnée pour les cartes */
.message-card:nth-child(1) { animation-delay: 0.1s; }
.message-card:nth-child(2) { animation-delay: 0.2s; }
.message-card:nth-child(3) { animation-delay: 0.3s; }
.message-card:nth-child(4) { animation-delay: 0.4s; }
.message-card:nth-child(5) { animation-delay: 0.5s; }

/* Accessibilité : contenu uniquement pour lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .messages-grid {
    grid-template-columns: 1fr;
  }
  
  .messages-page h1,
  .messages-page .page-title {
    font-size: 2rem;
  }
  
  .messages-page section,
  .messages-section {
    padding: 1.5rem;
  }
  
  .messages-page {
    padding: 0 1rem;
  }
  
  .reply-form {
    width: 95%;
    padding: 1.5rem;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-cancel {
    width: 100%;
  }
}
/* Page de connexion/inscription */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eaf1fa 0%, #f7f9fc 100%);
}

.auth-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  text-align: center;
}

.auth-header {
  margin-bottom: 30px;
}

.auth-header h1 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-header p {
  color: #666;
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.input-group input:focus {
  border-color: #0066cc;
  outline: none;
}

.auth-btn {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
}

.auth-footer {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
}

.auth-footer a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}
/* Page de publication */
.image-wrapper {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.preview-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.delete-image-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.publish-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eaf1fa 0%, #f7f9fc 100%);
  min-height: 80vh;
}

.publish-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  padding: 40px;
}

.publish-header {
  margin-bottom: 30px;
  text-align: center;
}

.publish-header h1 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 10px;
}

.publish-header p {
  color: #666;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.publish-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.publish-form input,
.publish-form select,
.publish-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.publish-form textarea {
  min-height: 150px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.publish-form input:focus,
.publish-form select:focus,
.publish-form textarea:focus {
  border-color: #0066cc;
  outline: none;
}

.file-upload {
  margin-top: 8px;
}

.file-label {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f0f7ff;
  color: #0066cc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px dashed #0066cc;
}

.file-label:hover {
  background-color: #e0efff;
}

.file-info {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
}

input[type="file"] {
  display: none;
}

.publish-btn {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.publish-btn:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
}

.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background-color: #4caf50;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease;
}

.notification.error {
  background-color: #f44336;
}

.notification.fade-out {
  opacity: 0;
}

/* Page Annonces */
.annonces-page {
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.annonces-header {
  text-align: center;
  margin-bottom: 40px;
}

.annonces-header h1 {
  color: #003366;
  font-size: 2.5rem;
}

.annonces-header p {
  color: #666;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-bar button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
}

.annonces-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.annonce-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: visible;
}

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

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: visible;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 102, 204, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.card-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.card-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #444;
}

.card-button {
  width: 100%;
  padding: 10px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-button:hover {
  background: #0055aa;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.empty-state, .error-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  color: #666;
}

.empty-state i, .error-state i {
  margin-bottom: 20px;
  color: #0066cc;
}

@media (max-width: 768px) {
  .annonces-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
#chat-ia-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
}

#chat-ia-window {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  z-index: 9998;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

#chat-ia-window.visible {
  display: block;
}

#chat-ia-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.testimonials {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

#temoignages-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 0 20px;
}

.testimonial {
  background-color: #ffffff;
  border-left: 4px solid #0066cc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
}

.testimonial:hover {
  transform: scale(1.02);
}

.testimonial img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-message {
  background: #f0f7ff;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.08);
  text-align: left;
  font-style: italic;
}

.testimonial-author {
  font-weight: bold;
  color: #0066cc;
  text-align: right;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .testimonial {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial img {
    margin-bottom: 10px;
  }

  .testimonial-message {
    text-align: center;
  }

  .testimonial-author {
    text-align: center;
  }
}
/* Styles pour pages légales */
.publish-page {
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
}
.publish-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
main h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
main h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: #333;
}
main p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
main ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
main ul li {
  margin-bottom: 0.5rem;
}
#chat-ia-window {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  height: 500px;
  border: 1px solid #ccc;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 9998;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
#chat-ia-window.visible {
  display: block;
}

#chat-ia-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#chat-ia-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 9999;
}
#chat-ia-button:hover {
  background-color: #0056b3;
}
main.legal-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.7;
  font-size: 1.1rem;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}
/*Détail du logement*/
.property-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.property-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.property-title-bar h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #003366;
}

.property-contact-top {
  flex-shrink: 0;
}

.property-info {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .property-title-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-contact-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
}

/* Pour une galerie responsive */
.property-details img {
  max-width: 500px; /* ou la taille maximale que vous souhaitez */
  width: 100%;
}

/* ====== SECTION ANNONCES ====== */
.annonces-page {
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.annonces-header {
  text-align: center;
  margin-bottom: 40px;
}

.annonces-header h1 {
  color: #003366;
  font-size: 2.5rem;
}

.annonces-header p {
  color: #666;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-bar button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #0055aa;
}

.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.annonce-card {
  background: white;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: visible;
  background: #f8f9fa;
  aspect-ratio: 16/9;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 102, 204, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.card-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #444;
}

.card-button {
  width: 100%;
  padding: 10px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-button:hover {
  background: #0055aa;
}

.empty-state, 
.error-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  color: #666;
}

.empty-state i, 
.error-state i {
  margin-bottom: 20px;
  color: #0066cc;
  font-size: 3rem;
}

/* Grille responsive */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .annonces-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .card-image {
        height: 180px;
    }
}

/* États vides/erreurs */
.empty-state, 
.error-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: #666;
}

.empty-state i, 
.error-state i {
    margin-bottom: 20px;
    color: #0066cc;
    font-size: 3rem;
}
/* Pour le conteneur principal */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
}
/* Nouveau style pour le header simplifié */
header {
  background-color: white;
  padding: 1.5em 5%;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #eee;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0066cc;
}

.login-btn {
  padding: 10px 20px;
  background-color: #0066cc;
  color: white !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: white !important;
}

/* Typographie */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(135deg, #eaf1fa 0%, #f7f9fc 100%);
  padding: 0 5%;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #003366;
  line-height: 1.2;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #555;
}

/* Features section */
.features {
  display: flex;
  justify-content: space-around;
  padding: 80px 5%;
  background: white;
}

.feature {
  text-align: center;
  max-width: 300px;
  padding: 0 20px;
}

.feature .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature h3 {
  color: #003366;
  margin-bottom: 15px;
}

/* Testimonials section */
.testimonials {
  text-align: center;
  padding: 80px 5%;
  background: #f7f9fc;
}
.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testimonials h2 {
  margin-bottom: 50px;
  color: #003366;
}

.testimonial {
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
}

.testimonial .author {
  margin-top: 20px;
  font-weight: bold;
  font-style: normal;
}

/* Footer amélioré */
footer {
  background: #003366;
  color: white;
  padding: 50px 5% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 0 5% 30px;
  box-sizing: border-box;
}

.footer-section {
  flex: 1;
  padding: 0 20px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-section a {
  display: block;
  color: #ddd;
  margin-bottom: 10px;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

/* Boutons améliorés */
.cta-container {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cta {
  display: inline-block;
  padding: 15px 30px;
  background-color: #0066cc;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.cta:active,
.card-button:active {
  transform: scale(0.98);
}

.cta,
.card-button {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta.secondary {
  background-color: white;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.cta.secondary:hover {
  background-color: #f0f7ff;
}

/* Responsive */
@media (max-width: 768px) {
  .annonces-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    margin-bottom: 40px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  .cta-container {
    flex-direction: column;
  }
}
/* Page de connexion/inscription */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eaf1fa 0%, #f7f9fc 100%);
}

.auth-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  text-align: center;
}

.auth-header {
  margin-bottom: 30px;
}

.auth-header h1 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-header p {
  color: #666;
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.input-group input:focus {
  border-color: #0066cc;
  outline: none;
}

.auth-btn {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
}

.auth-footer {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
}

.auth-footer a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}
/* Page de publication */
.publish-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eaf1fa 0%, #f7f9fc 100%);
  min-height: 80vh;
}

.publish-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  padding: 40px;
}

.publish-header {
  margin-bottom: 30px;
  text-align: center;
}

.publish-header h1 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 10px;
}

.publish-header p {
  color: #666;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.publish-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.publish-form input,
.publish-form select,
.publish-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.publish-form textarea {
  min-height: 120px;
  resize: vertical;
}

.publish-form input:focus,
.publish-form select:focus,
.publish-form textarea:focus {
  border-color: #0066cc;
  outline: none;
}

.file-upload {
  margin-top: 8px;
}

.file-label {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f0f7ff;
  color: #0066cc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px dashed #0066cc;
}

.file-label:hover {
  background-color: #e0efff;
}

.file-info {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
}

input[type="file"] {
  display: none;
}

.publish-btn {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.publish-btn:hover {
  background-color: #0055aa;
  transform: translateY(-2px);
}
/* Page Annonces */
.annonces-page {
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.annonces-header {
  text-align: center;
  margin-bottom: 40px;
}

.annonces-header h1 {
  color: #003366;
  font-size: 2.5rem;
}

.annonces-header p {
  color: #666;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-bar button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
}

.annonces-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.annonce-card {
  background: white;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 102, 204, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.card-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.card-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #444;
}

.card-button {
  width: 100%;
  padding: 10px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-button:hover {
  background: #0055aa;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.empty-state, .error-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  color: #666;
}

.empty-state i, .error-state i {
  margin-bottom: 20px;
  color: #0066cc;
}

@media (max-width: 768px) {
  .annonces-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
#chat-ia-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
}

#chat-ia-window {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  z-index: 9998;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

#chat-ia-window.visible {
  display: block;
}

#chat-ia-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.testimonials {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.testimonial {
  max-width: 600px;
  margin: 0 auto 30px;
  font-style: italic;
  color: #555;
}

.testimonial .author {
  margin-top: 10px;
  font-weight: bold;
  color: #007bff;
}
.testimonial-form-container {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
}

.testimonial-form-container h3 {
  margin-bottom: 20px;
  color: #003366;
}

#testimonial-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#testimonial-form input,
#testimonial-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#testimonial-form button {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

#testimonial-form button:hover {
  background-color: #0055aa;
}

#form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: green;
}
.charte-container {
  margin: 20px 0;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.charte-container label {
  font-weight: bold;
}

.charte-texte {
  font-size: 0.9em;
  margin-top: 8px;
  color: #444;
}
.testimonial-message {
  background: #f0f7ff;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  position: relative;
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.08);
  text-align: left;
}

.testimonial-author {
  text-align: right;
  font-weight: bold;
  color: #0066cc;
  font-style: normal;
  font-size: 0.95rem;
}
.testimonial {
  background-color: #ffffff;
  border-left: 4px solid #0066cc;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.testimonial:hover {
  transform: scale(1.02);
}

.testimonial-message {
  font-style: italic;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-author {
  font-weight: bold;
  color: #0066cc;
  text-align: right;
}
.testimonial:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;

@media (max-width: 600px) {
  .testimonial {
    margin: 20px 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  }
}
/* Styles pour pages légales */
.publish-page {
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
}
.publish-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
main h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
main h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: #333;
}
main p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
main ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
main ul li {
  margin-bottom: 0.5rem;
}
#chat-ia-window {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  height: 500px;
  border: 1px solid #ccc;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 9998;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
#chat-ia-window.visible {
  display: block;
}

#chat-ia-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#chat-ia-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 9999;
}
#chat-ia-button:hover {
  background-color: #0056b3;
}
main.legal-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.7;
  font-size: 1.1rem;
}

html, body {
  height: 100%;
}
