:root {
    /* Colors: */
    --green: #01614D;
    --orange : #F38520;
    --yellow: #F8B217;
    --white: #FFFFFF;
    --black: #000000;
    /* Fonts */
    --font: 'Raleway', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.title {
    font-family: var(--font);
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--green);
}

.sub-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--green);
}

.text {
    font-family: var(--font);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.small-text {
    font-family: var(--font);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.btn {
    font-family: var(--font);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    padding: 1.2vw 2vw;
    border-radius: 10px;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.card {
    width: clamp(280px, 90vw, 370px);
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .card-title {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
  }
  
  .card-description {
    color: #555;
    line-height: 1.4;
  }
  
  .card-button {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    background-color: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s ease;
  }

  

section {
    width: 100vw;
    margin-bottom: 5vw;
}

/* HERO */

#hero {
    background-color: var(--green);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 50px;
    padding: 0vw 5vw;
    height: 100vh;
    overflow: hidden;
}

header {
    grid-area: 1 / 1 / 2 / 3;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 0vw;
}

header nav {
    position: absolute;
    right: 0vw;
}

#menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2vw;
    width: 100%;
}

.item {
    list-style-type: none;
}

.link {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--white);
    font-family: var(--font);
}

#hero-desc {
    grid-area: 2 / 1 / 3 / 2;
    height: fit-content;
    width: fit-content;
    padding-left: 8vw;
    padding-top: 4vh;
    
}

.hero-title {
    color: var(--white);
    width: fit-content;
    position: relative;
}

.hero-title img {
    position: absolute;
    right: -2vw;
    top: -9vh;
}

.hero-text {
    margin: 3vw 0;
    font-size: clamp(1.2rem, 1.6vw, 2rem);
    line-height: 2vw;
    color: var(--white);
}

#hero-image {
    grid-area: 2 / 2 / 3 / 3;
    transform: translateY(-3.5vh);
}

@media (max-width: 1500px) {
    #hero-image {
        transform: translateY(-7vh);
    }

    #hero-image img {
        transform: scale(.9);
    }
}

#hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SERVICES */
#services .title {
    text-align: center;
    margin: 5vw auto;
    width: fit-content;
    position: relative;
}

#services .title img {
    position: absolute;
    right: -115px;
    top: -90px;
}

.card-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    flex-wrap: wrap;
}

.card-image {
    width: 100%;
    /* height: 80%; */
    object-fit: cover;
    /* border-radius: 16px 16px 0 0; */
}

/* ABOUT ME */

#about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    flex-wrap: wrap;
}

#about-me .title {
    position: relative;
}
#about-me .title img {
    width: 5rem;
    position: absolute;
    right: -20px;
    top: -40px;
}

#about-me .text {
    margin: 2vw 0;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
}

/* PARTNER */

#partner .title {
    text-align: center;
    /* margin: 5vw 0; */
}

.slider {
    width: 60%;
    height: var(--height);
    margin: 100px auto;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        var(--green) 10% 90%,
        transparent
    );
}

.slider .list {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--height);
    min-width: calc(200px * var(--items));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    position: absolute;
    left: 100%;
    animation: autorun 30s linear infinite;
    animation-delay: calc( (30s / var(--items)) * (var(--position) - 1) - 30s);
}

.slider .list .item img {
    width: 100%;
}

.slider:hover .item {
    animation-play-state: paused;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
}

@keyframes autorun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

/* STEPS */

#steps .title {
    text-align: center;
    margin: 5vw auto;
    width: fit-content;
    position: relative;
}
#steps .title img {
    position: absolute;
    right: -50px;
    bottom: -30px;
}

.steps-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    flex-wrap: wrap;
}

.step {
    width: clamp(280px, 90vw, 280px);
}

.step .sub-title {
    margin: 1vw 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* TESTIMONIAL */

#testimonial .title {
    position: relative;
    width: fit-content;
    margin: 10vw auto 1vw;
}

#testimonial .title img {
    width: 10rem;
    position: absolute;
    right: 135px;
    top: -100px;
}

#testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    
      
}

