/*
 Theme Name: AFM
 Theme URI: https://example.com/afm
 Description: Thème enfant pour le thème Neve.
 Author: Votre Nom
 Author URI: https://example.com
 Template: neve
 Version: 1.0.0
*/
@import url('https://fonts.googleapis.com/css2?family=Fredoka&display=swap');

body {
  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
}
h4, h5, h6 {
  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
} 

.wp-block-themeisle-blocks-accordion-item__title{
  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif !important; 
}
.page-template-default .nv-page-title h1 {
  display: none;
}

body:not(.home) .nv-content-wrap > .alignfull:first-child {
  justify-content: flex-start;
}

body:not(.home) .nv-content-wrap > .alignfull:first-child {
  margin-bottom: 3rem;
}

body:not(.home) .custom-banner-title {
  background-color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 720px;
  width: fit-content;
  margin-left: 100px;
}

body:not(.home) .nv-content-wrap > .alignfull:first-child > .wp-block-cover__inner-container h1,
body:not(.home) .nv-content-wrap > .alignfull:first-child > .wp-block-cover__inner-container h2,
body:not(.home) .nv-content-wrap > .alignfull:first-child > .wp-block-cover__inner-container p {
  margin: 1rem 0;
}
.wp-block-group__inner-container{margin: auto;}

 @media screen and (max-width: 768px) {
  .eedee-gutenslider-nav{
    display: none !important;
  }
.swiper-slide {
  --slide-min-width: 100% !important;}
 .wp-container-core-group-is-layout-03f51d02 {
      grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
  .wp-group-headband{
    padding-left:2rem !important;
    padding-right:2rem !important;
  }   
.titre-bandeau{
  padding-top: var(--wp--preset--spacing--30);
  padding-bottom: var(--wp--preset--spacing--30);
  margin-bottom: 1rem;
  background-color: #F8FFF5 !important;
}
.titre-wrapper {
  margin-left: 0vw;}
  body.single-essai_clinique h2{
  font-size: 1.5rem;
  line-height: 1.2em;
  margin-top: 10px;
   font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
   font-weight: 700;
}

body.single-essai_clinique h1{
  font-size: 1.75rem;
  line-height: 1.4em;
  font-weight: 600;
  margin: auto;
  font-family: 'Fredoka', sans-serif;
}
h1{
  font-size: 2.2rem !important;
}
p, li:not(.menu-item){font-size: 1.25rem;}
   .slider-colonnes .wp-block-columns.is-layout-flex {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .slider-colonnes .wp-block-column {
    min-width: 100%;
    flex: 0 0 100%;
  }
  .slid{flex-basis: 4rem !important;}
}

@media screen and (min-width: 768px) and (max-width: 960px) {
  .wp-group-headband{
    padding-left:3rem !important;
    padding-right:3rem !important;
  }   


 .titre-bandeau {
  padding-top: var(--wp--preset--spacing--60);
  padding-bottom: var(--wp--preset--spacing--60);
    background-color: #F8FFF5 !important;
      margin-bottom: 2rem;
 
}

 body.single-essai_clinique .neve-custom-fullwidth{
  width: 100%;
  margin: auto;
} 
body.single-essai_clinique h2{
  font-size: 1.75rem;
  line-height: 1.2em;
  margin-top: 10px;
   font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
   font-weight: 700;
}

body.single-essai_clinique h1{
  font-size: 2rem;
  line-height: 1.4em;
  font-weight: 600;
  margin: auto;
  font-family: 'Fredoka', sans-serif;
}
}

@media screen and (min-width: 960px) {
  .menu-item-home {
    margin-left: 0 !important;
  }
  /* pb page accueil */
  .wp-group-headband{
    padding-left:5rem !important;
    padding-right:5rem !important;
  }   

.titre-bandeau{
    padding-top: var(--wp--preset--spacing--80);
  padding-bottom: var(--wp--preset--spacing--80);
  margin-bottom: 3rem;
    background-color: #F8FFF5 !important;
}
.titre-wrapper {
  margin-left: 12.5vw;}

 body.single-essai_clinique .neve-custom-fullwidth{
  width: 70%;
  margin: auto;
} 
body.single-essai_clinique h2{
  font-size: 1.75rem;
  line-height: 1.2em;
  margin-top: 10px;
   font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
   font-weight: 700;
}

body.single-essai_clinique h1{
  font-size: 2rem;
  line-height: 1.4em;
  font-weight: 600;
  margin: auto;
  font-family: 'Fredoka', sans-serif;
}
}
@media(min-width: 960px) and (max-width: 1600px) {
 body.single-essai_clinique .neve-custom-fullwidth{
  width: 100%;
  margin: auto;
} 

 body.single-essai_clinique .neve-main>.container .col {
  max-width: 95%;
 }

.titre-wrapper {
  margin: auto;
  display: flex;

}

body.single-essai_clinique h2{
  font-size: 1.75rem;
  line-height: 1.2em;
  margin-top: 10px;
   font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
   font-weight: 700;
}

body.single-essai_clinique h1{
  font-size: 2rem;
  line-height: 1.4em;
  font-weight: 600;
  margin: auto;
  font-family: 'Fredoka', sans-serif;
}
}

header {
  padding: 0 15px;
}

.o-posts-grid-post-image img {
  aspect-ratio: 16 / 9 !important;
}

a .leaflet-attribution-flag {
  display: none !important;
}

.page-id-393 .wp-block-columns-is-layout-flex > * {
  padding: 1rem;
}

.header--row.hide-on-mobile .has-nav ul {
  flex-wrap: nowrap !important;
}

.nv-page-title-wrap{ display: none;}

.wp-block-button__link{
  border-radius: 3px;
  font-size: 1.25rem !important;} 

/* breadcrumb */
#breadcrumbs {
  font-size: 1.25rem;
  color: #1A1A1A;
  margin-bottom: 20px;
  margin-top: 20px;
font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
}

#breadcrumbs a {
  color: #1A1A1A;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid #1A1A1A; 
}

