/*body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
}*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
    scroll-behavior: smooth;
  }

  a { 
    text-decoration: none;
    color: white;
   }

   body {
    background-color: #111;
   }

   #myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0.75;
    filter: blur(25px);
  }

/*=============================== HEADER =============================*/


/*header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    padding: 10px;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    margin: 0;
}

.header-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: transparent;
    z-index: 1000;
}



.kelvin {
    z-index: 2000;
    color: white;
    font-size: 20px;
    padding-left: 96px;
    padding-right: 100px;
    border-bottom: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255), rgb(255, 255, 255), rgb(255, 255, 255), #ffffff00);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding-bottom: 10px;
}

.kelvin:not(.active) {
    /* Propriétés lorsque la classe active n'est pas présente */
    /* Ajouter une transition différente lorsqu'elle est suprimée */
    transition-duration: 0.7s; /* Transition de 0.1s lorsque la classe est supprimée */
}

.kelvin.active {
    border-image-source: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff00);
    transition-duration: 0.2s;
}

.burger-icon {
    position: absolute;
    cursor: pointer;
    margin-right: 40px;
    margin-bottom: 10px;
    z-index: 2000;
    padding: 5px 8px;
    transition: 0.3s;
}

.burger-icon:hover{
    background-color: rgb(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.burger-icon:hover .bar {
    background-color: white;
    transition: 0.3s;
}

.menu-horizontal {
    display: none;
}

.background-menu {
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.icons {
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.40);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(20px);

    padding: 16px 6vw;
    width: 65vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    
}

.icons a {
    color: white;
    font-size: 16px;
    height: auto;
    text-align: center;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* =============== Menu burger ====================*/

.background-blur {
    position: fixed;
    z-index: 1500;
    top: -100%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(70px);
    transition: 0.5s ease;
}

.background-blur.active {
    top: 0;
}

.menu-vertical {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    color: #B4B4B4;
    font-size: 65px;
    font-weight: 600;
    gap: 5px;
    transition: 0.3s;
}

.social-icons {
    position: absolute;
    width: 100%;
    bottom: 5%;
    display: flex;
    justify-content: center;
    gap: 60px;
}

#contact .social-icons {
    bottom: 150px;
}

.social-icons img {
    width: 30px;
}

.kelvin-text {
    transition: 0.3s;
}

.kelvin-text:hover {
    color: #706EE0;
    transition: 0.3s;
    cursor: pointer;
}

.menu-vertical a {
    transition: 0.3s;
}

.menu-vertical a:hover {
    scale: 1.05;
    transition: 0.3s;
    cursor: pointer;
}

.social-icons a {
    scale: 1.1;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons a:hover {
    scale: 1.1;
}


/* =============== LOADER ==========================*/

/* Loader plein écran */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./img/Fond\ glass\ blur_Plan\ de\ travail\ 1.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

/* Animation de disparition */
#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Spinner circulaire */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.2);;
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Animation de rotation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Typewriter */
#typewriter {
    color: #FFF;
    font-family: Outfit;
    font-size: 225px;
    font-style: normal;
    font-weight: 500;
    line-height: 220px;
    white-space: nowrap;
    overflow: hidden;
    animation: none;
    cursor: pointer;
    transition: ease-out 0.3s;
}

#typewriter:hover {
    scale: 1.05;
}

#typewriter::after {
  content: "";
}

#typewriter::after:hover {
  color: #1A1A1A;
}

.dot {
  animation: fadeBlink 2s infinite;
  cursor: pointer;
}

@keyframes fadeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ================= ANIMATIONS Sections ====================*/

.fade-wrapper {
  position: relative;
  /* pas besoin de styles, c’est juste un conteneur qui garde la place */
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================ MAIN ==========================*/

.background-3d {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
}

.background-effect {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    z-index: 1;
}

/* ... SECTIONS ... */

.sections-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.background-images {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-images img {
    flex: 1;
    width: 50%; /* Chaque image occupe la moitié de la largeur */
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.1; /* Réglez l'opacité selon vos préférences */
}



.section-index {

    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

#intro img {
    position: absolute;
    width: 30px;
    height: auto;
    bottom: 40px;
}


/*======= Section intro ==========*/

.intro-text {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    text-align: left;
}

.intro-text h1 {
    color: #E3E3E3;
    font-family: Outfit;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1.92px;
    padding-left: 16px;
}

.intro-text p {
    color: #FFF;
    font-family: Outfit;
    font-size: 225px;
    font-style: normal;
    font-weight: 500;
    line-height: 220px;
}



#spline{
    stroke-width: 1px;
    border: 2px solid black;
    height: 100%;
    width: 100%;
}

#projects {
    
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    position: relative;
}


