/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

body {
  /* Tu peux ajouter ton CSS ici */
}
.tagline {
  font-size: 1.2em;
  font-weight: 400;
  color: #666;
  margin-bottom: 1em;
}

/* === Sections générales === */
.artisan-section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #d64541;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: #d64541;
  font-size: 1.2rem;
}

/* === Informations pratiques === */
.artisan-infos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.artisan-infos li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.artisan-infos i {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  line-height: 34px;
  text-align: center;
  color: #d64541;
  font-size: 1rem;
}

/* === Galerie de réalisations === */
.artisan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.artisan-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.artisan-gallery img:hover {
  transform: scale(1.05);
}

/* === Bannière artisan (déjà en place normalement) === */
.artisan-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-bottom: 2rem;
}

.artisan-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}


.artisan-banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

.artisan-banner-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  box-sizing: border-box;
}

.artisan-logo-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: white;
  padding: 10px;
  border-radius: 8px;
  max-width: 90px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.artisan-logo-overlay img {
  width: 100%;
  height: auto;
}

.artisan-texts {
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.artisan-texts h1 {
  font-size: 2.5rem;
  margin: 0;
}

.artisan-texts .tagline {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #e6612b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #cf4e1c;
}

/* === Formulaire de contact === */
.artisan-contact {
  margin-top: 3rem;
}

.artisan-two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.artisan-main-column {
  flex: 1 1 60%;
  min-width: 300px;
}

.artisan-sidebar-column {
  flex: 1 1 35%;
  min-width: 280px;
}

.artisan-gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

/* Centre tout le contenu du site */
.site-content {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
  width: 100% !important;
  display: block;
}

.artisan-metiers {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.artisan-metiers li {
  background: #f2f2f2;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-weight: 500;
}


.artisan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.artisan-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  transition: box-shadow 0.3s;
}
.artisan-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.artisan-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}


.artisans-map-wrapper {
  display: flex;
  gap: 1rem;
}

/* Container général */
.artisans-map-wrapper {
  display: flex;
  gap: 1.5rem;
}

/* Sidebar (retraité un peu) */
.artisan-sidebar {
  flex: 0 0 320px;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.artisan-sidebar input,
.artisan-sidebar button,
.artisan-sidebar select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.artisan-sidebar button {
  background-color: #e35f2a;
  color: #fff;
  border: none;
  cursor: pointer;
}
.artisan-sidebar button:hover {
  background-color: #c55326;
}

/* Titre du filtre */
.artisan-sidebar label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

/* Liste des artisans */
#artisan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Chaque “carte” artisan */
#artisan-list li {
  margin-bottom: 1rem;
}

#artisan-list li a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #333;
  overflow: hidden;
  transition: transform .1s, box-shadow .2s;
}

/* Si tu as une miniature, place-la dans .artisan-thumb */
.artisan-thumb {
  flex: 0 0 80px;
  height: 80px;
  background: #f0f0f0;
}
.artisan-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informations textuelles */
.artisan-info {
  padding: 0.8rem 1rem;
  flex: 1;
}
.artisan-info h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #e35f2a;
}
.artisan-info p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #666;
}

/* Effet au survol */
#artisan-list li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Carte à droite */
.artisan-map {
  flex: 1;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* === Responsive === */
@media (max-width: 1024px) {
  .artisans-map-wrapper {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .artisans-map-wrapper {
    flex-direction: column;
  }
  .artisan-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .artisan-map {
    flex: 1 1 100%;
    width: 100%;
    height: 400px; /* réduire la hauteur sur tablette */
  }
}

@media (max-width: 480px) {
  .artisan-sidebar {
    padding: 0.8rem;
  }
  .artisan-sidebar input,
  .artisan-sidebar button,
  .artisan-sidebar select {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .artisan-sidebar label {
    font-size: 0.95rem;
  }
  #artisan-list li a {
    flex-direction: column;
    align-items: flex-start;
  }
  .artisan-thumb {
    width: 100%;
    height: 180px;
  }
  .artisan-info {
    padding: 0.6rem 0.8rem;
  }
  .artisan-info h3 {
    font-size: 1rem;
  }
  .artisan-info p {
    font-size: 0.85rem;
  }
  .artisan-map {
    height: 300px; /* encore plus petit sur mobile */
  }
}

@media (max-width: 768px) {
  .header-widget {
    display: none;
  }
}
