/* https://stackoverflow.com/questions/22000560/creating-a-lamp-pull-chain-in-css-and-html */
/* https://jamesrwilliams.ca/posts/css-wheel-of-fortune/ */
:root {
  --primary-color: rgb(255, 255, 255);
  --secondary-color: rgb(0, 0, 0);
  --third-color: rgb(192, 0, 0);
  --fourth-color: rgb(255, 215, 0);
  --sceneFrame: url("img/global/frameJour.png");
  --sceneBackground: url("img/global/sceneJour.png");
  --diameter: 400px;
  --radius: calc(var(--diameter) / 2);
  --circumference: calc(6.283185307 * var(--radius));
  --numberOfSlices: 12; /* Define this variable, since it was missing */
  --sliceHeight: calc(var(--circumference) / var(--numberOfSlices));
  --sliceOffset: calc(var(--sliceHeight) / 2); /* Corrected reference */
  --rotation: calc(360deg / var(--numberOfSlices));
  --imageWidth: 450px;
  --imageHeight: calc(var(--imageWidth) * 0.5);
}

.noSelect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */ /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit; /* Use this if you want the link to take the color of its parent */
}

li {
  list-style: none;
}

body {
  display: grid;
  grid-template-areas: "header" "section" "footer";
  grid-template-rows: 9vh 85vh 6vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Khand-Regular", Helvetica;
}

.dayswitch {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.interactionBlocker {
  position: fixed;
  cursor: wait;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent overlay */
  z-index: 9999; /* Ensure it's above all other elements */
  transition: transform 0.1s ease-in-out;
}

.hidden {
  display: none;
}

header {
  display: grid;
  grid-template-areas: "name . links";
  grid-template-columns: 10% 80% 10%;
  grid-area: header;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease-in-out;
  z-index: 80;
}

.nom {
  display: flex;
  font-family: "Khand-Bold", Helvetica;
  font-weight: 700;
  font-size: 4em;
  margin-left: 1vw;
  color: var(--secondary-color);
  transition: color 0.3s ease-in-out;
}

#firstName {
  margin-right: 20px;
}

.overlapLink {
  grid-area: links;
  margin-right: 1vw;
}

.link-out {
  cursor: pointer;
  font-family: "Khand-Bold", Helvetica;
  font-weight: 700;
  font-size: 4em;
  border: none;
  color: var(--secondary-color);
  transition: color 0.3s ease-in-out;
  float: right;
}

#links-hide {
  display: flex;
  float: right;
}

#links-reveal {
  display: none;
  grid-template-areas: "link1 link2 link3 link4  linkAnchor";
}

section {
  display: grid;
  position: relative;
  grid-area: section;
  height: 85vh;
  grid-template-areas: "skyBoxLeft skyBoxMiddle skyBoxRight" "contentBackLeft contentBackMiddle contentBackRight" "contentMiddleLeft contentMiddleMiddle contentMiddleRight" "contentFrontLeft contentFrontMiddle contentFrontRight";
  grid-template-rows: 10% 80% 5% 5%;
  grid-template-columns: 45% 10% 45%;
  max-width: 1900px;
  max-height: 850px;
  overflow: hidden;
}

