/* --------------- theme stylesheet ------------------ */


/*
body {
  background-color: red !important;
}
*/

/* temp*/
#taxonomy-button {
  display: none !important;
}
#taxonomy-filter .filtre-plus {
  display: flex !important;
  align-items: baseline;
}


/* --------------- corrections personnalisées (pas réussi à paramétrer dans les blocs) ------------------ */
/* correction couleurs */
.has-fond-texte-rose-color a {
  color: var(--wp--preset--color--fond-texte-rose);
}

footer a,
footer h2,
footer p.has-text-color {
  color: var(--wp--preset--color--white) !important;
}
main a {
  color: var(--wp--preset--color--fond-bleu-liens) !important;
}
main a.wp-block-navigation-item__content,
main a.wp-block-button__link,
main a.wp-element-button {
  color: var(--wp--preset--color--white) !important;
}
main a.wp-element-button {
  background: var(--wp--preset--color--fond-texte-rose) !important;
}
main h1 a,
main h2 a,
main h3 a,
main h4 a,
main h5 a,
main h6 a {
  color: var(--wp--preset--color--text) !important;
}
.meta-author,
.meta-categories a {
  color: var(--wp--preset--color--gris) !important;
}

header>div:first-child,
header>div:first-child .has-text-color,
header>div:first-child a {
  color: var(--wp--preset--color--white) !important;
}
header>div:first-child ul ul a {
  color: var(--wp--preset--color--text) !important;
}

/* correction style */
/* nav ul.site-navigation .wp-block-navigation-item__content {
  text-decoration: none !important;
}
.wp-block-search__input:focus {
  outline: 1px solid var(--wp--preset--color--gris) !important;
} */


/* cacher le titre sur les pages: ressouces, corpus, ouvrages, et homepage*/
body.home h1,
body.post-type-archive-cptdocument h1,
body.post-type-archive-cpteveille h1,
body.post-type-archive-cptouvrage h1 {
  display: none;
}

/* cacher le titre de la page si custom query */
/* body.has-unil-query-loop .wp-block *:has(h1) {
  display: none;
} */


/* corriger la marge de gauche
@media only screen and (min-width: 1000px) {
  main.has-global-padding,
  main>.has-global-padding {
    padding-left: 145px !important;
  }
}
@media only screen and (max-width: 1000px) {
  main.has-global-padding,
  main>.has-global-padding {
    padding-left: 15px !important;
  }
}*/

/* Titre secondaire en inline (Tableau de bord, liste ressources en grille et en liste)  */
body:not(.single) #secondary_title {
  display: inline;
}
body.single #secondary_title {
  font-size: 70%;
}

/* fixer la largeur de l'image du logo pour les performances */
.wp-block-site-logo img {
  width: 127px !important;
  height: 44px !important;
  max-width: none !important;
}



/* Homepage: align colonne sur mobile pour le bloc Derniers articles de blog */
@media only screen and (max-width: 768px) {
  body.home .wp-block-uagb-post-carousel {
    flex-direction: column;
    justify-content: center;
  }
}

/* Homepage: bug avec la hauteur du bouton de la modal */
.uagb-modal-trigger {
  max-height: 50px;
}


/* footer */
@media only screen and (max-width: 768px) {
  footer :where(.is-layout-flow)> :first-child {
    flex-direction: column;
  }
  footer :where(.is-layout-flow)> :first-child>div {
    margin-bottom: 20px;
  }
}


/* --------------  Header - mise en forme du menu principal -------------- */
nav.site-navigation li.wp-block-navigation-item {
  padding: 10px 20px 10px 20px;
}
nav.site-navigation li.wp-block-navigation-item:not(.item-retour):hover {
  background-color: var(--wp--preset--color--fond-texte-rose);
  color: var(--wp--preset--color--white);
}
nav.site-navigation li.wp-block-navigation-item:not(.item-retour).selected {
  background-color: var(--wp--preset--color--fond-texte-rose);
  color: var(--wp--preset--color--white);
}

nav.site-navigation form {
  margin-bottom: 0 !important;
}


/* --------------  bouton top --------------  */
.backToTopAnchor {
  position: absolute;
  width: 0px;
  height: 0px;
  overflow: hidden;
  visibility: hidden;
  line-height: 0;
  clip: rect(1px, 1px, 1px, 1px);
}

#backToTopBtn {
  background: url(../images/scrollTop.png) no-repeat center;
  width: 50px;
  height: 50px;
  padding: 10px;
  text-indent: -99999px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  z-index: 3000;
}


/* --------------  boutons liste / bloc -------------- */
#view-options button {
  border: none;
  /* padding: 10px; */
  cursor: pointer;
  color: transparent;
  width: 30px;
}
#view-options #grid-view {
  background: url(../images/ic_view_block3.svg) no-repeat center;
}
#view-options #list-view {
  background: url(../images/ic_view_list3.svg) no-repeat center;
}
#view-options #grid-view.active,
#view-options #list-view.active,
#view-options #grid-view:hover,
#view-options #list-view:hover {
  -moz-filter: invert(57%) sepia(68%) saturate(3724%) hue-rotate(308deg) brightness(104%) contrast(101%);
  -webkit-filter: invert(57%) sepia(68%) saturate(3724%) hue-rotate(308deg) brightness(104%) contrast(101%);
  filter: invert(57%) sepia(68%) saturate(3724%) hue-rotate(308deg) brightness(104%) contrast(101%);
}



