/* ----------------------------------------------------- */
/* Core Stuff */
/* ----------------------------------------------------- */
:root {
  color-scheme: normal !important;
  --main-font: "Source Sans 3";
  --title-font: "Source Sans 3";
  --link-color: #628253;
  --dark-link-color: #335025;
}

*,
html {
  //letter-spacing: 0;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  -webkit-padding-start: 0;
  text-rendering: optimizeLegibility;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: var(--main-font), sans-serif;
  letter-spacing: 1px;
}

body {
  font-size: 1rem;
  line-height: 1.5;
  color: black;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: black;
  line-height: 1.5rem;
  font-family: var(--title-font);
}

h1 {
  font-size: 28px;
  margin: 0.75rem 0 1.5rem 0;
  line-height: 1.5rem;
}

h2 {
  font-size: 20px;
  margin: 0.75rem 0 1.5rem 0;
  line-height: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  margin: 0.75rem 0;
  line-height: 1.5rem;
  font-weight: 500;

}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-color);
}

img {
  vertical-align: bottom;
}

pre {
  background: #F0F0F0;
  margin: 1rem 0;
  border-radius: 2px;
}

blockquote {
  border-left: 10px solid #eee;
  margin: 0;
  padding: 0 2rem;
}

/* Utility Classes */
.wrapper {
  margin: 0 3rem;
}

.padding {
  padding: 3rem 1rem;
}

.left {
  float: left;
}

.right {
  float: right
}

/* ----------------------------------------------------- */
/* HEADER */
/* ----------------------------------------------------- */

.header {
  padding: 3rem 3rem 1.5rem 3rem;
  background-color: white;
  color: black;
  width: 15rem;
  height: 100vh;
  position: fixed;
  overflow: auto;
  font-size: 1rem;
}

.header a {
  color: black;
}

.header a:hover {
  color: var(--link-color);
}

.header .logo {
  font-size: 1.7rem;
  width: 100%;
  text-align: left;
  padding: 0;
  line-height: 2rem;
  display: block;
  font-family: var(--title-font);
  font-weight: 550;
}

.header .logo-mobile {
  display: none;
}

#body .logo-mobile {
  display: none;
}

.header .sublogo {
  font-style: italic;
  margin-right: -3px;
}


/* Menu Settings */
.main-nav {
  width: 100%;
  padding-top: 4.5rem;
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

.main-nav ul {
  text-align: left;
  margin: 0;
  padding: 0;
  width: 100%;
}

.main-nav ul li {
  display: inline-block;
  width: 100%;
  border-top: 1px solid #ccc;
}

.main-nav ul li:nth-child(1) {
  border-top: none;
}

.main-nav ul li:nth-child(4) {
  margin-top: 2rem;
  border-top: none;
}

.main-nav ul li a {
  display: block;
  color: black;
  line-height: 2rem;
  padding: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

.main-nav > ul > li > a {
  border-radius: 2px;
}

/*Active dropdown nav item */
.main-nav ul li:hover > a {
  color: var(--link-color);
  background-color: #fff;
}

/* Selected Dropdown nav item */
.main-nav ul li.selected > a {
  background-color: #fff;
  color: var(--link-color);
}

/* Dropdown CSS */
.main-nav ul li {
  position: relative;
}

.main-nav ul li ul {
  position: absolute;
  background-color: #1F8DD6;
  min-width: 100%;
  text-align: left;
  z-index: 999;

  display: none;
}

.main-nav ul li ul li {
  display: block;
}

/* Dropdown CSS */
.main-nav ul li ul ul {
  left: 100%;
  top: 0;
}

/* Active on Hover */
.main-nav li:hover > ul {
  display: block;
}

/* Child Indicator */
.main-nav .has-children > a {
  padding-right: 30px;
}

.main-nav .has-children > a:after {
  font-family: FontAwesome;
  content: '\f107';
  position: absolute;
  display: inline-block;
  right: 8px;
  top: 0;
}

.main-nav .has-children .has-children > a:after {
  content: '\f105';
}

.header .icon-sociaux {
  line-height: 2rem;
  font-size: 15px;
  line-height: 2rem;
  border-top: 1px solid #ccc;
}

#language {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  line-height: 2rem;
}

#language a {
  border-top: 1px solid #ccc;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;

}

#language .active {
  display: block;
  cursor: pointer;
  order: 1;
}

#language .active:after {
  font-family: FontAwesome;
  content: ' \f107';
  position: relative;
  display: inline-block;
  left: 8px;
  //top: 0;
}

