/*
Theme Name:  Thème Xenakis
Theme URI:  https://www.realdev.fr
Description:  Thème spécial à l'usage exclusif du site Iannis Xenakis
Author:  JB Romain
Textdomain:  JbRomain
Author URI:  https://www.realdev.fr
Template:  twentytwenty
Version:  1.0
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html                 
*/

body,
.entry-content {
  font-family: "Proza Libre", sans-serif;
}
.entry-content {
  font-size: 2rem;
}

/* Header */
header#site-header {
  border-bottom: 1px solid #dcd7ca;
}

header.entry-header div.post-meta-wrapper {
  display: none;
}
.singular .entry-header {
  background-color: transparent;
}
.header-inner {
  padding: 5px 0 !important;
}

/* Remplacement des libellés de langue par leur abbréviation, et en plus réduit */
li#menu-item-wpml-ls-22-fr {
  margin-left: 20px;
}
li#menu-item-wpml-ls-22-en {
  margin-left: 10px;
}
a[title="Français"] span,
a[title="English"] span {
  font-size: 0;
  color: black;
}
a[title="Français"] span::before {
  content: "FR";
  font-size: 10px;
}
a[title="English"] span::before {
  content: "EN";
  font-size: 10px;
}

/* Modal search de la même hauteur que le header (pas plus) */
.search-modal .search-field {
  height: 10rem;
}

/* Bug firefox mauvais positionnement du placeholder */
.search-field::-moz-placeholder {
  line-height: 100px !important;
}

/* Sous menus */
/*body:not(.overlay-header) .primary-menu ul { background-color:white;  color: black; transition:none;}*/

.primary-menu li.menu-item-has-children:hover > ul,
.primary-menu li.menu-item-has-children:focus > ul,
.primary-menu li.menu-item-has-children.focus > ul {
  background-color: white;
  color: black;
  border: 1px solid lightgray;
  border-top: 0;
  top: calc(100% + 39px);
  border-radius: 0;
  right: auto;
  left: -20px;
}
.primary-menu ul::before {
  height: 39px;
}
.primary-menu ul::after {
  display: none;
} /* suppression de la petite flèche en haut du sous-menu */

/* Conteneur global (hors header et footer) */
/* On veut pas que le footer soit au milieu des pages vides */
/* Le positionnement sert au tnTableNavigation, sinon on n'avait aucun parent positionné à nos tableaux */
main#site-content {
  min-height: calc(100vh - 159px);
  position: relative;
}

/* Contenu des articles/pages */
/* div.entry-content {background-color:rgba(255,255,255,0.5); } */
.singular .entry-header {
  padding: 4rem 0 !important;
}
.singular .entry-header p:last-child {
  margin-bottom: 0;
}

.singular h1,
.singular .heading-size-1 {
  font-size: 4rem !important;
}
.singular .intro-text {
  font-size: 2.6rem !important;
  margin-top: 1rem;
}
.singular .featured-media img {
  max-width: 50vw;
  max-height: 50vh;
  width: auto;
}

.singular
  .entry-content
  > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(
    .is-style-wide
  ) {
  max-width: 85rem;
}

.single figcaption.blocks-gallery-item__caption {
  display: none;
}
.single figure.featured-media figcaption.wp-caption-text {
  display: none;
}

.single hr.wp-block-separator {
  margin: 4rem auto;
}

/* Page catégorie  (liste des articles) - nb: .archive ne sélectionne pas les pages de résultats de recherche, il faudra tout duppliquer avec .search-results */
div.ix-empty-category {
  text-align: center;
  font-style: italic;
}
header.archive-header {
  background: transparent;
}

.archive article {
  width: 80%;
  min-width: 500px;
  min-height: 250px;
  margin: 0 auto;
  padding: 0 !important;
  position: relative;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.archive figure.featured-media {
  position: absolute;
  width: 50%;
  max-height: 250px;
  left: 0;
  top: 0;
  margin: 0;
}
.archive figure.featured-media > div {
  max-height: 250px;
  max-width: 450px;
  position: absolute;
  right: 30px;
}
.archive figure.featured-media > div > img,
.archive figure.featured-media > div > a > img {
  max-height: 250px;
  width: auto;
}
.archive figure.featured-media figcaption {
  display: none;
}

.archive h2.entry-title {
  font-size: 2.4rem;
}
.archive article > header,
.archive article > div {
  margin-left: 50% !important;
  text-align: left;
}
.archive .entry-header-inner.section-inner.medium {
  margin-left: 0;
  margin: 0;
  text-align: left;
}
.archive .entry-categories-inner {
  display: inline;
}
.archive .entry-categories {
  margin-bottom: 10px;
}
.archive .post-inner.thin {
  padding: 0;
  margin-top: 5px;
  text-align: justify;
}
.archive .post-inner .entry-content p {
  width: auto;
  margin: 0;
}
.archive hr {
  margin: 1rem auto;
}

/* Page catégorie musique (liste sous forme de tableaux) + résultats de la recherche */
table#ix-table {
  max-width: 1000px;
  background-color: rgba(255, 255, 255, 0.7);
  margin-left: auto;
  margin-right: auto;
  font-size: 1.5rem;
}

