@font-face {
  font-family: "DK Longreach";
  src: url(../police/DKLongreach.ttf);
}

@font-face {
  font-family: "Milk Choco";
  src: url(../police/MilkChoco.ttf);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe,
video {
  max-width: 100%;
}


/* NAVBAR */

.btn-dossierprod {
  font-family: 'Sora';
  font-size: 1rem;
  color: white;
  background-color: #BF9DFE;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 25px;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  transition: all 0.25s ease-out;
  width: fit-content;
}

.btn-dossierprod:hover {
  color: white;
  background-color: #BF9DFE;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 25px;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  transform: scale(1.10);
  box-shadow: 0 10px rgba(0, 0, 0, 0.1);
}

* {
  list-style-type: none;
  text-decoration: none;
  padding: 0;
  margin: 0;
  gap: 0;
  scroll-behavior: smooth;
}

body {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: #E8DCFF;
  width: 100%;

}

a {
  font-weight: 600;
  font-size: 1.5rem;
  font-family: 'DK Longreach';
  color: #006936;
  cursor: pointer;
}

nav a {

  transition: all 400ms ease-out;
}

nav a:hover {
  transform: scale(1.10);
}

header {
  background-color: #E8DCFF;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  z-index: 100;
  height: 90px;
}

header nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: all 200ms ease-out;
}

header .open {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transition: all 300ms ease-out;
}

.logo {
  display: flex;
  align-items: center;
  max-height: 100px;
}

/* bouton hamburger*/
.hamburger {
  cursor: pointer;
  color: #006936;
  padding: 8px;
  border-radius: 8px;
  grid-column: 3/4;
  margin: 6px 4px;
  stroke: none;
  border: none;
  background: none;
}

.hamburger path {
  transition: all 300ms cubic-bezier(0.8, -0.3, 0.75, 0.8);
}

.hamburger.open svg path:nth-child(1) {
  transform: rotate(45deg) translateX(4.24px) translateY(-4px);
}

.hamburger.open svg path:nth-child(2) {
  opacity: 0;
}

.hamburger.open svg path:nth-child(3) {
  transform: rotate(-45deg) translateX(-9.24px) translateY(-2px);
}


.hamburger svg {
  height: 100%;
  width: 100%;
  border-radius: 2px;
  transition: all 100ms ease-out;
  overflow: visible;
  max-height: 40px;
}

/*container link*/
.container-link {
  width: 100%;
  display: grid;
  gap: 1px;
  background-color: #BF9DFE;
}

.item-link {
  padding: 12px;
  background-color: #E8DCFF;
  width: auto;
  display: flex;
  justify-content: center;
}

.link {
  height: fit-content;
  align-self: center;
}

@media all and (min-width: 1100px) {
  header {
    grid-template-rows: auto;
    grid-column: auto 1fr;
    padding: 12px 20px;
    align-items: center;
    gap: 20px;
  }

  header nav {
    clip-path: none;
    position: static;
  }

  .logo {
    margin: 0;
  }

  .container-link {
    background: none;
    display: flex;
    gap: 20px;
  }

  .item-link {
    width: fit-content;
    padding: 0;
  }

  .contact-nav-item {
    margin-left: auto;
  }

  /* bouton hamburger*/

  .hamburger {
    display: none;
  }

}





main {
  background-color: #FFFEF1;
  margin: 2%;
  border-radius: 24px;
  padding: 5%;
  box-sizing: border-box;
  min-width: 0;
}

header {
  padding: 10px 10px;
  position: sticky;
  top: 0;
  left: 0;
}

