/*--------------------------------------------------------------
# Mise en page du site
--------------------------------------------------------------*/
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  margin-left: auto;
  margin-right: auto;
}

body {
  font-family: var(--font);
  font-size: var(--size-body);
  margin: 0 auto;
  color: var(--white-text);
  background-color: var(--dark);
}

header, section, footer {
  max-width: 100%;
}

section {
  width: 80vw;
  margin: 0 auto;
  margin-top: 10vh;
  scroll-margin-top: 10vh;
}

footer {
  margin-top: 10vh;
  height: 20vh;
}

a {
  text-decoration: none;
  color: var(--white-text);
}
a:hover {
  color: var(--yellow-main);
  transition: color 0.2s ease;
}

button {
  color: var(--orange-main);
  text-decoration: none;
  border: 1px var(--orange-main) solid;
  border-radius: 5px;
  background: none;
  outline: none;
  padding: 0.5em 1em;
}
button:hover {
  cursor: pointer;
  background-color: var(--yellow-main);
  color: var(--dark);
  border: 1px var(--yellow-main) solid;
  transition: background-color 0.2s ease, color 0.2s ease, border 0.2s ease;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: var(--weight-l);
}
@media screen and (max-width: 768px) {
  h1, h2, h3 {
    display: flex;
    justify-content: center;
  }
}

p {
  font-family: var(--font);
  font-weight: var(--weight-m);
}

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.rangee {
  display: flex;
  flex-direction: row;
}

.colonne {
  display: flex;
  flex-direction: column;
}

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

.center-h {
  display: flex;
  justify-content: center;
}

.center-v {
  display: flex;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1vw;
}

.left {
  margin-right: auto;
  left: 0;
}

.right {
  margin-left: auto;
  right: 0;
}

.middle {
  top: 50%;
  left: 17%;
  transform: translate(-25%, -50%);
}

.middle-v {
  top: 50%;
  transform: translateY(-50%);
}

.middle-h {
  left: 17%;
  transform: translateX(-25%);
}

.no-marg-top {
  margin-top: 0;
}

.fifty {
  width: 50%;
}

.thirty {
  width: 30%;
}

:root {
  --black: rgb(18, 16, 12);
  --dark: rgb(34, 32, 30);
  --grey: rgb(46, 42, 33);
  --white: rgb(122, 117, 100);
  --yellow-main: rgb(216, 181, 76);
  --orange-main: rgb(202, 151, 61);
  --white-text: rgb(207, 206, 198);
  --black-80: rgb(18, 16, 12, 0.8);
  --dark-80: rgb(34, 32, 30, 0.8);
}

:root {
  --font: "Rubik", sans-serif;
  --weight-m: 400;
  --weight-l: 900;
}

/*--------------------------------------------------------------
# Section accueil
--------------------------------------------------------------*/
#accueil {
  height: 100vh;
  width: 100vw;
  background-image: url("images/accueil/outside-acc.png");
  background-size: cover;
  background-position: center;
}
#accueil #acc-description {
  position: relative;
  height: 100vh;
  width: 100%;
}
#accueil #acc-description img {
  z-index: -33331;
  width: 100%;
  height: 80%;
}
#accueil #acc-description #acc-3d {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  height: 30vh;
  width: 30vw;
  color: var(--white-text);
  background-color: var(--dark-80);
  z-index: 2;
}
#accueil #acc-description #acc-text {
  padding: 2vh;
  padding-left: 3vw;
  height: 100vh;
  color: var(--white-text);
  background-color: var(--black-80);
  z-index: 2;
}
#accueil #acc-description #acc-text h2 {
  font-size: 7vw;
  margin-bottom: 8vh;
}
#accueil #acc-description #acc-text p {
  margin-right: 20vw;
}
#accueil #acc-description #acc-text #acc-btns {
  margin-top: 3vh;
  gap: 2vw;
}
@media (max-width: 768px) {
  #accueil #acc-description #acc-text {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 40vh;
    top: 60%;
  }
  #accueil #acc-description #acc-text div {
    margin-left: 3vw;
  }
  #accueil #acc-description #acc-text div p {
    margin-right: 0vw;
  }
  #accueil #acc-description #acc-text #acc-btns {
    position: absolute;
    top: 75%;
    left: 45%;
  }
}

