@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    background-color: #fff3f3;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
header {
    background: #ffffff;
    color: #920E0E;
    padding: 1rem 0;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow header items to wrap on smaller screens */
}

h1 {
    margin-left: 50px;
    /*font-size: 5rem; /* Ajustez cette valeur pour agrandir le texte */
    font-weight: 700; /* Garder la même épaisseur de police si vous le souhaitez */
    margin: 0; /* Ajustez le margin si nécessaire */
    line-height: 1.2; /* Ajustez l'espacement entre les lignes */
    font-size: 3vw; /* Adjust this value as needed */
}

h2{
    font-size: 2vw; /* Adjust this value as needed */
}

p{
    font-size: 1.3vw; /* Adjust this value as needed */
}

.highlightred{
    color:#920E0E;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
   
}

nav ul li {
   
    margin: 0 1rem;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease, text-decoration 0.3s ease; 
}
nav ul li a::after {
    content: ''; /* Creates a pseudo-element */
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px; /* Adjust this value to move the line lower */
    height: 2px; /* Thickness of the line */
    background-color: #920E0E; /* Color of the underline */
    transform: scaleX(0); /* Initially hide the line */
    transform-origin: center; /* Line grows from the center */
    transition: transform 0.2s ease; /* Smooth transition for the underline */
}
nav ul li a:hover::after {
    transform: scaleX(1); /* Show the line on hover */
}
nav ul li a:hover {
    color: #920E0E; /* Change to red on hover */
    
}

nav ul li a.highlight {
    color: #920E0E; /* Couleur rouge pour l'élément Chloé Lorant */
    margin-left: 7.5rem;
    font-weight: bold; /* Make the text slightly bold */
}
nav ul li a.active {
    color: #920E0E; /* Keep the text red for the active page */
}

nav ul li a.active::after {
    transform: scaleX(1); /* Keep the underline visible for the active page */
}
.nav-right {
    display: flex;
    
}

.nav-right li {
    margin-left: 4rem; /* Adjust this value to bring elements closer */
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}
.burger-menu span {
    background-color: #000;
    border-radius: 2px;
    height: 3px;
    margin: 4px 0;
    width: 25px;
}

main {
    flex: 1;
}

section {
    padding: 2rem;
    margin: 0rem 0;
}


.cta-section{
    padding-left: 35rem;
}

.cta-button {
    position: relative;
    display: inline-block;
    background-color: #fff3f3;
    border: none;
    border-radius: 50px;
    overflow: hidden;
    /*padding: 1rem 2rem; /* Adjust as needed */
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.cta-button img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: inherit; /* Ensure the image matches the button's border radius */
}



.cta-button .cta-hover {
    opacity: 0;
}

.cta-button:hover .cta-hover {
    opacity: 1;
}

.cta-button:hover .cta-normal {
    opacity: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 20%; /* Smaller height for the stripe */
    background: rgba(255, 255, 255, 1); /* Opaque white stripe */
    transform: rotate(45deg); /* Create the backslash effect */
    opacity: 0;
    transition: opacity 0.2s linear;
    animation: none;
    z-index: 2; /* Ensure the stripe is on top of the filter-div */
}

.cta-button:hover::before {
    opacity: 1;
    animation: slide-stripe 0.8s ease forwards; /* Move the stripe on hover */
}

.project-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #920E0E;
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}
.project-overview-content {
    flex: 1;
    max-width: 60%;
    margin-left: 7.5rem;
}

.project-overview-image {
    flex: 1;
    max-width: 22%; /* Réduisez la largeur maximale pour rendre l'image plus petite */
    width: 150px; /* Spécifiez une largeur spécifique pour l'image */
    display: flex;
    justify-content: flex-end; /* Aligne l'image à droite */
    margin-right: 5rem;
}

.project-overview-image img {
    width: 100%; /* Assurez-vous que l'image occupe toute la largeur de son conteneur */
    height: auto; /* Conserve le ratio d'aspect de l'image */
}

