.vignettes {
    position: relative;
    margin: 0px;
}

/* La vignette */
.vignette {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 4px solid transparent;
    border-radius: 14px;
    transition: border-color 0.25s ease;
}

/* Image */
.vignette-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tout ce qui est à l'intérieur est caché par défaut */
.vignette-fig {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

/* Au survol de la vignette */
.vignettes:hover .vignette {
    border-color: red;
}

.vignettes:hover .vignette-fig {
    opacity: 1;
    visibility: visible;
}


/* -------------------------
   Titre
   ------------------------- */

.vignette-haut {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    padding: 15px;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        transparent
    );
}

.vignette-haut a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}


/* -------------------------
   Texte du bas
   ------------------------- */

.vignette-bas {
    position: absolute;
    left: 0;
    bottom: 0;

    padding: 15px;
}

.vignette-bas a {
    color: white;
    text-decoration: none;
}


/* -------------------------
   Boutons
   ------------------------- */

.vignette-semence,
.vignette-semi,
.vignette-plantation {
    position: absolute;
    right: 12px;
}

.vignette-semence {
    top: 15px;
}

.vignette-semi {
    top: 60px;
}

.vignette-plantation {
    top: 105px;
}


/* Cercles */
.cercle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);

    text-decoration: none;
    font-size: 20px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    transition: transform 0.2s ease;
}

.cercle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .vignette-fig {
        opacity: 1;
        visibility: visible;
    }

    .vignette-haut {
        padding: 2.5%;
    }

    .vignette-haut a {
        font-size: clamp(0.7rem, 3.5vw, 1rem);
    }

    .vignette-bas {
        padding: 2.5%;
    }

    .vignette-bas a {
        font-size: clamp(0.65rem, 3vw, 0.85rem);
    }

    .cercle {
        width: clamp(24px, 8vw, 32px);
        height: clamp(24px, 8vw, 32px);
        font-size: clamp(12px, 4vw, 16px);
    }

    .vignette-semence {
        top: 5%;
        right: 3%;
    }

    .vignette-semi {
        top: 37.5%;
        right: 3%;
    }

    .vignette-plantation {
        top: 70%;
        right: 3%;
    }
}