/*
Theme Name: Albe-Editions
Description: Thème enfant pour Pipdig Lavoie - Personnalisations GDM-Pixel
Template: pipdig-lavoie
Version: 1.0.0
Author: Charles Annoni - GDM-Pixel
Author URI: https://gdm-pixel.fr
*/

/* ==========================================================================
   PERSONNALISATIONS GDM-PIXEL
   ========================================================================== */

.site-main #p_home_sec_1 {
  padding-top: 95px !important;
}

#siteHeaderCont .site-title img {
  max-height: 110px;
  transition: 600ms ease all;
  width: auto;
}

#siteHeaderCont.site-header-bg-color .site-title img {
  max-height: 60px;
  transition: 600ms ease all;
  width: auto;
}

.custom-archive {
  margin-top: 70px;
}

.custom-archive .section-title {
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-archive .section-title h1 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.custom-archive .wpgb-grid-3 .wpgb-card-media.wpgb-scheme-light {
  height: auto !important;
  width: 100% !important;
  aspect-ratio: 9 / 12;
  max-height: unset !important;
  display: flex;
  overflow: hidden;
  min-height: unset !important;
}

.custom-archive .wp-grid-builder .wpgb-card .wpgb-card-body {
  background: #fff;
  flex: none;
  position: relative;
}
.custom-archive .custom-mega-filters button.filter-trigger {
  width: unset !important;
  max-width: unset !important;
  min-width: 250px !important;
}
.custom-archive .section-links .filter-link.active {
  color: #674b13 !important;
  font-weight: 500 !important;
  background: none !important;
}
.prestataire-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  gap: 40px;
}

.section-title .dash-title {
  height: 1px;
  background-color: #222222;
  width: auto;
  flex-grow: 1;
  max-width: 260px;
}

.prestataire-container .albe-page-title {
  text-align: center;
  display: inline-block;
  margin: 40px;
  font-size: 2.5rem;
  font-weight: 400;
  font-family: didza, serif;
}

.prestataire-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.prestataire-gallery {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prestataire-content {
  width: 50%;
}

.gallery-sticky {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  position: sticky;
  top: 90px;
}
.gallery-main {
  width: 100%;
  height: auto;
}

.gallery-main a {
  display: flex;
  width: 100%;
  height: auto;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s ease; /* Transition smooth pour le zoom */
}

.gallery-main a img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease; /* Transition pour l'image aussi */
}

/* Effet de zoom au hover */
.gallery-main:hover a img {
  transform: scale(1.1);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.gallery-thumb {
  width: 100%;
  display: flex;
  gap: 20px;
}
.gallery-thumb a {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  cursor: pointer;
  aspect-ratio: 16 / 16;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease; /* Transition smooth pour le zoom */
}

.gallery-thumb a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Centre l'image dans le container */
  transition: transform 0.3s ease; /* Transition pour l'image aussi */
}

/* Effet de zoom au hover pour les thumbnails */
.gallery-thumb:hover a img {
  transform: scale(1.1);
  cursor: pointer;
}

.gallery-thumb.hidden {
  display: none;
}

.prestataire-contacts {
  display: flex;
  flex-direction: row;
  column-gap: 60px;
  row-gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.contact-item {
  font-weight: 500;
  color: #674b13;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-item a {
  color: #674b13;
  text-decoration: none;
  font-weight: 500;
}

.btn-discover {
  display: inline-block;
  padding: 10px 30px;
  border: solid 2px #674b13;
  color: #674b13;
  text-decoration: none;
  transition: 300ms ease all;
}
.btn-discover:hover {
  border: solid 2px #674b13;
  color: #ffffff;
  background: #674b13;
  text-decoration: none;
  transition: 300ms ease all;
}

/* Related Posts Carousel */
.related-posts-section {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e0e0e0;
  position: relative;
}

.related-posts-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #222222;
  text-transform: none;
}

.related-posts-swiper {
  position: relative;
  padding: 0 50px; /* Espace pour les boutons de navigation */
}

.related-post-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.related-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-post-image {
  position: relative;
  height: 300px;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.related-post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail {
  transform: scale(1.05);
}

.related-post-content {
  padding: 0rem;
  margin-top: 10px;
}

.related-post-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: #000;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-meta {
  display: flex;
  align-items: center;
}

