@font-face {
  font-family: 'Regus';
  src: url(police/SaintRegus.ttf) format('truetype');
}

@font-face {
  font-family: 'Avenir';
  src: url(police/Avenir-Book-01.ttf) format('truetype');
}

:root {

  /* Color */
  --neutral-white: #f8f8f8;
  --neutral-black: #212020;
  --red900: #cd312d;
  --blue900: #445dd1;
  --yellow900: #fab900;
  --yellow600: #ffd966;
}

html {
  margin: auto;
  padding: auto;
  scroll-behavior: smooth;
}

body {
  background: var(--neutral-white);
  width: 100vw;
}

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

/* F0NT */

a {
  font-family: 'Regus';
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--neutral-black);
}

h1 {
  font-family: 'Regus';
  font-size: 4.5rem;
}

h2 {
  font-family: 'Regus';
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
  font-family: 'Avenir';
  font-weight: lighter;
}

h4 {
  font-family: 'Regus';
  font-size: 1.5rem;
}

h5 {
  font-family: 'Regus';
  font-size: 1.125rem;
}

h6 {
  font-family: 'Avenir';
  font-size: 0.875rem;
  font-weight: lighter;
}

li {
  font-family: 'Avenir';
  font-size: .875rem;
}

p {
  font-family: 'Avenir';
  font-size: 1rem;
}

.underline {
  font-weight: 900;
  text-decoration: underline #cd312d;
  text-decoration-thickness: .125rem;
}

.short-version p {
  font-family: 'Regus';
  font-size: 1rem;
  margin: auto;
  text-align: center;
}

button {
  width: fit-content;
  font-family: 'Regus';
  border: none;
  background-color: transparent;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--yellow900);
  cursor: pointer;
}

.prénom {
  /* animation: ColorChangeName 3s infinite; */
  color: #cd312d;
}

.nom {
  color: #445dd1;
}

/* HER0 */

header {
  width: 100vw;
  min-height: 15vh;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 15vh;
  width: 100%;
  padding-right: 7.5rem;
  padding-left: 7.5rem;
}


.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  z-index: 100;
  position: fixed;
  top: 0;
}

#navbar {
  position: fixed;
  padding-top: .625rem;
  transition: top 0.3s;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: .125rem solid var(--neutral-black);
  margin: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .75rem;
  padding-bottom: .375rem;
  border-radius: 1rem;
  background-color: var(--neutral-white);
  top: 0;
  transition: top 0.3s;
  height: 3.125rem;
}

.navbar button {
  height: auto;
}

.nav_img {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.separator {
  height: 1.5rem;
  /* Adjust based on your font-size */
  width: .25rem;
  margin-bottom: .25rem;
  border-radius: 1rem;
  background-color: var(--neutral-black);
}

.navbar.show {
  transform: translateY(0);
}

.shortie {
  background-color: var(--yellow900);
}

.navbar.shortie:hover {
  background-color: var(--neutral-black);
}

.short {
  color: var(--neutral-black);
}



.navbar.shortie:hover .short {
  color: var(--yellow900);
}



/* 0verview */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  padding-right: 7.5rem;
  padding-left: 7.5rem;
}

aside {
  width: 100%;
  display: flex;
  /* justify-content: center; */
  flex-direction: column;
  margin-top: 2rem;

}

.thumbnail {
  display: flex;
  position: relative;
  justify-content: center;
  /* gap: 2.25rem; */
  margin-bottom: 2rem;
  max-width: max-content;
  min-height: auto;
  /* border: black 2px solid; */
}

.homecontainer {
  max-width: 60vw;
  /* aspect-ratio: 2000 / 1106; */
  /* Ratio exact de votre image */
  overflow: hidden;
  border-radius: 2rem;
  filter: blur(9px);
  transition: filter 0.5s ease;
  /* position: relative; */
  /* Important pour object-position */
}

.homecontainer img {
  width: 100%;
  height: 100%;
  /* object-fit: cover;
  object-position: center; */
  display: block;
}

.imgcontainer {
  border-radius: 2rem;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
}

.round {
  border-radius: 2rem;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 99.4%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.overlay h2 {
  color: var(--yellow900);
}

.overlay p {
  color: var(--neutral-white);
}

.overlay .ovrly-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.thumbnail:hover .homecontainer {
  filter: blur(0rem);
}

.thumbnail:hover .overlay.round {
  opacity: 0;
}

.redline {
  display: inline-block;
  position: relative;
  /* Nécessaire pour le positionnement du pseudo-élément */
  padding-bottom: .125rem;
  /* Ajuster l'espacement entre le texte et la bordure */
}

.redline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  transform: scaleX(1);
  height: .375rem;
  /* Épaisseur de la bordure */
  background-color: var(--red900);
  /* Couleur de la bordure */
  border-radius: .125rem;
  /* Rayon de l'arrondi */
}