/* affichage liste */
.wp-block-query ul.is-layout-flex {
  visibility: hidden;
  /* pour éviter les flash lors du chargement */
}

.wp-block-query ul.is-layout-flex {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.wp-block-query ul.is-layout-flex li .wp-block-group {
  flex-direction: row;
  margin-top: 0 !important;
  justify-content: flex-start;
}

.wp-block-query ul.is-layout-flex .wp-block-post-title {
  flex-basis: initial;
  font-size: var(--wp--preset--font-size--normal) !important;
}
.wp-block-query ul.is-layout-flex .wp-block-post-title a {
  color: var(--wp--preset--color--fond-bleu-liens) !important;
}

.wp-block-query ul.is-layout-flex .wp-block-post-featured-image,
.wp-block-query ul.is-layout-flex .wp-block-post-excerpt,
.wp-block-query ul.is-layout-flex .wp-block-spacer {
  display: none;
}

.wp-block-query ul.is-layout-flex li {
  width: 100%;
}

.wp-block-query ul.is-layout-flex li>div,
.wp-block-query ul.is-layout-flex li>div>div {
  background-color: transparent !important;
  align-items: baseline;
}
.wp-block-query ul.is-layout-flex li:not(:first-child)>div {
  border-top: 1px solid var(--wp--preset--color--white) !important;
}
.wp-block-query ul.is-layout-flex li h5 {
  text-align: left;
  padding-bottom: 0 !important;
}

@media only screen and (max-width: 768px) {
  .wp-block-query ul.is-layout-flex li .wp-block-group {
    justify-content: space-between;
  }
}



/* affichage bloc */
@media only screen and (max-width: 768px) {
  .wp-block-query h5.wp-block-post-title {
    flex-basis: auto;
  }
}



/* --------------  copyright photos --------------  */
figcaption.copyright {
  font-size: small;
  color: var(--wp--preset--color--gris);
}


/* --------------  metadonnées du bas -------------- */
.spec-entry-meta_bottom .wp-block-group-is-layout-flex {
  flex-direction: column;
  align-items: baseline;
}


/* ------- Filtres taxonomy ------- */
#filter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

#taxonomy-filter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  max-width: 90%;
}

#taxonomy-filter label {
  font-weight: bold;
}

/* Boutons rapides */
#taxonomy-button .filtre-btn {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wp--preset--color--gris-clair);
  border-radius: 20px;
  cursor: pointer;
  background: var(--wp--preset--color--gris-clair);
  font-size: inherit;
  font-weight: 400;
}
#taxonomy-button .filtre-btn.active {
  background-color: var(--wp--preset--color--fond-texte-rose);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--fond-texte-rose);
  font-weight: bold;
}

/* Groupe filtre avancé */
#taxonomy-filter .filtre-plus {
  display: none;
  margin-top: 1.5rem;
}

#taxonomy-filter .filtre-plus.visible {
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media only screen and (max-width: 768px) {
  #taxonomy-filter .filtre-plus.visible {
    flex-direction: column;
  }
}

/* Select */
#taxonomy-filter select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  font-size: inherit;
  background: none;
  padding: 8px 30px 8px 10px;
  min-width: min-content;
  box-sizing: border-box;
  cursor: pointer;
}

#taxonomy-filter select.active-select {
  color: var(--wp--preset--color--fond-texte-rose);
}




/* #loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  font-size: 1.2em;
  color: #333;
  font-family: sans-serif;
} */





/* -------------- Formulaire mailpoet (ondes pédagogiques) ---------------
form.mailpoet_form {} -> dans la css personnalisée du formulaire */



/* -------------- Homepage --------------- */
body.home footer,
body.home footer>div:first-child {
  margin-top: 0 !important;
}



/* -------------- Page ressource documents --------------- */
/* mise en forme du tableau */
.infotableau:nth-of-type(1) {
  flex-basis: 66.66% !important;
}
.infotableau:nth-of-type(2) {
  flex-basis: 33.33% !important;
}

.infotableaumeta {
  border: 1px solid var(--wp--preset--color--gris-clair);
  border-width: 0 0 1px;
  padding: 8px;
  margin: 0 !important;
  font-size: 80%;
  /* font-weight: bold; */
  min-width: 150px;
  flex-wrap: nowrap !important;
}
.infotableaumeta:nth-of-type(1) {
  border-top-width: 1px;
}
.infotableaumeta>div:first-child {
  flex-basis: 40% !important;
  color: var(--wp--preset--color--gris) !important;
}
.infotableaumeta>div:last-child {
  flex-basis: calc(60% - 32px) !important;
  color: var(--wp--preset--noir) !important;
}

/* marge dans les métadonnées */
.spec-entry-meta_top :where(.is-layout-flex) {
  gap: 10px !important;
}
.spec-entry-meta_top .spec-entry-meta {
  margin-right: 0px !important;
}


/* déplacement du bouton télécharger */
/* .entry-content>.ead-preview {
  position: relative;
  margin-top: 100px;
}
.entry-content>.ead-preview .embed_download {
  position: absolute;
  top: calc(0% - 100px);
  right: 0;
}
.entry-content>.ead-preview .embed_download a {
  margin-top: 0;
} */

/* ?????
.wp-block-file a:first-of-type {
  display: none;
}
.wp-block-file a:nth-of-type(2) {
  float: right;
}
*/




/* --------------  fin --------------  */