.related-post-category {
  color: #757575;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.related-post-date {
  color: #757575;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Navigation Swiper */
.related-posts-section {
  --swiper-navigation-size: 15px;
  position: relative;
  padding: 0;
}

/* Navigation Swiper */
.related-posts-next,
.related-posts-prev {
  width: 60px;
  height: 60px;
  margin-top: -20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333;
}

.related-posts-next:after,
.related-posts-prev:after {
  font-size: 16px;
  font-weight: 600;
}

.related-posts-next:hover,
.related-posts-prev:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Pagination */
.related-posts-pagination {
  margin-top: 2rem !important;
}

.related-posts-pagination .swiper-pagination-bullet {
  background: #ddd;
  opacity: 1;
}

.related-posts-pagination .swiper-pagination-bullet-active {
  background: #333;
}

.swiper-button-prev,
.swiper-button-next {
  color: #e5be70 !important;
  width: 30px !important;
  height: 30px !important;
  border: 3px solid #e5be70 !important;
  font-size: 16px !important;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
  left: var(--swiper-navigation-sides-offset, -60px) !important;
  right: auto;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: var(--swiper-navigation-sides-offset, -60px) !important;
  left: auto;
}

.register-your-company {
  background: url("/wp-content/themes/albe/assets/img/bck-call-to-action-carnet-adresse-v3.jpg")
    no-repeat center center;
  background-size: cover;
  padding: 50px 40px;
  color: #000;
  margin-top: 90px;
  border-radius: 9px;
  position: relative;
}

.register-your-company .overlay {
  background-color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
}

.register-your-company .text-container {
  max-width: 600px;
  margin: 0 auto 0 0;
  text-align: left;
  position: relative;
  z-index: 10;
}

.register-your-company h2 {
  font-size: 36px;
  line-height: 33px;
  font-weight: 400;
  color: #000;
  text-transform: none;
  margin-top: 0;
}

.register-your-company p {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #000;
  margin-bottom: 16px;
}

.register-your-company a.cta {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  color: #674b13;
  border: solid 2px #674b13;
  padding: 10px 30px;
  transition: 600ms ease all;
}

.register-your-company a.cta:hover {
  background: #674b13;
  color: #ffffff;
  border: solid 2px #674b13;
}

.prestataire-navigation {
  margin-top: 70px;
  margin-bottom: 70px;
}

.prestataire-navigation h2 {
  color: #757575;
  text-align: center;
  font-size: 1.5rem;
  text-transform: none;
}
.prestataire-navigation .post-navigation .nav-links {
  display: flex;
  gap: 40px;
  justify-content: center;
}
.prestataire-navigation .post-navigation .nav-links a {
  color: #e5be70;
  border: solid 1px #e5be70;
  text-transform: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  display: inline-block;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: 600ms ease all;
}

.prestataire-navigation .post-navigation .nav-links a:hover {
  color: #674b13;
  border: solid 1px #674b13;
}
.wpgb-facet.wpgb-facet-10 {
  margin: 40px auto;
}
.post-type-archive-carnet_adresses
  .filter-categories
  .filter-link.active.all-button {
  background: #2b2b2a !important;
  color: #fff !important;
}

.wpgb-facet.wpgb-facet-10 .wpgb-button.wpgb-load-more {
  border: solid 1px #674b13;
  color: #674b13;
  background-color: transparent;
  transition: 600ms ease all;
}

.wpgb-facet.wpgb-facet-10 .wpgb-button.wpgb-load-more:hover {
  border: solid 1px #674b13;
  color: #ffffff;
  background-color: #674b13;
}

#repere {
  width: 200px;
  height: 66px;
  position: fixed;
  bottom: 2%;
  right: 0;
  color: white;
  padding: 10px;
  z-index: 9999;
  text-shadow: 1px 1px 3px black;
  font-weight: bold;
  display: none;
}

@media (min-width: 1920px) {
  #repere {
    background: chartreuse;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1920 px et +";
  }
}
@media (min-width: 1680px) and (max-width: 1919px) {
  #repere {
    background: black;

    text-shadow: 0 2px 4px #000;
  }

  #repere:after {
    content: "1680 px > 1920 px";
  }
}

