/* Existing styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

header {
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
}

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

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

header nav {
    margin-left: auto;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
}

/* Intro styles */
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro {
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    position: relative;
    background: #f8f9fa;
    width: 80%;
    max-width: 1200px; /* Optional: to limit the maximum width */
    margin: 0 auto; /* Center the intro section */
}

.intro:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #41853f;
    clip-path: polygon(100% 0, 100% 100%, 50% 100%, 0 0);
    z-index: -1;
}

.intro-text {
    flex: 1;
    padding: 20px;
    max-width: 50%;
}

.intro-text h2 {
    color: #41853f;
    font-size: 24px;
}

.intro-text h1 {
    font-size: 48px;
    margin: 10px 0;
}

.intro-text .hello {
    font-weight: 300;
}

.intro-text .name {
    font-weight: bold;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.5;
}

/* Boutons dans la section intro */
.buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    margin-top: 20px;
    gap: 10px; /* Space between buttons */
}

.buttons .btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #853f85;
    color: #853f85;
    transition: all 0.3s;
}

.buttons .btn.violet {
    background: #853f85;
    color: #fff;
}

.buttons .btn.red {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #EB585A;
    color: #EB585A;
    transition: all 0.3s;
}

.buttons .btn:hover {
    background: #41853f;
    border-color: #41853f;
    color: #fff;
}

.buttons .btn.blue {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #2365AF;
    color: #2365AF;
    transition: all 0.3s;
}

.buttons .btn.blue:hover {
    background: #2365AF;
    border-color: #2365AF;
    color: #fff;
}

.buttons .btn.violet:hover {
    background: #fff;
    border-color: #853f85;
    color: #853f85;
}

.buttons .btn.red:hover {
    background: #EB585A;
    border-color: #fff;
    color: #fff;
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .buttons .btn {
        margin-bottom: 10px;
        width: 100%; /* Make buttons full width */
        text-align: center;
    }
}


.intro-image {
    flex: 1;
    padding: 20px;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

footer {
    background: #fff;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 1px solid #e5e5e5;
}

/* Presentation styles */
.presentation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presentation {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    position: relative;
    background: #f8f9fa;
    margin: 20px 0;
    width: 80%;
    max-width: 800px; /* Optional: to limit the maximum width */
}

.presentation-link {
    display: flex;
    flex-direction: column;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%; /* Ensure the link takes the full width */
    box-sizing: border-box; /* Include padding and border in the element's total width */
}

.presentation-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.presentation-link:before {
    content: "";
    position: absolute;
    background: radial-gradient(circle at center, transparent, rgba(255,255,255,0.3));
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
}

.presentation-link:hover:before {
    opacity: 1;
    transform: translate(50%, 50%);
}

.presentation-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.presentation-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 300px; /* Ensures images are consistent in size */
}

.presentation-text {
    flex: 2;
    padding: 10px;
    margin-left: 20px;
}

.presentation-text h2 {
    margin: 0;
    padding: 0.5rem 0;
    font-weight: 100;
    font-size: 1.5rem;
}

.presentation-text h1 .hello {
    font-weight: bold;
    font-size: 1.75rem;
}

.presentation-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Responsive design */
@media (min-width: 600px) {
    .presentation-link {
        flex-direction: row;
    }
}

.contact {
    padding: 40px;
    background-color: #f8f9fa;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    color: #333;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact form label {
    display: block;
    margin: 10px 0 5px;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact form input[type="submit"] {
    background-color: #41853f;
    color: #fff;
    border: none;
    cursor: pointer;
}

.contact form input[type="submit"]:hover {
    background-color: #355a29;
}

.coordinates {
    margin-top: 40px;
}

.coordinates h3 {
    font-size: 24px;
    color: #333;
}

.coordinates p {
    font-size: 18px;
    color: #666;
}
/* Styles pour la page de portfolio */
.portfolio-intro {
    text-align: center;
    padding: 40px;
    background-color: #f8f9fa;
}

.portfolio-intro h2 {
    font-size: 36px;
    color: #333;
}

.portfolio-intro p {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.portfolio-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #fff;
}

.gallery-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px; /* Space between rows */
    width: 100%;
}

.gallery-item {
    flex: 1 1 calc(50% - 20px); /* Adjusts the items to fit 2 in a row with margin */
    margin: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e5e5e5;
}

.gallery-item p {
    padding: 10px;
    font-size: 16px;
    color: #333;
}

/* Pop-up styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.popup-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.popup-content img {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 100%; /* Adjusts the items to fit 1 in a row */
        margin: 10px 0;
    }

    .gallery-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 90%;
    }
}
