/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.annonces-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 10px;
    z-index: 10000;
}

.annonce-wrapper {
    position: relative;
    margin: 10px 0;
    z-index: 10000;
    transition: all .3s;
}

.annonce {
    display: block;
    padding: 10px 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    background-color: greenyellow;
    
    /* border-left-color: #f9a825; */
    animation: bounce 10s infinite;
    z-index: 1000;
}

.annonce p {
    margin: 0;
    padding: 0;
    color: black;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}
.annonce2{
    background-color: #33333373;
    backdrop-filter: blur(10px);
    
}
.annonces-container2{
    position: relative;
    width: 50%;
    height: 300px;
    margin: auto;
    
    background-color: #33333373;
    background-position: center;
    backdrop-filter: blur(10px);
    background-size: cover;
    padding: 10px;
    z-index: 10000;
}
.annonce-wrapper2  img{
    height: 100%;
    width: 100%;
}
.close-btn:hover {
    color: #f44336;
}








/* Styles généraux */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* Boîte d'annonce */
.announcement-box {
    position: relative;
    bottom: 200px;
    left: 0;
    width: 50%;
    height: 400px;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    margin: auto;
}

/* Contenu de l'annonce */
/* .announcement-content {
    position: relative;
    background: url('../images/femme2.jpg') center center / cover no-repeat;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    width: 90%;
    height: 300px;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
} */

.announcement-content {
    position: relative;
    background: rgba(255, 255, 255, 0.505);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    border-radius: 8px;
   
}

/* Image floutée en arrière-plan */
.announcement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/femme2.jpg') center center / cover no-repeat;
    filter: blur(0px); /* Floutage de l'image */
    z-index: -1; /* Derrière le contenu */
    border-radius: 8px;

}


/* Lien d'annonce */
.announcement-link {
    color: black;
    text-decoration: none;
}
/* Lien d'annonce */
.announcement-link span{
    font-size: 50px;
    color: rgb(14, 14, 144);
    font-weight: bold;
}
.announcement-link:hover{
    color: #003;
}

.announcement-link h1 {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: bold;
}

.announcement-link p {
    font-size: 16px;
    margin: 0;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: -18px;
    right: 10px;
    background: transparent;
    border: none;
    color: red;
    font-size: 40px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

/* Responsivité */
@media (max-width: 768px) {
    .announcement-content {
        max-width: 90%;
    }

    .announcement-link h1 {
        font-size: 18px;
    }

    .announcement-link p {
        font-size: 14px;
    }
}
















@media (max-width: 600px) {
    .annonce {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .close-btn {
        align-self: flex-end;
    }
}

/* @keyframes colorChange {
    0% {
        background-color: #ffeb3b;
        border-left-color: #f9a825;
    }
    33% {
        background-color: #4caf50;
        border-left-color: #388e3c;
    }
    66% {
        background-color: #2196f3;
        border-left-color: #1976d2;
    }
    100% {
        background-color: #ffeb3b;
        border-left-color: #f9a825;
    }
} */

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

