/* assets/style.css */

/* Import de la police Candal */
@import url("https://fonts.googleapis.com/css2?family=Candal&display=swap");

.annuaire-local-container {
  max-width: 90% !important;
  width: 100%;
  margin: 0 auto;
  font-family: "Candal", sans-serif;
}

/* Header */
.annuaire-header {
  text-align: center;
  margin-bottom: 2.6vw;
}

.annuaire-title {
  font-size: 3.12vw;
  font-weight: 400;
  color: #6f1d1b;
  margin-bottom: 0.78vw;
  font-family: "Candal", sans-serif;
}

.annuaire-subtitle {
  font-size: 1.56vw;
  color: #606c38;
  font-family: "Candal", sans-serif;
}

/* Search Bar */
.annuaire-search-wrapper {
  max-width: 700px;
  margin: 0 auto 2.08vw;
  position: relative;
}

.annuaire-search-input {
  width: 100%;
  padding: 0.94vw 3.12vw 0.94vw 1.3vw;
  font-size: 1.14vw;
  font-family: "Candal", sans-serif;
  border: 0.16vw solid #606c38;
  border-radius: 2.6vw;
  background-color: #f9f6e1;
  transition: all 0.3s ease;
  box-shadow: 0 0.1vw 0.42vw rgba(96, 108, 56, 0.15);
}

.annuaire-search-input:focus {
  outline: none;
  border-color: #6f1d1b;
  box-shadow: 0 0.21vw 0.62vw rgba(111, 29, 27, 0.2);
  background-color: #fff;
}

.annuaire-search-input::placeholder {
  color: #606c38;
  opacity: 0.6;
}

/* Icône de recherche — SVG loupe professionnelle */
.annuaire-search-wrapper::after {
  content: "";
  position: absolute;
  right: 1.3vw;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35vw;
  height: 1.35vw;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606c38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cline x1='21' y1='21' x2='15.8' y2='15.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Filters */
.annuaire-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78vw;
  justify-content: center;
  margin-bottom: 2.6vw;
}

.annuaire-filter-btn {
  padding: 0.78vw 1.56vw;
  font-size: 1.14vw;
  font-weight: 400;
  font-family: "Candal", sans-serif;
  border: 0.16vw solid #606c38;
  background: #606c38;
  color: #f9f6e1;
  border-radius: 2.6vw;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.16vw 0.52vw rgba(96, 108, 56, 0.2);
}

.annuaire-filter-btn:hover {
  background: #b1a168;
  border-color: #b1a168;
  color: #f9f6e1;
  transform: translateY(-0.1vw);
  box-shadow: 0 0.26vw 0.78vw rgba(177, 161, 104, 0.3);
}

.annuaire-filter-btn.active {
  background: #6f1d1b;
  color: #f9f6e1;
  border-color: #6f1d1b;
  transform: scale(1.08);
  box-shadow: 0 0.31vw 1.04vw rgba(111, 29, 27, 0.4);
}

/* Grid */
.annuaire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.56vw;
  margin-bottom: 1.56vw;
}

