/*
Theme Name: Kadence Custom
Template: kadence
Author: WalityConception
Version: 1.0.2
Description: Thème enfant pour Kadence
*/
/* == Layout container == */

/* Fichier single-jobber.php */
.artisan-profile {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

/* == Header / photo / infos == */
.artisan-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.artisan-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.artisan-meta {
  flex: 1;
  min-width: 250px;
}

.artisan-meta p,
.artisan-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.artisan-meta p strong,
.artisan-details p strong {
  color: #0073aa;
}

/* == Bio, diplômes, etc. == */
.artisan-details {
  margin-top: 1.5rem;
}

/* == Contact / bouton message == */
.contact-section {
  text-align: center;
  margin: 2rem 0;
}

.contact-section .button {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-section .button:hover {
  background: #005f8c;
}

/* == Services list == */
.services-section {
  margin-top: 3rem;
}

.services-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #111;
}

.services-section h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
  color: #444;
}

.services-section ul {
  list-style: none;
  padding-left: 1rem;
}

.services-section li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.services-section li::before {
  content: "•";
  color: #0073aa;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* == Popup styling == */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup.show {
  display: flex;
}

.popup-content {
  background: #fff;
  max-width: 800px;
  width: 95%;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
}

/* == Reviews == */
.review-section {
  margin-top: 3rem;
}

.review-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.review {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.review p {
  margin: 0.4rem 0;
}

.review-average {
  margin-top: 1rem;
  font-weight: bold;
}

.stars {
  font-size: 1.3rem;
  color: #f5a623;
}

/* == Responsive == */
@media (max-width: 768px) {
  .artisan-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .artisan-meta {
    min-width: auto;
  }

  .services-section h2, .review-section h2 {
    font-size: 1.3rem;
  }

  .contact-section .button {
    width: 100%;
    max-width: 300px;
  }
}

/* Fin fichier single-jobber.php */

/* Fichier archive-jobber.php */

.jobber-archive-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

#jobber-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  align-items: center;
  justify-content: flex-start;
}

#jobber-filter select,
#jobber-filter button {
  padding: 0.5rem;
  font-size: 1rem;
}

/* === Cards Grid Layout === */
.jobber-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .jobber-list {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* === Card Style === */
.jobber-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  gap: 1rem;
  height: 100%;
}

.jobber-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.jobber-info {
  flex: 1;
}

.jobber-info h3 {
  margin: 0 0 0.5rem;
}

.jobber-info .entreprise {
  color: #444;
  margin-bottom: 0.3rem;
}

.jobber-info .statut {
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 0.5rem;
}

.jobber-info .bio {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.jobber-info .button {
  display: inline-block;
  background-color: #0073aa;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.jobber-info .button:hover {
  background-color: #005f8c;
}

/* === Pagination === */
.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: #eee;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background-color: #0073aa;
  color: white;
}

/* === Popup Amelia === */
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.popup:target {
  display: block;
}

.popup-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  max-width: 800px;
  border-radius: 12px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
}

/* === Responsive === */
@media (max-width: 768px) {
  .jobber-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .jobber-info {
    text-align: center;
  }

  #jobber-filter {
    justify-content: center;
  }
}

/* Fin fichier archive-jobber.php */