@media (min-width: 1920px) {
  #repere {
    background: chartreuse;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1920 px et +";
  }
}
/* BLACK */

@media (min-width: 1680px) and (max-width: 1919px) {
  #repere {
    background: #000;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1680 px > 1920 px";
  }
}
/* PURPLE */

@media (min-width: 1440px) and (max-width: 1679px) {
  #repere {
    background: purple;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1440px > 1680 px";
  }
}
/* BLUE */

@media (min-width: 1200px) and (max-width: 1439px) {
  #repere {
    background: blue;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1200 px > 1440 px";
  }
}
/* GREEN */

@media (min-width: 980px) and (max-width: 1199px) {
  #repere {
    background: green;
  }
  #repere:after {
    content: "980 px > 1200 px";
  }

  .prestataire-layout {
    gap: 20px;
  }
}
/* YELLOW */

@media (min-width: 768px) and (max-width: 979px) {
  #repere {
    background: yellow;
  }
  #repere:after {
    content: "768 px > 980 px";
  }
  .prestataire-layout {
    gap: 20px;
  }

  .register-your-company {
    padding: 40px 30px;
    color: #000;
    margin-top: 90px;
    border-radius: 9px;
    position: relative;
  }

  .register-your-company .overlay {
    background-color: rgba(255, 255, 255, 0.65);
  }
}
/* ORANGE */

@media (max-width: 767px) {
  #repere {
    background: orange;
  }
  #repere:after {
    content: "767 px";
  }

  .related-posts-swiper {
    padding: 0 20px;
  }

  .related-posts-title {
    font-size: 1.5rem;
  }

  .related-post-image {
    height: 300px;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .related-post-content {
    padding: 1rem;
  }

  .related-posts-next,
  .related-posts-prev {
    display: none; /* Masquer les boutons sur mobile */
  }

  .gallery-main a {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    cursor: pointer;
    aspect-ratio: 16 / 16;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease; /* Transition smooth pour le zoom */
  }

  .gallery-main a img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Transition pour l'image aussi */
  }

  /* Effet de zoom au hover */
  .gallery-main:hover a img {
    transform: scale(1.1);
  }

  .gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }

  .gallery-thumb {
    width: 100%;
    display: flex;
    gap: 20px;
  }
  .gallery-thumb a {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    cursor: pointer;
    aspect-ratio: 16 / 16;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease; /* Transition smooth pour le zoom */
  }

  .gallery-thumb a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centre l'image dans le container */
    transition: transform 0.3s ease; /* Transition pour l'image aussi */
  }

  /* Effet de zoom au hover pour les thumbnails */
  .gallery-thumb:hover a img {
    transform: scale(1.1);
    cursor: pointer;
  }
  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .prestataire-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .prestataire-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .prestataire-content {
    width: 100%;
  }

  .register-your-company .overlay {
    background-color: rgba(255, 255, 255, 0.65);
  }

  .register-your-company {
    padding: 30px 20px;
    color: #000;
    margin-top: 90px;
    border-radius: 9px;
    position: relative;
  }

  .prestataire-navigation .post-navigation .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
  }
  .site-main .post-navigation .nav-previous {
    width: 100%;
    float: none;
    text-align: center;
  }
  .site-main .post-navigation .nav-next {
    width: 100%;
    float: none;
    text-align: center;
  }
}
/* RED */

@media (max-width: 480px) {
  #repere {
    background: red;
  }
  #repere:after {
    content: "480 px";
  }
  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .related-post-image {
    height: 300px;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .register-your-company .overlay {
    background-color: rgba(255, 255, 255, 0.65);
  }

  .custom-archive .wpgb-grid-3 .wpgb-card-media.wpgb-scheme-light {
    height: auto !important;
    width: 100% !important;
    aspect-ratio: 9 / 12;
    max-height: unset !important;
    display: flex;
    overflow: hidden;
    min-height: unset !important;
  }
}

/* ==========================================================================
   FIN DES PERSONNALISATIONS
   ========================================================================== */