table#ix-table td {
  min-width: 70px;
  padding: 1.5rem 1rem;
  font-size: 1.1em;
}

table#ix-table td.ix-main-col {
  font-size: 1.2em;
}
td.ix-center-col {
  text-align: center;
}
td.ix-smallcaps-col {
  font-variant: small-caps;
}

/* Page catégorie ayant des sous-catégories */
div.ix-subcategories {
  text-align: center;
  margin: 0;
}
div.ix-subcategories div {
  max-width: 500px;
  margin: 3rem auto;
}
div.ix-subcategories hr {
  max-width: 700px;
  opacity: 0.5;
}

/* Tout contenu d'article ou d'extrait: éclaircissement du background */
.entry-content {
  padding: 1rem 0; /*background-color:rgba(255,255,255,0.5);*/
}
.entry-content {
  text-align: justify;
}

/* Page d'accueil */
.template-ix-home h1 {
  text-align: center;
}
.template-ix-home main {
  position: relative;
}
#ix-home-sidebar {
  margin: 3rem;
}
#ix-home-sidebar > section {
  padding: 0;
}
.template-ix-home article {
  margin-right: 30vw;
  border-right: 1px solid #dcd7ca;
  padding-bottom: 3rem;
}
.template-ix-home article header.entry-header {
  padding: 5rem 0;
}

aside#ix-home-sidebar {
  margin-top: 10rem;
  position: absolute;
  top: 0;
  left: 70vw;
  max-width: 20vw;
}
aside#ix-home-sidebar h2 {
  font-size: 2.5rem;
}

/* Page de résultats de recherche avec formulaire avancé */
form.ix-advanced-search-form {
  display: block;
  text-align: center;
  margin-top: 1rem;
}
form.ix-advanced-search-form > label,
form.ix-advanced-search-form > input.search-submit {
  display: inline-block;
  vertical-align: middle;
}
form.ix-advanced-search-form > label {
  width: 50%;
  max-width: 250px;
}
form.ix-advanced-search-form > input.search-submit {
  height: 5rem;
  line-height: 5rem;
  padding: 0 1.5rem;
}
form.ix-advanced-search-form > a.ix-advanced-search-link {
  display: block;
}
section.ix-advanded-search {
  display: none;
}

form.ix-advanced-search-form-enabled a.ix-advanced-search-link {
  display: none;
}
form.ix-advanced-search-form-enabled section.ix-advanded-search {
  display: block;
}

/* PLugin de filtrage search and filter */
.searchandfilter li {
  text-align: left;
  vertical-align: top;
}
.searchandfilter h4 {
  margin-top: 0;
  margin-bottom: 2px;
}
.searchandfilter input[type="submit"] {
  padding: 1.2rem;
}

/* Footer */
.template-ix-home footer {
  margin-top: 0 !important;
}
footer#site-footer {
  margin-top: 0 !important;
  padding: 15px 0 !important;
  z-index: 1;
  position: relative;
}
footer#site-footer .footer-copyright {
  font-weight: normal;
  color: #6d6d6d;
}
footer#site-footer .powered-by-wordpress {
  font-size: 0.7em;
  line-height: 27px;
  position: absolute;
  right: 20px;
  top: 25px;
}
footer#site-footer .footer-reseaux-sociaux {
  display: block;
  font-size: 0.8em;
}
footer#site-footer .footer-reseaux-sociaux a {
  margin-right: 10px;
}
footer#site-footer .footer-reseaux-sociaux img {
  display: inline-block;
  vertical-align: -6px;
  max-height: 24px;
  margin-right: 4px;
}

/* Tableaux triables */
table thead th.header {
  background-image: url(images/bg.gif);
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center left;
  padding-left: 20px;
  margin-left: -1px;
}
table thead th.headerSortUp {
  background-image: url(images/asc.gif);
  text-decoration: underline;
}
table thead th.headerSortDown {
  background-image: url(images/desc.gif);
  text-decoration: underline;
}

