/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

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

html {
	/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
	font-family:
		system-ui,
		'Segoe UI',
		Roboto,
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';
	line-height: 1.15; /* 1. Correct the line height in all browsers. */
	-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
	-moz-tab-size: 4;
	  -o-tab-size: 4;
	     tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
}

/*
Sections
========
*/

body {
	margin: 0; /* Remove the margin in all browsers. */
}

/*
Text-level semantics
====================
*/

/**
Add the correct font weight in Chrome and Safari.
*/

b,
strong {
	font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
	font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/*
Tabular data
============
*/

/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
	border-color: currentcolor;
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
	padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
	vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
	display: list-item;
}

@charset "UTF-8";
/* mixins */
/* responsive */
/* button */
/* paragrpah */
/* grid */
/* functions */
/* fonts */
/* couleurs */
/* global style */
html {
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (min-width: 768px) {
  html {
    font-size: 20px;
  }
}
@media (min-width: 1280px) {
  html {
    font-size: 24px;
  }
}

html.has-mouse {
  cursor: none;
}

html.has-touch {
  cursor: auto;
}

.has-touch .cursor {
  display: none !important;
  pointer-events: none;
}

.has-mouse .cursor {
  display: block;
}

header, body, section, footer {
  margin: 0;
  padding: 0;
}

body {
  background-color: #222;
}

section {
  margin-top: 4rem;
}
@media (min-width: 768px) {
  section {
    margin-top: 6rem;
  }
}
@media (min-width: 1024px) {
  section {
    margin-top: 8rem;
  }
}

/* images et icon pour les navgations */
svg {
  width: 2rem;
  height: 2rem;
}
svg path {
  width: 2rem;
  height: 2rem;
}

.icon {
  width: 2rem;
  height: 2rem;
}

.icon-social {
  width: 3rem;
  height: 3rem;
}
.icon-social:hover {
  scale: 1.2;
}
.icon-social:hover svg path {
  fill: #E11F1F;
}
@media (min-width: 1280px) {
  .icon-social {
    width: 3rem;
    height: 3rem;
  }
}

/* images des sections */
.img-sections {
  position: relative;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 10/10;
  width: calc(100% + 2rem);
  left: -1rem;
  filter: grayscale(100%) brightness(0.7) contrast(1.05);
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .img-sections {
    width: calc(100% + 4rem);
    left: -2rem;
  }
}
@media (min-width: 1024px) {
  .img-sections {
    z-index: -1000;
    width: calc(100% + 12rem);
    left: -8rem;
  }
}
@media (min-width: 1280px) {
  .img-sections {
    margin-bottom: 4rem;
  }
}

figure {
  margin: 0;
}

/* cards */
.card {
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .card {
    margin: 2rem 0;
  }
}
@media (min-width: 1280px) {
  .card {
    margin: 4rem 0;
  }
}

.img-card {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 10/10;
  filter: grayscale(100%);
  margin-bottom: 1rem;
}
.img-card:hover {
  filter: grayscale(0%);
}

.fit {
  -o-object-fit: fill;
     object-fit: fill;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Pour les animations */
.img-sections,
.title-section,
.paragraph,
.cardUp,
.cardDown {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Header */
/* Background Animation */
/* Le background vient d'une vidéo YouTube/codePen => crédits et a été adpaté selon mes besoins */
header {
  width: 100%;
  overflow: hidden;
  place-items: center;
  box-sizing: border-box;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  header {
    place-items: center;
    padding: 0 8rem;
  }
}
@media (min-width: 1024px) {
  header {
    padding: 0 6rem;
  }
}
@media (min-width: 1280px) {
  header {
    padding: 0 8rem;
  }
}

:root {
  --color-bg1: 18, 18, 18;
  --color-bg2: 44, 44, 44;
  --color1: 196, 196, 196;
  --color2: 88, 88, 88;
  --color3: 88, 88, 88;
  --color4: 196, 196, 196;
  --circle-size: 80%;
  --blending: hard-light;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}
@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}
.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  top: 0;
  left: 0;
  z-index: -1000;
}
.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
.gradient-bg .gradients-container {
  filter: url(#goo) blur(80px);
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gradient-bg .g1 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}
.gradient-bg .g2 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}
.gradient-bg .g3 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}
.gradient-bg .g4 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}
.gradient-bg .g5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

/* progress bar */
#progress-bar-container {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.2rem;
  background-color: transparent;
  z-index: 10000;
}

#progress-bar {
  height: 100%;
  background-color: #E11F1F;
  width: 0;
  transition: width 0.1s ease-out;
}

nav, .anchor-nav, .socials {
  position: fixed;
  z-index: 1000;
  padding: 0;
  list-style: none;
  color: #fff;
  font-family: "darkmode-off", sans-serif;
  text-transform: uppercase;
}

