:root {
  /* colors */
  --clr-bg-light: hsl(0, 0%, 100%);
  --clr-gradient: linear-gradient(90deg, hsl(246, 30%, 55%) 3.65%, hsl(199, 76%, 48%) 71.35%, hsl(191, 46%, 55%) 100%);
  --clr-secondary-light: hsl(191, 46%, 55%);
  --clr-secondary-medium: hsl(199, 76%, 48%);
  --clr-secondary-dark: hsl(246, 30%, 55%);
  --clr-primary-100: hsl(210, 48%, 61%);
  --clr-primary-200: hsl(210, 58%, 61%);

  --clr-primary-400: hsl(0, 0%, 47%);

  /* fonts */
  --f-primary: "Poppins";
}

/* ---------------------------
----------- General ----------
-----------------------------*/
/* * {
  outline: 5px solid yellow;
} */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--f-primary);
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  min-height: -webkit-fill-available;
}

.flex {
  display: flex;
  gap: var(--gap, 1rem);
}
.flex-col {
  flex-direction: column;
}
.grid {
  display: grid;
  gap: var(--gap, 1rem);
}

img {
  max-width: 100%;
  display: block;
  object-fit: contain;
}

button.nav-toggle {
  border: 0;
  background: none;
}

figure {
  margin: 0;
  padding: 0;
  background: #fff;
  width: 40px;
}

h2 {
  font-size: 3rem;
  color: var(--clr-primary-100);
}

h4 {
  font-size: 1.375rem;
}
ul {
  list-style: none;
}
/* ---------------------------
----------- Body -------------
-----------------------------*/

/* ---------------------------
    ----------- NAV ----------
        -----------------------------*/
.primary-header {
  flex-direction: column;
  position: fixed;
  left: 0;
  background-color: var(--clr-bg-light);
  box-shadow: -11px 11px 20px 0px black;
  height: 100%;
  padding: 0.575rem 1rem;
  width: 5em;
  transition: all ease 500ms;
  z-index: 1000;
}

/* when sidebar active / open we want that ... */
.primary-header.active {
  width: 15em;
}

.primary-header .logo-content {
  position: relative;
  align-items: center;
  height: 5rem;
  justify-content: center;
}

.primary-header .logo-content .svg-container-little,
.primary-header .logo-content .logo-name {
  display: none;
  transition: all 0.9s ease;
}

.primary-header .logo-content .svg-container-little {
  fill: var(--clr-secondary-dark);
  width: 2rem;
}

.primary-header .logo-content .logo-name {
  color: var(--clr-secondary-dark);
}

.primary-header.active .logo-content .svg-container-little {
  height: inherit;
}

.primary-header.active .logo-content .svg-container-little,
.primary-header.active .logo-content .logo-name {
  display: inline-block;
}

.primary-header .logo-content img {
  width: 30px;
  margin: 1rem;
}

.primary-header .logo-content .logo-name {
  font-weight: 900;
}

.primary-header.active li .tooltip {
  display: none;
}

.primary-header .nav-toggle::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0c9";
}

.primary-header .logo-content .nav-toggle {
  font-size: 1.25rem;
  z-index: 9999;
  color: var(--clr-primary-100);
  transition: all 0.5s ease;
  text-align: center;
  cursor: pointer;
}

.primary-header.active .logo-content .nav-toggle {
  margin-left: 20%;
}

.primary-header .primary-navigation {
  z-index: 100;
  flex-direction: column;
  --gap: 2rem;
  margin-top: 1.25em;

  /* using it to push the profile to the bottom */
  flex-grow: 1;
}

.primary-header .primary-navigation li {
  position: relative;
  width: 100%;
}

.primary-header.active ul li .tooltip {
  display: none;
}

.primary-header .primary-navigation li .tooltip {
  background-color: #fff;
  position: absolute;
  top: -2rem;
  left: calc(100% + 1.5rem);
  transform: translateY(-50%);
  height: 2rem;
  width: calc(100% + 6rem);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 0.375em;
  line-height: 2rem;
  text-align: center;
  color: var(--clr-primary-100);
  opacity: 0;
  transition: 0s;
  pointer-events: none;
  display: block;
}

.primary-header .primary-navigation li:hover .tooltip {
  top: 50%;
  opacity: 1;
  transition: all 500ms ease;
}