/* Plugin tnTableNavigation */
div.UI-table-navigable-panel {
  position: absolute;
  height: 45px;
}
div.UI-table-navigable-panel.UI-table-navigable-panel-with-searchbox:not(
    .UI-table-navigable-panel-without-paging
  ) {
  width: 300px;
}
div.UI-table-navigable-panel:hover {
  opacity: 1;
}
span.UI-table-navigable-lib {
  display: inline-block;
  width: 50px;
  vertical-align: middle;
  text-align: center;
}
input.UI-table-navigable-searchbox {
  width: 150px;
  padding: 9px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 15px;
  margin-right: 1px;
}
.UI-table-navigable-panel-without-paging span.UI-table-navigable-lib,
.UI-table-navigable-panel-without-paging .UI-table-navigable-first,
.UI-table-navigable-panel-without-paging .UI-table-navigable-prev,
.UI-table-navigable-panel-without-paging .UI-table-navigable-next,
.UI-table-navigable-panel-without-paging .UI-table-navigable-last {
  display: none;
}
.UI-table-navigable-panel-without-paging input.UI-table-navigable-searchbox {
  margin-left: 0;
}

tr.UI-table-navigable-hidden-row,
tr.UI-table-navigable-nomatch-row {
  display: none;
}
.UI-printing tr.UI-table-navigable-hidden-row {
  display: table-row;
} /* A l'impression on affiche toutes les pages */
.UI-printing tr.UI-table-navigable-nomatch-row {
  display: none;
} /* Mais pas ce qui ne correspond pas à la recherche */

.UI-table-navigable-panel-with-searchbox button {
  /*height: 13px;*/
  font-size: 1.2rem;
  line-height: 13px;
  vertical-align: middle;
}

/* Extension Gallery Lightbox */
.pbWrapper {
  line-height: calc(100% - 40px);
  height: calc(100% - 40px) !important;
}
.pbWrapper img {
  margin: auto;
  vertical-align: middle;
  display: inline;
}
#pbCaption {
  min-height: 2em;
  background: rgba(0, 0, 0, 0.5);
  line-height: 2em;
}
#pbThumbsToggler {
  display: none;
}

/* Retouches background */

/* Feuille de style intégrée #7 | https://dev.iannis-xenakis.org/polyphonie-des-formes/ */

.archive-header,
.singular .entry-header,
.singular .featured-media::before,
.wp-block-pullquote::before {
  background: transparent !important;
}
/*.singular .featured-media::before {
   background: transparent !important; 
  }
  */

/* Customization responsive */
.nav-toggle .toggle-icon {
  height: 25px;
}
.nav-toggle .toggle-inner {
  padding-top: 0;
}
#ix-home-sidebar-mobile {
  display: none;
}

@media screen and (max-width: 699px) {
  /* Généralités, header, page single */
  span.toggle-text {
    display: none;
  }
  .entry-content {
    font-size: 1.5rem;
  }
  .singular h1,
  .singular .heading-size-1 {
    font-size: 3rem !important;
  }
  #site-footer {
    font-size: 1.2rem;
  }
  #site-footer .footer-credits {
    margin: auto;
  }
  aside#ix-home-sidebar h2 {
    font-size: 1.8rem;
  }
  body {
    font-size: 1.4rem;
  }
  .singular .intro-text {
    font-size: 1.8rem !important;
  }
  div.post-inner.thin {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  button.close-nav-toggle:focus {
    outline: none;
  }
  button.close-nav-toggle {
    padding-right: 3rem;
  }

  /* Page d'accueil */
  .template-ix-home article {
    margin-right: 0;
    border-right: none;
  }
  #ix-home-sidebar {
    display: none;
  }
  #ix-home-sidebar-mobile {
    display: block;
    padding: 2rem;
  }
  #ix-home-sidebar-mobile > section.widget {
    padding: 0;
  }
  #ix-home-sidebar-mobile h2 {
    font-size: 2rem;
  }
  #ix-home-sidebar-mobile .widget_recent_entries a {
    font-weight: normal;
  }
  #ix-home-sidebar-mobile .widget_recent_entries li {
    margin-top: 1rem;
  }
  #ix-home-sidebar-mobile .widget_recent_entries li:first-child {
    margin-top: 0;
  }

  /* Archives */
  .archive figure.featured-media {
    position: relative;
    width: 100%;
    margin-inline-end: 0;
  }
  .archive figure.featured-media > div {
    position: static;
    width: 100%;
    max-width: none;
  }
  .archive article > header,
  .archive article > div {
    margin-left: 0 !important;
  }
  .archive article > header {
    margin-top: 1rem;
  }
  .archive article {
    min-width: 0;
  }
  .entry-content
    > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(
      .is-style-wide
    ) {
    width: 100%;
    max-width: none;
  }
  .section-inner {
    width: 100%;
  }
  .archive .entry-header-inner.section-inner.medium {
    text-align: center;
  }
}
