/*  
Theme Name:   twentytwentyfive with Custom SEO
Author:       Yann
Template:     twentytwentyfive
version:      1.2
*/

/* @media screen and (max-width: 767.98px) {
  .wp-block-navigation__responsive-container-open  {
    display: block !important;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
    display: none !important;
  }
} */


body {
  overscroll-behavior-y: none;
}

.activites-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;   
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 0;
}

.activites-list-item {
  display: flex;
  align-items: center;
}

.activites-list-item .wp-block-font-awesome-icon {
  margin-right: 1rem;
}

main > * {
  overflow:hidden;
}

@media (max-width: 782px) { 
  .mobile-column-reverse {
    flex-direction: column-reverse;
  }
  
  .equipe-photo {
    width: 14.375rem;
    margin: auto;
  }
}

.cn-close-icon {
  display: none;
}

.cn-text-container {
  margin-bottom: 1rem;
}

.cn-button-inline {
  text-decoration: none;
}

.cn-button-inline:hover {
  text-decoration: underline;
}

.metaslider .flex-control-nav {
  top: calc(100% + 20px) !important;
  width: 100%!important;
  left: 0!important;
}

.metaslider .flex-direction-nav {
  top: calc(100% + 20px)!important;
  width: 100%!important;

}

.current-menu-item {
  color: var(--wp--preset--color--custom-7-f-1734);
  font-weight: 500;
}

.fixed-lateral-image {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: 25%;
  z-index: -1;
}

@media (max-width: 781px) {
  .fixed-lateral-image {
      display: none;
  }
}

.pagination {
  display: flex;
  gap: 0.5rem;
}

.pagination a, .pagination strong {
  display: flex;
  width: 30px;
  height: 30px;
  /*margin-left: 5px;*/
  align-content: center;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.pagination .last-page, .pagination .first-page {
  /*background-color: var(--wp--preset--color--custom-7-f-1734);
  color: white;*/
}

.archives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 colonnes par défaut */
  gap: 1.5rem;
  grid-auto-rows: 1fr;  /* Cette propriété permet d'assurer une hauteur uniforme */
}

.archives-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  background: white;
  height: 100%; /* Remplir toute la hauteur de la carte */
}

.archives-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.archives-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

.archives-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1; /* Permet de faire en sorte que le contenu prenne l'espace restant */
}

.archives-content h3 {
  /*font-size: 1.1rem;*/
  margin: 0;
}

.archives-content h3 a{
  text-decoration: none;
}

.archives-content p {
  /*font-size: 1rem;
  color: #555;*/
}

.archives-content p.excerpt {
  flex-grow: 1;
}


