/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: #1a2c3fe5;
}


/* Header */
header {
    background: #1c3146;
    color: #9dac5e;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

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

header nav ul li {
    display: inline;
    margin: 0 15px;
}

#pp-container {
    width: 200px; 
    height: 200px; 
    border-radius: 50%; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center; 
    border: 2px solid #9dac5e;
}

#pp-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


header nav ul li a {
    color: #9dac5e;
    text-decoration: none;
    font-weight: bold;
}


header nav ul li a:hover{
    color: #566b00;
}

/* Main*/

main {
    padding: 20px;
}

section {
    margin: 20px 0;
    padding: 20px;
    color:#c9c9c9;
    background: #aaa9a95b;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    /* projet */

.link {
    display: inline-block;
    margin-top: 10px;
    color: #9dac5e;
    text-decoration: none;
    font-weight: bold;
}

    /* Animation pour glisser de la droite */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

    /* Animation pour glisser vers la gauche */
@keyframes slide-out-left {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}


.projectContainer {
    position: relative; 
    height: 200px; 
    overflow: hidden; 
    border-radius: 10px;
}

.project {
    position: absolute; 
    border-radius: 10px;
    border-color: #333;
    background-color: #1f1f1f6c;
    overflow: hidden;
    padding: 10px;
    top: 0;
    left: 2%;
    width: 95%;
    opacity: 0; 
    transform: translateX(100%); 
    transition: transform 2s ease, opacity 0.8s ease; 
}

.project.active {
    opacity: 1;
    transform: translateX(0);
}

.project.hidden {
    opacity: 0;
    transform: translateX(-100%);
}

.projectContentContainer{
    margin-left: 1%;
}

.project::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height: 100%;
    background: var(--bg-image) no-repeat center center;
    background-size: cover;
    opacity: 0; 
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
    
}


.project:hover::before {
    opacity: 0.5;
    animation: slide-bg 2s ease forwards;
    background: var(--bg-image) no-repeat center center;
}

@keyframes slide-bg {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(33%);
    }
}

/* Projets */

#projectDisplay {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 2%;
    gap: 10px;
}

.projectAfficher {
    display: flex;
    flex-direction: column;
    align-items: left;
    color: #fff;
    width: 80%;
    height: 90%;
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    margin: 20px auto;
    backdrop-filter: blur(15px);
    overflow: hidden;
    border-color: #59642e;
}

.projectAfficher img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease; 
    z-index: -1; 
    scale: 1.01;

}

.projectSelectText {
    position: relative; 
    z-index: 2; 
    text-align: left;
    color: #c3cebe;
    padding: 20px;
    background: rgba(0, 0, 0, 0.411); 
    transition: transform 10s ease; 
    border-radius: 10px;
    width: 100%; 
    height:100%;
    border-color: transparent;
}

.projectAfficher:hover img {
    transform: scale(1.1); 
}

.pojectSelectText:hover  {
    background: rgba(0, 0, 0, 0.123); 
}

    /* Modal */
.mdlInactive {
    opacity: 0;
}

.mdlActive {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex; 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a2c3fe5;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out; 
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

    /* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #9dac5e;
    text-decoration: none;
}


/* Contact */

#contactLinks {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 40px 0;
    align-items: center;
    background: #aaa9a910;

}

#contactList{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 2%;
    gap: 15px;
}

.contactLink {
    text-align: center;
    max-width: 150px;
    max-height: 150px;
    background: #aaa9a95b;
    padding: 20px;
    height: 80%;
    width: 80%;
    border-radius: 5%;
    transition: transform 0.7s ease;
}

.contactLink a {
    color: #9dac5e;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: transform 0.3s ease;
}
.contact-icon {
    font-size: 50px;
    color: #333;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.contactLink a:hover .contact-icon {
    transform: scale(1.2); 
}

#contactLinks p {
    font-size: 1.1em;
}

.contactLink:hover {
    transform: scale(1.1);
}

#contact {
    margin-top: 20px;
    padding: 20px;
    background: #aaa9a95b;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;

}
/* Formulaire */

form {
    display: flex;
    flex-direction: column;
}


form input, form textarea, form button {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 10px;
    border: 1px solid #9dac5e;
    border-radius: 5px;
    font-size: 1rem;
}

form input{
    outline: none;

}

form textarea {
    resize: none;
    height: 100px;

}

.messageGroup {
    display: flex;
    flex-direction: column;

}
form button {
    background: #788548;
    color: #fff;
    border: none;
    cursor: pointer;
}

form button:hover {
    background: #464e26;
}

/* Footer */

footer {
    text-align: center;
    padding: 20px 0;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}



footer a {
    color: #9dac5e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #projectDisplay {
        grid-template-columns: repeat(1, 1fr);
    }

    #contactList {
        grid-template-columns: repeat(2, 1fr);
    }

    .contactLink:hover {
        transform: scale(1.05);
    }

    .contactLink {
        height: 70%;
        width: 70%;
    }
}