/* GENERAL */

:root {
  --background-color: #fcfcfc;
  --primary-color: #c5d1b2;
  --secondary-color: #ccd8b9;
  --tertiary-color: #eff2ea;
  --primary: #212121;
  --secondary: #666;
  --tertiary: #9e9e9e;
  --gold: #c39740;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 43.75%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 150%;
  font-weight: 400;
  color: var(--primary);
  background-color: var(--background-color);
  font-size: 1.8rem;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

h1,
h2,
h3 {
  line-height: 120%;
  font-family: "Montserrat", cursive;
  font-weight: 400;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.4rem;
}

h2 {
  font-size: 4.8rem;
  font-weight:500;
}

h3 {
  font-size: 3.6rem;
}

a:link,
a:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.2rem;
  transition: all 0.2s;
}

li {
  margin-left: 3rem;
}

.container {
  max-width: 120rem;
  padding: 0 2.4rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 4.8rem;
  align-items: center;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: 1fr 0.2fr 1fr;
}

.grid--5-cols {
  grid-template-columns: repeat(5, 1fr);
}

.bold {
  font-weight: bold;
}

.underline {
  text-decoration: underline;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9.6rem;
}

.padding-section {
  padding: 12.8rem 0;
}

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.8rem;
}

.active {
  text-decoration: underline !important;
}

.normal {
  font-weight: 400;
  font-size: 1.4rem;
}

#back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  display: none; /* Masquer le bouton par défaut */
}

@media (min-width: 28.75em) {
  html {
    font-size: 53.5%;
  }
}

@media (min-width: 59em) {
  html {
    font-size: 62.5%;
  }

  .padding-section {
    padding: 6.4rem 0;
  }

  section {
    gap: 4.8rem;
  }

  .grid {
    row-gap: 4.8rem;
  }
}

/* SCROLL WATCHER */
.scroll-watcher {
  height: 0.8rem;
  position: fixed;
  top: 0;
  z-index: 10000;
  background-color: var(--primary-color);
  width: 100%;
  scale: 0 1;
  transform-origin: left;
  animation: scroll-watcher linear;
  animation-timeline: scroll();
}

@keyframes scroll-watcher {
  to {
    scale: 1 1;
  }
}

/* NAVIGATION */
.logo {
  width: 4rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.1rem 2.4rem;
  background-image: url(./img/linear\ gradient\ gold.jpg);
  border-image-slice: 27 41 41 27 fill;
}

.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}

.main-nav-link:hover,
.main-nav-link:active {
  transform: scale(1.1);
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.8rem;
  border-radius: 1.2rem;
  background-color: var(--secondary-color);
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  background-color: var(--primary-color);
  transform: none;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  display: none;
}

.hidden {
  display: none;
}

@media (max-width: 44em) {
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

@media (min-width:28.68em){
  .header {
    padding: 2.1rem 2.4rem;
  }
}

@media (min-width:44em){
  .header {
    padding: 2.2rem 2.4rem;
  }
}

@media (min-width:59em){
  .header {
    padding: 1.5rem 2.4rem;
  }
}

/* STICKY NAVIGATION */
.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  padding-top: 0;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 700;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.sticky .section-hero {
  margin-top: 9.6rem;
}

/* HERO HEADER */
.home-title span {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 1.2;
  z-index: -1;
}

.home-title span::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--tertiary-color);
  animation: a-ltr-after 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  transform: translateX(-101%);
}

.home-title span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  animation: a-ltr-before 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  transform: translateX(0);
}

.home-title span:nth-of-type(1)::before,
.home-title span:nth-of-type(1)::after {
  animation-delay: 1s;
}

.home-title span:nth-of-type(2)::before,
.home-title span:nth-of-type(2)::after {
  animation-delay: 1.5s;
}

@keyframes a-ltr-after {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(101%);
  }
}

@keyframes a-ltr-before {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200%);
  }
}

.qualites {
  display: flex;
  flex-direction: row;
  gap: 2.4rem;
  text-align: center;
  align-items: flex-end;
}

.qualites img {
  width: 100%;
}

.section-hero {
  margin: 1% 0 3% 0;
}

.hero-img img {
  width: 100%;
}

.title-post {
  font-size: 2.4rem;
  margin: 1.2rem 0;
}

.dispo {
  margin: 3.7rem 0;
  text-align: center;
}

.btn {
  padding: 1.4rem 1.6rem;
  background-color: var(--primary-color);
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.5s;
}

.btn a {
  font-size: 1.6rem;
  font-weight: 700;
}

.btn:hover {
  background-color: var(--background-color);
  box-shadow: inset 0 0 0 2px var(--primary-color);
  transform: translateY(-4px);
}