.primary-header .primary-navigation li a {
  color: var(--clr-primary-100);
  text-decoration: none;
  align-items: center;
  transition: all 500ms ease;
  border-radius: 0.6rem;
  font-weight: 600;
  white-space: nowrap;

  --gap: 1rem;
}

.primary-header .primary-navigation li a:hover {
  color: #fff;
  background: var(--clr-primary-100);
}

.primary-header .primary-navigation .active-menu a {
  color: #fff;
  background: var(--clr-primary-100);
}

.primary-header.active .primary-navigation li span {
  opacity: 1;
}
.primary-header .primary-navigation li span {
  opacity: 0;
  pointer-events: none;
}

.primary-navigation .icon::before {
  border-radius: 12px;
  text-align: center;
}
.icon::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.accueil::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f015";
}
.profil::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f007";
}
.galerie::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f302";
}
.contact::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0e0";
}

.primary-header .primary-navigation li span[text] {
  opacity: 0;
}

/* bottom content of the navigation sidebar */
.primary-header.active .profile-content hr {
  opacity: 1;
  width: 100%;
  margin-bottom: 1rem;
}

.primary-header .profile-content {
  position: relative;
  align-items: center;
  justify-content: center;
  align-self: baseline;
}

.primary-header.active .profile-content .name {
  display: initial;
  pointer-events: none;
}

.profile-content .profile-photo img {
  width: clamp(4rem, 4vh, 3rem);
  object-fit: cover;
  border-radius: 12px;
  border: var(--clr-secondary-dark) solid 2px;
}

.primary-header.active .profile-content .profile-photo {
  overflow: hidden;
}

.primary-header.active .profile-content .profile-photo img {
  border: none;
}

.profile-content .name {
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  line-height: 1px;
  transition: opacity 3s;
}

/* ---------------------------
----------- MAIN -------------
-----------------------------*/
.primary-main {
  min-height: 100vh;
  position: relative;
  background-color: var(--clr-bg-light);
  top: 0;
  z-index: 2;
  transition: all ease 500ms;
}

/* @supports (scroll-snap-align: start) {
  main {
    scroll-snap-type: y proximity;
    height: 100vh;
    overflow-y: scroll;
  }
}
section {
  scroll-snap-align: start;
} */

/* ---------------------------
    ---------- Section home-------
        -----------------------------*/

.accueil-main {
  --gap: 0;
}

.left,
.right {
  place-items: center;
  height: 100vh;
}

.accueil-main .left .svg-container-bigger {
  fill: var(--clr-secondary-medium);
}
.accueil-main .right {
  background-image: var(--clr-gradient);
  width: 100%;
  background-size: 100%;
  padding: 1rem;
}