#contact {
    position: relative;
    background-size: cover;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

#contact > h2 {
    color: #FFF;
    text-align: center;
    border-bottom: 3px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #ffffff00, #ffffff00, rgb(255, 255, 255), #ffffff00, #ffffff00);
    padding-bottom: 35px;
}

#contact > a {
    color: #FFF;
    font-size: 32px;
    font-weight: 300;
    transition: 0.3s;
}

#contact > a:hover {
    scale: 1.05;
    transition: 0.3s;
}

#contact > div > a img {
    color: #FFF;
}

.slider {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.5s ease;
}

.project-slide {
    position: relative;
    flex: 1;
    min-width: 100%;
    box-sizing: border-box;
    display: flex; /* Utilisation de flexbox */
    align-items: center; /* Pour aligner verticalement */
    margin-top: 60px;
}

.project-content {
    position: absolute;
    padding-left: 10%;
    left: 0%; /* Marge fixe à gauche */
    width: 55%; /* Largeur de la div */
    z-index: 1; /* Pour s'assurer que la div est placée au-dessus de l'image */
    color: white;

    display: flex;
    flex-direction: column;
    gap: 40px;
}

#works {
    align-items: normal;
    display: block;
}

.works-content {
    padding-left: 10%;
    left: 0%; /* Marge fixe à gauche */
    /*width: 95%; /* Largeur de la div */
    z-index: 1; /* Pour s'assurer que la div est placée au-dessus de l'image */
    color: white;
    padding-top: 20vh;

    display: flex;
    flex-direction: column;
}

.works-content > p {
    width: 70%;
}

.works-content .project-description {
    padding-top: 10px;
}

/* GALLERY */

#filters{
    display: flex;
    gap: 10px;
    padding-top: 40px;
    padding-bottom: 10px;
}

#filters div {
    background-color: rgba(174, 174, 174, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid #FFF;
    transition: 0.3s;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
}

#filters div:hover {
    background-color: rgb(255, 255, 255);
    color: black;
}

#filters div.active {
    background-color: rgb(255, 255, 255);
    color: black;
}

#gallery-wrapper {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 10px 0;

  scrollbar-width: block; /* Firefox */
  -ms-overflow-style: block;  /* IE/Edge */
}

#gallery-wrapper::-webkit-scrollbar {
  height: 8px;
  background: transparent;
}

#gallery-wrapper::-webkit-scrollbar-thumb {
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  transition: 0.3s ease;
}

#gallery-wrapper:hover::-webkit-scrollbar-thumb {
  background-color: rgb(255, 255, 255);
  transition: 0.3s ease;
}

#gallery-wrapper:not(:hover)::-webkit-scrollbar {   
  background: transparent;
  height: 0;
}

#gallery-wrapper:not(:hover)::-webkit-scrollbar-thumb {
  background: transparent;
}

#gallery-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
  
}
#gallery-wrapper {
  cursor: grab;
}

#gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: max-content;
}

.gallery-row {
  display: flex;
  flex-direction: row;
  /*gap: 20px;*/
}

.gallery-item {
  position: relative;
  flex: 0 0 auto;
  height: 120px;
  width: auto;
  transition: 0.3s;
  overflow: hidden;
  padding-right: 20px;
  cursor: pointer;
}

.gallery-item:hover {
  scale: 1.02;
}

.gallery-item.inactive {
  height: 0;
  padding-right: 0;
}

.gallery-item img {
  height: 100%;
  width: auto;
  border-radius: 20px;
  display: block;
}

.hover-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-58%);
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-item:hover .hover-text {
  opacity: 1;
}

.video-wrapper {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}


/* FIN GALLERY */

.services-content {
    position: absolute;
    padding-left: 10%;
    left: 0%; /* Marge fixe à gauche */
    width: 100vw; /* Largeur de la div */
    z-index: 1; /* Pour s'assurer que la div est placée au-dessus de l'image */
    color: white;

    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-content > p {
    width: 80%;
}

#about {
    display: flex;
}

#about > div {
    flex-direction: row;
    width: 87%;
    height: 65vh;
    padding-top: 60px;
}

#about > div > div > h2 {
    padding-bottom: 40px;
}

