/******************************************************************************************/
/***** Variables *************************************************************************/
/****************************************************************************************/
:root {
   /***** hauteur header ****************************************************************/
   --big-header-height: 198px;
   --small-header-height: 72px;
   --header-height: var(--big-header-height);

   /***** largeur max *******************************************************************/
   --outer-width: 100vw;

   /***** Couleurs paramétrées par le thème (JS - setThemeColor) ************************/
   /*background normal*/
   --theme-background-color: #fff;
   /*background inversé*/
   --theme-background-color-r: #fff;
   /*background un peu transparent inversé*/
   --theme-background-transparent-color-r: #fff;
   /*backgrounds très transparent*/
   --theme-background-transparent-max-color-1: #fff;
   --theme-background-transparent-max-color-2: #fff;
   --theme-background-transparent-max-color-3: #fff;
   /*texte normal*/
   --theme-text-color: #fff;
   /*texte inversé*/
   --theme-text-color-r: #fff;

   /***** Couleurs paramétrées par le thème (JS - setHeaderColor) ************************/
   /*dégradé horizontal animé header*/
   --theme-gradient-color-start: #fff;
   /*var(--gradient-color-start-2)*/
   /*dégradé vertical header*/
   --theme-mask-gradient-color: #fff;
   /*var(--mask-gradient-color-2)*/
   /*dégradé horizontal très transparent*/
   --theme-gradient-color: #fff;
   /*var(--gradient-color-2)*/
   /*dégradé horizontal transparence min*/
   --theme-gradient-color-opacity-min: #fff;
   /*var(--gradient-color-opacity-min-1)*/

   /***** Couleurs paramétrées par le thème (JS - setMainColor) *************************/
   /*couleur d'accentuation*/
   --theme-main-color: #fff;
   /*var(--orange-color)*/

   /***** Thème DARK ********************************************************************/
   --dark-background-color: var(--gray-color);
   --dark-background-color-r: var(--white-color);
   --dark-background-transparent-color-r: var(--white-transparent-color);
   --dark-background-transparent-max-color-1: var(--gray-transparent-max-color-1);
   --dark-background-transparent-max-color-2: var(--white-transparent-max-color-2);
   --dark-background-transparent-max-color-3: var(--white-transparent-max-color-3);
   --dark-text-color: var(--white-color);
   --dark-text-color-r: var(--gray-color);

   /***** Thème LIGHT *******************************************************************/
   --light-background-color: var(--white-color);
   --light-background-color-r: var(--gray-color);
   --light-background-transparent-color-r: var(--gray-transparent-color);
   --light-background-transparent-max-color-1: var(--white-transparent-max-color-1);
   --light-background-transparent-max-color-2: var(--gray-transparent-max-color-2);
   --light-background-transparent-max-color-3: var(--gray-transparent-max-color-3);
   --light-text-color: var(--gray-color);
   --light-text-color-r: var(--white-color);

   /***** Couleurs prédéfinies ****************************************************************/
   --gray-color: #232327;
   --white-color: #fff;
   --gray-transparent-color: #232327ef;
   --gray-transparent-max-color-1: #2c2c2fb3;
   --gray-transparent-max-color-2: #0000006b;
   --gray-transparent-max-color-3: #0000000a;
   --white-transparent-color: #ffffffef;
   --white-transparent-max-color-1: #f5f5f5b3;
   --white-transparent-max-color-2: #ffffff6b;
   --white-transparent-max-color-3: #ffffff0a;
   --blue-color: #6fc9ff;
   --red-color: #ff6f6f;
   --green-color: #a4ff6f;
   --purple-color: #716fff;
   --yellow-color: #fff56f;
   --orange-color: #ffa96f;
   --pink-color: #ff6fec;
   --black-color: #000000;
   --light-black-color: #131313;
   --gradient-color-1: linear-gradient(45deg, #5c00ffbb, #ff0054bb, #ff6c00bb, #ffd000bb);
   --gradient-color-2: linear-gradient(45deg, #8178ffbb, #78acffbb, #78ffbebb);
   --mask-gradient-color-1: linear-gradient(180deg, #ff6c00bb, #fff0);
   --mask-gradient-color-2: linear-gradient(180deg, #78acffbb, #fff0);
   --gradient-color-start-1: linear-gradient(45deg, #5c00ffbb, #ff0054bb, #ff6c00bb, #ffd000bb, #ff6c00bb, #ff0054bb, #5c00ffbb, #ff0054bb, #ff6c00bb, #ffd000bb);
   --gradient-color-start-2: linear-gradient(45deg, #8178ffbb, #78acffbb, #78ffbebb, #78acffbb, #8178ffbb, #78acffbb, #78ffbebb);
   --gradient-color-opacity-min-1: linear-gradient(45deg, #8d4bffd5, #ff4d88d5, #ff984fd5, #ffdf4ed5);
   --gradient-color-opacity-min-2: linear-gradient(45deg, #5a4effd5, #4f92ffd5, #4affa8d5);
   --success-color: #198754;
   --warning-color: #dc3545;
}



/******************************************************************************************/
/***** Propriétés générales **************************************************************/
/****************************************************************************************/
html {
   overflow: scroll;
   scroll-behavior: smooth;
   scroll-padding-top: calc(var(--small-header-height) + 1.5rem);
}

body {
   margin: 0;
   font-family: sans-serif;
   background-color: var(--theme-background-color);
   /* Tests */
   /* height: 500rem; */
}

#page-content {
   position: relative;
}

p {
   word-wrap: anywhere;
}

a {
   text-decoration: none;
}

svg,
button {
   cursor: pointer;
}



/******************************************************************************************/
/***** Classes générales *****************************************************************/
/****************************************************************************************/

/* Boites */
.display-none {
   display: none !important;
}

.flex {
   display: flex;
}

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

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

.flex-between {
   display: flex;
   justify-content: space-between;
}

.width {
   width: var(--inner-width);
}

.border-l-r {
   border-left: 2px solid var(--theme-text-color);
   border-right: 2px solid var(--theme-text-color);
}

.diapo-ON .border-l-r {
   border-left: 2px solid var(--theme-text-color-r);
   border-right: 2px solid var(--theme-text-color-r);
}

/* Actions */
.pause-animation {
   animation-play-state: paused !important;
}

.no-select {
   -webkit-tap-highlight-color: transparent;
   -webkit-touch-callout: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

.no-scroll {
   height: 100vh;
   overflow: hidden;
}

/* Couleur fond */
.background-default {
   background-color: var(--theme-main-color) !important;
   opacity: 0.7;
}

/* Curseur */
.cursor-pointer {
   cursor: pointer;
}

.cursor-default {
   cursor: default;
}



/******************************************************************************************/
/***** Scroll bar ************************************************************************/
/****************************************************************************************/
/* Firefox */
* {
   scrollbar-width: thin;
   scrollbar-color: var(--theme-main-color) #f5f5f5;
}

/* Chrome */
*::-webkit-scrollbar {
   height: 0.3rem;
   width: 0.5rem;
}

*::-webkit-scrollbar-thumb {
   background-color: var(--theme-main-color);
   border-radius: 0.2rem;
   border: 0px solid #f5f5f5;
}



/******************************************************************************************/
/***** Diaporama de fond *****************************************************************/
/****************************************************************************************/
.diapo {
   position: fixed;
   background-position: top center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   background-size: cover;
   height: 100vh;
   width: 100vw;
}

.diapo-1 {
   background-image: url('../assets/pics/diapo/1.jpg');
}

.diapo-2 {
   background-image: url('../assets/pics/diapo/2.jpg');
}

.diapo-3 {
   background-image: url('../assets/pics/diapo/3.jpg');
}

.fade-out {
   animation: fadeOut 2s;
   animation-delay: 13s;
   animation-fill-mode: forwards;
}

@keyframes fadeOut {
   0% {
      opacity: 1;
   }

   100% {
      opacity: 0;
   }
}

@-ms-keyframes fadeOut {
   0% {
      opacity: 1;
   }

   100% {
      opacity: 0;
   }
}

@-o-keyframes fadeOut {
   0% {
      opacity: 1;
   }

   100% {
      opacity: 0;
   }
}

@-webkit-keyframes fadeOut {
   0% {
      opacity: 1;
   }

   100% {
      opacity: 0;
   }
}

@-moz-keyframes fadeOut {
   0% {
      opacity: 1;
   }

   100% {
      opacity: 0;
   }
}



/******************************************************************************************/
/***** Masque d'opacité pour sélection ***************************************************/
/****************************************************************************************/
body #opacity-mask {
   display: flex;
   z-index: 4;
   position: fixed;
   top: 0%;
   left: 0;
   height: 100%;
   width: 100%;
   opacity: 0.9;
   background-color: var(--theme-background-color);
}

.slide-r-to-l {
   -webkit-animation: slideRtoL 0.5s linear both;
   animation: slideRtoL 0.5s linear both;
}

@-webkit-keyframes slideRtoL {
   0% {
      -webkit-transform: translateX(0%);
      transform: translateX(0%);
   }

   100% {
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%);
   }
}

@keyframes slideRtoL {
   0% {
      -webkit-transform: translateX(0%);
      transform: translateX(0%);
   }

   100% {
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%)X
   }
}

.slide-l-to-r {
   -webkit-animation: slideLtoR 0.5s linear both;
   animation: slideLtoR 0.5s linear both;
}

@-webkit-keyframes slideLtoR {
   0% {
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%);
   }

   100% {
      -webkit-transform: translateX(0%);
      transform: translateX(0%);
   }
}

@keyframes slideLtoR {
   0% {
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%);
   }

   100% {
      -webkit-transform: translateX(0%);
      transform: translateX(0%);
   }
}



/******************************************************************************************/
/***** Boutons de contrôle ***************************************************************/
/****************************************************************************************/

/***** Panneau réglage thème ************************************************************/
#param-box {
   position: absolute;
   top: 0;
   left: 0;
   width: 9.3rem;
   z-index: 5;
   padding: 0.7rem 0.7rem 1.5rem 0.7rem;
   background-color: var(--theme-background-transparent-max-color-2);
   border-radius: 0 0 0.3rem 0;
   box-shadow: 1px 1px 10px var(--theme-main-color);
   font-size: 0.8rem;
}

.diapo-ON #param-box {
   /* si diaporama activé */
   background-color: var(--white-transparent-max-color-2);
}

/* Croix fermeture */
#param-box .close-button {
   color: var(--gray-color);
}