.accueil-main .right .title-content {
  flex-direction: column;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.accueil-main .right .title-content .title {
  text-transform: none;
  font-size: 4rem;
  font-weight: 300;
  margin: 1.2rem;
}

.accueil-main .right .title-content .subtitle {
  font-weight: 100;
  font-size: 1.575rem;
}

.accueil-main .right .title-content .jobs {
  font-weight: 200;
  font-size: 1.125rem;
}

/* ---------------------------
    -------- Section Profil ------
        -----------------------------*/

.profil-main {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "profil"
    "banner"
    "skills"
    "skill"
    "references"
    "reference";
}
.profil-main h2 {
  grid-area: profil;
}

.profil-main h4 {
  color: var(--clr-primary-100);
}

.profil-main p {
  color: var(--clr-primary-400);
}

.profil-banner {
  grid-column: 3;
  grid-area: banner;
  align-items: center;
}
.quote-banner {
  position: relative;
  width: fit-content;
}
.quote-banner::after {
  content: "-Woohami";
  position: absolute;
  top: 70%;
  right: -5px;
  font-size: 0.875em;
  font-style: italic;
}

.skills-header,
.references-header {
  justify-content: flex-end;
}

.skills-header {
  grid-area: skills;
}

.skills-animations,
.references-animations {
  justify-content: center;
}
.skills-animations {
  grid-area: skill;
  --gap: 0.5rem;
}

.skill {
  align-items: center;
  --gap: 2rem;
  cursor: pointer;
}

.skill-icon img {
  width: 100%;
  z-index: 99;
}

.skill-link {
  position: relative;
}

.skill-bar {
  position: relative;
  /* width not defined here anymore but at each media preakpoints */
  height: 3em;
  background-color: #111;
  border-radius: 1.5em;
}

.skill-bar::before {
  content: "";
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  bottom: 0.5em;
  min-width: 2rem;
  max-width: calc(100% - 1em);
  background-image: var(--clr-gradient);
  border-radius: 1em;
  padding: 1em;
}
/* disables hover coloring on mobile and tablet. min 62em is back ON */
.skill .skill-icon img:first-of-type {
  display: none;
}
.reference-link .reference-icon img:first-of-type {
  display: none;
}
/* Adobe Illustrator */
.skill:nth-child(1) .skill-bar::before {
  width: 89%;
}
.skill:nth-child(1):hover .skill-bar::before {
  animation-name: one;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
@keyframes one {
  0% {
    width: 10%;
  }
  100% {
    width: 89%;
  }
}

/* Adobe After Effect */
.skill:nth-child(2) .skill-bar::before {
  width: 82%;
}
.skill:nth-child(2):hover .skill-bar::before {
  /* width: 82%; */
  animation-name: two;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
@keyframes two {
  0% {
    width: 10%;
  }
  100% {
    width: 81%;
  }
}

/* Adobe PR */
.skill:nth-child(3) .skill-bar::before {
  width: 65%;
}
.skill:nth-child(3):hover .skill-bar::before {
  /* width: 82%; */
  animation-name: three;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
@keyframes three {
  0% {
    width: 10%;
  }
  100% {
    width: 65%;
  }
}

/* Adobe Photo Shop */
.skill:nth-child(4) .skill-bar::before {
  width: 73%;
}
.skill:nth-child(4):hover .skill-bar::before {
  /* width: 82%; */
  animation-name: four;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
@keyframes four {
  0% {
    width: 10%;
  }
  100% {
    width: 73%;
  }
}
/* endleft side */

/* profil right side */
.references-header {
  grid-area: references;
}
.references-animations {
  grid-area: reference;
}

.reference-link {
  position: relative;
  --gap: 0;
  grid-template-areas: "icon name";
  justify-content: start;
  align-items: center;
}

.reference-icon {
  grid-area: icon;
}

.reference-name {
  grid-area: name;
}

.references-animations .reference-name img {
  width: 100%;
}

/* ---------------------------
    --------Section Galerie ------
        -----------------------------*/

.galerie-title {
  grid-area: galerie-title;
}
.galerie-left {
  grid-area: galerie-left;
  justify-content: space-evenly;
}

.galerie-left p::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0ad";
  margin-right: 1em;
}

.galerie-left p {
  font-size: 0.75em;
}

.galerie-left a {
  color: var(--clr-primary-400);
  font-weight: 600;
}
.galerie-right {
  grid-area: galerie-right;
}
.galerie-main .galerie-left p {
  padding-left: 2rem;
  color: var(--clr-primary-400);
}

.galerie-main .galerie-left h4 {
  padding-left: 4rem;
  color: var(--clr-primary-100);
}

.galerie-main .galerie-left h5 {
  text-transform: uppercase;
  font-weight: 200;
  font-size: 1.125rem;
  text-align: center;
  grid-area: centered-title;
}
.galerie-main .galerie-left .galerie-container {
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* In construction put back when links of LOGOS with the modal are available */
/* .galerie-item {
  cursor: pointer;
} */

.galerie-item img {
  max-width: 100px;
  max-height: 200px;
}

.galerie-main .galerie-right {
  background-image: var(--clr-gradient);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.galerie-right h5 {
  text-transform: uppercase;
  color: #fff;
  font-weight: 200;
  font-size: 1.125rem;
  grid-area: centered-title;
  margin-bottom: 1rem;
}

/* ---------------------------
    -------- Section Contact ------
        -----------------------------*/

.contact-main {
  height: 100vh;
  position: relative;
}

.contact-container {
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: space-between;
  background-image: var(--clr-gradient);
  color: #fff;
  border-radius: 0.5em;
  box-shadow: 0px 10px 20px 5px #777777;
  padding: 2rem;
}

.contact-logo {
  grid-area: logo;
}
.contact-logo svg {
  fill: #fff;
  width: 3rem;
  aspect-ratio: 1;
}
.contact-card-title {
  grid-area: title;
  font-size: 1.55rem;
}
.contact-left-text h3 {
  font-size: 2em;
}
.contact-left-text {
  grid-area: text;
}

.contact-card-title,
.contact-left-text {
  margin: 10px;
}

.contact-left-text p {
  max-width: 45ch;
  font-size: 0.9rem;
  margin: 0.8rem;
}
.contact p {
  line-height: 1em;
}

.contact-logo {
  width: 2.5rem;
  aspect-ratio: 1;
  fill: #fff;
  place-self: center;
}
.contact-hr {
  grid-area: hr;
  border-top: solid 1px #fff;
  width: 80%;
  place-self: center;
  margin-top: 0.775rem;
}

.socials {
  grid-area: socials;
  bottom: 5px;
  place-self: center;
}

.socials a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.email-btn {
  grid-area: email;
  place-self: center;
  max-width: fit-content;
}

.email-btn:hover,
.email-btn:focus,
.email-btn:active {
  background-color: transparent;
}

.email-btn a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  width: fit-content;
  padding: 1rem 2rem;
  transition: 0.5s;
  color: #fff;
  border: 0;
  border-radius: 0.75em;
  background-color: transparent;
  border: 3px solid #fff;
  transition: 0.5s;
  cursor: pointer;
}

.email-btn:hover a {
  color: var(--clr-secondary-dark);
  background-color: #fff;
  box-shadow: 0px 10px 20px 5px #777777;
}

.phone {
  color: #fff;
  align-items: center;
}
.phone-text {
  opacity: 1;
  text-align: right;
}

.phone-text::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f061";
  display: block;
}

.phone-btn {
  grid-area: phone;
  width: fit-content;
}

#phone {
  text-decoration: none;
  padding: 0.8em;
  width: 75px;
  height: 75px;
  background-color: transparent;
  display: block;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
  border: 3px solid #fff;
  position: relative;
  margin: 0 10px;
  transition: 0.5s;

  display: flex;
  align-items: center;
}

#phone:hover {
  background-color: #fff;
  position: relative;
}

#phone::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f095";
  font-size: 1.5rem;
  position: relative;
  display: block;
  width: 100%;
  color: #fff;
  transition: 0.5s;
}

#phone:hover::before {
  color: var(--clr-primary-200);
  -webkit-transform: rotateY(360deg);
  transform: rotateY(360deg);
}

