*,
::before,
::after{
    margin: 0;
    box-sizing: border-box;
}

:root{
    --color-base: #10b881;
    --color-primario: #ffcc00; 
    --color-segundario: #172738;
    --color-terciaire: #0a94cd;
    --gray-color: #F3F3F3;
    --padding-container: 60px 0; 
    --box-shadow: 0 6px 10px var(--color-segundario);
}
body,
input,
textarea,
button{
    font-family: "Space Grotesk", sans-serif;
}
.container{
    width: min(100%, 1200px);
    margin: 0 auto;
    overflow: hidden;
    /*Se trabaja la version movil primero. se puede poner tambien width: min (100%, 1200px;)*/
}
/**MODELES**/
.container-modeles{
    background-color: #F3F3F3;
    padding-bottom: 3rem;
}
.modeles{padding-top: 2rem;}
.modeles-container{
    background: var(--gray-color);
    border-bottom: 1px solid transparent;
    border-radius: 10px;
    margin-bottom: 3rem;
}
.boutons-modeles{margin-left: 10px;}
.services_title{margin: 10px}
.modeles p{margin: 10px}
.gallery-modeles{margin: 10px;}

.modeles-container ul{padding-left: 0;}
.boutons-modeles li{
    display: inline-block;
    justify-content: space-between;
    align-items: start;
    text-align: left;
    margin: .5px;
    padding: 2px;
    border: 1px solid #031273;
    text-decoration: none;
    list-style: none;
    color: var(--color-segundario);
    font-size: 14px;
    border-radius: 5px;
}
.boutons-modeles li:hover{
  background: linear-gradient(to right, #031273, #0504AA, #0058cc, #031273);
  border: #031273; 
  color: #fff;
  cursor: pointer;
  transition: 0.5s;
}
.boutons-modeles .active{
    background: linear-gradient(to right, #031273, #0504AA, #0058cc, #031273); 
    color: var(--gray-color);
    border-color: var(--color-segundario);
}
.gallery-modeles{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.gallery-modeles .cont-modeles{
  width: 100%;
  height: auto;
  overflow: hidden;
  box-shadow: var(--color-segundario);
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff;
}
.gallery-modeles .cont-modeles:hover{
    border: 1px solid #0058cc;
    border-color: #0058cc;
    border-bottom-width: 5px;
    border-top-width: 5px;
    --box-shadow: 0 6px 10px var(--color-primario);
    border-color: #0058cc;
}
.img-modeles{width: 100%; height: 90%;}
.img-modeles img{height: 100%; width: 100%; object-fit: cover;}
.img-modeles img:hover{
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.textes-modeles{ height: 10%;}
.textes-modeles h4{
    text-align: center;
    font-size: 16px; 
    font-weight: 400; 
    padding-top: 5px;
    margin-left: 5px;
}
.textes-modeles span{
    width: 16px;
    height: 16px;
    padding: .1rem .2rem;
    border: 1px solid #0058cc;
    color: #F3F3F3;
    font-size: .8rem;
    font-weight: 500;
    background-color: #0058cc;
    border-radius: 5px;
    margin-right: .3rem;
}

@media (width >= 768px){
    /**modeles**/
    .gallery-modeles .cont-modeles{
        width: 49%;
        height: 80%;
}

}

@media (width >= 992px){
    .gallery-modeles .cont-modeles{
        width: 32.5%;
        height: 80%;
}

}