#param-box .close-button:hover {
   color: var(--theme-main-color);
}

/* Zones par réglages */
#param-box .theme-box {
   display: flex;
   flex-direction: column;
}

/* Titres */
#param-box .theme-box>span {
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--white-color)
}

/* Ensemble de boutons par réglage */
#param-box .theme-tags {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
}

/* Ligne */
#param-box hr {
   border: 1px solid var(--white-color);
   margin: 1.5rem 0 0.4rem 0;
}

/* Boites des boutons */
#param-box .tag-box {
   padding: 0 0 0.2rem 0;
   margin: 0.3rem;
}

/* Boutons sélectionnés */
#param-box .tag-box.tag-box-selected {
   border-bottom: 3px solid var(--theme-main-color);
}

/* Boutons */
#param-box .tag-button {
   min-height: 1.8rem;
   min-width: 2.5rem;
   border: 0;
   border-radius: 2px;
   box-sizing: border-box;
}

#param-box .tag-button:hover {
   box-shadow: 0px 0px 20px var(--white-color);
   transform: scale(1.15);

}

#param-box .tag-dark {
   background-color: var(--gray-color);
   color: var(--white-color);
}

#param-box .tag-light {
   background-color: var(--white-color);
   color: var(--gray-color);
}

#param-box #background-diapo svg {
   height: 1.2rem;
   width: 1.2rem;
}

#param-box #header-anim-button svg {
   height: 1.5rem;
   width: 1.5rem;
}

#param-box #gradient-tag-box {
   margin: 0.3rem;
}

#param-box #gradient-button-1 {
   background-image: var(--gradient-color-1);
}

#param-box #gradient-button-2 {
   background-image: var(--gradient-color-2);
}

#param-box #blue-tag-button {
   background-color: var(--blue-color);
}

#param-box #red-tag-button {
   background-color: var(--red-color);
}

#param-box #green-tag-button {
   background-color: var(--green-color);
}

#param-box #purple-tag-button {
   background-color: var(--purple-color);
}

#param-box #yellow-tag-button {
   background-color: var(--yellow-color);
}

#param-box #orange-tag-button {
   background-color: var(--orange-color);
}

#param-box #pink-tag-button {
   background-color: var(--pink-color);
}

#param-box #white-tag-button {
   background-color: var(--white-color);
}

#param-box #black-tag-button {
   background-color: var(--black-color);
}

/***** Bouton réglage *******************************************************************/
#param-color {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 4;
   padding: 0.1rem;
}

#param-color svg {
   color: var(--theme-text-color-r);
   height: 1.2rem;
   width: 1.2rem;
}

#param-color:hover svg {
   color: var(--theme-main-color);
}

/* Bouton "pause" animation du header */
#pause-header-anim {
   position: fixed;
   top: 0;
   right: 0;
   z-index: 4;
}

#pause-header-anim svg {
   height: 1.5rem;
   width: 1.5rem;
   color: var(--white-color);
}

#pause-header-anim:hover svg {
   color: var(--theme-main-color);
}

/*Bouton "remonter tout en haut" */
#scrollUp a {
   position: fixed;
   height: 2rem;
   width: 2rem;
   bottom: 1rem;
   right: 1rem;
   z-index: 1;
   border-radius: 2rem;
}

#scrollUp svg {
   height: 2.2rem;
   width: 2.2em;
   color: var(--theme-background-color-r);
}

#scrollUp:hover svg {
   color: var(--theme-main-color);
}

/***** Croix de fermeture fenêtre *******************************************************/
.close-button {
   position: absolute;
   top: 0.7rem;
   right: 0.7rem;
   color: var(--theme-text-color);
}

.close-button:hover {
   color: var(--theme-main-color);
}



/******************************************************************************************/
/***** Header ****************************************************************************/
/****************************************************************************************/
header {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 3;
}

/* Ombres header */
.header-shadow-1 {
   -webkit-box-shadow: 0px 3px 10px var(--theme-background-color-r);
   -moz-box-shadow: 0px 3px 10px var(--theme-background-color-r);
   box-shadow: 0px 3px 10px var(--theme-background-color-r);
}

.header-shadow-2 {
   position: fixed;
   top: var(--small-header-height);
   height: 2px;
   background-image: linear-gradient(to right, #a9a9a9, #fff, #a9a9a9);
   width: 100%;
   -webkit-box-shadow: 0px 10px 15px var(--theme-background-color-r);
   -moz-box-shadow: 0px 10px 15px var(--theme-background-color-r);
   box-shadow: 0px 10px 15px var(--theme-background-color-r);
}

/* Compensation de la hauteur du header positionné en absolute */
#header {
   display: flex;
   height: var(--big-header-height);
}

/***** Image header (animation ou statique) *********************************************/
#nav-animation {
   width: 100vw;
   height: var(--header-height);
   overflow: hidden;
}

#nav-animation .header-img {
   position: absolute;
   top: 0;
   right: 0;
   height: var(--header-height);
   width: 100%;
   overflow: hidden;
}

#nav-animation #img-animation {
   width: 200%;
   -webkit-animation: moveSlideshow 90s linear infinite;
   animation: moveSlideshow 90s linear infinite;
}

@-webkit-keyframes moveSlideshow {
   100% {
      -webkit-transform: translateX(50%);
      transform: translateX(50%);
   }
}

@keyframes moveSlideshow {
   100% {
      -webkit-transform: translateX(50%);
      transform: translateX(50%);
   }
}

#nav-animation #gradient-animation-background {
   background-image: var(--theme-gradient-color-start);
}

