body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}
body {
  background: white;
}
.open,
#content {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
}

.lustria,
h1,
h2,
h3,
h4,
h5 {
  font-family: "Lustria", serif;
  font-weight: 400;
  font-style: normal;
  text-align: left;
  hyphens: none;
}

h1.title {
  font-size: 45px;
}

h1.super-title {
  font-size: 55px;
  hyphens: none;
  margin-top: 0;
}
img {
  max-width: 100%;
}
.content-width {
  max-width: 800px;
  margin: auto;
}
.center {
  text-align: center;
  hyphens: none;
}
.justify {
  text-align: justify;
  hyphens: auto;
}
.margin-top,
h1 {
  margin-top: 100px;
}
.margin-top-small,
h2 {
  margin-top: 50px;
}
.margin-top-wide {
  margin-top: 100px;
}

h2 {
  margin-top: 50px;
}
.margin-bottom {
  margin-bottom: 100px;
}
#logo {
  width: 400px;
  margin: 50px;
  max-width: calc(100% - 100px);
}

#logo img {
  display: block;
  max-width: 100%;
  height: auto;
}
iframe {
  width: 100%;
}
html {
  scroll-behavior: smooth;
}
/* -----------------------MEEPLES----------- */
.illustration-container {
  position: relative;
  /* référence pour le positionnement absolu */
}

.meeple-1 {
  position: absolute;
  bottom: -100px;
  left: -200px;
  max-width: 400px;
  width: 100%;
}
.meeple-2 {
  position: absolute;
  bottom: -295px;
  right: -200px;
  height: 400px;
}
.meeple-3 {
  position: absolute;
  bottom: -100px;
  right: -200px;
  width: 400px;
}
.meeple-4 {
  position: absolute;
  bottom: -150px;
  left: -200px;
  height: 300px;
}
.meeple-5 {
  position: absolute;
  bottom: -100px;
  right: -200px;
  height: 350px;
}

#shema {
  display: block;
  display: block;
  margin: 50px auto;
  max-width: 100%;
}
#schema-responsive {
  display: none;
}
.illustration-empty {
  height: 170px;
}
/* -----------------------------------CONTENU------------------------------- */
#content {
  margin: auto;
  text-align: justify;
  font-size: 18px;
  font-weight: 300;
  hyphens: auto;
}
#content p {
  line-height: 28px;
}
#content a {
  color: black;
}

#content a:hover {
  text-decoration-thickness: 2px;
}

i.fa-regular {
  margin-right: 7px;
}
.grid-3070 {
  display: grid;
  grid-template-columns: 30% 70%;
  /* gap: 10px; */
}
/* -----------------------------------BOUTONS------------------------------- */
.button-empty {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(60deg, #ee9f9f, #9fc3cf) border-box;
  color: #000000;
  padding: 10px 10px;
  border: 3px solid transparent;
  border-radius: 40px;
  font-size: 21px;
  max-width: 200px;
  margin: auto;
  margin-bottom: 30px;
  text-align: center;
}

.button-empty:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(235deg, #ee9f9f, #9fc3cf) border-box;
}

.button-full {
  background-image: linear-gradient(
    to right,
    #ab4444,
    #f2a47d,
    #fbae84,
    #ab4444
  );
  box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.75);
  color: white;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 19px;
  margin: auto;
  margin-bottom: 30px;
  text-align: center;
  margin-left: 0;
  margin-top: 40px;
  background-size: 300% 100%;
  moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  max-width: fit-content;
}

.button-full-small {
  background-image: linear-gradient(
    to right,
    #69b2c7ff,
    #c07878ff,
    #c07878ff,
    #e80000ff
  );
  color: white;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
  max-width: 200px;
  text-align: center;
  margin-right: 0;
  margin-top: 40px;
  background-size: 300% 100%;
  moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  float: right;
  border: none;
}

.button-full:hover,
.button-full-small:hover {
  background-position: 100% 0;
  moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.buttonLink {
  display: contents;
}

/* ----------------------------------SLIDER INDEX------------------------------- */

#groupFrames {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 20px;
  gap: 20px;
  position: relative;
}

.frame {
  flex: 0 0 auto;
  width: 100%;
  max-width: 740px;
  scroll-snap-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 21px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.frame:hover {
  transform: scale(1.02);
}

.frame-text-left {
  font-weight: bold;
}

.frame-text-right {
  font-size: 0.95rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

#groupFrames::-webkit-scrollbar {
  display: none;
}

#groupFrames {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#groupFrames::before {
  content: "";
  flex: 0 0 auto;
  width: calc((100vw - 740px) / 2);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px 20px 20px 20px;
  border-radius: 12px;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  font-weight: 300;
  margin: 30px;
  font-size: 16px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.annotation {
  font-size: 12px;
  font-weight: 100;
}
/* ----------------------------FOOTER------------------- */
#copyrights {
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
  font-weight: 300;
  hyphens: auto;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
}
#copyrights a {
  color: #000000;
  font-weight: 300;
}
#copyrights a:hover {
  text-decoration-thickness: 2px;
}
#footer-logo img {
  width: 100px;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 15px;
}
/* -----------------------------------RESPONSIVE------------------------------- */
@media (max-width: 1200px) {
  .meeple-1,
  .meeple-2,
  .meeple-3,
  .meeple-4,
  .meeple-5 {
    position: initial;
  }
  .meeple-2 {
    height: 250px;
    margin: auto;
    display: block;
  }
  .meeple-4 {
    height: 250px;
    margin: auto;
    display: block;
  }
  .meeple-5 {
    height: 250px;
    margin: auto;
    display: block;
    margin-bottom: 150px;
  }
}
@media (max-width: 1000px) {
  .frame {
    width: 70%;
  }
  .content-width {
    padding: 0 30px;
  }
}
@media (max-width: 768px) {
  #logo {
    width: 650px;
    margin: 100px 50px 50px 50px;
    max-width: calc(100% - 100px);
  }
  h1.title {
    font-size: 33px;
    margin-top: 75px;
    text-align: center;
  }
  h1.super-title {
    /* font-size: 33px; */
    margin-top: 75px;
    text-align: center;
  }
  #index-title {
    font-size: 40px;
  }
  .grid-3070 {
    grid-template-columns: 100%;
  }
  .frame-text-left {
    margin-bottom: 30px;
  }
  #schema {
    display: none;
  }
  #schema-responsive {
    display: block;
  }
  #footer-logo img {
    position: inherit;
    width: 100px;
    display: block;
    margin: auto;
  }
  #copyrights {
    margin-bottom: 10px;
    margin-top: 30px;
  }
  .illustration-empty {
    display: contents;
  }
  .meeple-5 {
    margin-bottom: 65px;
    margin-top: 50px;
  }
}
@media (max-width: 550px) {
  #logo {
    width: 300px;
    max-width: calc(100% - 40px);
    margin: auto;
    margin-top: 100px;
  }
}
