/* General */
html {
  scroll-behavior: smooth !important;
}

/* General */

@font-face {
  font-family: "BDSupper-Bold";
  src: url("../police/BDSupper-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "BDSupper-Regular";
  src: url("../police/BDSupper-Regular.ttf") format("truetype");
}


header {
  margin-left: 8%;
  margin-right: 8%;
}

body {
  background-image: url(../img/bg/totaleee.svg);
  width: 100%;
  background-size: cover;
  overflow-x: hidden;
}

section {
  margin-left: 8%;
  margin-right: 8%;
  margin-bottom: 10%;
  display: flex;
}

#respcv{
  display: none;
}

h3 {
  font-family: "BDSupper-Regular";
  color: #3a3b3b;
  font-size: calc(12px + 0.9vw);
}

#introduction,
#presentation,
#competence,
#hobbies,
#contact,
#cv,
#travaux {
  flex-direction: column;
}

/* ================= BOUTON ================ */

.button {
  display: inline-block;
  color: #3a3b3b;
  border: 1px solid #3a3b3b;
  border-radius: 1.5em;
  padding: 0.5em 1.5em;
  background: #ffffff00;
  transition: 0.2s;
  font-family: 'Quicksand', sans-serif;
  margin: auto;
  font-size: calc(11px + 0.5vw);
}

.button:hover {
  color: #9998c2;
  transform: translate(-0.25rem, -0.25rem);
  background: #ffffff00;
  box-shadow: 0.25rem 0.25rem #ffffff00;
  border: 2px solid #9998c2;
}

.button:active {
  transform: translate(0);
  box-shadow: none;
}

/* ============ NAVBAR ============  */

/* == BASE == */
li {
  list-style: none;
}
a {
  text-decoration: none;
}

.bx {
  font-size: 2.5rem;
}
.container {
  padding: 0 2rem;
}

/* == HEADER == */

#signature {
  font-family: "BDSupper-Regular";
  font-size: calc(10px + 0.6vw);
  margin-right: 2%;
  background-color: #3a3b3b;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 0, 0, 0);
}
.dl {
  font-size: 2.5rem;
  background: #fbfbfb;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-items {
  display: flex;
}

.nav-item {
  margin: 0 0.8rem;
  margin-right: 0%;
}

.nav-link {
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  position: relative;
  background: #fbfbfb;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* On cache le burger */
.menu-toggle {
  display: none;
}

.nav-item img {
  display: none;
}

.bx-menu,
.bx-x {
  cursor: pointer;
  background: #3a3b3b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: none !important;
}

/* == DL == */
.dl {
  display: flex;
}

.dl input.toggle-button {
  display: none;
}

.dl label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 22px;
  border: 1.5px solid #3a3b3b;
  border-radius: 25px;
  cursor: pointer;
  transition: background 300ms ease-in;
}

.dl label:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1.5px solid #3a3b3b;
  border-radius: 100%;
  transition: background 300ms ease-in, left 300ms ease-out;
}

.dl input.toggle-button:checked + label {
  background: #444;
}

.dl input.toggle-button:checked + label:before {
  background: #f0f0f0;
  left: 30px;
}

/* ============ INTRO ============  */

.inttitre span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #cccae0 50%);
  max-width: 100%;
}

#introduction {
  margin-top: 10%;
  max-width: 100%;
  height: auto;
}

.inttitre {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1fr;
  grid-template-rows: calc(40px + 4vw) calc(15px + 3.5vw) calc(15px + 3vw) calc(
      10px + 1.5vw
    ) calc(70px + 4vw);
  gap: 1%;
}

.int {
  display: flex;
  color: #3a3b3b;
}

/* Portfolio */
.intun {
  grid-column: 1/3;
  /* Police */
  font-size: calc(15px + 4vw);
  font-family: "BDSupper-Regular";
  -webkit-text-stroke: 1px #3a3b3b;
  color: hsla(240, 100%, 50%, 0);
  align-items: flex-start;
}

/* Logo */
.intdeux {
  display: flex;
  grid-column: 3/5;
  grid-row: 1/6;
  justify-content: flex-end;
  align-items: center;
}

.inttitre img {
  height: 100%;
}

/* Design */
.inttrois {
  font-family: "BDSupper-Bold";
  font-size: calc(11px + 3vw);
  align-items: flex-end;
}

/* Web */
.intquatre {
  font-size: calc(9px + 2.2vw);
  font-family: "BDSupper-Bold";
  align-items: flex-end;
  margin-bottom: 1%;
}

/* Illustration */
.intcinq {
  grid-column: 1/3;
  font-size: calc(12px + 3.5vw);
  font-family: "BDSupper-Bold";
  align-items: flex-end;
}