.header-gradient-slide {
   animation: header-gradien-slide 5s linear both;
}

@-webkit-keyframes header-gradien-slide {
   100% {
      -webkit-transform: translateX(66%);
      transform: translateX(66%);
   }
}

@keyframes header-gradien-slide {
   100% {
      -webkit-transform: translateX(66%);
      transform: translateX(66%);
   }
}

/***** Menu navvigation *****************************************************************/
#navigation {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
}

/* Ensemble des liens du menu */
#navigation #nav-link {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: calc(var(--inner-width)*0.85);
}

/***** Logo *****************************************************************************/
#navigation #logo img {
   box-shadow: 0px 0px 10px var(--white-color);
   border-radius: 3rem;
}

#navigation #logo img:hover {
   -webkit-animation: flip-logo 3s ease-in-out;
   animation: flip-logo 3s ease-in-out;
}

@-webkit-keyframes flip-logo {
   0% {
      -webkit-transform: rotateY(0);
      transform: rotateY(0);
   }

   100% {
      -webkit-transform: rotateY(360deg);
      transform: rotateY(360deg);
   }
}

@keyframes flip-logo {
   0% {
      -webkit-transform: rotateY(0);
      transform: rotateY(0);
   }

   100% {
      -webkit-transform: rotateY(360deg);
      transform: rotateY(360deg);
   }
}

/***** Lien menu navigation ************************************************************/
/* Liens + marqueur positionnement */
#navigation .nav-item {
   display: flex;
   flex-direction: column;
   min-width: max-content;
   text-align: center;
   padding: 0 0 0 2rem;
}

/* Liens */
#navigation .nav-item span a {
   display: flex;
   font-weight: 600;
   color: var(--theme-text-color-r);
   text-shadow: 1px 1px 2px var(--theme-text-color);
}

#navigation .nav-item span a:hover {
   color: var(--theme-text-color);
   text-shadow: 1px 1px 2px var(--theme-text-color-r);
}

/* Marqueur positionnement */
#navigation .nav-item #item-selected svg {
   color: var(--theme-text-color-r);
}

/***** Animation du marqueur de positionnement dans le menu *****************************/
.anim-unset-marker-down {
   -webkit-animation: marker-down 0.5s ease-in both;
   animation: marker-down 0.5s ease-in both;
}

@-webkit-keyframes marker-down {
   0% {
      -webkit-transform: scale(1);
      transform: scale(1);
   }

   100% {
      -webkit-transform: scale(0);
      transform: scale(0);
   }
}

@keyframes marker-down {
   0% {
      -webkit-transform: scale(1);
      transform: scale(1);
   }

   100% {
      -webkit-transform: scale(0);
      transform: scale(0);
   }
}

.anim-unset-marker-up {
   -webkit-animation: marker-up 0.5s ease-out both;
   animation: marker-up 0.5s ease-out both;
}

@-webkit-keyframes marker-up {
   0% {
      -webkit-transform: scale(0) translateY(0);
      transform: scale(0) translateY(0);
   }

   25% {
      -webkit-transform: scale(1.5) translateY(-0.8rem);
      transform: scale(1.5) translateY(-0.8rem);
   }

   50% {
      -webkit-transform: scale(1) translateY(0);
      transform: scale(1) translateY(0);
   }

   66% {
      -webkit-transform: scale(1.2) translateY(-0.35rem);
      transform: scale(1.2) translateY(-0.35rem);
   }

   100% {
      -webkit-transform: scale(1) translateY(0);
      transform: scale(1) translateY(0);
   }
}

@keyframes marker-up {
   0% {
      -webkit-transform: scale(0) translateY(0);
      transform: scale(0) translateY(0);
   }

   25% {
      -webkit-transform: scale(1.5) translateY(-0.8rem);
      transform: scale(1.5) translateY(-0.8rem);
   }

   50% {
      -webkit-transform: scale(1) translateY(0);
      transform: scale(1) translateY(0);
   }

   66% {
      -webkit-transform: scale(1.2) translateY(-0.35rem);
      transform: scale(1.2) translateY(-0.35rem);
   }

   100% {
      -webkit-transform: scale(1) translateY(0);
      transform: scale(1) translateY(0);
   }
}



/******************************************************************************************/
/***** Sections **************************************************************************/
/****************************************************************************************/

.sections h1 {
   margin: 0;
   color: var(--theme-text-color);
   text-align: center;
   text-shadow: 3px 3px 4px var(--theme-text-color-r);
}

.sections>h1,
.sections>p {
   color: var(--theme-text-color);
}

section {
   margin-bottom: 7rem;
}

/***** Projets **************************************************************************/
.sections#portfolio h1 {
   transform: translateY(5rem);
   width: max-content;
   margin: 0 auto;
   opacity: 0%;
}

.opacity-title {
   -webkit-animation: opacityTitle 1.5s ease-out both;
   animation: opacityTitle 1.5s ease-out both;
   animation-delay: 1.2s;
}

@-webkit-keyframes opacityTitle {
   0% {
      opacity: 0%;
   }

   100% {
      opacity: 100%;
   }
}

@keyframes opacityTitle {
   0% {
      opacity: 0%;
   }

   100% {
      opacity: 100%;
   }
}

.sections #projects-carousel {
   display: flex;
   align-content: center;
   justify-content: center;
}

.sections #projects-carousel .project-arrow {
   margin: auto 0;
   min-height: 3rem;
   min-width: 3rem;
   color: var(--theme-text-color);
}

.diapo-ON .sections #projects-carousel .project-arrow {
   /* si diaporama activé */
   color: var(--theme-text-color-r);
}

.diapo-ON .sections #projects-carousel .project-arrow:hover {
   /* si diaporama activé */
   color: var(--theme-main-color);
}

.sections section#projects {
   display: flex;
   flex-direction: row;
   width: 0%;
   padding: 8rem 0 2.5rem 0;
   margin: auto 0;
   overflow-x: scroll;
   border-radius: 0.5rem;
   background-color: var(--theme-background-transparent-max-color-1);
}

.open-carousel {
   -webkit-animation: openCarousel var(--carousel-duration) ease-out both;
   animation: openCarousel var(--carousel-duration) ease-out both;
   animation-delay: 1s;
}

@-webkit-keyframes openCarousel {
   0% {
      width: 0%;
   }

   100% {
      width: 100%;
   }
}

@keyframes openCarousel {
   0% {
      width: 0%;
   }

   100% {
      width: 100%;
   }
}

/* Pas de scrollbar sur carousel */
.sections section#projects::-webkit-scrollbar {
   /* Chrome, Safari and Opera */
   display: none;
}

/* Pas de scrollbar sur carousel */
.sections section#projects {
   -ms-overflow-style: none;
   /* IE and Edge */
   scrollbar-width: none;
   /* Firefox */
}

.sections #projects-carousel>svg:hover {
   color: var(--theme-main-color);
}

/***** Projets RECTO ********************************************************************/
section .project-thumb-box {
   display: flex;
   flex-direction: column;
   width: var(--thumb-width);
}

/* Recto et verso des miniatures */
section .article-recto,
section .article-verso {
   position: relative;
   height: var(--thumb-height);
   width: var(--thumb-width);
}

/* Images miniature recto et son hover */
section .project-thumb-box img {
   position: absolute;
   width: var(--thumb-width);
}

/* Image miniature recto */
section .project-thumb-normal {
   z-index: 1;
}

/* Vidéo miniature recto */
section .project-thumb-video-box {
   position: absolute;
   display: flex;
   justify-content: center;
   overflow: hidden;
}

section .pc-video {
   width: 79%;
   height: 86%;
   margin: 2.5% 11% 0% 11%;
}

section .smartphone-video {
   width: 97%;
   height: 79.5%;
   margin: 2% 0% 0% 1.4%;
   border-radius: 5%;
}

section .project-thumb-video-pc {
   position: absolute;
   z-index: 1;
   height: 110%;
   top: -5%;
}