.sceneSkyBox {
  position: absolute;
  grid-column: skyBoxLeft/skyBoxRight;
  grid-row: skyBoxLeft/contentFrontLeft;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.sceneBackground {
  position: absolute;
  height: 100%;
  width: 100%;
  -o-object-fit: fill;
     object-fit: fill;
  pointer-events: none;
}

.sceneFrameBW {
  position: absolute;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 70;
}

.sceneFrame {
  position: absolute;
  height: 100%;
  width: 100%;
  -o-object-fit: fill;
     object-fit: fill;
  pointer-events: none;
}

.projectName {
  grid-column: skyBoxLeft/skyBoxRight;
  position: absolute;
  top: 5%;
  justify-self: center;
  font-family: "Khand-Bold", Helvetica;
  font-weight: 800;
  font-size: 4em;
  display: flex;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  z-index: 23;
}

.spinner-table {
  position: absolute;
  justify-self: end;
  align-self: center;
  right: calc(var(--diameter) / 2 * -1.05);
  height: calc(var(--diameter) - 2px);
  width: calc(var(--diameter) - 2px);
  border-radius: 100%;
  overflow: hidden;
  z-index: 69;
  pointer-events: auto;
}

.dial {
  height: 100%;
  transition: all 1s ease-out;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  background-image: url("../img/global/wheel.png");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 22;
}
.dial .slice {
  position: absolute;
  top: calc(50% - var(--sliceOffset));
  height: var(--sliceHeight);
  left: 50%;
  width: 50%;
  padding-left: 10px;
  display: block;
  transform-origin: left center;
}
.dial .slice .label {
  font-family: "Khand-Regular", Helvetica;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 85%;
  line-height: var(--sliceHeight);
  padding-top: 1px;
  padding-bottom: 1px;
  font-size: 16px;
  font-weight: bold;
  z-index: 23;
}
.dial .slice:nth-child(1) {
  transform: rotate(0deg);
}
.dial .slice:nth-child(2) {
  transform: rotate(-30deg);
}
.dial .slice:nth-child(3) {
  transform: rotate(-60deg);
}
.dial .slice:nth-child(4) {
  transform: rotate(-90deg);
}
.dial .slice:nth-child(5) {
  transform: rotate(-120deg);
}
.dial .slice:nth-child(6) {
  transform: rotate(-150deg);
}
.dial .slice:nth-child(7) {
  transform: rotate(-180deg);
}
.dial .slice:nth-child(8) {
  transform: rotate(-210deg);
}
.dial .slice:nth-child(9) {
  transform: rotate(-240deg);
}
.dial .slice:nth-child(10) {
  transform: rotate(-270deg);
}
.dial .slice:nth-child(11) {
  transform: rotate(-300deg);
}
.dial .slice:nth-child(12) {
  transform: rotate(-330deg);
}
.dial .slice .label.selectedSlice {
  color: var(--fourth-color);
}

.reverse {
  rotate: 180deg;
}

.sceneImageBackground {
  display: grid;
  grid-template-areas: "backgroundLeft backgroundMiddle backgroundRight";
  grid-template-columns: 45% 10% 45%;
  grid-column: contentBackLeft/contentBackRight;
  grid-row: contentBackLeft/contentFrontLeft;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 20;
  pointer-events: none;
}

.backgroundLeft {
  display: grid;
  grid-area: backgroundLeft;
  grid-template-areas: "blockTexte" "blockLien";
  grid-template-rows: 80% 20%;
}

.backgroundBlockTexte {
  scrollbar-width: none;
  overflow-y: auto;
  position: relative;
  left: 3%;
  top: 10%;
  max-width: 95%;
  min-width: none;
  grid-area: blockTexte;
  font-family: "Khand-Bold", Helvetica;
  font-size: clamp(0.8rem, 0.5vw + 1rem, 1.4rem);
  text-align: center;
  z-index: 22;
  pointer-events: all;
  max-height: 51vh;
  background-color: rgba(122, 122, 122, 0.5);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
}
.backgroundBlockTexte .element::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Edge: hides the scrollbar */
}

.backgroundParagrapheTexte {
  display: flex;
  margin-bottom: 5px;
  color: var(--primary-color);
  transition: color 0.3s ease-in-out;
}

.backgroundBlockLien {
  grid-area: blockLien;
  position: relative;
  z-index: 22;
  display: flex;
  justify-content: space-evenly;
}

.backgroundBoutonLien {
  height: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Khand-Bold", Helvetica;
  margin: 5px;
  padding: 0 30px;
  background: var(--primary-color);
  border-radius: 10px;
  color: var(--fourth-color);
  filter: drop-shadow(0 0 0.25rem black);
  pointer-events: auto;
  border: 3px solid var(--fourth-color);
}

.backgroundBoutonLien:hover {
  background-color: var(--third-color);
  transition: background-color 0.3s ease-in-out;
}

.backgroundRight {
  grid-area: backgroundRight;
  display: grid;
  grid-template-areas: "boutonInfo blockCarousel .";
  grid-template-columns: 5% 47% 48%;
}

.backgroundIconInfo {
  display: flex;
  grid-area: boutonInfo;
  z-index: 23;
  flex-direction: column;
  justify-content: space-evenly;
}

.iconInfo {
  position: relative;
  top: -10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
  color: var(--fourth-color);
  border: 3px solid var(--fourth-color);
  background-color: var(--primary-color);
  border-radius: 50%;
  font-size: large;
  font-weight: bold;
  pointer-events: auto;
  transition: background-color 0.3s ease-in-out;
}

.iconInfo::after {
  content: attr(data-bubble);
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: var(--fourth-color);
  padding: 10px;
  border: var(--fourth-color) 2px solid;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: clamp(200px, 10vw, 28vw);
  max-height: clamp(200px, 15vh, 20vh);
}

.iconInfo:hover::after {
  opacity: 1;
  transform: translate(20px, -50%);
}