#language a {
  display: none;
  order: 2;
  width: 100%;
}

#language a.active {
  display: block;
}

/* ----------------------------------------------------- */
/* BODY */
/* ----------------------------------------------------- */


#body {
  margin-left: 15rem;
  font-size: 14px;
}

.image-grid {
  /*display: flex;
  align-items: stretch;
  flex-direction: row;
  flex-wrap: wrap;*/
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-right: 0.75rem;
}

.image-item {
  /*flex-basis: 33.33%;
  background: #000;
  flex-grow: 1;*/
  width: 100%;
  position: relative;
}

.image-item img {
  width: 100%;
  filter: grayscale(100%) contrast(150%);
  transition: filter 0.2s;
}

.image-item:hover img {
  filter: none;
}

.image-item .caption {
  position: absolute;
  background: rgba(0, 0, 0, 0.66);
  color: white;
  bottom: 0px;
  left: 0px;
  right: 0px;
  padding: 8px;
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  line-height: 1rem;
  transition: background 0.2s
}

.image-item:hover .caption {
  background: rgba(0, 0, 0, 1);
}

.image-item .caption small {
  font-weight: 400;
  font-size: 13px;
}

.body-container {
  padding: 3rem 3rem 3rem 0;
}

.body-container a {
  text-decoration: underline;
}

#body p {
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 13px;
  letter-spacing: 1px;
}

#body img {
  max-width: 100%;
}

#body ul {
  margin-left: 1.5rem;
}

#body .button {
  padding: 0.75rem;
  background: grey;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

#body .button:hover {
  background: var(--link-color);
}

#body iframe {
  max-width: 100%;
}

.solo-content-container {
  max-width: 800px;
}

.content-container {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.text-container {
  flex-grow: 1;
  flex-shrink: 1;
  width: 33%;
  padding-right: 0;
  //max-height: 100vh;
  //overflow: auto;
}

.text-container a {
  text-decoration: underline;
  color: inherit;
}

.text-container a:hover {
  color: var(--link-color);
}

.image-container {
  flex-grow: 1;
  flex-shrink: 1;
  width: 66%;
  padding-left: 3rem;
  padding-top: 0.75rem;
  //max-height: 100vh;
  //overflow: auto;
}

.image-container img {
  width: 100%;
  margin-bottom: 1.5rem;
}

.video-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  margin-bottom: 0.75rem;
}

.video-responsive:last-child {
  margin-bottom: 0;
}

.video-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

.prev-next {
  display: flex;
  width: 100%;
  font-size: 1rem;
  justify-content: space-between;
}

.prev-next a {
  display: block;
  flex-grow: 1;
  font-size: 13 px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1rem;
  position: relative;
  text-decoration: none;
}

.prev-next a:hover {
  color: var(--link-color);
}

.btn i {
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.btn .sibling {
  margin-left: 1rem;
}

.prev-next a.next {
  text-align: right;
}

.prev-next a.next i {
  left: unset;
  right: 0;
}

.prev-next a.next .sibling {
  margin-right: 1rem;
  margin-left: 0;
}

/* Archives */

.archive-container {
  border-top: 1px solid #ccc;
  margin-top: 1.5rem;
}

.archive-container h2 {
  margin-bottom: 0;
  padding-top: 0.75rem;
}

.archive-container .tag {
  text-decoration: underline;
}

.archive-content img {
  margin-bottom: 0.75rem;
}

.archive-content img:last-child {
  margin-bottom: 0;
}

.pagination {
  color: inherit !important;
}

#body ul.pagination {
  margin-left: 0;
}

.pagination .active {
  color: var(--link-color) !important;
}

/* MP3 player */
.container-player2 {
  margin: 0.75rem 0;
}

.container-player2 .player-title {
  text-align: center;
  line-height: 1rem;
  font-weight: 600;
}

.green-audio-player {
  box-shadow: none;
  height: 2rem;
  width: 100%;
  padding: 0 0.75rem;
}

.green-audio-player .controls {
  font-family: inherit;
  color: inherit;
}

.green-audio-player svg path {
  fill: black;
}

.green-audio-player .play-pause-btn:hover svg path,
.green-audio-player .volume__button:hover svg path {
  fill: var(--link-color);
}

.green-audio-player .volume__button.open svg path.volume__speaker {
  fill: var(--link-color);
}

.green-audio-player .slider .gap-progress,
.green-audio-player .slider .gap-progress .pin {
  background-color: var(--link-color);
}