/* Graphisme  */
.intsix {
  grid-column: 1/3;
  font-size: calc(8px + 2vw);
  font-family: "BDSupper-Bold";
  align-items: flex-end;
}

/* Paragraphe */
.intsept {
  grid-column: 1/3;
  font-family: 'Quicksand', sans-serif;
  font-size: calc(11px + 0.5vw);
  align-items: center;
}

/* ================= PRESENTATION ================ */

/* Titre */

.titre_presentation {
  display: flex;
  justify-content: space-around;
  margin-top: 5%;
  margin-bottom: 13%;
}

#tpresentation {
  max-width: 50vw;
}

/* Contenu */

.contenu_presentation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: calc(60px + 5vw) calc(15px + 3.5vw) calc(15px + 3.5vw) calc(
      15px + 3.5vw
    );
  gap: 1%;
}

.pre {
  display: flex;
  align-items: center;
}

.preun {
  display: flex;
  grid-row: 1/5;
}

.preun img {
  max-width: 100%;
  height: 120%;
}

.predeux span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #cccae0 50%);
  max-width: 100%;
}

.predeux p {
  text-align: justify;
}

p {
  font-family: 'Quicksand', sans-serif;
  font-size: calc(11px + 0.5vw);
}

.i {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 6%;
  padding-right: 3%;
}
img {
  height: 60%;
}

#bcinq {
  margin-bottom: 1%;
}

/* ================= CV ================ */
/* Titre */

.titre_cv:not(body) {
  display: flex;
  justify-content: center;
  margin-top: 5%;
  margin-bottom: 5%;
  margin-left: unset;
  margin-right: unset;
}

#tcv {
  width: 100vw;
}

/* Sous-titre */

.cvrosace {
  display: flex;
  justify-content: center;
  margin-top: 5%;
  align-items: center;
}

.sstitre_cv {
  display: flex;
  justify-content: space-around;
  font-family: "BDSupper-Regular";
  color: #3a3b3b;
  margin-left: 30%;
  margin-right: 30%;
  margin-bottom: 5%;
  align-items: center;
}

.sstitre_cv img {
  margin-left: 10%;
  margin-right: 10%;
  height: calc(8px + 3vh);
}

/* Timeline */

.timeline {
  display: grid;
  grid-template-columns: 1fr 0.05fr 1fr;
  grid-template-rows: repeat(1/8, auto);
  gap: 1vh;
}

.timeline div {
  font-family: 'Quicksand', sans-serif;
  font-size: calc(11px + 0.5vw);
  color: #3a3b3b;
  height: 100%;
  margin-top: 3%;
}

.cvdeux {
  grid-column: 2/3;
  grid-row: 1/8;
}

.surlignage {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #cccae0 50%);
  max-width: 100%;
}

#i {
  display: flex;
  flex-direction: column;
  padding-left: 1vw;
}

#p {
  display: flex;
  flex-direction: column;
  padding-right: 1vw;
}

#p p {
  text-align: right;
}

p {
  margin-top: 3%;
  margin-bottom: 0%;
  font-size: calc(11px + 0.5vw);
}

ul {
  margin-top: 1%;
  padding-left: 0;
  font-size: calc(11px + 0.5vw);
  font-family: 'Quicksand', sans-serif;
}

.cvdeux hr {
  background-color: #3a3b3b;
  border: none;
  width: 0.3em;
  border-radius: 20px;
  animation: draw1 3s linear forwards;
  animation-delay: calc(var(--scroll) * -3s);
  /*animation-play-state: paused;*/
}

@keyframes draw1 {
  from {
    height: 0%;
  }
  to {
    height: 100%;
  }
}

hr {
  background-color: #3a3b3b;
  border: none;
  height: 0.2em;
  border-radius: 20px;
  margin-top: 3%;
  animation: draw2 2s linear forwards;
}

#p hr {
  margin-right: 0;
}

#i hr {
  margin-left: 0;
}

@keyframes draw2 {
  from {
    width: 0%;
  }
  to {
    width: 50%;
  }
}
/* ================= PRESTATION ================ */

/* Contenu */

#prestation {
  display: flex;
  justify-content: space-around;
}

.presta {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.presta p {
  margin-left: 5%;
  margin-right: 5%;
  height: 50px;
  font-family: 'Quicksand', sans-serif;
  color: #3a3b3b;
  text-align: center;
  font-size: calc(11px + 0.5vw);
}

.presta h3 {
  text-align: center;
}

#iweb {
  max-width: 30%;
  max-height: 30%;
  transform: rotate(15deg);
}

.presta img {
  max-width: 40%;
  max-height: 40%;
  height: auto;
  margin: auto;
  margin-bottom: 10%;
}

/* ================= COMPETENCES ================ */

/* Titre */