/*--------------------------------------------------------------
# Section demo du projet
--------------------------------------------------------------*/
#demo #demo-bouton-l, #demo #demo-bouton-r {
  margin-left: 10vw;
  margin-right: 10vw;
  cursor: pointer;
  z-index: 1;
}
#demo #demo-bouton-l button, #demo #demo-bouton-r button {
  width: 3vw;
  height: 3vw;
  background: none;
  border: none;
  padding: 0;
}
#demo #demonstrations {
  display: flex;
  position: relative;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  min-height: 25vh;
  transition: transform 0.4s ease-in-out;
  flex-wrap: nowrap;
}
#demo #demonstrations .demo-vid {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#demo #demonstrations .demo-vid video {
  max-width: 70vw;
  max-height: auto;
  width: 60vw;
  height: auto;
}

/*--------------------------------------------------------------
# Section footer
--------------------------------------------------------------*/
#footer {
  background-color: var(--black);
  justify-content: space-around;
}
#footer #foot-socials {
  gap: 2vw;
}
#footer #foot-socials a img {
  width: 2vw;
  height: auto;
}

@media (max-width: 768px) {
  #footer #foot-socials a img {
    width: 3.5vw;
  }
}
/*--------------------------------------------------------------
# Section galerie d'images
--------------------------------------------------------------*/
#galerie .gal-imgs img {
  max-width: 20vw;
}

.gal-imgs {
  max-width: 100%;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.gal-imgs img {
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gal-imgs img:hover {
  transform: scale(1.05);
}

.gal-overlay {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9;
  background-color: var(--black-80);
  animation: fadeIn 0.3s ease;
}
.gal-overlay.closing {
  animation: fadeOut 0.3s ease forwards;
}

.gal-modal {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.3s ease;
}
.gal-modal.closing {
  animation: zoomOut 0.3s ease forwards;
}

.gal-modal-img {
  max-width: 80vw;
  width: 70vw;
  max-height: 80vh;
  object-fit: contain;
}

.gal-close-btn {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  top: 20px;
  right: 20px;
  z-index: 10;
  cursor: pointer;
  background-color: var(--dark-80);
  border-radius: 10px;
  border: none;
  font-size: 40px;
  color: var(--white-text);
  transition: transform 0.2s ease;
}
.gal-close-btn:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes zoomOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}
@media (max-width: 768px) {
  #galerie .gal-imgs {
    grid-template-columns: 1fr 1fr;
  }
  #galerie .gal-imgs img {
    max-width: 40vw;
  }
}
/*--------------------------------------------------------------
# Section header
--------------------------------------------------------------*/
#header {
  width: 100vw;
  height: 5vh;
  background-color: var(--black-80);
  z-index: 1000;
}
#header div {
  height: 100%;
}
#header div nav {
  gap: 2vw;
}

/*--------------------------------------------------------------
# Section histoire du projet et prototypes
--------------------------------------------------------------*/
#histoire {
  width: 100%;
}
#histoire h2 {
  padding-left: 10vw;
}
#histoire #his-bouton-l, #histoire #his-bouton-r {
  height: 80%;
  background-color: var(--black-80);
}
#histoire #his-bouton-l button, #histoire #his-bouton-r button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 3vw;
  height: 100%;
}
#histoire #his-bouton-l button img, #histoire #his-bouton-r button img {
  height: auto;
}
#histoire .his-bouton {
  z-index: 3;
}
#histoire #his-bouton-l {
  border-radius: 0 10px 10px 0;
}
#histoire #his-bouton-r {
  border-radius: 10px 0 0 10px;
}
#histoire button:hover {
  cursor: pointer;
}
#histoire #historique {
  position: relative;
  overflow: hidden;
  width: 100%;
}
#histoire #historique #his-etapes {
  display: flex;
  transition: transform 0.3s ease;
}
#histoire #historique #his-etapes .his-etape {
  margin-right: 2vw;
  margin-left: 6vw;
  width: 35vw;
  min-height: 70vh;
  max-height: 85vh;
  padding-top: 2vh;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: var(--grey);
}
#histoire #historique #his-etapes .his-etape p {
  padding: 0 4vw;
}
#histoire #historique #his-etapes .his-etape img {
  width: 90%;
  height: auto;
  background-color: var(--grey);
}

@media screen and (max-width: 768px) {
  #histoire #his-bouton-l button, #histoire #his-bouton-r button {
    width: 5vw;
    height: 100%;
  }
  #histoire #historique #his-etapes .his-etape {
    width: 80vw;
  }
}
/*--------------------------------------------------------------
# Section reflexion finale
--------------------------------------------------------------*/
#ref-text {
  text-align: center;
  margin-left: 20vw;
  margin-right: 20vw;
}

#ref-button {
  margin-top: 5vh;
}/*# sourceMappingURL=style.css.map */