#breadcrumbs a:hover {
  color: #148060;
  border-bottom: 1px solid #148060;
}

#breadcrumbs .separator {
  margin: 0 6px;
  color: #999;
  font-weight: normal;
}

#breadcrumbs span:last-child {
  color: #148060;
  font-weight: 700;
  border: none;
}




/* Latest Posts Block */
.wp-block-latest-posts__featured-image {
  background-color: white;
  width: 100%;
}
.wp-block-latest-posts__list.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
}

.wp-block-latest-posts__list.is-grid li {
  list-style: none;
  background: #FBFFF9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  height: clamp(10rem, 25vh, 11.25rem);
  display: flex;
  flex-direction: column;
  text-align: left;

}
.wp-block-latest-posts.is-grid li{
  margin: 0;
}
.wp-block-latest-posts__list.is-grid li img {
  width: 100%;
 height: clamp(10rem, 25vh, 11.25rem);
  object-fit: cover;
  display: block;
}

.wp-block-latest-posts__list.is-grid li > *:not(div) {
  padding: 16px 20px;
}

.wp-block-latest-posts__post-title {
    font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #000;
  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
  line-height: 1.4em;
}

.wp-block-latest-posts__post-excerpt {
  font-size: 1.25rem;
  line-height: 1.5em;
  color: #000;
  padding: 0 1.25rem 1.25rem 1.25rem;
}
.wp-block-latest-posts__post-author{
  margin-right: 6px;  
}
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
  font-size: 1rem;
  color: #1A1A1A;
  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
  line-height: 1.3em;
  display: inline-block;
  font-style: italic;
  font-weight: 500;
}
.wp-block-latest-posts.columns-3 li {
  width: 100%;
  height: 100%;

}

.pos-aut-tim .wp-block-latest-posts__post-author::first-letter {
  text-transform: uppercase;
}

.pos-aut-tim {
  padding: 0 0 0.625rem 1.25rem;
  display: flex;
  gap: 6px;

}
.wp-block-latest-posts__post-excerpt > a {
  display: none;
}

/* accordion */
.wp-block-themeisle-blocks-accordion-item__content{
 border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
details[open] > .wp-block-themeisle-blocks-accordion-item__title {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;

}

details:not([open]) > .wp-block-themeisle-blocks-accordion-item__title {
  border-radius: 8px;
}

/* bandeau actualité couleur */
.actu {
  background-color: #E4F0EC !important;
}  


p>a, li:not(.menu-item)>a{
  color: #407C83;
  font-weight: 700;
}
h2>a, .wp-block-latest-posts__post-title{
  color: #000 !important;
}




/* Style appliqué uniquement aux essais cliniques */
body.single-essai_clinique {
font-family: 'Fredoka', sans-serif;
}

body.single-essai_clinique h1,
body.single-essai_clinique h2,
body.single-essai_clinique h3 {

  color: #000;
}


body.single-essai_clinique ul:not(#menu-menu-pied-de-page, #menu-menu-pied-de-page-1) {
  list-style: disc;
  padding-left: 1.5em;

}
body.single-essai_clinique p {
 padding: 5px;
 margin: 0;
 font-size: 1.25rem;
 font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif;
}



/* Style appliqué uniquement aux post*/
body.single-post .nv--yoast-breadcrumb  {
display: none;
}
body.single-post h1  {
font-family: 'Fredoka', sans-serif;
font-size: 1.75rem !important;
font-weight: 600 !important;
}
body.single-post .nv-meta-list{
  font-style: italic !important;
}

.titre-principal {
  padding-bottom: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  text-align: left;
  color: #00505A !important;
}


/* Style appliqué langues*/
.current-lang a {

  background-color: #F1F1F1;
  border-radius:25px;
   padding-top: 8px !important;
   padding-left: 15px;
  padding-right: 15px;
    padding-bottom: 8px ;
}

.lang-item{
  width: fit-content !important; 
}

.lang-item>div>a{
  width: fit-content !important;
  padding-top: 8px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  padding-bottom: 8px !important; 
}
 .nv-meta-list li.meta:not(:last-child):after{
  content: "";
 }

 .nv-meta-list li.meta:not(:last-child)::before {
    content: "Rédigé le ";
}

h1{
  font-weight: 400;
}

:where(.is-layout-grid) { gap: 1.5rem; }
  

#block-61{
  display: none;
}
a {
  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif !important;
  font-weight: 400;
}

.wp-block-themeisle-blocks-form .o-form-server-response {
padding: 0rem !important;
}

.nv-single-post-wrap{font-size: 1.25rem;} 


.search-results .page-numbers .current{
  background-color: #407c83 !important;
  color: #fff !important;
}

.search-results .entry-title>a{
  color: #00505a !important;
  font-weight: 700;
}

.search-results .article-content-col{
  background-color: #e4f0ec !important;
}

.search-results .pos-aut-tim{
  display: none;
}
h3{  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif !important;
  font-weight: 700;}
.essai-content h3{  font-family: "Calibri", "Candara", "Segoe", "Segoe UI", "Optima", sans-serif !important;
 font-weight: 700;
font-size: 1.4rem !important;}