@keyframes slide-stripe {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.cta-button:not(:hover)::before {
    animation: slide-stripe-reverse 0.6s ease forwards; /* Reverse animation when not hovering */
}

@keyframes slide-stripe-reverse {
    0% {
        left: 150%;
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        left: -150%;
        opacity: 0;
    }
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Adds space between each detail-item */
    padding: 2rem 0;
    margin-left: 9.5rem;
}

.detail-item {
    display: flex;
    align-items: center; /* Ensure image and h2 are vertically aligned */
    gap: 1rem; /* Adds space between the image and text */
    padding: 1rem 0;
    
    flex-direction: row;
}

.detail-item img {
    width: 50px; /* Adjust the size of the icons as needed */
    height: 50px;
    margin-top: -30px;
}
.exclamation{
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 60px !important;
    margin-top: -50px !important;
}

.crushed{
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    margin-top: -30px !important;
}
.crushed2{
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    margin-top: -50px !important;
}

.crushedStats{
    margin-top: -200px !important;
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    
}

.crushedPerso{
    margin-top: -90px !important;
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    
}
.crushedWire{
    margin-top: -90px !important;
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    
}
.crushedScreens{
    margin-top: -20px !important;
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    
}
.crushedChecklist{
    margin-top: -300px !important;
    width: 60px !important; /* Adjust the size of the icons as needed */
    height: 80px !important;
    
}
.crushedPoints{
    margin-top: -50px !important;
}

.detail-item h2 {
    margin: 0;
    font-size: 1.2rem; /* Adjust the font size as needed */
    color: #000000; /* Adjust the color as needed */
}

.detail-item p {
    margin: 0;
    font-size: 1rem; /* Adjust the font size as needed */
    color: #333; /* Adjust the color as needed */
    margin-top: 0.5rem; /* Add some space between h2 and p */
}

.wireframe-images {
    display: flex;
    justify-content: center; /* Center the images */
    gap: 60px; /* Space between images */
    margin-top: 1rem;
    padding-bottom: 4rem;
}

.wireframe-images img {
    width: 300px; /* Adjust the size as needed */
    height: auto;
    border-radius: 10px;
    margin-left: 80px;
}
.digitalwireframe-images {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the images horizontally */
    gap: 100px; /* Space between images */
    margin-top: 1rem;
    width: 100%;
    /*background-color: black; /* Ensure the full width is used */
    padding: 20px 0; /* Add padding around the images */
    margin-top: -2rem;
}

.digitalwireframe-images img {
    max-width: 80%; /* Ensure images are responsive */
    height: auto;
    border-radius: 10px;
    margin-left: auto; /* Center the images perfectly */
    margin-right: auto; /* Center the images perfectly */
}
.digitalwireframe-images img:nth-child(2) {
    margin-left: 13.3rem; /* Adjust this value to push the image slightly to the right */
    
}


.project-images {
    text-align: center;
    padding: 0rem;
    
}
.project-images h2{
    text-align: center;
    padding: 2rem;
    background-color:#fff3f3;
    color: #920E0E;
    font-size: 2vw;
}

.project-image-gallery img {
    max-width: 100%; /* Make sure the GIF doesn't exceed the screen width */
    height: auto; /* Maintain aspect ratio */
    max-height: 500px; /* Optional: Limit the height if necessary */
    background-color: #920E0E;
}
.gif-container {
    background-color: black; /* Set the background to black */
    width: 100%; /* Make the container span the full width of the screen */
    display: flex;
    justify-content: center; /* Center the GIF horizontally */
    padding: 2rem 0; /* Add some vertical padding if needed */
}

.gif-container img {
    max-width: 100%; /* Ensure the GIF scales down with the screen */
    height: auto; /* Maintain the aspect ratio */
    object-fit: contain; /* Ensure the GIF fits within the container */
}

.bold-list {
    font-weight: bold; /* Makes the entire list bold, including the numbers */
   /* padding-left: 20px; /* Optional: Adds padding to indent the list */
}

.bold-list li {
   /* margin-bottom: 10px; /* Adds some space between list items */
    color: #000; /* Optional: Adjust text color if needed */
}

.text-content2{
    margin-left: 5.5rem;
}

.mockup-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns of equal width */
    grid-gap: 20px; /* Space between images */
    margin-top: 2rem;
    width: 100%; /* Ensure the grid takes up the full width */
    justify-items: center; /* Center the images in their grid cells */
}

.mockup-images img {
    width: 100%; /* Make images responsive */
    max-width: 400px; /* Limit the maximum width of the images */
    height: auto;
    border-radius: 10px;
}

.mockup-images img.mockdown {
    max-width: 300px; /* Reduce the size of images with the class 'mockdown' */
}

.redlink {
    margin-top: 50px;
    font-weight: bold; /* Corrected to use font-weight for bold text */
    color: #920E0E;
    text-align: center;
    display: block;
    position: relative;
}

.redlink p {
    margin: 0; /* Remove any default margin */
    color: #920E0E;
    margin-left: 26rem;
    font-size: large;
    text-decoration: underline; /* Underline the text */
    text-underline-offset: 3px; /* Adjust the offset to lower the underline */
    text-align: center;
}
.redlink a {
    color: #920E0E;
    font-size: large;
    text-decoration: underline; /* Underline the text */
    text-underline-offset: 3px; /* Adjust the offset to lower the underline */
    margin-left: 26rem;
    display: block; /* Ensure the link is treated as a block element */
    text-align: center; /* Ensure the link text is centered */
    display: inline-block;
}