/* navigation */
nav {
  left: 2rem;
  margin: 1rem 0;
}

.nav-mobile {
  background-color: #fff;
  border-radius: 2rem;
  position: fixed;
  bottom: -0.5rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-mobile {
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-mobile svg {
  display: flex;
  justify-content: center;
}

.page-mobile--active {
  background-color: #E11F1F;
  border-radius: 3rem;
}
.page-mobile--active svg path {
  fill: #fff;
}

.page {
  display: block;
  text-decoration: none;
  font-family: "darkmode-off", sans-serif;
  font-weight: 100;
  color: #fff;
  padding-bottom: 1rem;
}
.page:hover {
  scale: 1.2;
  color: #E11F1F;
}

.page--active {
  color: #E11F1F;
  font-weight: 600;
}

/* Socials */
.socials {
  right: 1rem;
  display: flex;
  flex-direction: column-reverse;
  position: fixed;
  gap: 1rem;
  width: 3rem;
  height: 3rem;
  align-items: center;
  bottom: 0.8rem;
}
.socials:hover {
  fill: #E11F1F;
}
@media (min-width: 1024px) {
  .socials {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    gap: 2rem;
    top: 0;
    right: 2rem;
  }
}

/* BackToTop */
.back-to-top {
  z-index: 1000;
  position: fixed;
  background-color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 100%;
  bottom: 2rem;
  left: 1rem;
  border: none;
  cursor: pointer;
}
.back-to-top:hover {
  background-color: #E11F1F;
}
@media (min-width: 768px) {
  .back-to-top {
    bottom: 2rem;
    left: 2rem;
  }
}

/* Devices */
.desktop {
  display: none;
}
@media (min-width: 1280px) {
  .desktop {
    display: block;
  }
}

.mobile {
  display: flex;
}
@media (min-width: 1280px) {
  .mobile {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

/* grid */
.grid {
  display: grid;
  padding: 0 1rem;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 768px) {
  .grid {
    padding: 0 8rem;
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 2fr 3fr 1fr 1fr;
    padding: 0 6rem;
  }
}
@media (min-width: 1280px) {
  .grid {
    grid-column-gap: 2rem;
    padding: 0 8rem;
  }
}

/* grid pour les cards */
.grid-card {
  display: grid;
  padding: 0 1rem;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 768px) {
  .grid-card {
    padding: 0 8rem;
    display: grid;
    grid-column-gap: 2rem;
    grid-template-columns: 2fr 2fr;
  }
}
@media (min-width: 1024px) {
  .grid-card {
    padding: 0 6rem;
    grid-template-columns: 6fr 8fr 4fr;
  }
}
@media (min-width: 1280px) {
  .grid-card {
    padding: 0 4rem;
    grid-column-gap: 4rem;
    grid-template-columns: 6fr 8fr 4fr;
  }
}

/* placement grid */
.grid > * {
  grid-column: 1/-1;
}

.grid-start1 {
  grid-column-start: 1;
}

.grid-end1 {
  grid-column-end: 1;
}

.grid-start2 {
  grid-column-start: 2;
}

.grid-end2 {
  grid-column-end: 2;
}

.grid-start3 {
  grid-column-start: 3;
}

.grid-end3 {
  grid-column-end: 3;
}

.grid-start4 {
  grid-column-start: 4;
}

.grid-end4 {
  grid-column-end: 4;
}

.grid-start5 {
  grid-column-start: 5;
}

.grid-end5 {
  grid-column-end: 5;
}

/* flexbox */
.grid-flex {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
}

.flex-start {
  display: flex;
  justify-content: flex-start;
}

/* grid secion */
.scroll-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
}

/* Sélecteurs pour margin */
[data-m] {
  margin: attr(data-m rem);
}

[data-mt] {
  margin-top: attr(data-mt rem);
}

[data-mb] {
  margin-bottom: attr(data-mb rem);
}

[data-ml] {
  margin-left: attr(data-ml rem);
}

[data-mr] {
  margin-right: attr(data-mr rem);
}

[data-mx] {
  margin-left: attr(data-mx rem);
  margin-right: attr(data-mx rem);
}

[data-my] {
  margin-top: attr(data-my rem);
  margin-bottom: attr(data-my rem);
}

footer {
  display: block;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 25dvh;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  footer {
    padding: 0 8rem;
  }
}
@media (min-width: 1024px) {
  footer {
    padding: 0 6rem;
  }
}
@media (min-width: 1280px) {
  footer {
    padding: 0 4rem;
  }
}
footer ul {
  padding: 0;
  margin: 0;
}
footer a {
  display: flex;
  padding: 0.5rem;
  font-family: "darkmode-off", sans-serif;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  footer a {
    display: block;
  }
}

/* typographies */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

.title-header,
.title-header-thin,
.title-big,
.title-big-thin,
.title-medium,
.title-small,
.title-section,
.title-card,
.title-footer {
  color: #fff;
  font-family: "darkmode-off", sans-serif;
  line-height: 1.2;
}

/* titles */
.title-header {
  font-size: 60px;
  color: #fff;
  margin: 4rem 0 1rem 0;
}
@media (min-width: 768px) {
  .title-header {
    font-size: 137px;
  }
}
@media (min-width: 1280px) {
  .title-header {
    font-size: 216px;
  }
}

.title-header-thin {
  font-weight: 100;
}

.title-big {
  font-size: 37px;
  color: #E11F1F;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .title-big {
    font-size: 91px;
  }
}
@media (min-width: 1280px) {
  .title-big {
    font-size: 125px;
  }
}

.title-big-thin {
  font-weight: 100;
  color: #fff;
}

.title-medium {
  font-size: 54px;
}
@media (min-width: 768px) {
  .title-medium {
    font-size: 61px;
  }
}
@media (min-width: 1280px) {
  .title-medium {
    font-size: 71px;
  }
}

.title-section {
  font-size: 36px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .title-section {
    font-size: 41px;
  }
}
@media (min-width: 1280px) {
  .title-section {
    font-size: 47px;
  }
}

.title-section-red {
  color: #E11F1F;
}

.title-section-thin {
  font-weight: 300;
  color: #E11F1F;
}

.title-card {
  font-size: 28px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-decoration: none;
}
@media (min-width: 768px) {
  .title-card {
    font-size: 24px;
  }
}
@media (min-width: 1280px) {
  .title-card {
    font-size: 48px;
  }
}

.text-card {
  font-size: 14px;
  font-family: "darkmode-off", sans-serif;
  color: #fff;
}
@media (min-width: 768px) {
  .text-card {
    font-size: 18px;
  }
}
@media (min-width: 1280px) {
  .text-card {
    font-size: 24px;
  }
}

.text-card-thin {
  font-weight: 100;
}

.title-small {
  font-size: 24px;
}
@media (min-width: 768px) {
  .title-small {
    font-size: 27px;
  }
}
@media (min-width: 1280px) {
  .title-small {
    font-size: 32px;
  }
}

.title-projets {
  display: none;
}

/* paragraph */
.paragraph {
  font-family: "darkmode-off", sans-serif;
  color: #fff;
  line-height: 1.6;
  max-width: 75ch;
  margin-bottom: 2rem;
  font-size: 18px;
}
@media (min-width: 768px) {
  .paragraph {
    font-size: 20px;
  }
}
@media (min-width: 1280px) {
  .paragraph {
    font-size: 24px;
  }
}

.paragraph-bold {
  font-size: 20px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .paragraph-bold {
    font-size: 24px;
  }
}
@media (min-width: 1280px) {
  .paragraph-bold {
    font-size: 28px;
  }
}

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

.btn {
  font-size: 18px;
  background-color: #fff;
  color: #222;
  border: none;
  cursor: pointer;
  display: flex;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  aspect-ratio: 10/10;
  font-family: "darkmode-off", sans-serif;
  border-radius: 100%;
  text-decoration: none;
}
@media (min-width: 768px) {
  .btn {
    font-size: 20px;
  }
}
@media (min-width: 1280px) {
  .btn {
    font-size: 24px;
  }
}
.btn:hover {
  background-color: #E11F1F;
  color: #222;
}
@media (min-width: 1024px) {
  .btn {
    top: calc(100dvh - 5rem);
    right: 2rem;
  }
}

/* cursor */
a, button {
  cursor: none;
}

.link {
  text-decoration: none;
}

/* le cursor est inspiré d'une vidéo YouTube => crédits*/
.cursor {
  position: absolute;
  z-index: 10000;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2);
  transition: transform 200ms ease-in-out;
}

.inner {
  width: 0.5rem;
  height: 0.5rem;
  background-image: url("../assets/images/cursor.svg");
  color: #E11F1F;
  background-size: cover;
  background-position: center;
}

.inner.hover {
  background: #fff;
  width: 2rem;
  height: 2rem;
  mix-blend-mode: difference;
}

.outer {
  border: 2px solid #fff;
  transition: 100ms ease-out;
}

/* loader */
.loader {
  text-align: center;
  place-items: center;
}
.loader p {
  display: flex;
  height: 50dvh;
  justify-content: center;
  align-items: center;
  font-family: "darkmode-off", sans-serif;
  font-size: 2rem;
  color: white;
}
@media (min-width: 1024px) {
  .loader p {
    height: 100dvh;
  }
}

/*# sourceMappingURL=app.css.map*/