.sr-only {
  /*class qui permet de cacher visuellement un contenu à destination des lecteurs d'écrans (screen reader) */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.main-menu {
  background: #E8DCFF;
  font-family: "DK Longreach";
  padding-right: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.btn-menu {
  background: none;
  border: none;
  cursor: pointer;
  align-self: end;
}

.fa {
  color: #006936;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: none;
  display: none;
  flex-direction: column;
}

.menu-list li {
  border-top: 1px solid gray;
}

.menu-list a {
  display: block;
  padding: 1rem;
  color: #006936;
  text-decoration: none;
  font-size: 1.5rem;
}

.menu-list.open {
  display: flex;
}

.page-de-garde {
  display: grid;
  grid-template-rows: 10vh 50vh 1fr;
  flex-direction: column;
  padding: 2rem;
  height: 70vh;
}

.nom {
  align-self: end;
  font-family: "Milk Choco";
  color: #006936;
  font-size: 2rem;
  grid-row: 3;
  justify-self: center;
  align-self: flex-start;
}

.portfolio {
  width: 80vw;
  align-self: center;
  grid-row: 1;
}

.avatar-page-de-garde {
  height: 50vh;
  width: 80%;
  object-fit: contain;
  align-self: center;
  position: absolute;
  z-index: 1;
  top: 300px;
  margin-top: -10vh;
  justify-self: center;
}

.titre-de-section {
  font-size: 3rem;
  font-family: 'DK Longreach';
  color: #006936;
}

.apropos {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-bottom: 2rem;
  scroll-margin-top: 300px;
}

.apropos h2 {
  grid-row: 1;
}

.presentation {
  font-family: 'Sora';
  font-size: 1rem;
  grid-row: 2;
}

.presentation a {
  font-family: 'Sora';
  font-size: 1rem;
}

.boutons-presentation {
  display: flex;
  flex-direction: row;
}

.boutons-presentation a {
  background-color: #BF9DFE;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Sora';
  color: white;
  text-decoration: none;
  margin-right: 1rem;
  grid-row: 3;
  font-size: 0.95rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.avatar-presentation {
  max-height: 100px;
}

.contenu-presentation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.img-presentation {
  visibility: hidden;
  width: 0;
  height: 0;
}

.form-contact .titre-de-section {
  font-size: 2rem;
  padding-left: 2rem;
  background-image: url(./images/yellow_stars\ 1.png);
  background-repeat: no-repeat;
  background-size: contain;
  margin: 1rem;
}

.form-contact div {
  display: flex;
  flex-direction: column;
  margin: 1rem;

}

.form-contact div label {
  font-family: 'Sora';
}

.form-contact div input {
  border-radius: 10px;
  border: none;
  color: #000;
  font-family: 'Sora';
  padding-left: 0.5rem;
  height: 2rem;
}

.form-contact div input[type=submit] {
  background-color: #4F3582;
  color: white;
  transition: all 0.25s ease-out;
  cursor: pointer;
}

.form-contact div input[type=submit]:hover {
  background-color: #BF9DFE;
  color: white;
  transform: scale(1.05);
}

.form-contact div textarea {
  border-radius: 10px;
  border: none;
  color: #000;
  padding-left: 0.5rem;
  height: 7rem;
}

.div-form {
  background-color: #E8DCFF;
  border-radius: 25px;
  padding: 1rem;
  width: 100%;
}

.envoi-message {
  background-color: #006936;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  text-align: center;
}

.erreur-message {
  background-color: #d9534f;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  text-align: center;
}

/* --- POPUP FORMULAIRE DE CONTACT --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background-color: #FFFEF1;
  padding: 3rem 2rem 2rem 2rem;
  border-radius: 20px;
  position: relative;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popupFadeIn 0.4s ease-out forwards;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 40px;
  font-weight: bold;
  color: #4F3582;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease-out;
}

.close-popup:hover {
  color: #BF9DFE;
}

.contact {
  display: flex;
  flex-direction: row;
}

.avatar-contact {
  width: 0;
  height: 0;
  visibility: hidden;
}

.texte-footer {
  color: #006936;
  font-family: 'Sora';
  font-size: 1rem;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 5vh 0 5vh;
}

.photos-projet {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  gap: 1rem;
  width: 100%;
}

.photos-projet::-webkit-scrollbar {
  display: none;
}

.liste-projet {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-y: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.liste-projet::-webkit-scrollbar {
  display: none;
}

.liste-projet li {
  position: relative;
  display: grid;
  flex: 0 0 85%;
  scroll-snap-align: start;
}

/* Affichage vertical des projets uniquement sur la page Galerie sur mobile */
.mesprojets-page .liste-projet {
  flex-direction: column;
  overflow-x: visible;
  scroll-snap-type: none;
}
.mesprojets-page .liste-projet li {
  flex: auto;
}

.liste-projet li img,
.photos-projet li img {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  position: absolute;
  top: 0;
  left: 0;
}

.liste-projet a {
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  min-width: 0;
  width: 100%;
}

.btn-projets {
  font-family: 'Sora';
  font-size: 1rem;
  color: white;
  background-color: #BF9DFE;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 25px;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  transition: all 0.1s ease-out;
}

.btn-projets:hover {
  color: white;
  background-color: #BF9DFE;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 25px;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  transform: scale(1.09);
  transition: all 0.2s ease-out;
}

.mesprojets {
  gap: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  min-width: 0;
  width: 100%;
}

.mesprojets {
  scroll-margin-top: 300px;
  padding: 0;
  list-style: none;
  width: 90vw;
  overflow: visible;
}

.mesprojets-page .titre-de-section {
  text-align: center;
}

.tag-projet {
  color: white;
  font-family: 'Sora';
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 0.5rem;
  flex-direction: row;
  flex-wrap: wrap;
}

.tag-projet-projet {
  color: white;
  font-family: 'Sora';
  display: flex;
  gap: 0.5rem;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.tag-projet p,
.tag-projet-projet p {
  background-color: #BF9DFE;
  border-radius: 25px;
  padding: 0.5rem 1rem 0.5rem 1rem;
  font-size: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.texte-debut-projet {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.projet,
.projet-galerie {
  height: 300px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  border-radius: 25px;
}

.projet:hover,
.projet-galerie:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(191, 157, 254, 0.4);
  z-index: 2;
}

.projet-galerie:hover img,
.projet:hover img {
  filter: brightness(50%);
}

.projet-galerie:hover .tag-projet,
.projet:hover .tag-projet {
  visibility: hidden;
}

.titre-projet {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.titre-projet .nom-projet {
  font-family: 'DK Longreach';
  font-size: 50px;
  text-align: center;
}

.titre-projet .annee-projet {
  font-family: 'Milk Choco';
  font-size: 2rem;
}

.projet-galerie .titre-projet,
.projet .titre-projet {
  opacity: 0;
}

.projet-galerie:hover .titre-projet,
.projet:hover .titre-projet {
  opacity: 1;
}

.texte-page-projet {
  margin: 2rem;
}

.textes-page-projet p {
  font-family: 'Sora';
  font-size: 1rem;
  margin-bottom: 2rem;
}

.textes-page-projet a {
  font-family: 'Sora';
  font-size: 1rem;
  margin-bottom: 2rem;
}

.photos-projet {
  margin-bottom: 4rem;
}

.sous-titre-page-projet {
  color: #4F3582;
}

.perso-univ {
  color: #006936;
}




.photos-projet li img {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Sur mobile, on donne une taille carrée à toutes les images et on les met en slider */
.photos-projet li {
  position: relative;
  aspect-ratio: 1 / 1;
  flex: 0 0 85%;
  scroll-snap-align: start;
}

.titre-page-galerie {
  color: #006936;
  font-family: 'DK Longreach';
  font-size: 50px;
}

.agrandir-img {
  font-family: 'Sora';
  font-size: 1rem;
  padding-left: 2rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/*caroussel*/
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-out;
  width: 86vw;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  box-sizing: border-box;
  height: 300px;
  width: 86vw;
  scroll-snap-align: start;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease-out;
}

.carousel-item:hover {
  transform: scale(1.09);
  transition: transform 0.3s ease-out;
}

.carousel-item img {
  width: 86vw;
  height: 300px;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1.01);
  color: #4F3582;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 200;
  width: 50px;
  height: 50px;
  text-align: center;
  font-family: 'Milk Choco';
  background-color: #e8dcff51;
  transition: background-color 0.2s ease-out;
  display: grid;
}


.carousel-button.prev {
  left: 10px;
  transition: 0.3s ease-out;
}

.carousel-button.next {
  right: 10px;
  transition: 0.3s ease-out;
}

.carousel-button:hover {
  transition: 0.3s ease-out;
  background-color: #E8DCFF;
  transform: translateY(-50%) scale(1.01);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev-lightbox,
.next-lightbox {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  padding: 15px;
  user-select: none;
  transition: 0.3s ease-out;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.prev-lightbox {
  left: 10px;
}

.next-lightbox {
  right: 10px;
}

.prev-lightbox:hover,
.next-lightbox:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #BF9DFE;
}

.titre-page-projet {
  display: flex;
  flex-direction: row;
  gap: 25px;
  min-width: 0;
}

.titre-page-projet > * {
  min-width: 0;
}

@media screen and (max-width: 719px) {
  main {
    width: 100%;
    min-width: 0;
  }

  .titre-page-projet {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .titre-page-galerie {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3rem);
    overflow-wrap: anywhere;
  }

  .tag-projet-projet {
    justify-content: flex-start;
    width: 100%;
  }

  .tag-projet p,
  .tag-projet-projet p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .texte-page-projet,
  .textes-page-projet {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}


/* DESKTOP */

@media screen and (min-width:720px) {
  .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
  }

  .lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }

  .btn-menu {
    display: none;
  }

  .menu-list {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
  }

  .menu-list li {
    border: none;
  }

  .menu-list a {
    padding: 0.5rem 1rem;
  }

}

@media screen and (min-width: 1024px) {
  body {
    background-color: #E8DCFF;
    width: 100%;
  }

  main {
    background-color: #FFFEF1;
    margin: 0 2% 2% 2%;
    border-radius: 24px;
    padding: 2%;

  }

  .page-de-garde {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    height: 100vh;
  }

  .nom {
    align-self: end;
    font-family: "Milk Choco";
    color: #006936;
    padding-right: 8rem;
    font-size: 2.5rem;
  }

  .portfolio {
    width: 80%;
    align-self: center;
  }

  .avatar-page-de-garde {
    min-height: 800px;
    width: fit-content;
    align-self: center;
    position: absolute;
    margin-right: 12rem;
    margin-top: 4rem;
  }

  .titre-de-section {
    font-size: 4rem;
    font-family: 'DK Longreach';
    color: #006936;
  }

  .mesprojets .titre-de-section {
    align-self: end;
  }

  .mesprojets {
    scroll-margin-top: 150px;
  }

  .mesprojets-page .titre-de-section {
    text-align: start;
    margin-left: 1rem;
  }

  .presentation {
    font-family: 'Sora';
    font-size: 1rem;
  }

  .presentation a {
    font-size: 1rem;
  }

  .boutons-presentation a {
    background-color: #BF9DFE;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Sora';
    color: white;
    text-decoration: none;
    margin-right: 1rem;
    transition: all 0.25s ease-out;
  }

  .boutons-presentation a:hover {
    transform: scale(1.10);
    box-shadow: 0 10px rgba(0, 0, 0, 0.1);
  }

  .apropos {
    grid-template-columns: 1fr 1fr;
    margin-top: 10rem;
    scroll-margin-top: 300px;
  }

  .avatar-presentation {
    min-height: 100vh;
    visibility: visible;
    margin-top: -8rem;
  }

  .contenu-presentation {
    grid-column: 1;
  }

  .contenu-presentation div {
    width: 100%;
  }

  .img-presentation {
    grid-column: 2;
    margin-top: -12rem;
  }

  .form-contact .titre-de-section {
    font-size: 4rem;
    padding-left: 4rem;
    background-image: url(./images/yellow_stars\ 1.png);
    background-repeat: no-repeat;
    margin: 1rem;
  }

  .form-contact div {
    display: flex;
    flex-direction: column;
    margin: 1rem;

  }

  .form-contact div label {
    font-family: 'Sora';
  }

  .form-contact div input {
    border-radius: 10px;
    border: none;
  color: #000;
    padding-left: 0.5rem;
    height: 2rem;
  }

  .form-contact div textarea {
    border-radius: 10px;
    border: none;
  color: #000;
    padding-left: 0.5rem;
    height: 7rem;
  }

  .div-form {
    width: 60%;
    background-color: #E8DCFF;
    border-radius: 25px;
    padding: 1rem;
  }

  .contact {
    display: flex;
    flex-direction: row;
    width: 90vw;
    justify-content: space-between;
  }

  .avatar-contact {
    min-height: 600px;
    visibility: visible;
    width: auto;
    margin-right: 2rem;
  }

  .liste-projet {
    display: grid;
    grid-template-columns: auto auto;
    grid-auto-rows: auto auto;
    gap: 20px;
    padding: 0;
    list-style: none;
    width: 90vw;
    overflow: visible;
  }

  .liste-projet li {
    width: 100%;
    /* Réinitialise la largeur sur la version Ordinateur */
  }

  .projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
  }

  .projet:nth-child(4n+1) {
    grid-column: 1 / 3;
  }

  .projet:nth-child(4n+2) {
    grid-column: 3 / 4;
  }

  .projet:nth-child(4n+3) {
    grid-column: 1 / 2;
  }

  .projet:nth-child(4n+4) {
    grid-column: 2 / 4;
  }

  .projet {
    height: 400px;
  }

  .tag-projet {
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: auto;
  }

  .projet-galerie:hover .tag-projet {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
  }

  .tag-projet {
    color: white;
    font-family: 'Sora';
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tag-projet-projet {
    color: white;
    font-family: 'Sora';
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .tag-projet p,
  .tag-projet-projet p {
    background-color: #BF9DFE;
    border-radius: 25px;
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 1rem;
  }

  .texte-debut-projet {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
  }

  .projet {
    height: 300px;
  }

  .projet-galerie:hover img {
    filter: brightness(50%);

  }

  .projet-galerie img {
    transition: filter 0.5s
  }

  .titre-projet {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .titre-projet .nom-projet {
    font-family: 'DK Longreach';
    font-size: 4rem;
    text-align: center;
  }

  .titre-projet .annee-projet {
    font-family: 'Milk Choco';
    font-size: 2rem;
  }

  .projet-galerie .titre-projet {
    transition: opacity 0.5s ease-out;
  }

  .projet-galerie:hover .titre-projet {
    opacity: 1;
  }

  .texte-page-projet {
    margin: 2rem;
  }

  .textes-page-projet p {
    font-family: 'Sora';
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .photos-projet {
    margin-bottom: 4rem;
  }

  .sous-titre-page-projet {
    color: #4F3582;
  }

  .perso-univ {
    color: #006936;
  }

  .photos-projet {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1rem;
    width: 90vw;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .photos-projet li {
    position: relative;
    display: grid;
    aspect-ratio: auto;
  }

  .sm1,
  .sm3 {
    grid-column: 1/2;
    height: 300px;
  }

  .sm2,
  .sm4 {
    grid-column: 2/3;
    height: 300px;
  }

  .lg {
    grid-column: 3/5;
    grid-row: 1/3;
    height: 100%;
  }

  .carousel-track {
    width: 92vw;
  }


  .carousel-item {
    box-sizing: border-box;
    height: 300px;
    width: 400px;
    scroll-snap-align: start;
    display: block;
  }

  .carousel-item img {
    width: 400px;
    height: 300px;
    object-fit: cover;
  }


}

/* PAGE PROJET */

.sous-titre-page-projet {
  font-family: 'Milk Choco';
}

/* --- ANIMATIONS AU SCROLL --- */
.hidden-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-element {
  opacity: 1;
  transform: translateY(0);
}

/* --- ANIMATIONS BOUTONS AMÉLIORÉES --- */
.btn-projets:hover,
.boutons-presentation a:hover,
.form-contact div input[type=submit]:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 10px 20px rgba(191, 157, 254, 0.4) !important;
}

/* --- ACTUALITES --- */
.actualites {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  scroll-margin-top: 300px;
  width: 100%;
  background-color: #E8DCFF;
  padding: 1.25rem;
  border-radius: 25px;
  box-sizing: border-box;
  min-width: 0;
}

.experiences {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  scroll-margin-top: 300px;
  width: 100%;
  padding: 1.25rem;
  border-radius: 25px;
  box-sizing: border-box;
  min-width: 0;
}

.liste-actualites {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-y: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0;
  align-items: stretch;
}

.liste-actualites::-webkit-scrollbar {
  display: none;
}

.actualite {
  display: flex;
  flex-direction: column;
  flex: 0 0 85%;
  scroll-snap-align: start;
}

.actualite a {
  display: flex;
  flex-direction: column;
  background-color: #FFFEF1;
  border-radius: 25px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  height: 100%;
}

.actualite a:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(191, 157, 254, 0.4);
}

.img-actu {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contenu-actu {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.titre-actu {
  font-family: 'DK Longreach';
  font-size: 1.5rem;
  color: #4F3582;
  min-height: 4.5rem;
}

.desc-actu {
  font-family: 'Sora';
  font-size: 1rem;
  color: #000;
  flex-grow: 1;
  font-weight: 400;
  display: none;
}

.date-actu {
  font-family: 'Milk Choco';
  font-size: 1.5rem;
  color: #006936;
  text-align: right;
  margin-top: 1rem;
}

@keyframes glissement {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

.indicateur-scroll {
  display: block;
  font-family: 'Sora';
  color: #4F3582;
  margin-bottom: 1rem;
  font-style: italic;
  animation: glissement 1.5s infinite ease-in-out;
  align-self: flex-start;
  width: 100%;
}

.carte-iframe {
  display: flex;
  flex-direction: column;
  background-color: #FFFEF1;
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  height: 100%;
  flex: 1;
}

.carte-iframe:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(191, 157, 254, 0.4);
}

.carte-iframe iframe {
  border-radius: 0 0 25px 25px;
  background-color: #fff;
  width: 100%;
  display: block;
  height: 400px;
  flex-shrink: 0;
}

/* --- EXPERIENCES (Frise chronologique) --- */
.timeline-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.timeline-wrapper::-webkit-scrollbar {
  display: none;
}

.timeline {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1rem 2rem 1rem;
  width: max-content;
  position: relative;
  align-items: stretch;
  list-style: none;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  top: calc(1rem + 12px);
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #BF9DFE;
  z-index: 1;
}

.timeline-item {
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  scroll-snap-align: start;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background-color: #4F3582;
  border: 4px solid #E8DCFF;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  z-index: 3;
  flex-shrink: 0;
  box-sizing: border-box;
}

.timeline-content {
  background-color: #E8DCFF;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.timeline-content:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(191, 157, 254, 0.4);
}

.timeline-date {
  font-family: 'Milk Choco';
  font-size: 1.5rem;
  color: #006936;
  text-align: center;
}

.timeline-title {
  font-family: 'DK Longreach';
  font-size: 1.25rem;
  color: #4F3582;
  text-align: center;
  line-height: 1.2;
}

.timeline-lieu {
  font-family: 'Sora';
  font-style: italic;
  text-align: center;
  color: #444;
  font-size: 0.9rem;
}

.timeline-desc {
  font-family: 'Sora';
  font-size: 0.9rem;
  color: #000;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (min-width: 1024px) {
  .actualites, .experiences {
    scroll-margin-top: 150px;
    padding: 2rem;
  }

  .mesprojets .indicateur-scroll {
    display: none !important;
  }

  .liste-actualites {
    gap: 2rem;
  }

  .actualite {
    flex: 0 0 calc((100% - 4rem) / 3);
  }

  .desc-actu {
    display: block;
  }

  .carte-iframe iframe {
    height: 700px;
  }
}