.backgroundBlockCarousel {
  position: relative;
  left: 20%;
  display: grid;
  grid-area: blockCarousel;
  grid-template-areas: "carouselUp" "carousel" "carouselDown";
}

.blockCarousel {
  grid-area: carousel;
  display: flex;
}

.carousel-container {
  margin: 2vh 0;
  position: relative;
  min-width: 100px;
  width: var(--imageWidth);
  height: var(--imageHeight);
  overflow: hidden;
  border: 1px solid var(--primary-color);
  filter: drop-shadow(0 0 0.25rem black);
}

.carousel {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
  grid-area: blockCarousel;
  position: relative;
  pointer-events: all;
}

.carousel img {
  width: 100%;
}

.button-container {
  height: -moz-fit-content;
  height: fit-content;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.button-container button {
  font-size: small;
  font-weight: 800;
  padding: 10px;
  font-weight: bolder;
  background-color: var(--primary-color);
  color: var(--fourth-color);
  transition: background-color 0.3s;
  z-index: 200;
  pointer-events: auto;
  border-radius: 10px;
  justify-items: center;
  display: flex;
  filter: drop-shadow(0 0 0.25rem black);
  border: 3px solid var(--fourth-color);
}

.button-container button:hover {
  background-color: var(--third-color);
  transition: background-color 0.3s ease-in-out;
}

.button-containerUp {
  grid-area: carouselUp;
  position: relative;
  bottom: -45%;
}

.button-containerDown {
  grid-area: carouselDown;
  position: relative;
  top: -45%;
}

.sceneImageMiddleground {
  display: grid;
  grid-template-areas: "middlegroundLeft middlegroundMiddle middlegroundRight";
  grid-template-columns: 50% 5% 45%;
  grid-column: contentMiddleLeft/contentMiddleRight;
  grid-row: contentMiddleLeft/contentFrontLeft;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 30;
  pointer-events: none;
}

.middlegroundMiddle {
  grid-area: contentMiddleMiddle;
  display: flex;
}

.sceneImageForeground {
  display: grid;
  grid-template-areas: "frontgroundLeft frontgroundMiddle frontgroundRight";
  grid-column: contentFrontLeft/contentFrontRight;
  grid-row: contentFrontLeft/contentFrontLeft;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 40;
  pointer-events: none;
}

.frontgroundLeft {
  grid-area: frontgroundLeft;
  display: flex;
  grid-template-columns: 5% 45% 5% 45%;
  overflow: hidden;
}

#pull-chain {
  display: block;
  position: absolute;
  left: 80px;
  width: 15px;
  z-index: 60;
}

#pull-chain .chain {
  border-left: 2px dotted var(--fourth-color);
  height: 50px;
  transition: height 0.3s ease-in-out;
}

#pull-chain .handle {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  left: -7px;
  z-index: 50;
}

.handle {
  display: flex;
  justify-content: center;
  align-items: center;
}

#pull-chain.pulled .chain {
  height: 75px;
}

.flag {
  position: absolute;
  border-radius: 5px;
  border: var(--fourth-color) 2px solid;
  z-index: 60;
}

#pull-chain2 {
  display: none;
  position: absolute;
  right: 30px;
  width: 15px;
  z-index: 60;
}

#pull-chain2 .chain2 {
  border-left: 2px dotted var(--fourth-color);
  height: 30px;
  transition: height 0.3s ease-in-out;
}

#pull-chain2 .handle2 {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  left: -7px;
  z-index: 50;
}

.handle2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#pull-chain2.pulled2 .chain2 {
  height: 40px;
}

.flag2 {
  position: absolute;
  border-radius: 5px;
  border: var(--fourth-color) 2px solid;
  z-index: 60;
  width: 50px;
}

aside {
  background-color: var(--primary-color);
  transition: background-color 0.3s ease-in-out;
  z-index: 80;
}

.asideleft {
  grid-area: asideleft;
}

.asideright {
  grid-area: asideright;
}

footer {
  display: grid;
  grid-template-areas: "lightswitch lightswitch lightswitch";
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease-in-out;
  z-index: 80;
}

.lightSwitch {
  position: relative;
  justify-self: center;
  grid-area: lightswitch;
}

.flickSwitch {
  display: flex;
  cursor: pointer;
  font-family: "Khand-Bold", Helvetica;
  font-weight: 700;
  font-size: 2em;
  padding: 0 5px;
  color: var(--secondary-color);
  border: 4px solid var(--secondary-color);
  transition: color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Image inside modal */
.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  border: 5px solid white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  cursor: default;
}