section .project-thumb-video-smartphone {
   position: absolute;
   z-index: 1;
   height: 100%;
}

/* Hover miniature recto */
section .project-thumb-hover {
   display: none;
   z-index: 0;
   position: absolute;
}

section .project-thumb-hover-pc {
   width: 100%;
   height: 100%;
}

section .project-thumb-hover-smartphone {
   width: 96.6%;
   height: 79.5%;
}

section .project-thumb-box .project-thumb-hover img {
   opacity: 0.33;
}

/* Couverture de l'image miniature par son hover */
section .project-thumb-box .article-recto:hover .project-thumb-hover {
   display: flex;
   z-index: 1;
   -webkit-animation: thumb-hover 0.5s ease-out both;
   animation: thumb-hover 0.5s ease-out both;
}

@-webkit-keyframes thumb-hover {
   0% {
      -webkit-transform: scale(0);
      transform: scale(0);
      -webkit-transform-origin: 50% 100%;
      transform-origin: 50% 100%;
   }

   100% {
      -webkit-transform: scale(1);
      transform: scale(1);
      -webkit-transform-origin: 50% 100%;
      transform-origin: 50% 100%;
   }
}

@keyframes thumb-hover {
   0% {
      -webkit-transform: scale(0);
      transform: scale(0);
      -webkit-transform-origin: 50% 100%;
      transform-origin: 50% 100%;
   }

   100% {
      -webkit-transform: scale(1);
      transform: scale(1);
      -webkit-transform-origin: 50% 100%;
      transform-origin: 50% 100%;
   }
}

/* Icône infos [i] */
section .project-thumb-box .article-recto svg {
   position: relative;
   z-index: 0;
   color: var(--white-color);
   height: 2.8rem;
   width: 2.8rem;
   transform: translate(-1.3rem, -1.3rem);
}

section .project-thumb-box .article-recto-pc svg {
   top: calc(var(--thumb-height) / 2);
   left: calc(var(--thumb-width) / 2);
}

section .project-thumb-box .article-recto-smartphone svg {
   top: calc(var(--thumb-height) / 2.35);
   left: calc(var(--thumb-width) / 2);
}

section .project-thumb-box .article-recto:hover svg {
   /* transition-delay: 0.3s; */
   /* z-index: 2; */
   animation-name: shake;
   animation-duration: 0.5s;
   animation-delay: 0.5s;
}

@-webkit-keyframes shake {

   10%,
   90% {
      transform: translate3d(-1px, 0, 0) translate(-1.3rem, -1.3rem);
   }

   20%,
   80% {
      transform: translate3d(1px, 0, 0) translate(-1.3rem, -1.3rem);
   }

   30%,
   50%,
   70% {
      transform: translate3d(-2px, 0, 0) translate(-1.3rem, -1.3rem);
   }

   40%,
   60% {
      transform: translate3d(2px, 0, 0) translate(-1.3rem, -1.3rem);
   }
}

@keyframes shake {

   10%,
   90% {
      transform: translate3d(-1px, 0, 0) translate(-1.3rem, -1.3rem);
   }

   20%,
   80% {
      transform: translate3d(1px, 0, 0) translate(-1.3rem, -1.3rem);
   }

   30%,
   50%,
   70% {
      transform: translate3d(-2px, 0, 0) translate(-1.3rem, -1.3rem);
   }

   40%,
   60% {
      transform: translate3d(2px, 0, 0) translate(-1.3rem, -1.3rem);
   }
}


/* Retournement du recto (JS) */
.flip-vertical-left {
   -webkit-animation: flip-vertical-left 0.5s linear both;
   animation: flip-vertical-left 0.5s linear both;
}

@-webkit-keyframes flip-vertical-left {
   0% {
      -webkit-transform: rotate3d(0, 1, 0, 0deg);
      transform: rotate3d(0, 1, 0, 0deg);
   }

   100% {
      -webkit-transform: rotate3d(0, 1, 0, -90deg);
      transform: rotate3d(0, 1, 0, -90deg);
   }
}

@keyframes flip-vertical-left {
   0% {
      -webkit-transform: rotate3d(0, 1, 0, 0deg);
      transform: rotate3d(0, 1, 0, 0deg);
   }

   100% {
      -webkit-transform: rotate3d(0, 1, 0, -90deg);
      transform: rotate3d(0, 1, 0, -90deg);
   }
}

/***** Projets VERSO ********************************************************************/
/* Retournement du verso (JS) */
.flip-vertical-right {
   transform: rotate3d(0, 1, 0, -90deg);
   -webkit-animation: flip-vertical-right 0.5s linear both;
   animation: flip-vertical-right 0.5s linear both;
}

@-webkit-keyframes flip-vertical-right {
   0% {
      -webkit-transform: rotate3d(0, 1, 0, -90deg);
      transform: rotate3d(0, 1, 0, -90deg);
   }

   100% {
      -webkit-transform: rotate3d(0, 1, 0, 0deg);
      transform: rotate3d(0, 1, 0, 0deg);
   }
}

@keyframes flip-vertical-right {
   0% {
      -webkit-transform: rotate3d(0, 1, 0, -90deg);
      transform: rotate3d(0, 1, 0, -90deg);
   }

   100% {
      -webkit-transform: rotate3d(0, 1, 0, 0deg);
      transform: rotate3d(0, 1, 0, 0deg);
   }
}

section .project-thumb-box .article-verso {
   box-sizing: border-box;
   background-color: var(--theme-background-color);
   color: var(--theme-text-color);
   border-radius: 0.6rem;
   border: 2px solid var(--theme-main-color);
   box-shadow: 0px 0px 10px var(--theme-main-color);
}

/* Image de fond intercalée */
section .project-thumb-box .article-verso-background img {
   position: absolute;
   height: 100%;
   width: 100%;
   opacity: 0.1;
   border-radius: 0.5rem;
}

/* Croix de fermeture */
section .project-thumb-box .article-verso>svg {
   color: var(--theme-text-color);
   height: 1.5rem;
   width: 1.5rem;
}

section .project-thumb-box .article-verso>svg:hover {
   color: var(--theme-main-color);
}

/* Contenu du verso */
/* section .project-thumb-box .project-thumb-verso {
   margin: 1rem 0.9rem 0 0.9rem;
} */

section .project-thumb-box .article-verso .languages span {
   display: inline-flex;
   border-radius: 0.2rem;
   font-weight: 600;
}

section .project-thumb-box .project-thumb-verso .languages span {
   background-color: var(--theme-background-color-r);
   color: var(--theme-text-color-r);
}

/* Puces description projet */
section .project-thumb-box .project-thumb-verso p span {
   margin-right: 0.4rem;
   color: var(--theme-main-color);
}

section .project-thumb-box .project-thumb-verso a {
   color: var(--theme-text-color);
}

/* Dots pour afficher volet détails */
section .project-thumb-box .project-thumb-verso .verso-dots-svg {
   position: absolute;
   color: var(--theme-text-color);
}

section .project-thumb-box .project-thumb-verso .verso-dots-svg:hover {
   color: var(--theme-main-color);
}

/* Zoom dots à l'affichage du verso */
section .project-thumb-box .article-verso .verso-dots-svg {
   animation-name: zoomUpDown;
   animation-duration: 4s;
   animation-delay: 0.75s;
   animation-iteration-count: infinite;
}

@-webkit-keyframes zoomUpDown {
   0% {
      -webkit-transform: scale(1);
      transform: scale(1);
   }

   5% {
      -webkit-transform: scale(1.5);
      transform: scale(1.5);
   }

   10% {
      -webkit-transform: scale(1);
      transform: scale(1);
   }
}

@keyframes zoomUpDown {
   0% {
      -webkit-transform: scale(1);
      transform: scale(1);
   }

   5% {
      -webkit-transform: scale(1.5);
      transform: scale(1.5);
   }

   10% {
      -webkit-transform: scale(1);
      transform: scale(1);
   }
}

