@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: 5vw; /* Adjust this value as needed */
}

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

p{
    font-size: 1.8vw; /* 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: 500; /* Make the text slightly bold */
    font-weight: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: 2rem 0;
}

.home-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem;
    background-color: #fff3f3;
    position: relative;
}
.text-wrapper {
    margin-left: 20px; /* Adjust this value to move the text */
    padding-left: 0; /* Ensure no extra padding is applied */
}
.home-image {
    flex: 1; /* Allow the image to take up available space */
    max-width: 40%; /* Control the maximum width of the image */
    height: auto; /* Maintain aspect ratio */
    position:absolute;
    right: 0;
    top: 50%; /* Center the image vertically */
    transform: translateY(-50%); /* Adjust vertical alignment */
    /*max-width: 500px; /* Maintain responsiveness */
    height: auto;

}

.home-text {
    
    flex: 1; /* Take up available space */
    max-width: 60%; /* Control the maximum width of the text */
    padding-right: 1rem; /* Add some spacing between text and 
    image */
    margin-left: 100px;
    display: flex;
    flex-direction: column;
}

.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 */
}

@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-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color */
    display: block; /* Make the link block-level to cover the entire card */
}

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 */
}

.prefooter{
    background-color:#fff3f3;
}


@media screen and (max-width: 768px) {
    .home-section {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center-align the text and image */
    }

    .home-image {
        max-width: 100%; /* Ensure the image takes full width */
        margin: 20px 0; /* Add some margin for spacing */
        position: relative; /* Reset the position so it doesn't overlap */
        right: 0; /* Reset the right positioning */
        transform: none; /* Remove the transform */
    }

    .home-text {
        max-width: 100%; /* Allow the text to take full width */
        padding-right: 0; /* Remove the padding to allow more space */
    }

    .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;
    }

    .home-text {
    
        flex: 1; /* Take up available space */
        max-width: 60%; /* Control the maximum width of the text */
        padding-right: 1rem; /* Add some spacing between text and 
        image */
        margin-left: 20px;
        display: flex;
        flex-direction: column;
    }
    .home-image {
        width: 50%; /* Small screens (e.g., tablets) */
    }
}

body.project-page {
    background-color: #920E0E; /* Red background for the project page */
    color: #fff; /* White text for better contrast */
}
.projects-section {
    display: flex;
    justify-content: space-between; /* Ajoute de l'espace entre les cartes */
    align-items: stretch; /* Étire les cartes pour qu'elles aient la même hauteur */
    flex-wrap: wrap; /* Permet aux cartes de se réorganiser sur plusieurs lignes si l'espace est insuffisant */
    gap: 1rem; /* Ajoute de l'espace entre les cartes */
    padding: 2rem;
    background-color:  #920E0E;
}

.project-card {
    background-color: #fff3f3;
    color: #920E0E;
    border-radius: 20px;
    width: 30%; /* Définit la largeur de chaque carte */
    margin: 0; /* Supprime les marges supplémentaires */
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.project-card img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.project-card:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    .home-image {
        width: 40%; /* Medium screens (e.g., small desktops and large tablets) */
    }
    .home-section {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center-align the text and image */
        padding: 0;
    }

    .home-image {
        max-width: 100%; /* Ensure the image takes full width */
        margin: 20px 0; /* Add some margin for spacing */
        position: relative; /* Reset the position so it doesn't overlap */
        right: 0; /* Reset the right positioning */
        transform: none; /* Remove the transform */
        margin-right: 2rem;
    }

    

    .nav-right {
        display: none; /* Hide the navigation items by default on small screens */
    }
    nav ul li a.highlight {
        color: #920E0E; /* Couleur rouge pour l'élément Chloé Lorant */
        margin-left: 1rem;
        font-weight:bold;
    }
    nav ul li a {
        margin-left: 1rem;
    }

    .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;
    }

    .home-text {
    
        flex: 1; /* Take up available space */
        max-width: 90%; /* Control the maximum width of the text */
        padding-right: 1rem; /* Add some spacing between text and 
        image */
        margin-left: 20px;
        display: flex;
        flex-direction: column;
    }

    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 */
    }

    .projects-section {
        flex-direction: column; /* Empile les cartes verticalement sur les écrans plus petits */
        align-items: center; /* Centre les cartes lorsqu'elles sont empilées */
    }

    .project-card {
        width: 100%; /* Prend toute la largeur disponible sur les petits écrans */
        margin-bottom: 1rem; /* Ajoute un espace entre les cartes lorsqu'elles sont empilées */
    }
    
}



@media screen and (max-width: 600px) {
    .home-image {
        width: 90%; /* Very small screens (e.g., smartphones) */
    }

    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;
    }

   

}

