/* Annonces Page Specific Styles */

body {
  background-color: #fafafa;
  color: #333;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(230,200,48,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(230,200,48,0.1)"/><circle cx="40" cy="70" r="2" fill="rgba(230,200,48,0.1)"/></svg>')
    repeat;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background-color: #e6c830;
  color: #3e2723;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* Filter Section */
.filter-section {
  background: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 60px;
  z-index: 999;
}

.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.filter-btn:hover {
  border-color: #e6c830;
  background: #fffef5;
}

.filter-btn.active {
  background: linear-gradient(135deg, #e6c830 0%, #d4a017 100%);
  border-color: #d4a017;
  color: #3e2723;
  box-shadow: 0 4px 15px rgba(230, 200, 48, 0.3);
}

/* Annonces Section */
.annonces-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.annonce-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.annonce-card.featured {
  border-left: 4px solid #e6c830;
  background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
}

.annonce-card.hidden {
  display: none;
}

.annonce-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #e6c830 0%, #d4a017 100%);
  color: #3e2723;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(230, 200, 48, 0.3);
}

.annonce-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.annonce-date::before {
  content: "📅";
  font-size: 0.9rem;
}

.annonce-card h3 {
  color: #5d4037;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.annonce-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.annonce-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.annonce-category {
  font-size: 0.8rem;
  color: #888;
  background: #f5f5f5;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.annonce-link {
  color: #5d4037;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.annonce-link:hover {
  color: #e6c830;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #e6c830 0%, #d4a017 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content h2 {
  color: #3e2723;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: #5d4037;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #5d4037;
  color: #fff;
}

.btn-primary:hover {
  background: #3e2723;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #fff;
  color: #5d4037;
  border: 2px solid #5d4037;
}

.btn-secondary:hover {
  background: #5d4037;
  color: #fff;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #e6c830;
  letter-spacing: 1px;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #e6c830;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive - Page specific styles */
@media (max-width: 768px) {
  .filter-section {
    top: 85px;
    padding: 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .annonces-section {
    padding: 1.5rem 1rem;
  }

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

  .annonce-card {
    padding: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Newsletter Popup Styles */
.newsletter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  z-index: 9999;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newsletter-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.newsletter-popup .popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.newsletter-popup .popup-close:hover {
  color: #333;
  transform: rotate(90deg);
}

.newsletter-popup .popup-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.newsletter-popup .popup-icon i {
  font-size: 3.5rem;
  color: #e6c830;
  background: linear-gradient(135deg, #e6c830 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-popup h3 {
  text-align: center;
  color: #3e2723;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.newsletter-popup .popup-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.newsletter-popup .popup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-popup .popup-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.newsletter-popup .popup-form input[type="email"]:focus {
  border-color: #e6c830;
  box-shadow: 0 0 0 4px rgba(230, 200, 48, 0.15);
}

.newsletter-popup .popup-form input[type="email"]::placeholder {
  color: #aaa;
}

.newsletter-popup .popup-form button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #e6c830 0%, #d4af37 100%);
  color: #3e2723;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-popup .popup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 200, 48, 0.4);
}

.newsletter-popup .popup-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.newsletter-popup .popup-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
}

.newsletter-popup .popup-privacy i {
  margin-right: 0.3rem;
}

.newsletter-popup .popup-message {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  display: none;
}

.newsletter-popup .popup-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
}

.newsletter-popup .popup-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

@media (max-width: 480px) {
  .newsletter-popup {
    padding: 2rem 1.5rem;
  }

  .newsletter-popup h3 {
    font-size: 1.4rem;
  }

  .newsletter-popup .popup-icon i {
    font-size: 2.5rem;
  }
}