/* Coloration des ... à l'affichage du verso */
section .project-thumb-box .article-verso .verso-dots-path {
   animation-name: colorSvg;
   animation-duration: 4s;
   animation-delay: 0.75s;
   animation-iteration-count: infinite;
}

@-webkit-keyframes colorSvg {
   0% {
      color: var(--theme-text-color);
   }

   5% {
      color: var(--theme-main-color);
   }

   10% {
      color: var(--theme-text-color);
   }
}

@keyframes colorSvg {
   0% {
      color: var(--theme-text-color);
   }

   5% {
      color: var(--theme-main-color);
   }

   10% {
      color: var(--theme-text-color);
   }
}

/* Description titre du projet */
section .project-thumb-box>p {
   color: var(--theme-text-color);
   text-align: center;
   font-size: 1.2rem;
   margin: 0.6rem 0;
}

/***** Projets DETAILS ********************************************************************/
section .project-details {
   justify-content: center;
   position: absolute;
   left: 0;
   z-index: 4;
   width: 100%;
}

section .project-details .project-details-background {
   position: relative;
   /* top: calc(var(--thumb-height) - 1rem); */
   top: var(--thumb-height);
   height: max-content;
   width: calc(var(--inner-width) - 10vw);
   background-color: #ffffffed;
   border-radius: 0.6rem;
   box-shadow: 0px 0px 10px var(--theme-main-color);
}

section .project-details .project-details-background>div {
   background: var(--theme-gradient-color-opacity-min);
   position: relative;
   height: max-content;
   width: 100%;
   border-radius: 0.6rem;
}

/* Croix de fermeture */
section .project-details div .close-button {
   color: var(--theme-text-color-r);
   height: 1.7rem;
   width: 1.7rem;
}

section .project-details div .close-button:hover {
   color: var(--theme-main-color);
}

/* Couleur textes */
section .project-details .project-contents h2,
section .project-details .project-contents h4,
section .project-details .project-contents p {
   color: var(--gray-color);
}

/* Boite titre du projet */
section .project-details .project-title {
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 4.6rem;
   background-color: var(--gray-color);
   border-radius: 0.2rem;
}

/* Titre du projet (haut à gauche) */
section .project-details .project-contents h2 {
   padding: 0.3rem 0.5rem;
   margin: 0;
   color: var(--white-color);
   width: min-content;
   text-align: center;
}

/* Trait en titre et languages utilisés */
section .project-details .project-contents>div>span {
   height: 0.7rem;
   border-bottom: 2px solid var(--gray-color);
   width: 100%;
   min-width: 0.5rem;
}

/* Languages utilisés */
section .project-details .languages {
   display: flex;
   flex-wrap: wrap;
   height: min-content;
   max-height: 4rem;
}

/* Boite d'un language */
section .project-details .languages .language-span {
   background-color: var(--gray-color);
   color: var(--white-color);
   padding: 0.2rem 0.5rem;
   margin: 0 0.2rem 0.2rem 0;
   border-radius: 0.2rem;
   font-size: 0.9rem;
   font-weight: 600;
}

/* Infos projet et détails projet */
section .project-details .project-details-content {
   border-left: 2px solid var(--gray-color);
   margin-left: 0.7rem;
}

/* Lignes infos projet et détails projet */
section .project-details .project-details-content>div {
   display: flex;
   padding-top: 4vh;
}

/* Trait vers infos, détails, ... */
section .project-details .project-details-content span {
   height: 0.7rem;
   width: 5%;
   min-width: 0.5rem;
   border-bottom: 2px solid var(--gray-color);
}

/* Boite titres et paragraphes */
section .project-details .project-details-content h4,
section .project-details .project-details-content p {
   width: max-content;
   margin: 0;
   font-weight: 600;
}

/* Boite titres */
section .project-details .project-details-content h4 {
   padding: 0.2rem 0.725rem;
   background-color: var(--gray-color);
   color: var(--white-color);
}

/* Boite paragraphes */
section .project-details .project-details-content p {
   padding: 0.25rem 0.6rem 0.15rem 0.6rem;
   background-color: var(--white-color);
   color: var(--gray-color);
   font-size: 0.875rem;
}

/* Boite détails seule */
section .project-details .project-details-content .project-details-main {
   display: flex;
}

section .project-details .project-details-content .project-details-box h4,
section .project-details .project-details-content .project-details-box p {
   border-radius: 0.2rem;
}

section .project-details .project-details-content .project-details-p {
   display: flex;
   flex-direction: column;
   padding: 0.1rem 0 0 1rem;
}

section .project-details .project-details-content .project-details-p p {
   width: fit-content;
   margin: 0.2rem 0 0 0;
   padding: 0.2rem 0.5rem;
   border-radius: 0.2rem;
}

/* Oeil de redirection vers projet */
section .project-details .project-details-eye {
   display: flex;
   justify-content: flex-end;
   width: 4rem;
   margin-left: 0.7rem;
   padding-top: 0.5rem;
   border-left: 2px solid var(--gray-color);
   border-bottom: 2px solid var(--gray-color);
   border-radius: 0 0 0 0.2rem;
}

section .project-details .project-details-eye .verso-eye-svg {
   color: var(--white-color);
}

section .project-details .project-details-eye .verso-eye-path {
   color: var(--gray-color);
}

section .project-details .project-details-eye a {
   box-sizing: border-box;
   background-color: var(--gray-color);
   border-top: 2px solid var(--gray-color);
   border-right: 2px solid var(--gray-color);
   border-left: 2px solid var(--gray-color);
   border-radius: 0.2rem 0.2rem 0 0;
   display: flex;
   justify-content: center;
   align-items: center;
}

section .project-details .project-details-eye a:hover {
   background-color: var(--theme-main-color);
}

/* Déploiement du trait avec oeil à l'affichage du volet des détails (JS) */
.run-eye {
   animation-name: runEye;
   animation-duration: 1s;
   animation-delay: 0.4s;
   animation-fill-mode: forwards;
   animation-timing-function: ease-in-out;
}

@-webkit-keyframes runEye {
   0% {
      width: 4rem;
   }

   100% {
      width: 100%;
   }
}

@keyframes runEye {
   0% {
      width: 4rem;
   }

   100% {
      width: 100%;
   }
}

/* Oeil clignotant */
section .project-details .project-details-eye .verso-eye-svg {
   animation-name: blinkEye;
   animation-duration: 2.5s;
   animation-iteration-count: infinite;
   animation-delay: 0.75s;
}

@-webkit-keyframes blinkEye {
   0% {
      color: var(--white-color);
   }

   40% {
      color: var(--white-color);
   }

   50% {
      color: var(--theme-main-color);
   }

   60% {
      color: var(--white-color);
   }

   100% {
      color: var(--white-color);
   }
}

@keyframes blinkEye {
   0% {
      color: var(--white-color);
   }

   40% {
      color: var(--white-color);
   }

   50% {
      color: var(--theme-main-color);
   }

   60% {
      color: var(--white-color);
   }

   100% {
      color: var(--white-color);
   }
}



/******************************************************************************************/
/***** A propos **************************************************************************/
/****************************************************************************************/

/***** Mes infos de contact *************************************************************/
.about-me {
   margin: 0 3rem;
   padding: 2.5rem 2rem 3rem 2rem;
   background-color: var(--theme-background-transparent-max-color-1);
   color: var(--theme-text-color);
   text-align: justify;
   border-radius: 0.5rem;
}

.about-me .about-section {
   margin-top: 2.5rem;
   padding: 1rem 0.3rem 1.5rem 0.3rem;
   background-color: var(--theme-background-transparent-max-color-1);
   border-radius: 0.3rem;
}

.about-history,
.about-split {
   background-color: var(--theme-background-color);
}

.about-parallax {
   background-image: url('../assets/pics/diapo/2.jpg');
   background-position: top center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   background-size: cover;
}

#about-me h1 {
   margin-bottom: 0.9rem;
}

.anim-section-title {
   animation-name: zoomSection;
   animation-duration: 0.5s;
   animation-delay: 0.4s;
}

