/**** Style général de la page ****/

h1 {
    text-align: left;
}

.about__container p {
    margin-bottom: 50px;
}

h2 {
    color: var(--colorSecondary);
}

.about__container {
    background-color: var(--colorPrimary);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.articles__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 25px;
}

.landscapes__card,
.portraits__card,
.reportages__card {
    width: 312px;
    border: 1px solid var(--important);
    border-radius: 8px;
    padding: 12px;
    opacity: 0;
    animation: fade-in 0.5s forwards;
    animation-delay: calc( 0.2s * var(--i) );
}

/**** Animation fade-in ****/

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

figure {
    width: 100%;
    height: fit-content;
}

figure img {
    width: 100%;
    height: 200px;
    object-fit: fill;
    border-radius: 8px;
    margin-bottom: 20px;
}

figcaption h2 {
    color: var(--important);
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}

.service__list {
    position: relative;
    border: 1px solid var(--important);
    border-radius: 8px;
    width: 45%;
    background-color: var(--colorSecondary);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.service__list:hover {
    background-color: var(--colorPrimary);
}

.service__list h3 {
    color: var(--important);
    text-align: center;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--important);
    color: var(--colorSecondary);
    width: 22px;
    height: 22px;
    border: 1px solid var(--important);
    border-radius: 100px;
    font-size: 14px;
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
}
  
table {
    color: var(--colorSecondary);
    text-align: center;
    width: 100%;
    border-collapse: collapse;
}
  
td,
th {
    padding: 15px;
    border: 1px solid var(--important);
}
  
td {
    padding: 80px;
}

.testimonials__container {
    margin-bottom: 50px;
}

.testimonials {
    width: 100%;
    background-color: var(--colorPrimary);
    color: var(--colorPrimary);
    border: 1px solid var(--important);
    border-radius: 15px;
    padding: 50px 70px;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--colorSecondary);
    transform-origin: left;
    margin-bottom: 12px;
    animation: grow 10s linear infinite;
}
  
/**** Animation grow ****/

@keyframes grow {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.fa-quote {
    position: absolute;
    top: 60px;
    color: var(--text);
    font-size: 36px;
}
  
.fa-quote-right {
    left: 30px;
}
  
.fa-quote-left {
    right: 30px;
}

.testimonial {
    line-height: 1.8;
}
  
.user {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}
  
.user__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
  
.user-details {
    margin-left: 12px;
}

.username {
    color: var(--important);
}
  
.note {
    font-weight: normal;
    margin: 6px 0;
}

/**** Responsive design Tablette ****/

@media screen and (max-width: 992px) {
    .articles__cards {
        flex-direction: column;
    }

    .landscapes__card,
    .portraits__card,
    .reportages__card {
        width: 100%;
    }

    figure img {
        object-fit: contain;
    }

    .services__list {
        flex-direction: column;
    }

    .service__list {
        width: 100%;
    }

    td {
        padding: 50px;
    }
}

/**** Responsive design Mobile ****/

@media screen and (max-width: 768px) {
    .price__container {
        display: none;
    }

    .testimonials {
        padding: 50px 25px;
    }

    .fa-quote-right {
        left: 20px;
    }
      
    .fa-quote-left {
        right: 20px;
    }

    .testimonial {
        text-align: center;
    }
}