.yelline {
  display: inline-block;
  position: relative;
  /* Nécessaire pour le positionnement du pseudo-élément */
  padding-bottom: .125rem;
  /* Ajuster l'espacement entre le texte et la bordure */
}

.yelline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: .375rem;
  /* Épaisseur de la bordure */
  background-color: var(--yellow900);
  /* Couleur de la bordure */
  border-radius: .125rem;
  /* Rayon de l'arrondi */
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.overview {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}



.puces {
  display: flex;
  /* Utilise Flexbox pour aligner les éléments en ligne */
  padding: 0;
  /* Supprime le padding par défaut */
  margin: 0;
  /* Supprime la marge par défaut */
  align-items: center;
  /* Centre verticalement les éléments */
}

/* Style pour les éléments de la liste */
.puces li {
  position: relative;
  /* Nécessaire pour positionner les pseudo-éléments */
  display: flex;
  /* Assure que les éléments enfants soient flexibles */
  align-items: center;
  /* Centre verticalement les éléments */
  padding-left: .3125rem;
  /* Ajoute de l'espace pour les puces */
}

/* Supprimer la puce du premier élément */
.puces li:first-child {
  padding-left: 0;
  /* Supprime le padding à gauche */
}

/* Style pour les puces personnalisées */
.puces li::before {
  content: '•';
  /* Caractère de la puce */
  color: #fab900;
  /* Couleur de la puce */
  font-size: 1.125rem;
  /* Taille de la puce */
  margin-right: .3125rem;
  /* Espacement entre la puce et le texte */
}

/* Supprimer la puce du premier élément */
.puces li:first-child::before {
  content: '';
  /* Supprime le contenu de la puce */
  margin-right: 0;
  /* Supprime l'espacement de la puce */
}

.liste li {
  position: relative;
  /* Nécessaire pour positionner les pseudo-éléments */
  display: flex;
  /* Assure que les éléments enfants soient flexibles */
  align-items: center;
  /* Centre verticalement les éléments */
  padding-left: .3125rem;
  margin-bottom: .5rem;
  font-size: 1rem;
}

.liste li::before {
  content: '•';
  /* Caractère de la puce */
  color: #fab900;
  /* Couleur de la puce */
  font-size: 1.125rem;
  /* Taille de la puce */
  margin-right: 1rem;
  /* Espacement entre la puce et le texte */
}



/* C4SE STUDY */

.hmw-statement {
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
  border-radius: 2rem;
  width: 80vw;
  text-align: center;
  background-color: var(--yellow900);
}

.statement {
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
  width: 80vw;
  border-radius: 2rem;
  text-align: center;
  background-color: var(--blue900);
}

.statement h3 {
  color: var(--neutral-white);
}

.case-study {
  /* border: 2px red solid; */
  padding-right: 7.5rem;
  padding-left: 7.5rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  width: 100vw;
  flex-direction: column;
  /* align-items: center; */
  gap: 4rem;

}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-section p {
  font-size: 1.125rem;
}

.image-row {
  display: flex;
  width: 80vw;
  align-items: center;
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 5rem;
}

.image-row img {
  border-radius: 1rem;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
  height: 25rem;
}

.smallimage-row {
  display: flex;
  width: 80vw;
  align-items: center;
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 5rem;
}

.smallimage-row img {
  border-radius: 1rem;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
  height: 25rem;
}


.bigimage-row {
  display: flex;
  width: 80vw;
  align-items: center;
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 3rem;
}

.bigimage-row img {
  border: .0625rem solid var(--blue900);
  border-radius: 1rem;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
  height: auto;
}

.neutral {
  border-radius: 1rem;
  max-width: 100%;
  overflow: hidden;
  margin: auto;
  height: 25rem;
}


.bottom-navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}


.source {
  font-size: .875rem;
}


/* GRAPHIC DESIGN */

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 1rem;

}

.image-grid img {
  max-height: 20rem;
  width: auto;
}


/* F00TER */

.callme {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--yellow900);
}


.callme button {
  color: var(--yellow900);
}

.contactme {
  display: flex;
  gap: 2.5rem;
}

.normal-footer {
  background-color: var(--neutral-black);
  display: flex;
  /* justify-content: space-between; */
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  padding-bottom: 2.5rem;
  margin-top: 3rem;
  height: 15%;
  max-width: 100vw;
}

.bottoms {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  /* border: 2px solid white; */
}

.bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  /* border: 2px solid white; */

}

.nav-buttons {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}

.nav-buttons button {
  height: auto;
}