@-webkit-keyframes zoomSection {
   0% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.025);
   }

   100% {
      transform: scale(1);
   }
}

@keyframes zoomSection {
   0% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.025);
   }

   100% {
      transform: scale(1);
   }
}

.about-me h2 {
   color: var(--theme-text-color);
   text-shadow: 1px 1px 2px var(--theme-text-color-r);
}

.about-me .about-history {
   padding: 2rem;
   margin: 0.2rem;
   border-radius: 0.3rem;
}

.about-main-title,
.about-title {
   font-weight: 600;
}

.about-main-title,
.about-split {
   text-align: center;
}

.about-main-title {
   margin: 1rem 0 1.2rem 0;
}

.about-title {
   background: var(--theme-gradient-color-opacity-min);
   -webkit-background-clip: text;
   -moz-background-clip: text;
   background-clip: text;
   color: transparent;
   font-size: 1.1rem;
}

.about-me .about-group {
   display: flex;
   flex-direction: row;
   justify-content: center;
   flex-wrap: wrap;
}

.about-me .about-group .about-split {
   margin: 0.2rem;
   min-width: 33%;
   max-width: 46%;
   flex-grow: 1;
   padding: 1% 3%;
   border-radius: 0.3rem;
}

.about-me .about-group .about-split p {
   margin: 0.6rem;
}

#contact .about-group .about-split svg {
   min-height: 1.2rem;
   min-width: 1.2rem;
   color: var(--theme-main-color);
   margin-right: 0.5rem;
}

/***** Formulaire de contact ************************************************************/
#contact-form {}

#contact .form-item {
   display: flex;
   flex-direction: row;
   align-items: center;
   border-radius: 0.3rem;
}

#contact .form-item,
#contact button {
   margin: 0.7%;
}

#contact .form-item span {
   background-color: var(--gray-color);
   margin: 0;
}

#contact .form-item .form-icon {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 1.5rem;
}

#contact .form-item svg {
   height: 1.2rem;
   width: 1.2rem;
   color: var(--theme-main-color);
}

#contact .form-item input {
   border: 0;
}

#contact .form-item textarea {
   margin: 0;
   border: 0;
}

#contact .form-item .form-input,
#contact button {
   height: 2rem;
   padding: 0.3rem 0.5rem;
}

#contact .form-item .form-textarea {
   height: 10rem;
   padding: 0.3rem 0.5rem;
}

#contact .form-item input,
#contact .form-item textarea {
   width: 100%;
}

#contact button {
   border: 0;
   border-radius: 0;
   opacity: 0.7;
}

#contact button,
#contact button:hover {
   background-color: lightgray;
   color: black;
}

#contact button.ready {
   background-color: var(--theme-main-color);
   color: var(--gray-color);
   opacity: 1;
}

#contact button.ready:hover {
   background-color: var(--theme-background-color-r);
   color: var(--theme-text-color-r);
   opacity: 01
}

#contact .star-color {
   color: var(--red-color);
}

#contact-form #message-to-user {
   float: right;
   margin: 0 0.7%;
   font-size: 0.8rem;
}

#contact-form .warning {
   padding: 0.3rem 0;
   color: var(--warning-color);
   font-size: 1.2rem;
}

#contact-form .success {
   padding: 0.3rem 0;
   color: var(--success-color);
   font-size: 1.2rem;
}



/******************************************************************************************/
/***** Footer ****************************************************************************/
/****************************************************************************************/
footer {
   margin-top: 17rem;
}

footer div {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 3rem;
   background-color: var(--light-black-color);
}

footer span {
   display: flex;
   width: 100%;
   height: 1px;
   background-image: var(--theme-gradient-color);
}

footer p {
   margin: 0;
   font-size: 0.9rem;
   color: var(--white-color)
}



/******************************************************************************************/
/***** Bandeau d'alerte utilisation cookies **********************************************/
/****************************************************************************************/
#cookie-alert {
   display: flex;
   justify-content: center;
   align-items: center;
   flex-wrap: wrap;
   position: fixed;
   z-index: 4;
   min-height: 5rem;
   background: var(--theme-gradient-color);
   color: var(--white-color);
   font-size: 0.8rem;
   font-weight: 600;
   border-radius: 3rem;
   padding: 0rem 2rem;
   -webkit-animation: slideCookieAlert 0.75s linear both;
   animation: slideCookieAlert 0.75s linear both;
}

@-webkit-keyframes slideCookieAlert {
   0% {
      bottom: -10%;
   }

   100% {
      bottom: 0;
   }
}

@keyframes slideCookieAlert {
   0% {
      bottom: -10%;
   }

   100% {
      bottom: 0;
   }
}

#cookie-alert>div {
   display: flex;
   justify-content: center;
   flex-direction: row;
}

#cookie-alert p {
   display: flex;
   align-items: center;
}

@media only screen and (max-width: 936px) {
   #cookie-alert p {
      margin: 1rem 1rem 0 1rem;
   }
}

@media only screen and (min-width: 937px) {
   #cookie-alert p {
      margin-right: 1rem;
   }
}

#cookie-alert svg {
   height: 2.2rem;
   width: 2.2rem;
   padding: 0.4rem;
   border: 0;
   border-radius: 0.2rem;
   color: var(--white-color);
}

#cookie-alert .button-green svg:hover {
   color: #51ff9a;
}

#cookie-alert .button-red svg:hover {
   color: #ff5151;
}



/******************************************************************************************/
/***** @Media query height ***************************************************************/
/****************************************************************************************/

/***** Petit header *********************************************************************/
/***************************************************************************************/
@media only screen and (min-height: 100px) and (max-height: 1079px) {
   :root {
      /* hauteur header */
      --big-header-height: 138px;
      --small-header-height: 56px;
   }

   /* Image header (animation ou statique) */
   .dark-header {
      background: linear-gradient(to bottom, rgba(0, 64, 255, 0), #23232700), url('../assets/img/nav232327_s.png') top center repeat;
   }

   .light-header {
      background: linear-gradient(to bottom, rgba(0, 64, 255, 0), rgba(255, 255, 255, 0)), url('../assets/img/navfff_s.png') top center repeat;
   }

   #nav-animation #gradient-animation-mask {
      mask-image: url('../assets/img/nav_white_mask_s.png');
      -webkit-mask-image: url('../assets/img/nav_white_mask_s.png');
      background: var(--theme-mask-gradient-color);
      width: 300%;
   }

   /* Navigation header */
   #navigation {
      padding-top: 0.2rem;
   }

   #navigation #nav-logo {
      height: 3.6rem;
      width: 3.6rem;
   }

   .logo-big {
      height: 3.6rem;
      width: 3.6rem;
   }

   .logo-small {
      height: 2.5rem !important;
      width: 2.5rem !important;
   }

   .navigation-big #nav-link {
      height: 5rem;
   }

   /* Icône "Home" */
   #navigation .nav-item svg {
      height: 1.3rem;
      width: 1.3rem;
   }

   /* Liens */
   #navigation .nav-item span a {
      padding: 1.9rem 0 0.45rem 0;
      font-size: 1.3rem;
   }

   .navigation-small {
      height: var(--header-height);
      padding-top: 0 !important;
   }

   .links-small {
      font-size: 1.2rem !important;
      font-weight: 500 !important;
      padding: 1.6rem 0 0 0 !important;
   }

   #navigation .nav-item .links-small>svg {
      height: 1.2rem;
      width: 1.2rem;
   }
}