.btn:disabled {
  background-color: var(--primary-color);
  opacity: 0.4;
  cursor: default;
}

.btn:hover:disabled {
  transform: none;
}

.search-information {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 59em) {
  .hero {
    grid-template-columns: 1fr;
  }

  .search-information {
    align-items: start;
  }

  .img-queries {
    width: 50%;
    justify-self: center;
  }
}

/* COMPETENCES */
.section-competences {
  background-image: url(./img/background\ 1.webp);
  background-size: cover;
  padding-top: 3.8rem;
}

.scroll {
  position: relative;
  display: flex;
  max-width: 36rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #fff 20%,
    #fff 80%,
    transparent
  );
}

@media (min-width:28.125em) {
  .scroll{
    max-width: 45rem;
  }
}

@media (min-width:43.70em) {
  .scroll{
    max-width: 70rem;
  }
}

@media (min-width:59em) {
  .scroll{
    max-width: 93rem;
  }
}

@media (min-width:75em) {
  .scroll{
    max-width: 120rem;
  }
}

.scroll div {
  white-space: nowrap;
  animation: animate 40s linear infinite;
}

.scroll div:nth-child(2) {
  animation: animate2 40s linear infinite;
  animation-delay: calc(40s / -2);
}

@keyframes animate {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes animate2 {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-200%);
  }
}

.scroll div img {
  margin: 0 2.5rem;
  transition: 0.5s;
}

.atouts {
  display: flex;
  gap: 9.6rem;
  background-color: var(--tertiary-color);
  padding: 4.8rem 6.4rem;
}

.atouts ul li {
  list-style-image: url(./img/point.png);
}

@media (max-width: 43.75em) {
  .atouts {
    flex-direction: column;
  }
}

/* EXPERIENCES */
.title-experience {
  margin-bottom: 1.2rem;
  list-style-image: url(./img/point.png);
}

.text-experiences {
  margin-bottom: 1.8rem;
}

.center {
  margin-left: 18rem;
  margin-top: 2rem;
}

.interet {
  justify-self: center;
}

.interet ul li {
  list-style-image: url(./img/point.png);
}

.baking:visited,
.baking:link {
  font-size: 1.8rem;
  font-weight: 400;
  text-decoration: underline;
}

.baking:visited::before,
.baking:link::before {
  content: url(./img/SVG/icon\ instagram.svg);
  position: relative;
  top: 0.6rem;
}

.langues {
  align-self: start;
}

.langue {
  width: 25rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 3rem;
}

@media (max-width: 35em) {
  .grid {
    grid-template-columns: 1fr;
  }

  h3 {
    text-align: center;
  }

  .interet{
    grid-column: 1/3;
  }

  .langues{
    justify-self: center;
  }
}

/* FORMATION */

.bloc-formation {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 4.8rem;
  align-items: center;
  row-gap: 0;
}

.separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

.line {
  background: linear-gradient(
    0deg,
    #cea13b -0.24%,
    #cea23d 3.78%,
    #d1a745 5.79%,
    #d5af53 7.8%,
    #dcba67 9.81%,
    #e4c981 10.81%,
    #eedca0 12.82%,
    #fffad4 13.83%,
    #e9d59e 19.86%,
    #d7b872 25.88%,
    #cba453 30.91%,
    #c39740 34.93%,
    #c1933a 37.94%,
    #997223 42.97%,
    #634504 50%,
    #77550f 54.02%,
    #aa802d 63.06%,
    #c1933a 67.08%,
    #c1943b 76.13%,
    #c49842 79.14%,
    #c9a04e 81.15%,
    #d0ab5f 83.16%,
    #d8ba75 84.16%,
    #e3cc90 85.17%,
    #f0e1b0 87.18%,
    #fffad4 88.18%,
    #fbf3ca 89.19%,
    #f0e1af 92.2%,
    #dec483 95.22%,
    #c69c48 99.24%,
    #c1933a 100.24%
  );
  width: 0.2rem;
  height: 100%;
}

.date-formation {
  padding: 0.4rem 1.2rem;
  border-radius: 0.375rem;
  background: #fcfcfc;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
}

.title-formation-1,
.title-formation-2 {
  display: flex;
  align-items: center;
  padding-bottom: 1.8rem;
}

.title-formation-1 {
  justify-content: flex-end;
}

.title-formation-2 {
  justify-content: flex-start;
}

.name-formation {
  padding: 0 2.4rem;
  position: relative;
}

.left {
  border: 2px solid var(--gold);
  border-left: 0;
}

.right {
  border: 2px solid var(--gold);
  border-right: 0;
}

.formation {
  padding-bottom: 3.2rem;
}