.socials a:hover {
  border-bottom: 2px solid #fff;
}

.design-by {
  text-align: center;
  width: 100%;
  font-size: 0.785rem;
  padding-bottom: 0.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: auto;
  margin-right: auto;
}
.design-by a {
  text-decoration: none;
  font-weight: 700;
}

.design-by,
.design-by a {
  color: var(--clr-primary-400);
}
.design-by a::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f004";
  margin: 0 0.5em;
  transition: 0.3s;
}

/*  -----------------------------
    -------- Media Querries -----
    -----------------------------*/

/* version mobile */
@media screen and (max-width: 43em) {
  /* general */
  html {
    font-size: 13px;
  }
  body {
    width: 100vw;
  }
  h2 {
    text-align: center;
    font-size: 2.5rem;
  }

  .galerie-main h2,
  .contact-main h2 {
    padding-top: 1rem;
  }

  /* ------------------ */
  .primary-header {
    bottom: 0;
    height: 10vh;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    overflow: hidden;
  }

  .primary-header .logo-content {
    display: none;
  }
  .primary-header .primary-navigation {
    display: flex;
    --gap: 0;
    margin-top: 0;
    flex-direction: row;
  }
  .primary-header .primary-navigation li {
    margin: auto;
  }

  .primary-header .primary-navigation li a {
    flex-direction: column;
    justify-content: center;
    --gap: 0.375em;
    padding: 0.8em;
  }

  .primary-header .profile-content {
    display: grid !important;
    align-self: center;
  }

  .primary-header .profile-content .profile-photo {
    overflow: hidden;
  }

  .primary-header .profile-content .profile-photo img {
    border: none;
  }

  .icon::before {
    display: block;
  }

  .primary-header .primary-navigation li span {
    opacity: 1;
    font-size: 0.675rem;
  }

  .primary-header .primary-navigation li .tooltip {
    display: none;
  }

  .primary-main {
    height: calc(100% - 10vh);
  }

  /* vertical layout home*/
  .accueil-main {
    flex-direction: column;
  }

  /* all */
  .profil-main,
  .galerie-main,
  .contact-main {
    padding: 0;
  }
  .profil-main,
  .galerie-left {
    padding: 1rem;
  }
  /* vertical layout profil*/

  .profil-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "profil"
      "banner"
      "skills"
      "skill"
      "references"
      "reference";
  }

  .profil-banner {
    --gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .text-banner {
    margin-top: 1.25rem;
  }
  .skill {
    justify-content: space-evenly;
    --gap: 0;
  }
  .skill-icon {
    width: 63px;
  }
  .skill-bar {
    width: max(17em, 70%);
  }
  .references-animations {
    margin: 1.3rem 0;
  }
  .references-header {
    margin-top: 4vh;
  }
  .reference-link {
    margin-left: 5vw;
  }

  .reference-icon img,
  .reference-name img {
    width: 15vw;
    height: 15vw;
  }

  .reference-name {
    margin-left: 1rem;
  }
  /* vertical layout galerie*/
  .galerie-main {
    width: 100vw;
    grid-template-areas:
      "galerie-title"
      "galerie-left"
      "galerie-right";
  }
  .galerie-main .galerie-left .galerie-container {
    padding-top: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .galerie-container .galerie-item {
    padding-bottom: 2rem;
  }

  .galerie-right {
    width: 100vw;
    min-height: 80vh;
  }

  iframe {
    width: 99vw;
  }

  .contact-container {
    gap: var(--gap, 0);
    min-height: 55vh;
    /* top: calc(37% - -10vh); */
    top: 45%;
    width: min(37em, 85%);
    padding: 0.55rem;
    background-image: var(--clr-gradient);
    color: #fff;
    border-radius: 0.5em;
    box-shadow: 0px 10px 20px 5px #777777;

    grid-template-columns: 4em repeat(2, 1fr);
    grid-template-rows: repeat(3, auto) 4em;
    grid-template-areas:
      "logo title title"
      "text text text"
      "email email phone"
      /* "hr hr hr" */
      "socials socials socials";
  }

  .contact-hr {
    display: none;
    border-top: 0.8px;
  }
  .contact-card-title {
    font-size: 1.45rem;
  }
  .contact-logo {
    margin-left: 6px;
  }
  .contact-left-text p {
    margin-bottom: 2em;
  }
  .phone-text::after {
    text-align: center;
  }
  #phone {
    width: 60px;
    position: relative;
    height: 60px;
  }

  #phone::before {
    font-size: 1rem;
  }
  .phone-text {
    opacity: 0;
  }

  .socials a {
    font-size: 0.675rem;
    text-shadow: 10px 0px 20px black;
  }

  .design-by {
    bottom: 12vh;
  }

  .design-by a::after {
    font-weight: 700;
  }
}
/* version tablet */
@media screen and (min-width: 43em) {
  section {
    min-height: 100vh;
  }
  h2 {
    font-size: 2.25rem;
  }
  .primary-header {
    top: 0;
  }
  .primary-main {
    width: calc(100% - 5em);
    left: 5em;
  }
  .primary-header.active ~ .primary-main {
    left: 15em;
    width: calc(100% - 15em);
  }
  .primary-header .primary-navigation li {
    height: 3.125em;
    margin: 0.4rem 0;
  }
  .primary-navigation .icon::before {
    height: 3.125em;
    min-width: 3.125em;
    line-height: 3.125em;
  }

  .primary-header .profile-content {
    width: 100%;
  }
  .accueil-main {
    flex-direction: column;
  }
  .accueil-main .left,
  .accueil-main .right {
    height: 50vh;
  }

  .galerie-main h2,
  .contact-main h2,
  .profil-main h2 {
    padding-top: 1.25rem;
    text-align: center;
  }

  .profil-main {
    padding: 0 3rem;
    --gap: 0.8rem;
    grid-template-rows: 0.1fr 0.2fr 0.3fr 1fr;
    grid-template-areas:
      "profil "
      "banner"
      "skills"
      "skill"
      "references"
      "reference";
  }
  .skill-icon {
    width: 80px;
  }
  .skill-bar {
    width: 20em;
  }
  /* creation of a margin to better differentiate the link
   from the coming section > Galerie*/
  .references-animations {
    margin-bottom: 2.75rem;
  }
  .reference-icon img,
  .reference-name img {
    width: 80px;
    height: 80px;
  }
  .reference-name {
    margin-left: 1.75rem;
  }
  .references-header {
    margin-top: 1.75rem;
  }

  .galerie-main {
    min-height: 100vh;
    --gap: 1rem;
    grid-template-areas:
      "galerie-title"
      "galerie-left"
      "galerie-right";
  }
  .galerie-main .galerie-right {
    height: 80vh;
    --gap: 0;
  }
  iframe {
    width: 66vw;
  }
  .primary-header.active ~ .primary-main .contact-main .contact-container {
    width: min(42em, 91%);
  }
  .contact-container {
    padding: 1.25rem;
    width: min(42em, 75%);
    grid-template-columns: 4em 0.5fr 0.3fr 0.3fr;
    grid-template-areas:
      "logo title title title"
      "text text text text"
      "email email phone phone"
      "hr hr hr hr"
      "socials socials socials socials";
  }
  .socials a {
    font-size: 0.75rem;
  }
  .design-by a:hover::after {
    font-weight: 700;
  }
}
/* version laptop */
@media screen and (min-width: 62em) {
  h2 {
    font-size: 2.7rem;
  }
  h4 {
    font-size: 1.1rem;
  }
  .profil-main,
  .contact-main {
    padding-left: 1.7rem;
  }

  /* correction for the padding left on laptop because of the blue background */
  .galerie-title,
  .galerie-right {
    padding-left: 1.7rem;
  }

  .galerie-main h2,
  .contact-main h2,
  .profil-main h2 {
    text-align: initial;
    padding-top: 0;
  }

  .galerie-main h2,
  .contact-main h2 {
    padding-top: 1.7rem;
  }
  .profil-main p {
    font-size: 13px;
  }
  .accueil-main {
    flex-direction: row;
  }
  .accueil-main .left,
  .accueil-main .right {
    height: 100vh;
  }
  .accueil-main .left {
    width: 66%;
  }

  .profil-main {
    padding: 0 1rem;
    --gap: 0.5rem;
    grid-template-columns: auto;
    grid-template-rows: 10vh 15vh 14vh auto;
    grid-template-areas:
      "profil profil profil profil  "
      "banner banner banner banner "
      ". skills references ."
      ". skill reference .";
  }
  .skills-animations,
  .references-animations {
    justify-content: normal;
  }
  .profil-banner {
    justify-content: space-evenly;
  }
  .profil-banner p {
    line-height: 1.5em;
  }

  .skills-header p,
  .references-header p {
    width: 45ch;
  }
  .references-header {
    margin-top: 0;
  }
  .references-animations {
    /* justify-content: space-evenly; */
    --gap: 1.25rem;
  }
  .reference-icon img {
    width: 70px;
  }
  .reference-icon img,
  .reference-name img {
    height: 70px;
  }

  /* .skills-header,
  .skills-animations {
    margin-left: 2em;
    margin-right: 2em;
  } */
  .skill-icon {
    width: 75px;
  }
  .skill-bar {
    width: 16em;
  }
  /* ENABLES hover coloring on laptop and desktop. min 62em is back ON */
  .skill .skill-icon img:first-of-type {
    display: block;
  }
  .reference-link .reference-icon img:first-of-type {
    display: block;
  }
  .skill .skill-icon img:nth-of-type(2) {
    display: none;
  }
  .skill:hover .skill-icon img:first-of-type {
    display: none;
  }
  .skill:hover .skill-icon img:nth-of-type(2) {
    display: block;
  }
  .reference-link .reference-icon img:nth-of-type(2) {
    display: none;
  }
  .reference-link:hover .reference-icon img:first-of-type {
    display: none;
  }
  .reference-link:hover .reference-icon img:nth-of-type(2) {
    display: block;
  }

  .galerie-main {
    min-height: 100vh;
  }

  .galerie-main {
    --gap: 1rem;
    grid-template-columns: auto;
    grid-template-areas:
      "galerie-title"
      "galerie-left"
      "galerie-right";
  }
  .galerie-main .galerie-left .galerie-container {
    grid-template-columns: repeat(4, 1fr);
    --gap: 0;
  }

  .galerie-item {
    padding-bottom: 2rem;
  }
  /* grayscale effect only on large screens*/
  .galerie-item img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
  }
  .galerie-item:hover img {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    transform: scale(1.05);
  }

  iframe {
    width: 50vw;
  }
  .contact-container {
    width: min(50em, 82%);
    grid-template-columns: 4em 0.5fr 0.3fr 0.3fr;
    grid-template-areas:
      "logo title title ."
      ". text email phone"
      ". text email phone "
      "hr hr hr hr"
      "socials socials socials socials";
  }
  .primary-header.active ~ .primary-main .contact-main .contact-container {
    width: min(50em, 82%);
    grid-template-areas:
      "logo title title ."
      ". text email phone "
      "hr hr hr hr"
      "socials socials socials socials";
  }

  .socials ul {
    --gap: 2.5rem;
  }
  .email-btn {
    justify-self: start;
  }

  /* --------------------------------------- */
  /* To be continued */
  /* Modal pour les logos dans la Galerie */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(221 218 218 / 84%);
    filter: blur(1px);
  }

  .modal-content {
    aspect-ratio: 1;
    margin: auto;
    display: block;
    max-width: 500px;
  }

  /* Add Animation */
  .modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }

  @-webkit-keyframes zoom {
    from {
      -webkit-transform: scale(0);
    }
    to {
      -webkit-transform: scale(1);
    }
  }

  @keyframes zoom {
    from {
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }

  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--clr-secondary-medium);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }

  .close:hover,
  .close:focus {
    color: var(--clr-secondary-light);
    text-decoration: none;
    cursor: pointer;
  }
}
/* version desktop */
@media screen and (min-width: 82em) {
  section {
    min-height: 100vh;
  }
  h4 {
    font-size: 1.375rem;
  }
  .profil-main p {
    font-size: 1rem;
  }

  .primary-header {
    top: 0;
  }
  .primary-main {
    width: calc(100% - 5em);
    left: 5em;
  }
  .primary-header.active ~ .primary-main {
    left: 15em;
    width: calc(100% - 15em);
  }
  .primary-header .primary-navigation li {
    height: 3.125em;
    margin: 0.4rem 0;
  }
  .primary-navigation .icon::before {
    height: 3.125em;
    min-width: 3.125em;
    line-height: 3.125em;
  }

  .primary-header .profile-content {
    width: 100%;
  }
  .accueil-main .left {
    width: 50%;
  }
  .profil-main,
  .galerie-main,
  .contact-main {
    padding-left: 4rem;
  }
  .galerie-main h2,
  .contact-main h2 {
    padding-top: 4rem;
  }

  .profil-main {
    padding: 4rem;
    --gap: 2rem;
    grid-template-columns: 0.2fr 1fr 1rem 1fr;
    grid-template-rows: 0.1fr 0.2fr 0.3fr 1fr;
    grid-template-areas:
      "profil profil . .  "
      "banner banner banner banner"
      ". skills . references"
      ". skill . reference";
  }

  .skills-header,
  .references-header {
    align-self: end;
  }

  .skill-icon {
    width: initial;
  }
  .skill-bar {
    width: 23em;
  }

  .skill .skill-icon img:nth-of-type(2) {
    display: none;
  }
  .skill:hover .skill-icon img:first-of-type {
    display: none;
  }
  .skill:hover .skill-icon img:nth-of-type(2) {
    display: block;
  }

  .reference-icon img,
  .reference-name img {
    width: initial;
    height: initial;
  }
  .reference-link .reference-icon img:nth-of-type(2) {
    display: none;
  }
  .reference-link:hover .reference-icon img:first-of-type {
    display: none;
  }
  .reference-link:hover .reference-icon img:nth-of-type(2) {
    display: block;
  }
  .galerie-title {
    padding-left: 0;
  }
  .galerie-main {
    --gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "galerie-title galerie-right"
      "galerie-left galerie-right";
  }
  .galerie-main .galerie-left .galerie-container {
    grid-template-columns: repeat(3, 1fr);
    --gap: 1rem;
  }
  .galerie-main .galerie-right {
    height: initial;
  }
  .galerie-right {
    padding-left: 0;
  }
  iframe {
    width: 700px;
  }

  .primary-header.active ~ .primary-main .contact-main .contact-container {
    width: min(62em, 80%);
  }
  .contact-container {
    top: 50%;
    width: min(62em, 80%);
    grid-template-columns: 4em 0.5fr 0.3fr 0.3fr;
    padding: 2rem;
  }
  .email-btn {
    justify-self: center;
  }
  .phone-btn {
    justify-self: initial;
  }

  .design-by a:hover::after {
    font-weight: 700;
  }
}