/* Responsive modal */
@media (max-width: 600px) {
  .modal-content {
    max-width: 100%;
    max-height: 100%;
  }
}
@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spinning {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(330deg);
  }
}
@keyframes dropDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(300px); /* Adjust based on your design */
    opacity: 0;
  }
}
/* Keyframe animation to rise the images up */
@keyframes riseUp {
  0% {
    transform: translateY(300px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.sceneImageBackground,
.sceneImageMiddleground,
.sceneImageForeground {
  animation-duration: 2s; /* Adjust for speed */
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  opacity: 1;
}

@media (max-width: 1400px) {
  .sceneImageBackground {
    grid-template-columns: 50% 3% 47%;
  }
  .backgroundBlockCarousel {
    left: 10%;
  }
}
@media (max-width: 1200px) {
  .sceneImageBackground {
    grid-template-columns: 45% 1% 54%;
  }
  .backgroundBlockCarousel {
    left: 5%;
  }
}
@media (max-width: 992px) {
  .sceneImageBackground {
    grid-template-columns: 45% 0% 55%;
  }
  #links-reveal {
    grid-template-areas: "link1 link2 linkAnchor" "link3 link4 linkAnchor";
    margin: 0%;
  }
  #link1, #link2, #link3, #link4 {
    font-size: x-large;
    position: relative;
  }
  #link1 {
    grid-area: link1;
    top: 10%;
  }
  #link2 {
    grid-area: link2;
    top: 10%;
  }
  #link3 {
    grid-area: link3;
    bottom: 137%;
  }
  #link4 {
    grid-area: link4;
    bottom: 137%;
  }
  .projectName {
    font-size: 3em;
  }
  .backgroundBlockCarousel {
    left: 0%;
  }
  .iconInfo {
    position: relative;
  }
}
@media (max-width: 768px) {
  #pull-chain {
    left: 40px;
    width: 15px;
  }
  #pull-chain .chain {
    height: 30px;
  }
  #pull-chain.pulled .chain {
    height: 40px;
  }
  .flag {
    width: 60px;
  }
}
@media (max-width: 600px) {
  .backgroundLeft {
    width: 100vw;
  }
  .backgroundRight {
    display: none;
  }
  .backgroundMiddle {
    width: 0;
  }
  .middlegroundLeft {
    width: 98vw;
  }
  .middlegroundRight {
    width: 0;
  }
  .middlegroundMiddle {
    width: 0;
  }
  .frontgroundLeft {
    width: 98vw;
  }
  .frontgroundRight {
    width: 0;
  }
  .frontgroundMiddle {
    width: 0;
  }
  .backgroundLeft {
    contain: layout;
  }
  .backgroundLeft .backgroundBlockCarousel {
    position: absolute;
    display: grid;
    grid-area: blocktexte;
    grid-template-areas: "carouselUp" "carousel" "carouselDown";
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .backgroundLeft .backgroundIconInfo {
    position: absolute;
    top: 28%;
    margin: 0 20px;
    height: 200px;
    justify-content: space-between;
  }
  .backgroundBlockTexte {
    scrollbar-width: none;
    overflow-y: auto;
    top: 2%;
    max-height: 50vh;
  }
  .backgroundBlockTexte .element::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Edge: hides the scrollbar */
  }
  .backgroundBlockLien {
    bottom: 50%;
    grid-area: blockLien;
    position: relative;
    z-index: 22;
    display: flex;
    justify-content: space-evenly;
  }
  .backgroundBoutonLien {
    height: 30%;
  }
  .projectName {
    width: auto;
    font-size: 2em;
    top: 1%;
  }
  .flickSwitch {
    border: none;
  }
  #pull-chain2 {
    display: block;
  }
  .spinner-table {
    position: absolute;
    justify-self: center;
    align-self: flex-end;
    left: 50%;
    transform: translate(0%, 50%);
    bottom: calc(var(--diameter) / 2 * -1.15);
    rotate: 90deg;
  }
  .reverse {
    font-size: 14px;
  }
  @keyframes fadeIn {
    0%, 40% {
      opacity: 0;
    }
    49%, 50% {
      opacity: 1;
    }
    50%, 90% {
      opacity: 1;
    }
    99%, 100% {
      opacity: 0;
    }
  }
  @keyframes fadeOut {
    0%, 40% {
      opacity: 1;
    }
    49%, 50% {
      opacity: 0;
    }
    50%, 90% {
      opacity: 0;
    }
    99%, 100% {
      opacity: 1;
    }
  }
  #firstName {
    animation: fadeIn 5s infinite;
    position: absolute;
  }
  #lastName {
    animation: fadeOut 5s infinite;
    position: absolute;
  }
}/*# sourceMappingURL=style.css.map */