#about > div > div > p {
    width: 90%;
}

#about > div > div:nth-child(2) {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px);
    height: 100%;
    border-radius: 40px;
}


#about > div > div > img {
    height: 100%;
    width: auto;
    padding: 15px;
    border-radius: 40px;
}

.about-content {
    position: absolute;
    padding-left: 10%;
    left: 0%; /* Marge fixe à gauche */
    width: 100vw; /* Largeur de la div */
    height: 65vh;
    z-index: 1; /* Pour s'assurer que la div est placée au-dessus de l'image */
    color: white;

    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content > p {
    width: 70%;
}

.project-image1 {
    display: flex; /* Utilisation de flexbox */
    align-items: center; /* Pour aligner verticalement */
    justify-content: center; /* Pour aligner horizontalement */
    position: relative;
    width: 50%;
    height: 70%;
    box-shadow: 0px 4px 15px 6px rgba(0, 0, 0, 0.25);
    margin-left: 40%;
    background-image: url('./img/mockup-cdp.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 60px;
}

.project-image2 {
    display: flex; /* Utilisation de flexbox */
    align-items: center; /* Pour aligner verticalement */
    justify-content: center; /* Pour aligner horizontalement */
    position: relative;
    width: 50%;
    height: 70%;
    box-shadow: 0px 4px 15px 6px rgba(0, 0, 0, 0.25);
    margin-left: 40%;
    background-image: url('./img/mockup-xrpaperfab.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 60px;
}

.project-image3 {
    display: flex; /* Utilisation de flexbox */
    align-items: center; /* Pour aligner verticalement */
    justify-content: center; /* Pour aligner horizontalement */
    position: relative;
    width: 50%;
    height: 70%;
    box-shadow: 0px 4px 15px 6px rgba(0, 0, 0, 0.25);
    margin-left: 40%;
    background-image: url('./img/mockup-hay.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 60px;
}


.project-title {
    width: 100%;
    font-size: 80px;
    font-weight: 600;
    line-height: 80px; /* 100% */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}


.project-description {
    width: 75%;
    font-size: 18px;
    font-weight: 300;
}

.project-description2 {
    width: 75%;
    font-size: 48px;
    font-weight: 300;
    text-transform: uppercase;
}

.project-button {
    padding: 12px 28px 12px 30px;
    border-radius: 100px;
    margin-right: auto;
    background-color: rgba(174, 174, 174, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid #FFF;
    transition: 0.3s;
    cursor: pointer;
}

.project-button:hover {
    background-color: #ffffff;
    transition: 0.3s;
    color: black;
}

.project-button > i {
    padding-left: 10px;
}

/*.project-slide {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.project-images {
    position: absolute;
    margin-right: 120px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
}

.a-images {
    background: url('./img/fond1.jpg') no-repeat center;
    background-size: cover;
    display: block;
    background-color: blue;
    height: 70%;
    width: 60%;
    margin: 0 8% 0 auto;
} */

.buttons-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    bottom: 50px;
    right: 5vw;
}

.btn {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 3px solid #FFF;
    width: 116px;
    height: 116px;
    border-radius: 100px;
    font-size: 32px;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    border: 5px solid #ffffff;
}

.prev-btn {
    background: rgba(255, 255, 255, 0.3);
}

.btn i {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    color: #FFF;
    transition: 0.3s;
}


.btn:hover i {
    color: #ffffff;
    transition: 0.3s;
}


















/* =====================================================================================================================

                                                    COUP DE POUSSE

=======================================================================================================================*/


.cdp-kelvin {
    z-index: 2000;
    color: white;
    font-size: 20px;
    padding-left: 96px;
    padding-right: 100px;
    padding-bottom: 10px;
}

#presentation {
    background-image: url("./img/mockup-cdp-degrade.jpg");
    background-size: cover;
    width: 100%;
    height: 100vh;
}

.presentation {
    max-width: 80vw;
    margin: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.presentation-content {
    position: relative;
    width: 100%;
    color: #FFF;
    font-size: 24px;
    font-weight: 400;
}

.presentation-title {
    font-size: 100px;
    font-weight: 600;
    margin-bottom: 35px;
}

.presentation-description {
    width: 60%;
}

.presentation-tags {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.presentation-tags p {
    font-size: 24px;
    font-weight: 400;
}

.trait {
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}

.uxuidesign {
    position: relative;
    background-color: #111;
    color: #FFF;
    padding-top: 40vw;
    padding-bottom: 5%;
}


.uxuidesign > img {
    position: absolute;
    top: -7%;
    left: 50%;
    transform: translateX(-50%);
    width: 65vw;
    height: auto;
    margin: auto;
}

.uxuidesign > div {
    max-width: 50vw;
    margin: auto;
}

.subtitle {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #FFF;
}

.paragraphe {
    font-size: 24px;
    font-weight: 300;
    color: #FFF;
}

.dev {
    background-color: #1A1A1A;
}

.dev-part1 {
    max-width: 50vw;
    padding: 5% 0;
    margin: auto;
}

.background-dev-part2 {
    background-image: url("./img/fond-section-dev-cdp.jpg");
    background-size: cover;
}

.dev-part2 {
    width: 100vw;
    height: 100vh;
    max-width: 80vw;
    margin: auto;
    display: flex;
    align-items: center;
}

.phone-background {
    position: relative;
    margin-left: 100px;
    margin-right: 64px;
}

.phone-background > img {
    width: auto;
    height: 500px;
    z-index: 500;
}

#cdp-video {
    position: absolute;
    z-index: 750;
    top: 11%;
    left: 8%;
    width: 177px;
}

.results-cdp {
    background-color: #111;
}

.results-content {
    max-width: 50vw;
    margin: auto;
    padding: 100px 0;
    text-align: center;
}

.autres-projets {
    padding-top: 100px;
    color: #FFF;
    text-align: center;
}

.autres-projets > span {
    display: inline-block;
    width: 75px;
}

.autres-projets a {
    transition: 0.3s;
    cursor: pointer;
}

.autres-projets a:hover {
    color: #F1C40F;
    transition: 0.3s;
}



/* ================================================== MOBILE ================================================== */

@media(max-width:640px){

    /* ================= MENU ========================== */

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background-color: transparent;
        z-index: 1000;
    }
    
    .menu-horizontal {
        width: 100%;
        height: 50px;
        display: flex;
        padding-top: 10px;
        padding-left: 85vw;
    }

    .background-menu {
        display: none;
    }
    
    .kelvin {
        font-size: 15px;
        padding-left: 20px;
        padding-right: 100px;
        border-bottom: 1px solid;
        padding-bottom: 8px;
        border: 0;
    }

    .cdp-kelvin {
        font-size: 15px;
        padding-left: 20px;
        padding-right: 100px;
        border-bottom: 1px solid;
        padding-bottom: 8px;
        border: 0;
    }
    
    .burger-icon {
        cursor: pointer;
        margin-right: 15px;
        margin-bottom: 10px;
        padding: 5px 8px;    
    }


    .menu-vertical a {
        font-size: 48px;
    }

    .icons {
        position: absolute;
        top: 93vh;
        padding: 0;
        display: flex;
        flex-direction: row;
        left: 50%;
        transform: translateX(-50%);
        justify-content: left;
        align-items: normal;
        gap: 45px;
        border: 0;
        /*border-top: 1px solid;
        border-right: 0;
        padding: 10px 50px 0 50px;*/
        width: auto;
        height: auto;
    }

    /* ============ Intro ============== */



    

    .intro-text h1 {
        font-size: 16px;
        padding-left: 7px;
    }

    #typewriter {
        font-size: 125px;
        line-height: 130px;
    }


    /* =========== Projects ============== */

    


   .project-title {
        font-size: 40px;
        line-height: normal;
    }

    .project-description {
        font-size: 16px;
        width: 100%;
        padding-bottom: 15px;
    }

    .project-description2 {
        font-size: 30px;
    }

    .project-slide {
        height: 100vh;
        align-items: normal;
    }

    .buttons-container {
        height: 0;
        right: auto;
        top: 49%;
        gap: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .btn {
        width: 80px;
        height: 80px;
    }

    .btn:hover {
        border: 3px solid #FFF;
    }

    .btn:hover i {
        color: #FFF;
    }

    .btn i {
        font-size: 25px;
    }

    .project-image1, .project-image2, .project-image3 {
        width: 80%;
        height: 45%;
        margin: 10px 10% 0 10vw;
    }

    
    .project-content {
            text-align: center;
            width: 100%;
            padding: 0 20px;
            bottom: 90px;
            gap: 15px;
        }
    

    .project-button {
        margin: auto;
        padding: 8px 30px;
        font-size: 16px;
    }


    /* ===================== Works =================*/

    #works {
        position: relative;
    }

    .works-content {
        text-align: center;
        width: 100%;
        padding: 0;
        padding-top: 30px;
        bottom: 100px;
        gap: 15px;
    }

    .works-content > h2 {
    margin-top: 50px;
    }

    .works-content p {
        width: auto;
    }

    #filters, #gallery-wrapper {
        padding-left: 20px;
    }

    /* ============== services ==================*/

    #services {
        position: relative;
    }
    
    .services-content {
        position: absolute;
        text-align: center;
        width: 100%;
        padding: 0 20px;
        bottom: 100px;
        gap: 15px;
    }

    .project-description2 {
        padding-bottom: 20px;
    }

    .services-content p {
        width: auto;
    }

    /* ============== about ==================*/

    #about {
        position: relative;
    }

    #about > div > div > h2 {
    padding-bottom: 20px;
    }
    
    .about-content {
        position: absolute;
        text-align: center;
        width: 100%;
        padding: 0 10px;
        bottom: 100px;
        gap: 15px;
        top: 60px;
    }

    .about-content p {
        width: auto;
    }

    #about > div {
        width: 100%;
        flex-direction: column;
        padding: 0 20px 0 20px;
    }

    #about > div > div:nth-child(2) {
        position: absolute;
        bottom: -150px;
        left: 50%;
        transform: translateX(-50%);

        height: 45%;
        width: 40%;
    }

    #about > div > div > img {
        padding: 10px;
    }

    #about > div > div > p {
        text-align: left;
        width: 100%;
        font-size: 14px;
        padding-bottom: 10px;
    }

    /* ============ contact ================*/

    #contact > a {
        font-size: 24px;
        gap: 15px;
        transition: 0.3s;
    }

    #contact > a:hover {
        transition: 0.3s;
    }

    #contact > h2 {
        padding-bottom: 15px;
    }

    #contact .social-icons {
        bottom: 200px;
    }




    /* =========================== COUP DE POUSSE ============================================*/

    .presentation {
        display: block;
        padding-top: 10vh;
    }

    .presentation-title {
        font-size: 40px;
        margin-bottom: 24px;
        text-align: center;
    }

    .presentation-description {
        width: 100%;
        text-align: center;
        margin-bottom: 32px;
        font-size: 16px;
    }    

    .presentation-tags {
        position: initial;
        width: 100%;
        gap: 10px;
    }

    .presentation-tags p {
        font-size: 18px;   
        text-align: center; 
    }

    .uxuidesign {
        padding-top: 15vh;
    }

    .uxuidesign > img {
        top: -18%;
        width: 80vw;
    }

    .uxuidesign > div {
        max-width: 70vw;
        padding-top: 20px;
    }

    .subtitle {
        font-size: 32px;
        text-align: center;
    }

    .paragraphe {
        font-size: 16px;
        text-align: center;
    }




    .dev-part1 {
        padding-top: 48px;
        padding-bottom: 48px;
        max-width: 75vw;
    }

    .background-dev-part2 {
        background-position: right;
    }

    .dev-part2 {
        position: relative;
        height: auto;
    }

    .dev-part2 > p {
        padding-top: 550px;
        padding-bottom: 50px;
    }

    .phone-background {
        width: initial;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0px;
        margin-right: 0px;
    }

    

    .results-content {
        max-width: 75vw;
    }

    .autres-projets {
        font-size: 14px;
    }

    .autres-projets > span {
        width: 30px;
    }
}

/* ================= MODALE PAGE PROJET (CENTRÉE ET SCROLLABLE) =================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #111;
  color: white;
  overflow-y: auto;
  display: none;
  padding: 60px 20px;
}

.modal.open {
  display: block;
}

.close {
    position: fixed; /* au lieu de absolute */
    top: 20px;
    right: 30px;
    z-index: 10000; /* au-dessus du reste */
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-content {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.modal-content h1,
.modal-content h2,
.modal-content h3 {
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin: 0;
}

.modal-content p {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.modal-content img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px 16px 40px 16px;
    gap: 32px;
  }

  .modal-content p {
    font-size: 16px;
    text-align: left;
  }

  .close-project {
    font-size: 28px;
    top: 10px;
    right: 16px;
  }
}

/* ========== MODALE : ANIMATION DOUCE ========== */
.modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}





/* ========== MODALE : SCROLLBAR PERSONNALISÉE ========== */
.modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}