/***** Grand header *********************************************************************/
/***************************************************************************************/
@media only screen and (min-height: 1080px) {
   :root {
      /* hauteur header */
      --big-header-height: 198px;
      --small-header-height: 72px;
   }

   /* Image header (animation ou statique) */
   .dark-header {
      background: linear-gradient(to bottom, rgba(0, 64, 255, 0), #23232700), url('../assets/img/nav232327_l.png') top center repeat;
   }

   .light-header {
      background: linear-gradient(to bottom, rgba(0, 64, 255, 0), rgba(255, 255, 255, 0)), url('../assets/img/navfff_l.png') top center repeat;
   }

   #nav-animation #gradient-animation-mask {
      mask-image: url('../assets/img/nav_white_mask_l.png');
      -webkit-mask-image: url('../assets/img/nav_white_mask_l.png');
      background: var(--theme-mask-gradient-color);
      width: 300%;
   }

   /* Navigation header */
   #navigation {
      padding-top: 1rem;
   }

   #navigation #nav-logo {
      height: 4rem;
      width: 4rem;
   }

   .logo-big {
      height: 4rem;
      width: 4rem;
   }

   .logo-small {
      height: 3rem !important;
      width: 3rem !important;
   }

   .navigation-big #nav-link {
      height: 5.5rem;
   }

   /* Icône "Home" */
   #navigation .nav-item svg {
      height: 1.4rem;
      width: 1.4rem;
   }

   /* Liens */
   #navigation .nav-item span a {
      padding: 2rem 0 0.5rem 0;
      font-size: 1.4rem;
   }

   .navigation-small {
      height: var(--header-height);
      padding-top: 0 !important;
   }


   .links-small {
      font-size: 1.3rem !important;
      font-weight: 500 !important;
      padding: 2.1rem 0 0.4rem 0 !important;
   }

   #navigation .nav-item .links-small>svg {
      height: 1.3rem;
      width: 1.3rem;
   }
}


/******************************************************************************************/
/***** @Media query width ****************************************************************/
/****************************************************************************************/

/***** Largeur contenu et carousel ******************************************************/
/***************************************************************************************/
@media only screen and (min-width: 1px) and (max-width: 496px) {
   :root {
      --inner-width: 100vw;
      --carousel-duration: 1s;
   }

   .sections {
      margin: 0rem auto 6rem auto;
   }

   .sections h1 {
      font-size: 1.6rem;
   }
}

@media only screen and (min-width: 497px) and (max-width: 767px) {
   :root {
      --inner-width: 100vw;
      --carousel-duration: 1.2s;
   }

   .sections {
      margin: 0.5rem auto 7rem auto;
   }

   .sections h1 {
      font-size: 1.7rem;
   }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
   :root {
      --inner-width: 95vw;
      --carousel-duration: 1.4s;
   }

   .sections {
      margin: 1rem auto 8rem auto;
   }

   .sections h1 {
      font-size: 1.85rem;
   }
}

@media only screen and (min-width: 1024px) and (max-width: 1279px) {
   :root {
      --inner-width: 90vw;
      --carousel-duration: 1.6s;
   }

   .sections {
      margin: 1.5rem auto 9rem auto;
   }

   .sections h1 {
      font-size: 2rem;
   }
}

@media only screen and (min-width: 1280px) and (max-width: 1599px) {
   :root {
      --inner-width: 80vw;
      --carousel-duration: 1.8s;
   }

   .sections {
      margin: 2rem auto 10rem auto;
   }

   .sections h1 {
      font-size: 2.1rem;
   }

}

@media only screen and (min-width: 1600px) and (max-width: 1919px) {
   :root {
      --inner-width: 75vw;
      --carousel-duration: 2s;
   }

   .sections {
      margin: 2.5rem auto 11rem auto;
   }

   .sections h1 {
      font-size: 2.2rem;
   }
}

@media only screen and (min-width: 1920px) and (max-width: 2559px) {
   :root {
      --inner-width: 65vw;
      --carousel-duration: 2.2s;
   }

   .sections {
      margin: 3rem auto 12rem auto;
   }

   .sections h1 {
      font-size: 2.3rem;
   }
}

@media only screen and (min-width: 2560px) and (max-width: 3839px) {
   :root {
      --inner-width: 60vw;
      --carousel-duration: 2.4s;
   }

   .sections {
      margin: 4rem auto 13rem auto;
   }

   .sections h1 {
      font-size: 2.3rem;
   }
}

@media only screen and (min-width: 3840px) {
   :root {
      --inner-width: 55vw;
      --carousel-duration: 2.6s;
   }

   .sections {
      margin: 4rem auto 14rem auto;
   }

   .sections h1 {
      font-size: 2.3rem;
   }
}

/***** Menu compact *********************************************************************/
/***************************************************************************************/
@media only screen and (max-width: 600px) {
   #nav-items {
      display: none;
   }

   #nav-compact {
      display: flex;
   }

   #nav-compact svg {
      color: var(--theme-text-color-r);
   }

   .navigation-big #nav-compact svg {
      height: 2.5rem;
      width: 2.5rem;
   }

   .navigation-small #nav-compact svg {
      height: 2.2rem;
      width: 2.2rem;
   }

   #menu-compact {
      position: fixed;
      left: 0;
      height: max-content;
      width: 100vw;
      padding: 0.2rem 0;
      background-color: var(--theme-background-color);
      box-shadow: 0px 0px 10px var(--theme-text-color);
      justify-content: space-evenly;
      border-top: 1px solid var(--theme-text-color);
      border-bottom: 1px solid var(--theme-text-color);
   }

   #menu-compact span {
      color: var(--theme-text-color);
   }

   #menu-compact a {
      color: var(--theme-text-color);
      font-size: 1rem;
      font-weight: 600;
   }

   #menu-compact a:hover {
      color: var(--theme-main-color);
   }
}

@media only screen and (min-width: 601px) {
   #nav-items {
      display: flex;
   }

   #nav-compact {
      display: none;
   }
}

/***** A propos *************************************************************************/
/***************************************************************************************/
@media only screen and (max-width: 378px) {
   .about-split {
      max-width: 100% !important;
   }
}


/******************************************************************************************/
/***** @Media query orientation **********************************************************/
/****************************************************************************************/

/***** Mobiles portrait *****************************************************************/
/***************************************************************************************/
@media only screen and (orientation:portrait) and (max-width: 496px) {

   /***** Miniatures et détails projet **************************************************/
   :root {
      /* dimensions miniature projets */
      --thumb-height: 11.6rem;
      --thumb-width: 20rem;
   }

   #projects-carousel .project-arrow {
      display: none;
   }

   #projects-carousel {
      padding: 0.3rem;
   }

   section .project-thumb-box {
      height: 13.84rem;
      margin: 0 1.6rem;
      font-size: 0.8rem;
   }

   section .smartphone-video {
      width: 97.1%;
      height: 82.6%;
      margin: 1.8% 0% 0% 1.3%;
      border-radius: 5%;
   }

   /* Contenu du verso */
   section .project-thumb-box .project-thumb-verso {
      margin: 0.72rem 0.72rem 0 0.72rem;
   }

   /* Tags languages utilisés */
   section .project-thumb-box .article-verso .languages {
      margin-bottom: 0.75rem;
      width: 17rem;
   }

   section .project-thumb-box .article-verso .languages span {
      font-size: 0.75rem;
      padding: 0.1rem 0.2rem 0.05rem 0.2rem;
      margin: 0.1rem 0.1rem;
   }

   /* Texte description projet */
   section .project-thumb-box .project-thumb-verso p {
      margin: 0 1.28rem 0.56rem 0.56rem;
   }

   section .project-thumb-box .project-thumb-verso .verso-dots-svg {
      bottom: 0.32rem;
      height: 2.4rem;
      width: 2.4rem;
   }

   /* Détails projets */
   section .project-details .project-contents {
      padding: 2rem;
   }

   section .project-details div .close-button {
      top: 0.5rem;
      right: 0.5rem;
   }

   section .project-details .project-details-eye a {
      height: 2.5rem;
      width: 2.5rem;
   }

   section .project-details .project-details-eye .verso-eye-svg {
      color: var(--white-color);
      height: 1.7rem;
      width: 1.7rem;
   }

   /***** Carousel **********************************************************************/
   .sections section#projects::-webkit-scrollbar {
      /* Chrome, Safari and Opera */
      display: initial;
   }

   .sections section#projects {
      padding: 4.7rem 0 0.8rem 0;
      -ms-overflow-style: initial;
      scrollbar-width: initial;
   }

   /***** A propos **********************************************************************/
   .about-me {
      margin: 0.3rem;
   }
}