#titre_competences {
  display: flex;
  justify-content: space-around;
  margin-top: 5%;
  margin-bottom: 10%;
}

#tcompetences {
  max-width: 40vw;
}

/* Contenu */

#contenu_competences {
  display: flex;
  align-items: center;
  justify-content: space-around;
  align-items: stretch;
}

.lc {
  display: flex;
  flex-direction: column;
  width: 30%;
  align-items: center;
  flex: 1;
}

.lc h3 {
  padding-bottom: 5%;
}

.lc ul {
  font-family: 'Quicksand', sans-serif;
  font-size: calc(11px + 0.5vw);
  list-style: none;
  text-align: center;
  color: #3a3b3b;
  padding: 0%;
  flex: 1;
}

.lc img {
  width: auto;
  height: calc(8px + 3vh);
  padding-bottom: 5%;
}

/* ================= HOBBIES ================ */

/* Partie titre */

#titre_hobbies {
  display: flex;
  justify-content: space-around;
  margin-top: 5%;
  margin-bottom: 10%;
}

#thobbies {
  width: 35vw;
}

/* Partie contenu */

#contenu_hobbies {
  display: flex;
  justify-content: space-around;
}

.ih,
.ihth {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.ih img,
.ihth img {
  max-width: 40%;
  max-height: 40%;
  height: auto;
  margin: auto;
}

#icinema {
  transform: rotate(-10deg);
}

.ch h3 {
  margin-top: 0%;
}
/* ================= TRAVAUX ================ */

.tata {
  display: none;
}

/* Partie titre */

#titre_travaux {
  display: flex;
  justify-content: space-around;
  margin-bottom: 5%;
}

#ttravaux {
  width: 100vw;
}

/*Tabs*/

.tabs {
  padding-top: 8vh;
  display: flex;
  flex-wrap: wrap;
}

.tabs label {
  display: inline-block;
  --hover-bg: #ffffff00;
  --hover-text: #9998c2;
  color: #3a3b3b;
  border: 1px solid #3a3b3b;
  border-radius: 1.5em;
  padding: 0.5em 1.5em;
  background: #ffffff00;
  transition: 0.2s;
  font-family: 'Quicksand', sans-serif;
  margin: auto;
  font-size: calc(11px + 0.5vw);
}

.tabs label:hover {
  color: #9998c2;
  transform: translate(-0.25rem, -0.25rem);
  background: #ffffff00;
  border: 2px solid #9998c2;
}

.tabs label:active {
  transform: translate(0);
  box-shadow: none;
}

.tabs .tab {
  order: 99;
  flex-grow: 1;
  width: 100%;
  display: none;
  padding: 1rem;
}

.tabs input[type="radio"] {
  display: none;
}

.tabs input[type="radio"]:checked + label {
  color: #9998c2;
  transform: translate(-0.25rem, -0.25rem);
  background: #ffffff00;
  border: 2px solid #9998c2;
  font-weight: 700;
}

.tabs input[type="radio"]:checked + label + .tab {
  display: block;
}

@media (max-width: 45em) {
  .tabs .tab {
    width: calc(100% - 2rem);
    margin: 0 0rem;
  }
  .tabs label {
    order: initial;
  }
  .tabs label {
    margin-top: 0.2rem;
  }

  .tabs label {
    display: block;
    width: auto;
  }
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1%;
}

.grid div {
  border-radius: 3px;
  background-color: #cccae0;
  transition: all 100ms ease-in-out;
  width: 100%;
  padding-bottom: 100%;
  position: relative;
}

.tab img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

/* Effer hover */

.grid div:hover {
  transform: scale(1.02);
  transition: all 0.2s ease-out;
  box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);
  top: -4px;
  border: 1px solid #cccccc;
}

/* ================= CONTACT ================ */
/* Titre  */

#tcontact {
  display: flex;
  flex-direction: column;
  color: #3a3b3b;
  text-align: center;
}

#tcontact,
h2 {
  font-family: "BDSupper-Regular";
  font-size: calc(12px + 2vw);
}

#tcontact p {
  margin: auto;
  font-family: 'Quicksand', sans-serif;
  font-size: calc(11px + 0.5vw);
  margin-top: 0%;
  margin-bottom: 1.2%;
}

/* Bouton */

#bcontact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button {
  display: flex;
  justify-content: center;
  /* Taille du bouton */
  padding: 0.6em 1.9em;
  margin: 0.4em;
  flex: 1;
  flex-basis: auto;
}

#contactrosace {
  display: flex;
  justify-content: center;
  margin-top: 5%;
  align-items: center;
  height: 3em;
}
/* ================= FOOTER ================ */

footer p {
  text-align: center;
  margin-bottom: 5%;
  font-size: calc(11px + 0.5vw);
}