@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    background: #f1f1f1;
}

a {
    color: #111;
    text-decoration: none;
}

p {
    line-height: 25px;
}

main p,
main span,
main small {
    color: #a7a7a7;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    padding: 2em 2em 0 2em;
    max-width: 1350px;
    margin: 0 auto;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a  {
    color: orangered;
}

.brand {
    font-weight: 600;
    font-size: 1.5em;
    color: orangered;
}
main, .bar-bottom {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    justify-content: space-between;
    align-items: center;
    grid-gap: 1.5em;
}
main {
    min-height: 75vh;
}
.title {
    position: relative;
}
.title .titleOverlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background: orangered;
    border-radius: 10px;
    z-index: 2;
    transition: 0.3s ease;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: top left;
}
.titleText {
    color: #111;
}
.thumbs img {
    width: 3em;
    height: 3em;
    border-radius: 4px;
    cursor: pointer;
}
.thumbs .thumb-active {
    border: solid 3px #ccc;
}

.showcase img {
    width: 100%;
    transform-origin: bottom;
}
.showcase > div {
    position: relative;
    height: 100%;
}
.shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1em;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    filter: blur(3px);
    z-index: 0;
}
.options > div,
.options > ul {
    padding: 0.6em 0;
}
.sizes li {
    width: 3.2em;
    height: 3.2em;
    border: solid 1px #111;
    border-radius: 50%;
    text-align: center;
    line-height: 3.2em;
    font-size: 0.8em;
    transition: 0.3s;
}
.size-active {
    background: #111;
    color: #fff;
}
.reviews, .pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pricing .price {
    color: #111;
}
.reviews h4, .pricing h4 {
    color: #cccccc;
}
.reviews .stars li {
    margin: 0;
    cursor: default;
}
.stars span {
    color: rgb(216, 59, 2);   
}
.options {
    justify-self: end;
}
.options ul li {
    display: inline-block;
    margin: 0 0.2em;
    cursor: pointer;
}
.options ul li:nth-child(1) {
    margin-left: 0;
}
.colors li {
    width: 2em;
    height: 2em;
    background: red;
    border-radius: 50%;
    border: solid 2px #f6f6f6;
}
.colors .color-active {
    border-color: #111;
}
.bar-bottom {
    background: rgb(252, 87, 27);
    padding: 1.5em;
    border-radius: 15px;
}
.bar-bottom div, .bar-bottom a {
    display: flex;
    align-items: center;
}
.bar-bottom span {
    cursor: pointer;
}
.controls {
    justify-content: space-evenly;
}
.arrows span {
    font-size: 2.5em;
}
.pagination {
    display: flex;
    margin: 0 0.5em;
}
.pag {
    background: #ccc;
    width: 3em;
    height: 0.2em;
    margin: 0 7px;
    transition: 0.3s;
}
.pag-active {
    background: #111;
}
.arr-left {
    transform: rotate(180deg);
}
.cart {
    justify-self: center;
}
.cart button {
    background: #ccc;
    color: #111;
    border: none;
    border-radius: 22px;
    padding: 1em 1.5em;
    font-size: 0.8em;
    text-transform: uppercase;
    margin-right: 1em;
    margin-left: 1em;
    font-weight: 700;
    transition: 0.3s;
}
.cart button:hover {
    background: #111;
    color: #fff;
}



/* Augmentation de la taille du titre pr des ecrans larges */

@media  screen and (min-width: 1250px) {
    .title {
        font-size: 2.5em;
    }
}

/* Animation de la chaussure */

@keyframes jump {
    40% {
        transform: translateY(-8em) rotate(10deg);
    }
    70% {
        transform: translateY(-8em) rotate(0deg);
    }
    85% {
        transform: translateY(-8em) rotate(0deg);
    }
    87% {
        transform: scaleY(0.8);
    }
    100% {
        transform: scaleY(1);
    }
}

/* Animation de l'ombre de la chaussure */

@keyframes shadow {
    50% {
        transform: translateX(-50%) scaleX(0.8);
    }
    100% {
        transform: translateX(-50%) scaleX(1);
    }
}
@keyframes shadow2 {
    50% {
        width: 0;
        transform: translateX(-50%);
    }
    100% {
        width: 100%;
        transform: translateX(-50%);
    }
}

/* Animation fade de la chaussure */

@keyframes fade {
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animation du titre */

@keyframes title {
    0% {
        transform: scaleX(0);
        transform-origin: top left;
    }
    30% {
        transform: scaleX(1);
        transform-origin: top left;
    }
    60% {
        transform: scaleX(1);
        transform-origin: top right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: top right;
    }
}

/* Animation de la remise en place de la chaussure */

@keyframes replace {
    5% {
        transform: scaleY(0.8);
    }
    10% {
        transform: scaleY(1);
    }
    40% {
        transform: translateY(-100vh);
    }
    60% {
        transform: translateY(-100vh);
    }
    85% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(0.8);
    }
    100% {
        transform: translateY(1);
    }
}

@media  screen and (max-width: 1000px) {
    main, .bar-bottom {
        grid-template-columns: 1fr;
    }
    .container {
        max-width: 700px;
    }
    .options {
        justify-self: start;
        width: 100%;
    }
    .controls {
        flex-direction: column;
    }
    .controls div {
        margin: 1em 0;
    }
}