.fade-in {
  scale: 0.8;
  opacity: 0;
  animation: fade-in linear forwards;
  animation-timeline: view();
  animation-range: 150px 500px;
}

@keyframes fade-in {
  to {
    scale: 1;
    opacity: 1;
  }
}

.section-formation {
  background-image: url(./img/background\ 2.webp);
  background-size: 100%;
  padding: 12.8rem 0;
  background-repeat: no-repeat;
}

.ecv {
  width: 30%;
}

@media (max-width: 59em) {
  .bloc-formation {
    row-gap: 0;
  }

  .experiences {
    grid-column: 1/3;
    max-width: 76rem;
    justify-self: center;
  }

  .img-experience {
    grid-column: 1/3;
    width: 50%;
    justify-self: center;
  }

  .right {
    border-right: 2px solid var(--gold);
    border-left: 0;
  }

  .formation {
    grid-column: 3/4;
  }

  .vide {
    grid-column: 1/2;
    grid-row: 1;
  }

  .separator {
    grid-column: 2/3;
  }

  .separator-2 {
    grid-row: 3/4;
  }

  .separator-1 {
    grid-row: 1/2;
  }

  .name-formation {
    order: 2;
  }

  .date-formation {
    order: 1;
  }

  .bloc-formation {
    grid-template-columns: 0fr 0.2fr 1fr;
    column-gap: 0;
  }

  .title-formation-1 {
    justify-content: flex-start;
  }
}

/* PORTFOLIO */

section#splide01 {
  padding: 0 4.8rem;
  gap: 0;
}

.splide li :not(:last-child) {
  padding-right: 2.4rem;
}

.splide li img {
  width: 100%;
}

.splide li {
  text-align: center;
}

@media (max-width: 63.75em) {
  section#splide01 {
    padding: 0;
  }

  .splide li:not(:last-child) {
    padding-right: 1.4rem;
  }
}

@media (max-width: 51.87em) {
  .splide li:not(:last-child) {
    padding-right: 0.8rem;
  }
}

@media (max-width: 31.25em) {
  .splide li:not(:last-child) {
    padding-right: 0;
  }
}

/* CONTACT */
.section-contact {
  background-image: url(./img/background\ 1.webp);
  background-size: 100%;
  background-repeat: no-repeat;
}

.information-contact ul {
  background-color: var(--secondary-color);
  padding: 5.8rem 3.2rem;
  border-radius: 12px;
  border: 2px solid var(--gold);
  list-style: none;
}

.information-contact ul li {
  padding-bottom: 2.4rem;
}

.information-contact ul li::before {
  position: relative;
  top: 0.6rem;
}

.information-contact ul li:first-child::before {
  content: url(./img/SVG/icon\ linkedin.svg);
}

.information-contact ul li:nth-child(2)::before {
  content: url(./img/SVG/Icon\ téléphone.svg);
  top: 0.8rem;
}

.information-contact ul li:nth-child(3):before {
  content: url(./img/SVG/icon\ mail.svg);
  top: 0.8rem;
}

.information-contact ul li:nth-child(4)::before {
  content: url(./img/SVG/icon\ addresse.svg);
}

.information-contact ul li:nth-child(5)::before {
  content: url(./img/SVG/icon\ behance.svg);
}

.information-contact ul li:nth-child(6)::before {
  content: url(./img/SVG/icon\ instagram.svg);
  top: 0.8rem;
}

.information-contact a:hover,
.information-contact a:active {
  transform: scale(1.02);
}

@media (min-width: 34em) {
  .information-contact ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62.5em) {
  .information-contact ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PAGE PORTFOLIO */
#filter-buttons {
  text-align: center;
  margin: 2.4rem;
}

.filter-button {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

#filter-buttons label {
  display: inline-block;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  background-color:  var(--background-color);
  color: var(--primary);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

#filter-buttons label.active {
  background-color: var(--primary-color);
}

#filter-buttons label:hover {
  background-color: var(--primary-color);
}

#projects-container {
  max-width: 140rem;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.project {
  width: 30rem;
  height:40rem;
  margin: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.project img {
  width: 100%;
  height:22rem;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.project-tags {
  color: var(--tertiary);
}

#pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

#pagination-container button {
  padding: 1rem;
  margin: 0 0.5rem;
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pagination-container button:hover {
  background-color: var(--secondary-color);
}

#pagination-container button:disabled {
  background-color: var(--tertiary-color);
  color: var(--tertiary);
  cursor: not-allowed;
}

/* FOOTER */
footer {
  padding: 2rem 2.4rem;
  background-image: url(./img/linear\ gradient\ gold.jpg);
  text-align: center;
}
