/*=======================================================================
  Styles spécifiques — Page Offres (offres.php)
=========================================================================

  1. Cartes offres (.offres)
  2. Conteneur grille (.bloc-offres)
  3. Décor blob arrière-plan
  4. Responsive

=========================================================================*/


/*========================
== 1. Cartes offres     ==
========================*/
.offres {
    background-color: white;
    border: 1px solid var(--color-light-grey);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.offres img {
    width: 91px;
}

/* Aligne le dernier paragraphe en bas de chaque carte */
.offres > p:last-child {
    margin-top: auto;
}


/*========================
== 2. Conteneur grille  ==
========================*/
.bloc-offres {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.bloc-offres .offres {
    flex: 1 1 calc(25% - 30px);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.bloc-offres .offres:hover {
    transform: translateY(-5px);
}

.bloc-offres .offres img {
    max-width: 100%;
    display: block;
    margin-bottom: 1rem;
}

.bloc-offres .offres ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.bloc-offres .offres ul li {
    margin-bottom: 0.5rem;
}


/*========================
== 3. Décor blob        ==
========================*/
.bloc-offres::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 200px;
    background-image: url('/assets/img/blob_1.png');
    background-repeat: no-repeat;
    background-size: contain;
    left: 730px;
    top: 160px;
    z-index: 0;
}


/*========================
== 4. Responsive        ==
========================*/
@media (max-width: 992px) {
    .bloc-offres .offres {
        flex: 1 1 calc(50% - 30px); /* 2 colonnes */
    }
}

@media (max-width: 576px) {
    .bloc-offres .offres {
        flex: 1 1 100%; /* 1 colonne */
    }
}