.archives-button {
  align-self: flex-start;
  border: 2px solid var(--wp--preset--color--custom-7-f-1734);
  color: var(--wp--preset--color--custom-7-f-1734);
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.archives-button:hover {
  background: #f0f0f0;
}

/* Responsiveness avec les breakpoints Spectra */
@media (max-width: 976px) {
  .archives-grid {
    grid-template-columns: repeat(2, 1fr);  /* 2 colonnes sur tablette */
  }
}

@media (max-width: 767px) {
  .archives-grid {
    grid-template-columns: 1fr;  /* 1 colonne sur mobile */
  }
}


/* Responsiveness avec les breakpoints Spectra */
@media (max-width: 1301px) {
  .with-side-image .archives-grid {
    grid-template-columns: repeat(2, 1fr);  
  }
}

@media (max-width: 1022px) {
  .with-side-image .archives-grid {
    grid-template-columns: 1fr;  
  }
}



.other-sector, .other-prestation {
  font-size: 1.2rem;
}


/* Nos activités*/

.liens-supplementaires {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.liens-supplementaires a {
  display: block;
  border-left: 2px solid var(--wp--preset--color--custom-7-f-1734);
  padding-left: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.liens-supplementaires a:hover {
  color: var(--wp--preset--color--custom-7-f-1734);
}

@media (max-width: 767px) {
  .liens-supplementaires {
    grid-template-columns: 1fr;
  }
}

.wp-block-post-content img {
  box-sizing: border-box;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}


.liens-activites {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 colonnes */
  gap: 1rem;
  margin-top: 1rem;
}

.liens-activites__link {
  display: block;
  border-left: 2px solid var(--wp--preset--color--custom-7-f-1734);
  padding-left: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.liens-activites__link:hover {
  color: var(--wp--preset--color--custom-7-f-1734);
}

@media (max-width: 767px) {
  .liens-activites {
    grid-template-columns: 1fr; /* une colonne sur mobile */
  }
}

.pages-categories-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .pages-categories-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pages-categories-grid {
      grid-template-columns: 1fr;
  }
}

.grid-item {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: background 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
  /*background: #f9f9f9;*/
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.grid-link {
  font-weight: bold;
  text-decoration: none;
  color: var(--wp--preset--color--custom-7-f-1734);
}

.grid-link:hover {
  text-decoration: underline;
}

.subcategories {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.subcategory-link {
  font-size: 0.9em;
  color: #666;
  text-decoration: none;
}

.subcategory-link:hover {
  text-decoration: underline;
}


@media (max-width: 767px) {
  .plan-du-site-search .wp-block-search__inside-wrapper  {
    flex-wrap: wrap;
  }
  .plan-du-site-search .wp-block-search__inside-wrapper  input{
    flex: 1 0 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .plan-du-site-search .wp-block-search__inside-wrapper  button{
    flex: 1 0 100%;
    margin-left: 0;
    margin-top: 1rem;
  }
}

.btn-booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /*background-color: #107aca; /* couleur Doctolib */
  /* color: #fff; */
  /* padding: 0.4rem 0.8rem;
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid #107aca;
  text-decoration: none;
  transition: background-color .3s ease; */
}
.btn-booking:hover {
  /* background-color: #0e6db6; */
}
.btn-booking .booking-logo {
  width: 24px;
  height: 24px;
  fill: #fff; /* couleur du logo */
  flex-shrink: 0;
  stroke: var(--wp--preset--color--custom-7-f-1734);
}
.btn-booking span {
  display: inline-block;
}

.button-row {
  display: flex;
  flex-wrap: wrap; /* pour passer en colonne sur mobile */
  justify-content: center; /* centrer horizontalement */
  gap: 15px; /* espace entre les deux boutons */
  margin-top: 30px;
}

.button-row a {
  text-align: center;
}

.no-hidden {
  overflow: visible!important;
}

@media (min-width: 782px) { 
  .sticky-part-title {
    position: sticky;
    top: var(--header-height);
    z-index: 1;
  }
}

.sticky-part-content {
  position: sticky;
  top: calc(var(--header-height) + var(--sticky-height));
}

.grille-services-avocat {
    display: grid;
    grid-template-columns: repeat(3, minmax(min(175px, 50%), 1fr));
    gap: 1px;
    background: #e5e5e5;
}

.service-item {
    background: white;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card {
    /* min-height: 320px; */
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.25s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* cercle autour de l'icone */
.service-icon-wrapper {
    /* width: 200px; */
    /* height: 200px; */
    margin: 0 auto 24px;
    border: 8px double #97143d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    
}

/* icone taille fixe */
.service-card img {
    width: 120px;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
    border-radius: 50%;
}

.service-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    color: #3c2b31;
}

.service-title a {
    color: inherit;
    text-decoration: none;
}

.service-item:hover .service-card {
    background: #faf6f7;
}

.service-item:hover .service-icon-wrapper {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(151,20,61,0.15);
}

.service-item:hover img {
    transform: scale(1.06);
}

.service-item:hover .service-title a {
    color: #97143d;
}

/* tablette */
@media (max-width: 1250px) {
    .grille-services-avocat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        /* min-height: 280px; */
        padding: 28px 16px;
    }

    .service-card img {
        width: 100px;
    }
}

/* mobile */
@media (max-width: 600px) {
    .grille-services-avocat {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        /* min-height: 240px; */
        padding: 22px 12px;
    }

    .service-icon-wrapper {
        /* width: 180px; */
        /* height: 180px; */
        border-width: 6px;
    }

    .service-card img {
        width: 100px;
    }

    .service-title {
        font-size: 14px;
    }
}

/* ===== FAQ Yoast propre et robuste ===== */

.wp-block-yoast-faq-block {
  max-width: 900px;
  margin: 2rem auto;
}

.wp-block-yoast-faq-block .schema-faq-section {
  margin: 0 0 16px 0;
  border: 1px solid #d9dde3;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

/* Question */
.wp-block-yoast-faq-block .schema-faq-question {
  margin: 0 !important;
  padding: 20px 24px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  border: 0 !important;
  min-height: 72px;
  box-sizing: border-box;
}

/* Supprime les pseudo-éléments précédents si le thème en ajoute */
.wp-block-yoast-faq-block .schema-faq-question::before {
  content: none !important;
}

.wp-block-yoast-faq-block .schema-faq-question::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  color: #8b1e3f;
  position: static !important;
  transform: none !important;
  margin-left: 8px;
}

.wp-block-yoast-faq-block .schema-faq-section.is-open .schema-faq-question::after {
  content: "−";
}

/* Réponse */
.wp-block-yoast-faq-block .schema-faq-answer {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fcfcfd;
}

.wp-block-yoast-faq-block .schema-faq-section.is-open .schema-faq-answer {
  display: block;
  border-top: 1px solid #e5e7eb !important;
}

/* Conteneur interne injecté par le JS */
.wp-block-yoast-faq-block .schema-faq-answer-inner {
  padding: 20px 24px 22px;
  box-sizing: border-box;
}

/* Reset très important pour éviter les lignes/espaces parasites du thème */
.wp-block-yoast-faq-block .schema-faq-answer,
.wp-block-yoast-faq-block .schema-faq-answer * {
  max-width: 100%;
  box-sizing: border-box;
}

.wp-block-yoast-faq-block .schema-faq-answer p,
.wp-block-yoast-faq-block .schema-faq-answer ul,
.wp-block-yoast-faq-block .schema-faq-answer ol {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wp-block-yoast-faq-block .schema-faq-answer p:last-child,
.wp-block-yoast-faq-block .schema-faq-answer ul:last-child,
.wp-block-yoast-faq-block .schema-faq-answer ol:last-child {
  margin-bottom: 0 !important;
}

.wp-block-yoast-faq-block .schema-faq-answer p,
.wp-block-yoast-faq-block .schema-faq-answer li {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

.wp-block-yoast-faq-block .schema-faq-answer ul,
.wp-block-yoast-faq-block .schema-faq-answer ol {
  padding-left: 1.2rem !important;
}

/* Focus accessibilité */
.wp-block-yoast-faq-block .schema-faq-question:focus,
.wp-block-yoast-faq-block .schema-faq-question:focus-visible {
  outline: none;
}
.wp-block-yoast-faq-block .schema-faq-section:focus-within {
  box-shadow: 0 0 0 2px rgba(139, 30, 63, 0.18);
}

/* Mobile */
@media (max-width: 768px) {
  .wp-block-yoast-faq-block .schema-faq-question {
    padding: 16px 18px !important;
    min-height: 60px;
    font-size: 1rem;
  }

  .wp-block-yoast-faq-block .schema-faq-answer-inner {
    padding: 16px 18px 18px;
  }
}

.wp-block-yoast-faq-block .schema-faq-answer {
  animation: faqFade .18s ease;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}