.redlink a:hover {
    color: #920E0E; /* Optional: Change color on hover */
}

.citation{
    color: #920E0E;
    font-weight: bold;
    font-size: 1.5vw;
}

footer {
    background: #920E0E;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0; /* Further reduce padding */
    width: 100%;
    font-size: 1rem; /* Set a smaller font size */
    line-height: 1.4; /* Adjust line height for better spacing */
}

.footer-content {
    display: flex;
    justify-content: center; /* Center the items horizontally */
    align-items: center; /* Align the items vertically */
    gap: 1rem; /* Adjust space between the elements */
    flex-wrap: wrap; /* Ensure content wraps on smaller screens */
}

footer p {
    margin: 0; /* Ensure no extra margin is applied */
    font-size: inherit; /* Inherit the smaller font size */
}

footer a {
    color: #fff; /* Keep the legal mentions link in white */
    text-decoration: none; /* Remove underline */
    font-size: inherit; /* Inherit the smaller font size */
}

footer a:hover {
    text-decoration: underline; /* Add underline on hover */
}

.back-to-top {
    display: none; /* Hidden by default */
    position: fixed; /* Keep it fixed on the screen */
    bottom: 40px;
    right: 30px;
    z-index: 1000; /* Ensure it's on top of other content */
}

.back-to-top img {
    width: 50px;
    height: 50px;
}



.reseaux {
    width: 86px;
    height: 86px;
    object-fit: contain; /* Maintient l'aspect ratio de l'image si nécessaire */
}


@media screen and (max-width: 768px) {
    

    .nav-right {
        display: none; /* Hide the navigation items by default on small screens */
    }

   

    .burger-menu {
        display: flex; /* Show the burger menu icon on narrow screens */
    }

    nav.show-menu .nav-right {
        display: flex; /* Show the nav-right items when the menu is toggled */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        right: 0;
        background: #ffffff;
        width: 200px;
        border: 1px solid #ddd;
        z-index: 1000;
    }

    .nav-right li {
        margin: 10px 0;
    }
    .show-menu .nav-right {
        display: flex !important;
    }

   
}





@media screen and (max-width: 1024px) {
   
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    .nav-right {
        display: none; /* Hide the navigation items by default on small screens */
    }
    nav ul li a {
        margin-left: 1rem;
    }

    nav ul li a.highlight {
        color: #920E0E;
        margin-left: 1rem;
        font-weight: bold;
    }

    .burger-menu {
        display: flex; /* Show the burger menu icon on narrow screens */
    }

    nav.show-menu .nav-right {
        display: flex; /* Show the nav-right items when the menu is toggled */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        right: 0;
        background: #ffffff;
        width: 200px;
        border: 1px solid #ddd;
        z-index: 1000;
    }

    .nav-right li {
        margin: 10px 0;
    }
    .show-menu .nav-right {
        display: flex !important;
    }

   

    h1 {
        font-size: 6vw ; /* Force the font size change */
        white-space: normal;
    }
    
    h2 {
        font-size: 4vw !important; /* Force the font size change */
    }
    
    p {
        font-size: 3vw !important; /* Force the font size change */
    }

    .detail-item p {
        padding-right: 1.3rem !important;
    }
   

    .project-overview {
        flex-direction: column!important; /* Stack the content and image vertically */
        text-align: center!important; /* Center the text */
    }

    .project-overview-content {
        max-width: 100%!important;
        text-align: center!important; /* Center the text on smaller screens */
        margin-left: 0!important;
    }

    .project-overview-image {
        order: 1!important;
        max-width: 100%!important;
        justify-content: center!important; /* Center the image */
        margin-top: 1.5rem!important; /* Add space between text and image */
        margin-right: 0rem!important;
        margin-left:0rem!important;
       
         /* Move the image up in the order */
    }
    .project-overview-content h1 {
        order: 0!important; /* Ensure the h1 stays at the top */
    }

    .project-overview-content p {
        order: 2!important; /* Ensure the paragraphs stay below the image */
    }
    .project-details{
        margin-left: 5rem;
    }
    .detail-item {
        /* Stack the image and text vertically on smaller screens */
        align-items: flex-start; /* Align text to the left */
        flex-direction: row;
        align-items: center;
        margin-left: -70px;
    }

    .detail-item img {
        margin-bottom: 0.5rem;
         /* Adds space between the image and text when stacked */
         margin-top: -130px;
    
    }

    .exclamation{
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 60px !important;
        margin-top: -8rem !important;
    }
    .crushed{
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        margin-top: -130px !important;
    }
    .crushed2{
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        margin-top: -150px !important;
    }
    
    .crushedStats{
        margin-top: -400px !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }

    .crushedQuest{
        margin-top: -120px !important;
    }
    .crushedPoints{
        margin-top: -110px !important;
    }
    
    .crushedPerso{
        margin-top: -14rem !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }
    .crushedWire{
        margin-top: -130px !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }
    .crushedScreens{
        margin-top: -80px !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }
    .crushedChecklist{
        margin-top: -33rem !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }
    .mockup-images {
        grid-template-columns: 1fr; /* Change to one column on small screens */
        margin-left: -2rem;
    }
    
    .mockup-images img {
        max-width: 300px; /* Adjust the size of the first image for smaller screens */
    }

    .mockup-images img.mockdown {
        max-width: 245px; /* Further reduce the size of images with the class 'mockdown' */
    }


    .project-image-gallery img {
        max-width: 90%; /* Scale down the GIF slightly on smaller screens */
        max-height: 300px; /* Optional: Limit the height on smaller screens */
    }
    .gif-container img {
        max-width: 90%; /* Reduce the GIF size slightly on smaller screens */
    }

    .wireframe-images {
        display: block; /* Stack images vertically */
        text-align: center; /* Center images */
        padding-bottom: 0;
        margin-left: -4rem;
    }
    
    .wireframe-images img {
        width: 60%;
        margin-bottom: 1rem; /* Add space between stacked images */
        margin-left: auto; /* Center the images horizontally */
        margin-right: auto; /* Center the images horizontally */
    }
    
    .digitalwireframe-images img {
        max-width: 95%; /* Make the images larger */
        height: auto;
        border-radius: 10px;
        margin-right: 5rem !important;
    }
    .digitalwireframe-images img:nth-child(2) {
        margin-left: 3rem; /* Adjust this value to push the image slightly to the right */
    }
    .redlink {
        text-align: left; /* Align text more to the left */
        margin-left: -24.5rem;
        font-size: small; /* Adjust font size for smaller screens */
    }

    .redlink a {
        font-size: medium; /* Adjust font size for smaller screens */
    }

    .redlink p {
        font-size: small; /* Adjust font size for smaller screens */
    }
    .citation{
        color: #920E0E;
        font-weight: bold;
        font-size: 4vw;
    }
    .bold-list {
        font-weight: bold;
        margin-left: -2rem;
    }

    .digitalwireframe-images {
        margin-left: -1.5rem;
    }

    .cta-section {
        padding-left: 5rem;
    }
    
}




