:root {
  --perspective: 100;
  --bg-color: #fff;
  --font-color: #000;
  --font-color-secondary: #4a1500;
  --font-size: 17px;
  --height-menu: 140px;
  --highlight: #ffff00bc;
  --max-width: 700px;
  --breakpoint-small: 960px;
  --gap-section: 40px;
  --font-family: 'Quicksand';
  --font-family-secondary: 'Barriecito';
}

html {
  font-size: var(--font-size, 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-family, "Quicksand"), sans-serif;
  background-color: var(--bg-color, #fff);
  color: var(--font-color-secondary, #4a1500);
  font-weight: 300;
  line-height: 1.4;
}

* {
  box-sizing: border-box;
}

.grecaptcha-badge {
  display: none;
}

.block-text {
  max-width: 450px;
  line-height: 1.618;
}

.highlight {
  background-color: var(--highlight, rgba(255, 255, 0, 0.831372549));
}

.button-next {
  position: absolute;
  left: 50vw;
  bottom: 15vh;
  height: 32px;
  width: 32px;
  margin: -20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0, .2);
  background-color: rgba(0,0,0, .03);
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>') center/10px no-repeat;
  pointer-events: all;
}
.button-next::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 50%;
}
footer .button-next {
  transform: rotate(180deg);
}
@media screen and (width <= 440px) {
  .button-next {
    bottom: 12vh;
    right: 24vw;
  }
}

.title,
.title-inverse {
  display: inline-block;
  padding: 0 10px;
  font-size: 2.1rem;
  font-family: var(--font-family-secondary, "Alfa Slab One"), Impact, Arial, sans-serif;
}