.testimonial {
    max-width: 600px;
    background-color: #f9fafb;
    border-left: 4px solid #10b981;
    padding: 2rem;
    border-radius: 12px;
    font-family: system-ui, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 1rem auto;
  }
  
  .testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .testimonial-text::before {
    content: "“";
    font-size: 2.5rem;
    position: absolute;
    left: 0;
    top: -0.4rem;
    color: #10b981;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .testimonial-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
  }
  
  .testimonial-info .author-name {
    display: block;
    font-weight: 600;
    color: #111;
  }
  
  .testimonial-info .author-role {
    font-size: 0.9rem;
    color: #666;
  }

  /* SOCIAL MEDIA */
  
#social-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

#social-media .title {
    color: var(--white);
}
#social-media .text {
    color: var(--white);
    font-weight: 700;
}

#social-media-image{
    grid-area: 1 / 1 / 2 / 2; 
}
#social-media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#social-media-details {
    grid-area: 1 / 2 / 2 / 3;
    background-color: var(--green);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.social-media-content{
    position: relative;
}


.social-media-image img {
    max-width: 45vw;
    height: auto;
}

.social-media-icons {
    margin-top: 15vh;
}

.social-media-link {
    margin: 0px 50px;
    padding: 20px 40px;
}

/* PORTFOLIO */

.portfolio {
    padding: 0px 8vw;
}

.portfolio-title {
    color: var(--green);
    text-align: center;
    position: relative;
    width: fit-content;
    margin: 0px auto 40px;
}

.portfolio-title img {
    position: absolute;
    right: -100px;
    top: -40px;
}

.realisation {
    display: flex;
    margin-bottom: 50px;
}

.realisation img {
    width: 40vw;
    margin-right: 50px;
}

.realisation-title {
    color: var(--green);
}

.realisation-text {
    color: var(--green);
    font-weight: normal;
    padding-right: 30px;
    margin: 3vw 0px;
}

.realisation-action {
    padding: 15px 30px;
}


/* FOOTER */

#contact {
    padding: 40px 80px;
    background-color: var(--green);
}

#contact .title {
    color: var(--white);
    position: relative;
    width: fit-content;
    margin: 0px auto;
    text-align: center;
}

#contact .title #Groupe_30 {
    position: absolute;
    left: 10px;
    bottom: -15px;
}

#contact .title img:last-child {
    position: absolute;
    right: -120px;
    top: -35px;
}


.contact-form {
    width: 70%;
    margin: 50px auto;
}

.form-group {
    width: 100%;
    margin-bottom: 50px;
    display: flex;
}

.form-input {
    width: 70%;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 20px;
    border: none;
    outline: none;
}
.form-input::placeholder {
    color: #c8c8c8;
}

.form-input:first-child {
    margin-right: 40px;
}

.contact-form textarea {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 20px;
    font-family: inherit;
}

.contact-form textarea::placeholder {
    color: #c8c8c8;
}

.form-btn {
    display: block;
    padding: 20px 50px;
    margin: 40px auto 10px;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    outline: none;;
}

.finally {
    background-color: var(--orange);
    padding: 80px 10px 100px;
    position: relative;
    overflow: hidden;
}

.finally-title {
    text-align: center;
}

.finally-btn {
    display: block;
    width: fit-content;
    padding: 20px 50px;
    margin: 40px auto 50px;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--green);
}

footer section {
    margin-bottom: 0px;
}

/* MOBILE */
@media screen and (max-width: 768px) {


    #hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 0vw 5vw;
        height: auto;
    }

    .logo {
        position: absolute;
        left: 0;
    }

    header nav {
        display: none;
    }

    .hero-text {
        line-height: normal;
    }

    #hero-desc {
        grid-area: 2 / 1 / 3 / 2;
        height: fit-content;
        padding: 0;
    }

    .hero-btn {
        padding: 4vw;
    }

    #hero-image {
        grid-area: 3 / 1 / 4 / 2;
        position: relative;
        overflow: hidden;
        transform: none;
    }

    #hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scaleX(-1);
    }

    #social-media {
        display: block;
    }

    #social-media-image {
        display: none;
    }

    #social-media-details {
        padding: 10px 5vw
    }
    
    .social-media-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2vw;
        margin-top: 4vw;
    }
    
    .realisation-text {
        display: none;
    }

    .realisation-btn {
        display: none;
    }

    #contact {
        padding: 20px 20px;
    }
    .contact-form {
        width: 100%;
        margin: 20px auto;
    }
    .form-group {
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 8vw;
    }

    svg {
        display: none;
    }

    .title img {
        display: none;
    }

    .form-input {
        width: 100%;
    }

    .form-input:first-child {
        margin-right: 0;
    }
}
