*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


#portfolio{
    padding: 10px;
}
#portfolio h1{
    display: flex;
    justify-content: center;
    color: #000000;
}

.emballage{
    margin: 10px ;
}



.box-area{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    /* margin-top: 50px; */
}
.box{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.box img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.contenu{
    height: 0;
    width: 100%;
    background: linear-gradient(transform, #1c1c1c 40%) ;
    border-radius: 10%;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;

}

.contenu h3{
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 50px;
    font-family: bebas neue;
    font-size: 30px;
    letter-spacing: 2px;
    color: #000000;
}
.contenu a{
    margin-top: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    background: #1DAAE2;
    border-radius: 50px;
    text-align: center;
    padding: 5px 15px ;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contenu a:hover {
    background-color: #BF2726;
    transform: scale(1.1);
}


.contenu:hover img{
    transform: scale(1.2);

}
.box:hover .contenu{
    height: 100%;
}

  /* essai */
    
    @media (max-width: 768px) {
  h1 { font-size: 2rem; }   ;
  h2 { font-size: 1.75rem; };
  h3 { font-size: 1.5rem; } ;
  h4 { font-size: 1.25rem; };
  p  { font-size: 0.95rem; };
}

/* Mobiles (≤ 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; };
  h2 { font-size: 1.5rem; } ;
  h3 { font-size: 1.25rem; };
  h4 { font-size: 1.1rem; } ;
  p  { font-size: 0.9rem; } ;
}