.title h2 {
  background: var(--bg-color, #fff);
  padding: 0 10px;
}

.title-inverse {
  color: var(--bg-color, #fff);
  background: var(--font-color, #000);
  line-height: 1.2;
}

/* PARALLAX */
[parallax] {
  transform: translate3d(var(--x, 0), var(--y, 0), calc(var(--z, 0) * 1px)) scale(calc(1 + var(--z, 0) * -1 / 100));
  will-change: transform;
}

input::placeholder {
  opacity: .4;
  font-family: var(--font-family-secondary, "Alfa Slab One"), Impact, Arial, sans-serif;
}

main {
  position: absolute;
  overflow: hidden auto;
  scroll-behavior: smooth;
  perspective: calc(var(--perspective, 100) * 1px);
  perspective-origin: 50vw 50vh;
  inset: 0;
}

header,
section,
footer {
  display: flex;
  flex-wrap: wrap;
  transform-style: preserve-3d;
  margin: 0 auto;
  min-height: 100vh;
}
@media screen and (width <= 960px) {
  header,
  section,
  footer {
    max-width: var(--max-width, 700px);
  }
}
/* 1er si 1 element */
header > *:first-child:last-child,
section > *:first-child:last-child,
footer > *:first-child:last-child {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  align-items: flex-start;
  justify-content: center;
  justify-content: flex-start;
  transform-style: preserve-3d;
}
header > *:first-child:last-child > *,
section > *:first-child:last-child > *,
footer > *:first-child:last-child > * {
  width: 50%;
  padding-top: var(--height-header, 100px);
}

/* 1er si 3 elements */
header > *:first-child:nth-last-child(n+3),
section > *:first-child:nth-last-child(n+3),
footer > *:first-child:nth-last-child(n+3) {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 var(--gap-section, 40px);
  margin: 0 0 calc(var(--gap-section, 40px) * 2);
  transform-origin: bottom;
}

/* 2eme et 3eme si 3 elements sinon 1er et 2eme */
header > *:nth-child(2):nth-last-child(n+1),
section > *:nth-child(2):nth-last-child(n+1),
footer > *:nth-child(2):nth-last-child(n+1) {
  width: 50%;
  text-align: right;
  transform-origin: top right;
  padding: 0 calc(var(--gap-section, 40px) / 2) 0 0;
}
header > *:nth-child(3):nth-last-child(n+2),
section > *:nth-child(3):nth-last-child(n+2),
footer > *:nth-child(3):nth-last-child(n+2) {
  width: 50%;
  text-align: left;
  transform-origin: top left;
  padding: 0 0 0 calc(var(--gap-section, 40px) / 2);
}


/* MENU */

.menu {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--height-menu, 150px);
  top: 0;
  background-color: var(--bg-color, #fff);
  margin-bottom: calc(var(--height-menu, 140px) * -1);
  font-size: 1.24rem;
  font-weight: 200;
  z-index: 500;
}
.menu .section {
  width: initial;
}
.menu--backdropEffect {
  background-color: transparent;
  background-image: radial-gradient(transparent 1px, var(--bg-color) 1px);
  background-size: 4px 4px;
  backdrop-filter: saturate(50%) blur(4px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.9215686275);
}
.menu .item {
  position: relative;
  text-decoration: none;
  color: inherit;
  margin: 0 20px;
}
.menu .item::after {
  position: absolute;
  content: attr(data-content);
  top: 0;
  left: 0;
  height: 0;
  background-color: var(--font-color, #000);
  color: var(--bg-color, #fff);
  overflow: hidden;
  transition: 0.1s;
  will-change: height;
}
.menu .item:hover::after {
  height: 100%;
  transition: 0.3s;
  transform: translate3d(0, 0, 0);
}
.menu .item::before {
  display: none;
}
.menu .item--inverse {
  color: var(--bg-color, #fff);
  background-color: var(--font-color, #000);
}
.menu .item--inverse::after {
  color: var(--font-color, #000);
  background-color: var(--bg-color, #fff);
  height: 100%;
}
.menu .item--inverse:hover::after {
  height: 0;
}


/* CAROUSEL */

.carousel {
  --duration: .85s;

  overflow: hidden;
  height: 300px;
}
.carousel li {
  display: flex;
  min-height: 300px;
  transition: var(--duration, 0.2s);
  transform-origin: left;
  opacity: 0;
}
.carousel li p {
  min-width: calc(100% + 50px);
  padding-right: 50px;
  transition: inherit;
}
.carousel .carousel-next {
  position: absolute;
  font-family: var(--font-family-secondary);
  pointer-events: all;
  cursor: pointer;
  top: 220px;
  left: 0;
}
.carousel .carousel-next:hover {
  font-weight: bolder;
}
.carousel .carousel-next::before {
  content: "";
  position: absolute;
  background-color: transparent;
  inset: 0;
}
.carousel #fnac-darty:checked ~ li {
  transform: scale(0.8) translateY(0%);
}
.carousel #fnac-darty:checked ~ li.fnac-darty__content {
  opacity: 1;
  transform: scale(1);
}
.carousel #marie:checked ~ li,
.carousel #famileo:checked ~ li {
  transform: scale(0.8) translateY(-100%);
}
.carousel #marie:checked ~ li.famileo-marie__content,
.carousel #famileo:checked ~ li.famileo-marie__content {
  opacity: 1;
  transform: scale(1) translateY(-100%);
}
.carousel #famileo:checked ~ .famileo-marie__content p {
  transform: scale(0.8);
}
.carousel #famileo:checked ~ .famileo-marie__content p:nth-child(1) {
  opacity: 1;
  transform: scale(1) translateX(0%);
}
.carousel #marie:checked ~ .famileo-marie__content p {
  opacity: 0;
  transform: scale(0.8) translateX(-100%);
}
.carousel #marie:checked ~ .famileo-marie__content p:nth-child(2) {
  opacity: 1;
  transform: scale(1) translateX(-100%);
}
.carousel #startup:checked ~ li,
.carousel #freelance:checked ~ li {
  transform: scale(0.8) translateY(-200%);
}
.carousel #startup:checked ~ li.freelance-startup__content,
.carousel #freelance:checked ~ li.freelance-startup__content {
  opacity: 1;
  transform: scale(1) translateY(-200%);
}
.carousel #freelance:checked ~ .freelance-startup__content p {
  transform: scale(0.8);
}
.carousel #freelance:checked ~ .freelance-startup__content p:nth-child(1) {
  opacity: 1;
  transform: scale(1) translateX(0%);
}
.carousel #startup:checked ~ .freelance-startup__content p {
  opacity: 0;
  transform: scale(0.8) translateX(-100%);
}
.carousel #startup:checked ~ .freelance-startup__content p:nth-child(2) {
  opacity: 1;
  transform: scale(1) translateX(-100%);
}
.carousel #fnac-darty:checked ~ li p,
.carousel #famileo:checked ~ li p,
.carousel #freelance:checked ~ li p {
  transition: var(--duration, 0.2s) 0;
}