.nav-buttons a {
  color: #fab900;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.socials img {
  height: 2.5rem;
  width: 2.5rem;
  border: var(--neutral-black) 0.125rem solid;
  background: #fab900;
  border-radius: 2rem;
  padding: 0.2rem;
  box-shadow: .125rem .125rem var(--neutral-black);
}

.name {
  /* border: 2px orange solid; */
}

.name h6 {
  color: var(--neutral-black);
}

.normal-footer h6 {
  color: var(--yellow900);
}


/* animation & hover states */

.hover-linkyel {
  position: relative;
  text-decoration: none;
  padding: .1875rem 0;
}

.hover-linkyel::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: .375rem;
  border-radius: .125rem;
  background-color: var(--yellow900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hover-linkyel:hover::after {
  transform: scaleX(1);
}

.hover-linkred {
  position: relative;
  text-decoration: none;
  padding: .1875rem 0;
}

.hover-linkred::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: .375rem;
  border-radius: .125rem;
  background-color: var(--red900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hover-linkred:hover::after {
  transform: scaleX(1);
}

.hovredd {
  position: relative;
  text-decoration: none;
  padding: .1875rem 0;
}

.hovredd::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: .75rem;
  border-radius: .25rem;
  background-color: var(--red900);
  transform: scaleX(1);
}

.hovyell {
  position: relative;
  text-decoration: none;
  padding: .1875rem 0;
}

.hovyell::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: .75rem;
  border-radius: .25rem;
  background-color: var(--yellow900);
  transform: scaleX(1);
}


.hover-linkblue {
  position: relative;
  text-decoration: none;
  padding: .1875rem 0;
}

.hover-linkblue::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: .375rem;
  border-radius: .125rem;
  background-color: var(--blue900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hover-linkblue:hover::after {
  transform: scaleX(1);
}



@media screen and (min-width: 320px) and (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  h5 {
    font-size: 1rem;
  }

  nav {
    padding-top: 0.5rem;
    max-width: 100vw;
    justify-content: center;

  }

  .navigation {
    width: 90%;
    margin: 0;
  }

  #navbar {
    padding-top: 12px;
  }

  .navbar {
    gap: 1rem;
    border: 2px solid var(--neutral-black);
    margin: 0;
    padding-left: .75rem;
    padding-right: .75rem;
    padding-top: .75rem;
    padding-bottom: .375rem;
    border-radius: 1rem;
    top: 0;
    height: 64px;
  }

  .navbar a {
    font-size: 1rem;
  }

  .nav_img {
    gap: 1rem;
  }

  main {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .thumbnail {
    min-height: auto;
  }

  .homecontainer {
    max-width: 90vw;
    /* aspect-ratio: 16 / 9; */
    /* Garde le même ratio */
  }

  .homecontainer img {
    max-width: 90vw;
    /* aspect-ratio: 2000 / 1106; */
    /* Même ratio */
  }

  .hmw-statement {
    padding-left: 2rem;
    padding-right: 2rem;
    margin: auto;
  }

  .statement {
    padding-left: 2rem;
    padding-right: 2rem;
    margin: auto;
  }

  .hmw-statement h3 {
    font-size: 1.5rem;
  }

  .statement h3 {
    font-size: 1.5rem;
  }

  .case-study {
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 3rem;
    padding-top: 3rem;
  }

  .case-section {
    width: 100%;
  }

  .image-grid {
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 1rem;
  }

  .image-grid img {
    max-height: 18rem;
    width: auto;
  }

  .bigimage-row {
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    flex-wrap: wrap;
    margin: auto;
    gap: 3rem;
  }

  .bigimage-row img {
    border: .0625rem solid var(--blue900);
    border-radius: 1rem;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
    height: auto;
  }

  .smallimage-row {
    max-width: 100%;
    align-items: center;
    padding-left: 0rem;
    padding-right: 0rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    flex-wrap: wrap;
    margin: auto;
    justify-content: center;
    gap: 5rem;
  }

  .smallimage-row img {
    border-radius: 1rem;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
    height: auto;
  }


  .image-row {
    max-width: 100%;
    align-items: center;
    padding-left: 0rem;
    padding-right: 0rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    flex-wrap: wrap;
    margin: auto;
    gap: 5rem;
  }

  .image-row img {
    border-radius: 1rem;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
    height: auto;
  }

  #link button {
    margin: auto;
  }

  .normal-footer {
    padding-left: 2rem;
    padding-right: 2rem;
    height: 60vh;
  }

  .bottom-left {
    /* border: 2px white solid; */
    justify-content: space-between;
    width: 50vw;
  }

  .callme h4 {
    font-size: 1.5rem;
  }

  .callme p {
    font-size: .875rem;
  }

  .bottom-right {
    /* border: 2px white solid; */
  }

  .nav-buttons {
    padding-top: 0rem;
    flex-direction: column;
  }

  .name {
    /* border: 2px orange solid */
  }

}