/*------------------------------------------------Generale----------------------------------------------------*/

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    background-color: #D9D9D9;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    color: #555;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

p {
    font-size: 1.2rem;
    line-height: 1.4;
}

section {
    margin-top: 2%;
}

/*------------------------------------------------Header----------------------------------------------------*/

header {
    height: 10%;
    width: 100%;
    background-color: #2e8a56;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clickableLogo {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;

    img {
        height: 90% !important;
        width: auto !important;
    }
}

.header-content {
    height: 100%;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    img {
        height: 90% !important;
        width: auto !important;
    }

    h1 {
        margin-left: 2%;
        color: #D9D9D9 !important;
        font-size: 1.9rem;
        line-height: 1.2;
        white-space: pre-line;
        text-align: left;
    }
}

.contact {
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .contactButton {
        background-color: #D9D9D9;
        border: none;
        height: 45%;
        width: 75%;
        cursor: pointer;
        border-radius: 5px;
        font-family: Arial, sans-serif;
        font-size: 0.85em;
        color: #555;
    }

    .contactButton:hover{
        scale: 1.05;
    }

    .contactIcon {
        display: none;
    }
}

.under-title {
    text-align: center;
    font-weight: 300;

    p {
        font-size: 1.5em;
        font-weight: 600;
    }
}

/*------------------------------------------------PopUp----------------------------------------------------*/

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

.popup-content {
    background-color: #D9D9D9;
    padding: 20px;
    border-radius: 8px;
    width: 20%;
    height: 40%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 10px solid #2e8a56;
    z-index: 10000;

    a{
        width: 70%;
        height: 13%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5%;
        color: #555;
    }

    img{
        height: 93%;
        margin-right: 4%;
    }

    .popupTitle{
        position: absolute;
        top: 2%;
    }
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 34px;
    cursor: pointer;
}

/*------------------------------------------------Section introduction----------------------------------------------------*/

.introduction {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 70%;
}

.image-container {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        width: 100%;
        object-fit: cover;
        height: 100%;
        border-radius: 4%;
        border: 10px solid #2e8a56;
    }
}

.text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;

    p {
        width: 90%;
    }

    p::first-letter {
        -webkit-initial-letter: 2;
        initial-letter: 2 1;
        color: #2e8a56;
        font-weight: bold;
        margin-right: .15em;
    }
}

/*------------------------------------------------Section mission----------------------------------------------------*/

