/* SHOP */

.section__shop{
    width: 90%;
    /* Ajoute plus d'espace en bas avant la FAQ */
    padding: 100px 5% 220px;
}

.shop__title{
    font-weight: bold;
    font-size: 44px;
    color: var(--colorMain);
}

.shop__description{
    color: var(--colorText);
    width: 40%;
    font-weight: normal;
    font-size: 15px;
    padding-top: 10px;
}

.shop__categories{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 50px;
}

.shop__category{
    margin: 0 15px 15px 0;
    background-color: var(--backgroundSecond);
    color: var(--colorText);
    font-weight: 500;
    padding: 20px 70px;
    cursor: pointer;
}

.shop__categories .active, .shop__category:hover{
    color: var(--colorMain);
}

.shop__category:nth-child(1){
    margin-left: 0px;
}

.shop__cards{
    margin-top: 40px;
}

.shop__card{
    background-color: var(--backgroundSecond);
    /* Padding en pixels pour une hauteur cohérente entre les cartes */
    padding: 40px;
    margin-bottom: 22px;
    /* Egalisation des hauteurs */
    display: flex;
    flex-direction: column;
    /* Hauteur minimale pour des cartes plus grandes et uniformes */
    min-height: 550px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(207, 22, 22, 0.15);
}

/* Etire les colonnes et les cartes pour aligner les hauteurs sur chaque ligne */
.shop__cards .row{ align-items: stretch; }
.shop__cards .col-lg-4{ display: flex; }
.shop__cards .col-lg-4 > .shop__card{ flex: 1; }

.shop__icon{
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.shop__card__title{
    color: var(--colorMain);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.shop__card__description{
    color: var(--colorText);
    font-weight: 400;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.shop__card__price{
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
    color: var(--colorText);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.shop__card__price span{
    color: var(--colorDefault);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.shop__card__purchase{
    /* Place le bouton en bas de la carte quelle que soit la longueur du contenu */
    margin-top: auto;
    background-color: var(--backgroundMain);
    color: var(--colorMain);
    font-weight: 600;
    font-size: 14px;
    padding: 20px 25px;
    width: 200px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: .3s;
    border: none;
    border-radius: 8px;
}

.shop__card__purchase:hover{
    opacity: 0.7;
    transition: .3s;
}

.shop__card__icon{
    margin-right: 17px;
    width: 20px;
}

@media only screen and (max-width: 1100px) {
    .section__shop{
        /* Conserve un écart plus grand sur moyen écran */
        padding: 50px 5% 160px;
    }

    .shop__title{
        font-size: 38px;
    }

    .shop__description{
        width: 100%;
        font-size: 14px;
        padding-top: 5px;
    }

    .shop__card__purchase{
        width: 150px;
    }
    /* Ajuste la hauteur minimale sur écrans moyens */
    .shop__card{ min-height: 520px; }
}

@media only screen and (max-width: 900px) {
    .shop__category{
        width: 100%;
        text-align: center;
        margin: 0 0 12px;
    }
}
/* Ajuste la hauteur minimale sur petits écrans */
@media only screen and (max-width: 800px) {
    .shop__card{ 
        min-height: 480px;
        padding: 30px;
    }
    .shop__card__price span {
        font-size: 20px;
    }
}