/* Maintenance */
.maintenance {
  text-align: center;
  vertical-align: middle;
  width: 100%;
  height: 100vh;
}

.maintenance-text {
  height: 1rem;
  margin-top: 50vh;
  /* poussé de la moitié de hauteur de viewport */
  transform: translateY(-50%);
  /* tiré de la moitié de sa propre hauteur */
}

/* ----------------------------------------------------- */
/* FOOTER */
/* ----------------------------------------------------- */

.footer {
  background-color: #eee;
  padding: 1.5rem;
  margin-left: 15rem;
}

/* ----------------------------------------------------- */
/* HOME */
/* ----------------------------------------------------- */

#body.home {
  display: flex;
}

.content.home {
  padding: 4.5rem 3rem 3rem 0;
  width: 33.33%;
  height: 100vh;
  overflow: auto;
}

.content.home h2 {
  text-align: center;
}

.content.home li {
  margin-bottom: 0.75rem;
}

#body .content.home p {
  margin-bottom: 0.75rem;
  line-height: 1rem;
}

.content.home a {
  text-decoration: underline;
  color: inherit;
}

.content.home a:hover {
  color: var(--link-color);
}

.image-grid.home {
  width: 66.66%;
  height: 100vh;
  overflow: auto;
  grid-template-columns: auto auto;
}

.image-grid.home .image-item {
  /*flex-basis: 50%;*/
}

/* ----------------------------------------------------- */
/* RESPONSIVE */
/* ----------------------------------------------------- */

/* Default extra large device (1280px and more) */
/* Large devices such as desktop (1024px or lesser) */
@media only screen and (max-width: 1280px) {}

/* Medium devices such as tablets (1024px or lesser) */
@media only screen and (max-width: 1024px) {

  /* grid */
  .image-grid {
    grid-template-columns: auto auto;
  }

  .image-item {
    /*flex-basis: 50%;*/
  }

  /* Home */
  .content.home {
    width: 50%;
  }

  .image-grid.home {
    width: 50%;
    grid-template-columns: auto;
  }

  .image-grid.home .image-item {
    /*flex-basis: 100%;*/
  }

  /* Article */
  .text-container {
    width: 100%;
    padding-right: 0;
    height: unset;
    overflow: unset;
  }

  .image-container {
    width: 100%;
    padding-left: 0;
    height: unset;
    overflow: unset;
  }

}

/* Small devices such as phones (768px or lesser) */
@media only screen and (max-width: 768px) {}

/* Extra-small devices such as small phones (less than 640px) */
@media only screen and (max-width: 640px) {


  .header {
    padding: 0;
    width: 100vw;
    border-bottom: 1px solid #000;
    overflow: hidden;
    height: auto;
    z-index: 1;
  }

  .header .logo {
    display: none;
    line-height: 4.5rem;
    height: 4.5rem;
    padding-right: 4.5rem;
  }

  .header .logo-mobile {
    display: block;
    text-align: center;
  }

  .sublogo,
  .main-nav,
  .icon-sociaux,
  #language {
    display: none;
  }

  .sublogo {
    font-size: 14px;
  }

  #hamburger {
    width: 4.5rem;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    height: 4.5rem;
    line-height: 4.5rem;
    border-left: 1px solid #000;
  }

  .main-nav {
    padding-top: 0;
  }

  .main-nav ul {
    text-align: center;
  }

  .main-nav ul li a {
    font-size: 16px;
    line-height: 2.5rem;
  }

  .main-nav ul li:nth-child(1) {
    border-top: 1px solid #000;
  }

  .main-nav ul li:nth-child(5) {
    margin-top: 0;
    border-top: 1px solid #ccc;
  }

  .header .icon-sociaux {
    text-align: center;
    line-height: 2.5rem;
  }

  #language .external {
    display: block;
    line-height: 2.5rem;
    text-align: center;
    font-size: 16px;
  }

  #language .external.active {
    display: none;
  }

  #body {
    margin-left: 0;
    padding: 7.5rem 0.75rem 1.5rem 0.75rem;
  }

  #body.home {
    flex-direction: column;
  }

  #body .sublogo {
    display: block;
    text-align: center;
    font-style: italic;
  }

  .content.home,
  .image-grid.home,
  .image-grid {
    width: 100%;
    height: auto;
  }

  .content.home {
    padding: 1.5rem 0 3rem 0;
    order: 2;
  }

  .image-grid {
    padding-right: 0;
    grid-template-columns: auto;
    padding-top: 3rem;
  }

  .body-container {
    padding-right: 0;
    padding-top: 1.5rem;
  }


}