.mission {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.groupe {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sous-groupe {
    width: 70%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin: 2%;

    span {
        width: 40%;
        display: flex;
        flex-direction: column;
        align-items: center;

        img {
            width: 20%;
        }

        p {
            width: 80%;
            margin: 0;
            text-align: center;
        }
    }
}

/*------------------------------------------------Section histoire----------------------------------------------------*/

.histoire {
    padding-top: 1%;
    padding-bottom: 1%;
    width: 100%;
    background-color: #2e8a56;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.secondColorTitle {
    color: #D9D9D9;
}

.nous {
    height: 100%;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #D9D9D9;

    p {
        height: 40%;
        width: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

.phContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    height: 50%;
}

.avatar {
    height: 100%;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    h3 {
        margin: 0;
    }

    h4 {
        margin: 0;
    }

    img {
        height: 170px;
        width: 170px;
        border-radius: 50%;
        object-fit: cover;
        border: 10px solid #D9D9D9;
    }
}

/*------------------------------------------------Footer----------------------------------------------------*/

footer {
    height: 7%;
    width: 100%;
    background-color: #2e8a56;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2%;
}

.footer-a {
    text-decoration: none;
    color: #f1f1f1;
    font-size: 0.8rem;
}

/*------------------------------------------------Mentions légales----------------------------------------------------*/
.mentionLegalesMain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 83%;
}

.mentionLegalesFooter {
    margin-top: 0%;
}

/*------------------------------------------------Responsive----------------------------------------------------*/

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

    h2 {
        font-size: 1.7rem;
    }

    .contact {
        width: 25%;
        justify-content: flex-end !important;
    }

    .contactButton {
        display: none;
    }

    .contactIcon {
        display: flex !important;
        height: 100%;
        align-items: center;
        justify-content: center;
        height: 60%;
        width: 50%;
        background-color: transparent;
        border: none;
        cursor: pointer;

        img {
            height: 100%;
        }
    }

    .header-content {
        width: 65%;

        h1 {
            font-size: 1.2rem;
            line-height: 1.2;
            white-space: pre-line;
        }
    }

    .clickableLogo {
        height: 70%;
    }

    .introduction {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
        flex-direction: column;
    }

    .image-container {
        width: 80%;
    }

    .text-container {
        width: 100%;

        p {
            width: 90%;
            text-align: center;
        }
    }

    .sous-groupe {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 2%;

        span {
            width: 100%;
            margin-bottom: 5%;
        }
    }

    .phContainer {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70%;
        height: 50%;
        flex-direction: column;
    }

    .avatar {
        height: 100%;
        width: 100%;
        margin-bottom: 5%;
    }

    .nous {
        width: 90%;

        p {
            width: 100%;
        }
    }

    .popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .popup-content {
        width: 85% !important;
        height: 35%;
        padding: 1rem;
        border-width: 5px;
        margin: auto;
        box-sizing: border-box;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        a {
            width: 85%;
            height: 15%;
            margin: 0.8rem;
            font-size: 0.9rem;
            box-sizing: border-box;
        }

        img {
            height: 80%;
            margin-right: 0.8rem;
        }

        .popupTitle {
            font-size: 1.5rem;
            top: 5%;
        }
    }

    .close {
        top: 5px;
        right: 10px;
        font-size: 28px;
    }

    .creaweb-container {
        width: 95%;
        margin: 0 auto;
    }

    .creaweb-content {
        padding: 1rem;
    }

    .creaweb-description p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .skills-container {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .presentation-text {
        width: 100%;
        margin: 2rem 0;
        padding: 2rem;
        box-sizing: border-box;
    }

    .presentation-text h3 {
        margin-bottom: 2rem;
    }

    .presentation-text p {
        margin: 0;
        font-size: 1rem;
        text-align: left;
        padding: 0;
    }

    .skill-item {
        margin-bottom: 1rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .progress-container {
        height: 25px;
    }

    .progress-truck {
        width: 25px;
        height: 25px;
    }

    .presentation-contact {
        width: 100% !important;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        margin-top: 1rem;
    }

    .burger-menu {
        display: flex;
        margin-right: 1rem;
    }

    .header-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #2e8a56;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .header-links.active {
        right: 0;
    }

    .header-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .competance {
        width: 100%;
        margin: 0;
        padding: 2rem;
        box-sizing: border-box;
    }
}


@media (min-width:1025px) and (max-width: 1440px) {
    .skills-container {
        width: 95%;
    }

    .presentation-text p {
        margin-top: -40px;
    }

    .presentation-text p br {
        display: none;
    }

    .popup-content {
        width: 30%;
    }
}

@media (min-width:1441px) and (max-width: 1920px) {}

@media (min-width:1921px) and (max-width: 3440px) {}

/*------------------------------------------------Section Web Creation----------------------------------------------------*/

.web-creation {
    width: 100%;
    padding: 2% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.web-services {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #2e8a56;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.web-portfolio {
    width: 80%;
    margin-top: 4rem;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

@media screen and (max-width: 1024px) {
    .web-services {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        width: 90%;
        grid-template-columns: 1fr;
    }
}

/*------------------------------------------------Section Compétences----------------------------------------------------*/

.skills-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    margin: 2rem auto;
    width: 90%;
}

.competance {
    flex: 1;
    margin: 0;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.presentation-text {
    flex: 1;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

.presentation-text p {
    color: #333;
    line-height: 1.6;
    text-align: justify;
    /* margin: 0; */
    margin-top: -85px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.presentation-contact {
    background-color: #2e8a56 !important;
    color: #D9D9D9 !important;
    padding: 0.8rem 1.5rem;
    font-size: 1.1em;
    transition: transform 0.3s ease;
    width: fit-content !important;
    height: auto !important;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.presentation-contact:hover {
    transform: scale(1.05);
}

.competance h3, .presentation-text h3 {
    color: #2e8a56;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    object-fit: contain;
}

.skill-info {
    flex-grow: 1;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #555;
}

.progress-container {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2e8a56;
    border-radius: 15px;
    position: relative;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

.progress-truck {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
}

.skill-item.animate .progress-bar {
    animation: fillProgress 1.5s ease-in-out forwards;
}

.skill-item.animate .progress-truck {
    animation: bounce 0.6s infinite alternate;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress-value);
    }
}

@keyframes bounce {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(-30%);
    }
}

@media screen and (max-width: 1024px) {
    .skills-container {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .presentation-text {
        width: 100%;
        margin: 2rem 0;
        padding: 2rem;
        box-sizing: border-box;
    }

    .presentation-text h3 {
        margin-bottom: 2rem;
    }

    .presentation-text p {
        margin: 0;
        font-size: 1rem;
        text-align: left;
        padding: 0;
    }

    .presentation-contact {
        width: 80% !important;
        margin: 1rem auto;
        padding: 0.8rem;
    }

    .competance {
        width: 100%;
        margin: 0;
        padding: 2rem;
        box-sizing: border-box;
    }

    .skill-logo {
        width: 30px;
        height: 30px;
    }
}

.creaweb-content {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.creaweb-description {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.creaweb-description p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0;
}

.header-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    gap: 2rem;
}

.other-activities {
    color: #D9D9D9;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.other-activities:hover {
    background-color: rgba(217, 217, 217, 0.1);
}

@media screen and (max-width: 1024px) {
    .header-links {
        margin-right: 1rem;
    }

    .other-activities {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: #D9D9D9;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1024px) {
    .burger-menu {
        display: flex;
        margin-right: 1rem;
    }

    .header-content {
        width: 60%;
    }

    .header-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #2e8a56;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .header-links.active {
        right: 0;
    }

    .header-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}