/* CONTACT */

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - 50px);
  background: var(--bg-color, #fff);
  z-index: 20;
}
.form {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  width: 100%;
  padding: 20px;
}
.form .line {
  position: relative;
  display: flex;
  flex-direction: row;
}
.form .line:not(:last-child) {
  margin-bottom: 25px;
}
.form .line .input {
  position: relative;
  flex: 1;
  width: 100%;
}
.form .line .input input,
.form .line .input textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 300;
  transition: 0.5s;
}
.form .line .input textarea {
  height: 120px;
  outline: none;
  resize: none;
  font-family: inherit;
}
.form .line .input button,
.form .line .input input[type=submit] {
  border: none;
  padding: 0 10px;
  color: var(--bg-color, #fff);
  background: var(--font-color, #000);
  font-family: var(--font-family-secondary), Impact, Arial, sans-serif;
  font-size: 1.3rem;
  transition: 0.1s;
  width: auto;
  border-radius: 0;
  cursor: pointer;
}
.form .line .input button:hover,
.form .line .input input[type=submit]:hover {
  background-color: var(--bg-color, #fff);
  color: var(--font-color, #000);
}
.form .line .input.input-right {
  text-align: right;
}
.form .line .input:first-child:not(:last-child) {
  margin-right: -1px;
}
.form .line .input:first-child:not(:last-child) input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.form .line .input:last-child:not(:first-child) input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#contact .title {
  margin: 0 0 1rem;
}
#contact .form {
  margin: 0 auto;
  max-width: 400px;
}


/* PRESENTATION */

.presentation {
  position: relative;
  z-index: 10;
}
@media screen and (width <= 960px) {
  .presentation {
    z-index: initial;
  }
}
.presentation__title {
  --z: -200;
  font-size: 2.6rem;
}
.presentation__name {
  --z: -300;
  font-size: 1.2rem;
}
.presentation__name h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.presentation__name b {
  font-family: var(--font-family-secondary);
}
.presentation__name::after {
  content: "";
  position: absolute;
  background-color: var(--bg-color, #fff);
  height: 35vh;
  inset: 0;
  z-index: -1;
}
.presentation__technos {
  --z: -100;
  background-color: var(--bg-color, #fff);
  border-radius: 1rem;
  font-size: 1.2rem;
  margin-top: -20px;
}


/* ABOUT */

.about {
  margin-top: 80vh;
  margin-bottom: 140vh;
}
.about__title {
  --z: -550;
}
@media screen and (width <= 960px) {
  .about__title {
    writing-mode: sideways-lr;
    width: auto !important;
    margin-right: 15vw;
  }
}
.about__content {
  --z: -200;
}


/* EXPERIENCES */

.experiences {
  pointer-events: none;
}
.experiences label {
  pointer-events: all;
  cursor: pointer;
}

.experiences__title {
  --z: -40;
  margin: 0;
}
.experiences__menu {
  --z: -200;
  font-weight: 300;
  font-size: 1.2rem;
  font-family: var(--font-family-secondary);
}
.experiences__description {
  --z: -100;
}
.experiences .button-next {
  font-size: 1.2rem;
}


/* COMPETENCES */

.competences {
  margin-top: 40vh;
}
.competences__title {
  --z: -40;
}
@media screen and (width <= 960px) {
  .competences__title {
    writing-mode: vertical-rl;
    width: auto !important;
    text-align: left;
  }
}
.competences__content {
  --z: -110;
}
@media screen and (width <= 960px) {
  .competences {
    flex-direction: row-reverse;
  }
}
