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

.contact-section {
    padding: 2rem;
    text-align: left;
    margin-left : 7.5rem
    
}

.contact-section h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 3rem;
}

form {
    
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-bottom: 2rem;
}

form label {
    margin-bottom: 0.5rem;
    font-weight: normal;
    color: #333;
    width: 100%;
    max-width: 550px;
}

form input, form textarea {
    width: 100%;
    max-width: 550px;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: Montserrat, sans serif;
    
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Ensure responsiveness */
    gap: 2rem; /* Add some space between the form and social networks */
}

.contact-form {
    flex: 1;
    max-width: 60%; /* Control the width of the form */
}

.social-networks {
    flex: 1;
    max-width: 35%; /* Control the width of the social networks */
    text-align: center; /* Center the content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align the content to the top */
    margin-top: -20px; /* Adjust this value to move it higher */
}

.social-networks h2 {
    text-align: left; /* Align the header to the left */
    font-size: 1.5rem; /* Match the font size with "Contactez-moi !" */
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    flex-direction: space-around;
    align-items: center;
    gap: 1rem;
    padding-right: 120px;
    padding-top: 3.3rem;
}

.social-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.social-icons a img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.social-icons a p {
    margin: 0;
    font-size: 1rem;
    color: #920E0E;
}

#message {
    width: 100%;
    max-width: 550px;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 1rem;
    height: 150px; /* Augmentez la hauteur du champ "Votre message" */
}

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

.cta-button img {
    display: block;
    max-width: 80%;
    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;
    }
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a img {
    width: 86px;
    height: 86px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus
  {
    border-color: #920E0E; /* Change le pourtour en rouge */
    outline: none; /* Supprime l'effet de bordure par défaut */
    box-shadow: 0 0 5px rgba(146, 14, 14, 0.5); /* Ajoute une légère ombre rouge */
}

.contact-form textarea:focus {
    border-color: #920E0E !important; /* Force la bordure rouge */
    outline: none; /* Supprime l'effet de bordure par défaut */
    box-shadow: 0 0 10px rgba(146, 14, 14, 0.7); /* Augmente l'épaisseur de l'ombre rouge */
}



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

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

   
}

@media screen and (max-width: 1024px) {
   
    .nav-right {
        display: none; /* Hide the navigation items by default on small screens */
    }

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

    nav ul li a.highlight {
        color: #920E0E; /* Couleur rouge pour l'élément Chloé Lorant */
        margin-left: 1rem;
        font-weight:bold;
    }


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

    .contact-container {
        flex-direction: column;
    }

    .contact-form, .social-networks {
        max-width: 150%;
        margin-left: -7rem;
    }

    .social-icons {
        justify-content: center;
        gap: 30px;
        display: flex;
        margin-left: 6.5rem;
    }



    .social-icons img {
        width: 20px; /* Ajuste la taille des icônes selon vos besoins */
        height: 20px;
    }
    
}



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

    form input, form textarea {
        max-width: 100%;
    }

    .social-icons a img {
        width: 70px;
        height: 70px;
    }

    .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 */
        margin-left: 0rem;
    }
    .cta-button img {
        width: 250px !important; /* Force the image to resize */
        height: auto !important;
        max-width: none;
        
    }
   

}


@media only screen and (max-width: 375px) {
    .contact-form, .social-networks {
        max-width: 150%;
        margin-left: -6.5rem;
    }
}