@media only screen and (orientation:portrait) and (min-width: 497px) and (max-width: 768px) {

   /***** Carousel **********************************************************************/
   .sections section#projects {
      padding: 5rem 0 1rem 0;
   }
}

@media only screen and (orientation:portrait) and (max-width: 768px) {

   /***** Boite et titre "Mes projets ***************************************************/
   .sections#portfolio h1 {
      transform: translateY(3.5rem);
   }

   /***** A propos **********************************************************************/
   .about-me {
      padding: 1.25rem 1rem 1.5rem 1rem;
   }

   .about-me p,
   .about-me span {
      font-size: 0.9rem;
      margin: 0.5rem;
   }

   .about-me .about-section {
      margin-top: 1.5rem;
      padding: 0.5rem 0.15rem 0.75rem 0.15rem;
   }

   .about-me .about-history {
      padding: 0.1rem 1.2rem;
   }

   .about-main-title,
   .about-title {
      margin: 0.66rem 0 0.8rem 0;
      font-size: 1.1rem;
   }
}

/***** Mobiles landscape ****************************************************************/
/***************************************************************************************/
@media only screen and (orientation:landscape) and (max-height: 496px) {

   /***** Miniatures et détails projet **************************************************/
   :root {
      /* dimensions miniature projets */
      --thumb-height: 11.6rem;
      --thumb-width: 20rem;
   }

   #projects-carousel .project-arrow {
      display: none;
   }

   #projects-carousel {
      padding: 0.3rem;
   }

   section .project-thumb-box {
      height: 13.84rem;
      margin: 0 1.6rem;
      font-size: 0.8rem;
   }

   section .smartphone-video {
      width: 97.1%;
      height: 82.6%;
      margin: 1.8% 0% 0% 1.3%;
      border-radius: 5%;
   }

   /* Contenu du verso */
   section .project-thumb-box .project-thumb-verso {
      margin: 0.72rem 0.72rem 0 0.72rem;
   }

   /* Tags languages utilisés */
   section .project-thumb-box .article-verso .languages {
      margin-bottom: 0.75rem;
      width: 17rem;
   }

   section .project-thumb-box .article-verso .languages span {
      font-size: 0.75rem;
      padding: 0.1rem 0.2rem 0.05rem 0.2rem;
      margin: 0.1rem 0.1rem;
   }

   /* Texte description projet */
   section .project-thumb-box .project-thumb-verso p {
      margin: 0 1.28rem 0.56rem 0.56rem;
   }

   section .project-thumb-box .project-thumb-verso .verso-dots-svg {
      bottom: 0.32rem;
      height: 2.4rem;
      width: 2.4rem;
   }

   /* Détails projets */
   section .project-details .project-contents {
      padding: 2rem;
   }

   section .project-details div .close-button {
      top: 0.5rem;
      right: 0.5rem;
   }

   section .project-details .project-details-eye a {
      height: 2.5rem;
      width: 2.5rem;
   }

   section .project-details .project-details-eye .verso-eye-svg {
      color: var(--white-color);
      height: 1.7rem;
      width: 1.7rem;
   }

   /***** Carousel **********************************************************************/
   .sections section#projects::-webkit-scrollbar {
      /* Chrome, Safari and Opera */
      display: initial;
   }

   .sections section#projects {
      padding: 4.1rem 0 0.6rem 0;
      -ms-overflow-style: initial;
      scrollbar-width: initial;
   }

   /***** A propos **********************************************************************/
   .about-me {
      margin: 0.3rem;
   }
}

@media only screen and (orientation:landscape) and (min-height: 497px) and (max-height: 768px) {

   /***** Carousel **********************************************************************/
   .sections section#projects {
      padding: 5rem 0 0.9rem 0;
   }
}

@media only screen and (orientation:landscape) and (max-height: 768px) {

   /***** Boite et titre "Mes projets ***************************************************/
   .sections#portfolio h1 {
      transform: translateY(3.5rem);
   }

   /***** A propos **********************************************************************/
   .about-me {
      padding: 1.25rem 1rem 1.5rem 1rem;
   }

   .about-me p,
   .about-me span {
      font-size: 0.9rem;
      margin: 0.5rem;
   }

   .about-me .about-section {
      margin-top: 1.5rem;
      padding: 0.5rem 0.15rem 0.75rem 0.15rem;
   }

   .about-me .about-history {
      padding: 0.1rem 1.2rem;
   }

   .about-main-title,
   .about-title {
      margin: 0.66rem 0 0.8rem 0;
      font-size: 1.1rem;
   }
}

/***** Tablettes et PC portrait *********************************************************/
/***************************************************************************************/
@media only screen and (orientation:portrait) and (min-width: 497px) {

   /***** Miniatures et détails projet **************************************************/
   :root {
      /* dimensions miniature projets */
      --thumb-height: 14.5rem;
      --thumb-width: 25rem;
   }

   section .project-thumb-box {
      height: 17.3rem;
      margin: 0 2rem;
   }

   /* Contenu du verso */
   section .project-thumb-box .project-thumb-verso {
      margin: 1rem 0.9rem 0 0.9rem;
   }

   /* Tags languages utilisés */
   section .project-thumb-box .article-verso .languages {
      margin-bottom: 1.6rem;
      width: 20rem;
   }

   section .project-thumb-box .article-verso .languages span {
      padding: 0.2rem 0.3rem;
      margin: 0.2rem 0.1rem;
      font-size: 0.9rem;
   }

   /* Texte description projet */
   section .project-thumb-box .project-thumb-verso p {
      margin: 0 1.6rem 0.7rem 0.7rem;
   }

   section .project-thumb-box .project-thumb-verso .verso-dots-svg {
      bottom: 0.4rem;
      height: 3rem;
      width: 3rem;
   }

   /* Détails projets */
   section .project-details .project-contents {
      padding: 3rem;
   }

   section .project-details div .close-button {
      top: 1.3rem;
      right: 1.3rem;
   }

   section .project-details .project-details-eye a {
      height: 3.5rem;
      width: 3.5rem;
   }

   section .project-details .project-details-eye .verso-eye-svg {
      color: var(--white-color);
      height: 2.2rem;
      width: 2.2rem;
   }
}

/***** Tablettes et PC landscape *********************************************************/
/***************************************************************************************/
@media only screen and (orientation:landscape) and (min-height: 497px) {

   /***** Miniatures et détails projet **************************************************/
   :root {
      /* dimensions miniature projets */
      --thumb-height: 14.5rem;
      --thumb-width: 25rem;
   }

   section .project-thumb-box {
      height: 17.3rem;
      margin: 0 2rem;
   }

   /* Contenu du verso */
   section .project-thumb-box .project-thumb-verso {
      margin: 1rem 0.9rem 0 0.9rem;
   }

   /* Tags languages utilisés */
   section .project-thumb-box .article-verso .languages {
      margin-bottom: 1.6rem;
      width: 20rem;
   }

   section .project-thumb-box .article-verso .languages span {
      padding: 0.2rem 0.3rem;
      margin: 0.2rem 0.1rem;
      font-size: 0.9rem;
   }

   /* Texte description projet */
   section .project-thumb-box .project-thumb-verso p {
      margin: 0 1.6rem 0.7rem 0.7rem;
   }

   section .project-thumb-box .project-thumb-verso .verso-dots-svg {
      bottom: 0.4rem;
      height: 3rem;
      width: 3rem;
   }

   /* Détails projets */
   section .project-details .project-contents {
      padding: 3rem;
   }

   section .project-details div .close-button {
      top: 1.3rem;
      right: 1.3rem;
   }

   section .project-details .project-details-eye a {
      height: 3.5rem;
      width: 3.5rem;
   }

   section .project-details .project-details-eye .verso-eye-svg {
      color: var(--white-color);
      height: 2.2rem;
      width: 2.2rem;
   }
}