/* assets/style.css */

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

.annuaire-local-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.08vw 1.04vw;
  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,
.annuaire-card-clickable {
  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;
  cursor: pointer;
}

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

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

.annuaire-card-image {
  width: 100%;
  height: 11.46vw;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
  border-bottom: 0.16vw solid #606c38;
}

.annuaire-card-placeholder {
  background: linear-gradient(135deg, #606c38 0%, #b1a168 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.annuaire-placeholder-icon {
  font-size: 2.6vw;
  opacity: 0.4;
  filter: drop-shadow(0 0.21vw 0.31vw rgba(0, 0, 0, 0.2));
}

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

.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%);
}

/* Modal */
.annuaire-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.annuaire-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.annuaire-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeInOverlay 0.3s ease;
}

.annuaire-modal-content {
  position: relative;
  background: linear-gradient(135deg, #f9f6e1 0%, #fdfcf3 100%);
  border: 0.16vw solid #606c38;
  border-radius: 1.3vw;
  max-width: 90%;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 1.04vw 3.12vw rgba(111, 29, 27, 0.3);
  animation: slideInUp 0.4s ease;
  margin-top: 7.81vw;
}

.annuaire-modal-close {
  position: absolute;
  top: 1.04vw;
  right: 1.04vw;
  width: 2.34vw;
  height: 2.34vw;
  background: #6f1d1b;
  color: #f9f6e1;
  border: none;
  border-radius: 50%;
  font-size: 2.08vw;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0.21vw 0.62vw rgba(111, 29, 27, 0.3);
  z-index: 10;
}

.annuaire-modal-close:hover {
  background: #b1a168;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0.31vw 0.83vw rgba(177, 161, 104, 0.4);
}

.annuaire-modal-body {
  display: grid;
  grid-template-columns: 20.83vw 1fr;
  gap: 2.6vw;
  padding: 2.6vw;
}

.annuaire-modal-image {
  width: 100%;
  height: 20.83vw;
  border-radius: 1.04vw;
  overflow: hidden;
  border: 0.16vw solid #606c38;
  background-color: #f3f4f6;
}

.annuaire-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.annuaire-modal-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #606c38 0%, #b1a168 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.17vw;
  opacity: 0.5;
}

.annuaire-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.annuaire-modal-title {
  font-size: 2.6vw;
  font-weight: 400;
  font-family: "Candal", sans-serif;
  color: #6f1d1b;
  margin: 0 0 1.04vw 0;
  line-height: 1.4;
}

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

.annuaire-modal-description {
  color: #606c38;
  margin-bottom: 1.82vw;
  line-height: 1.9;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2vw;
}

.annuaire-modal-details {
  margin-bottom: 1.82vw;
}

.annuaire-modal-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.94vw;
  color: #606c38;
  margin-bottom: 1.04vw;
  font-family: "Candal", sans-serif;
  font-size: 1.14vw;
  line-height: 1.6;
}

.annuaire-modal-detail-item svg {
  color: #6f1d1b;
  flex-shrink: 0;
  width: 1.35vw;
  height: 1.35vw;
  margin-top: 0.16vw;
}

.annuaire-modal-detail-item a {
  color: #6f1d1b;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  word-break: break-all;
}

.annuaire-modal-detail-item a:hover {
  color: #b1a168;
  text-decoration: underline;
}

/* Modal Social Links */
.annuaire-modal-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78vw;
}

.annuaire-modal-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.71vw;
  height: 2.71vw;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0.16vw 0.52vw rgba(0, 0, 0, 0.2);
  color: #fff;
}

.annuaire-modal-social-btn:hover {
  transform: translateY(-0.21vw) scale(1.1);
  box-shadow: 0 0.31vw 0.83vw rgba(0, 0, 0, 0.3);
}

.annuaire-modal-social-btn svg {
  width: 1.35vw;
  height: 1.35vw;
}

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

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

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

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

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

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

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

.annuaire-modal-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-image {
    height: 220px;
    border-bottom: 3px solid #606c38;
  }

  .annuaire-placeholder-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  }

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

  .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-modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px;
  }

  .annuaire-modal-image {
    height: 350px;
    border-radius: 20px;
    border: 3px solid #606c38;
  }

  .annuaire-modal-placeholder {
    font-size: 8rem;
  }

  .annuaire-modal-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

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

  .annuaire-modal-description {
    margin-bottom: 35px;
    font-size: 1.15rem;
  }

  .annuaire-modal-details {
    margin-bottom: 35px;
  }

  .annuaire-modal-detail-item {
    gap: 18px;
    margin-bottom: 20px;
    font-size: 1.1rem;
  }

  .annuaire-modal-detail-item svg {
    width: 26px;
    height: 26px;
    margin-top: 3px;
  }

  .annuaire-modal-social {
    gap: 15px;
  }

  .annuaire-modal-social-btn {
    width: 52px;
    height: 52px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }

  .annuaire-modal-social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }

  .annuaire-modal-social-btn svg {
    width: 26px;
    height: 26px;
  }

  .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;
  }

  .annuaire-modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }

  .annuaire-modal-image {
    height: 280px;
  }

  .annuaire-modal-title {
    font-size: 1.8rem;
  }

  .annuaire-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 15px;
    right: 15px;
  }

  .annuaire-modal-content {
    width: 95%;
  }
}

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

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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