/* Card */
.annuaire-card {
  background: linear-gradient(135deg, #f9f6e1 0%, #fdfcf3 100%);
  border-radius: 1.04vw;
  border: 0.16vw solid #606c38;
  box-shadow: 0 0.31vw 0.78vw rgba(96, 108, 56, 0.15);
  overflow: hidden;
  transition: all 0.4s ease;
}

.annuaire-card:hover {
  transform: translateY(-0.42vw);
  box-shadow: 0 0.78vw 1.56vw rgba(111, 29, 27, 0.25);
  border-color: #6f1d1b;
}

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

.annuaire-card-content {
  padding: 1.3vw;
}

/* Icône SVG du service */
.annuaire-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.64vw;
  height: 3.64vw;
  background: linear-gradient(135deg, #606c38 0%, #7a864a 100%);
  border-radius: 50%;
  margin-bottom: 1.04vw;
  box-shadow: 0 0.21vw 0.62vw rgba(96, 108, 56, 0.3);
}

.annuaire-card-icon svg {
  width: 1.82vw;
  height: 1.82vw;
  color: #f9f6e1;
  stroke: #f9f6e1;
}

.annuaire-card-title {
  font-size: 1.25vw;
  font-weight: 400;
  font-family: "Candal", sans-serif;
  color: #6f1d1b;
  margin: 0 0 0.62vw 0;
  line-height: 1.3;
}

.annuaire-card-category {
  display: inline-block;
  padding: 0.42vw 0.94vw;
  background: linear-gradient(135deg, #606c38 0%, #7a864a 100%);
  color: #f9f6e1;
  border-radius: 1.3vw;
  font-size: 0.83vw;
  font-weight: 400;
  font-family: "Candal", sans-serif;
  margin-bottom: 0.94vw;
  box-shadow: 0 0.1vw 0.42vw rgba(96, 108, 56, 0.25);
}

.annuaire-card-description {
  color: #606c38;
  margin-bottom: 0.94vw;
  line-height: 1.7;
  font-family: "Candal", sans-serif;
  font-size: 0.88vw;
}

.annuaire-card-info {
  margin-bottom: 0.94vw;
}

.annuaire-info-item {
  display: flex;
  align-items: center;
  gap: 0.52vw;
  color: #606c38;
  margin-bottom: 0.52vw;
  font-family: "Candal", sans-serif;
  font-size: 0.88vw;
}

.annuaire-info-item svg {
  color: #6f1d1b;
  flex-shrink: 0;
  width: 0.94vw;
  height: 0.94vw;
}

.annuaire-info-item a {
  color: #606c38;
  text-decoration: none;
  transition: all 0.2s;
  word-break: break-all;
}

.annuaire-info-item a:hover {
  color: #6f1d1b;
  text-decoration: underline;
}

.annuaire-card-link {
  display: inline-block;
  color: #6f1d1b;
  font-weight: 400;
  font-family: "Candal", sans-serif;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.14vw;
  padding: 0.42vw 0.83vw;
  background: linear-gradient(135deg, #b1a168 0%, #c9b87c 100%);
  color: #f9f6e1;
  border-radius: 1.3vw;
  box-shadow: 0 0.1vw 0.42vw rgba(177, 161, 104, 0.3);
}

.annuaire-card-link:hover {
  background: linear-gradient(135deg, #6f1d1b 0%, #8b2420 100%);
  transform: translateY(-0.1vw);
  box-shadow: 0 0.21vw 0.62vw rgba(111, 29, 27, 0.4);
}

/* Social Links */
.annuaire-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52vw;
  margin-top: 0.94vw;
}

.annuaire-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42vw;
  padding: 0.52vw 0.83vw;
  border-radius: 1.3vw;
  font-family: "Candal", sans-serif;
  font-size: 0.78vw;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0.1vw 0.42vw rgba(0, 0, 0, 0.15);
  color: #fff;
}

.annuaire-social-btn:hover {
  transform: translateY(-0.16vw);
  box-shadow: 0 0.21vw 0.62vw rgba(0, 0, 0, 0.25);
}

.annuaire-social-btn svg {
  flex-shrink: 0;
}

.annuaire-social-website {
  background: linear-gradient(135deg, #606c38 0%, #7a864a 100%);
}

.annuaire-social-website:hover {
  background: linear-gradient(135deg, #4a5629 0%, #606c38 100%);
}

.annuaire-social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #4c94ff 100%);
}

.annuaire-social-facebook:hover {
  background: linear-gradient(135deg, #0d5dbf 0%, #1877f2 100%);
}

.annuaire-social-instagram {
  background: linear-gradient(135deg, #e4405f 0%, #f77737 50%, #fcaf45 100%);
}

.annuaire-social-instagram:hover {
  background: linear-gradient(135deg, #c13352 0%, #e4405f 50%, #f77737 100%);
}

.annuaire-social-linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.annuaire-social-linkedin:hover {
  background: linear-gradient(135deg, #005582 0%, #0077b5 100%);
}

/* No Results */
.annuaire-no-results,
.annuaire-no-results-message {
  text-align: center;
  padding: 4.17vw 1.04vw;
  color: #606c38;
  font-size: 1.46vw;
  font-family: "Candal", sans-serif;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
  .annuaire-local-container {
    padding: 40px 0px;
  }

  .annuaire-header {
    margin-bottom: 50px;
  }

  .annuaire-title {
    font-size: 2.2rem;
  }

  .annuaire-subtitle {
    font-size: 1.2rem;
  }

  .annuaire-search-wrapper {
    margin-bottom: 40px;
  }

  .annuaire-search-input {
    padding: 18px 60px 18px 25px;
    font-size: 1.1rem;
    border: 3px solid #606c38;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(96, 108, 56, 0.15);
  }

  .annuaire-search-wrapper::after {
    right: 25px;
    width: 22px;
    height: 22px;
  }

  .annuaire-filters {
    gap: 15px;
    margin-bottom: 50px;
  }

  .annuaire-filter-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: 3px solid #606c38;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(96, 108, 56, 0.2);
  }

  .annuaire-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(177, 161, 104, 0.3);
  }

  .annuaire-filter-btn.active {
    box-shadow: 0 6px 20px rgba(111, 29, 27, 0.4);
  }

  .annuaire-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .annuaire-card,
  .annuaire-card-clickable {
    border-radius: 20px;
    border: 3px solid #606c38;
    box-shadow: 0 6px 15px rgba(96, 108, 56, 0.15);
  }

  .annuaire-card:hover,
  .annuaire-card-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(111, 29, 27, 0.25);
  }

  .annuaire-card-content {
    padding: 25px;
  }

  .annuaire-card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .annuaire-card-icon svg {
    width: 35px;
    height: 35px;
  }

  .annuaire-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .annuaire-card-category {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 1rem;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(96, 108, 56, 0.25);
  }

  .annuaire-card-description {
    margin-bottom: 18px;
    font-size: 1.05rem;
  }

  .annuaire-card-info {
    margin-bottom: 18px;
  }

  .annuaire-info-item {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .annuaire-info-item svg {
    width: 18px;
    height: 18px;
  }

  .annuaire-card-link {
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(177, 161, 104, 0.3);
  }

  .annuaire-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 29, 27, 0.4);
  }

  .annuaire-social-links {
    gap: 10px;
    margin-top: 18px;
  }

  .annuaire-social-btn {
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .annuaire-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .annuaire-modal-content {
    border: 3px solid #606c38;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(111, 29, 27, 0.3);
    margin-top: 150px;
  }

  .annuaire-modal-close {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(111, 29, 27, 0.3);
  }

  .annuaire-modal-close:hover {
    box-shadow: 0 6px 16px rgba(177, 161, 104, 0.4);
  }

  .annuaire-no-results,
  .annuaire-no-results-message {
    padding: 80px 20px;
    font-size: 1.4rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .annuaire-title {
    font-size: 2.2rem;
  }

  .annuaire-subtitle {
    font-size: 1.2rem;
  }

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

  .annuaire-filters {
    flex-direction: column;
    gap: 10px;
  }

  .annuaire-filter-btn {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .annuaire-card-title {
    font-size: 1.3rem;
  }
}

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

.annuaire-card {
  animation: fadeIn 0.6s ease-out;
}