@media screen and (max-width: 600px) {
    

    h1 {
        font-size: 5vw; /* Force the font size change */
        white-space: normal;
    }
    
    h2 {
        font-size: 4.5vw !important; /* Force the font size change */
    }
    
    p {
        font-size: 3.5vw !important; /* Force the font size change */
    }

    .cta-button {
        padding: 10px 20px; /* Further increase padding for very small screens */
        font-size: 20px; /* Further increase font size */
        border-radius: 12px; /* Adjust border radius */
    }
    .cta-button img {
        width: 250px !important; /* Force the image to resize */
        height: auto !important;
        max-width: none;
    }
    .redlink a {
        font-size: large; /* Adjust font size for smaller screens */
        margin-left: 25rem;
    }

    .redlink p {
        font-size: small; /* Adjust font size for smaller screens */
    }
    
    .back-to-top {
        display: none; /* Hide the back-to-top button on phones */
    }
  

}

@media only screen and (max-width: 375px) {
    .crushedChecklist{
        margin-top: -29.5rem !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }

    .crushedScreens{
        margin-top: -4rem !important;
        width: 60px !important; /* Adjust the size of the icons as needed */
        height: 80px !important;
        
    }
    .crushedPerso {
        margin-top: -11rem !important;
        width: 60px !important;
        height: 80px !important;
    }

    .crushedWire {
        margin-top: -7rem !important;
        width: 60px !important;
        height: 80px !important;
    }
    .crushedStats {
        margin-top: -27rem !important;
        width: 60px !important;
        height: 80px !important;
    }

    .crushedPoints {
        margin-top: -5rem !important;
    }

    .crushedPerso {
        margin-top: -12rem !important;
        width: 60px !important;
        height: 80px !important;}
    
    .wireframe-images {
         display: flex; 
        text-align: center;
        padding-bottom: 0;
    } 
    .cta-section {
        padding-left: 2.5rem;
    }
    .redlink a {
        font-size: large;
        margin-left: 24rem;
    }
    .cta-section {
        padding-left: 3rem;
    }

    .wireframe-images {
        display: flex;
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images within the container */
        text-align: center;
        padding-bottom: 0;
        margin-left: -3rem; /* Remove any left margin */
    }

    .wireframe-images img {
        width: 80%; /* Adjust the width to fit smaller screens */
        margin-bottom: 1rem; /* Add spacing between images */
    }
}

