/*on touche plus ooh*/
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05); /* Agrandi légèrement la carte */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre subtile */
}

/* Boutons de partage */
.btn-social {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    font-size: 16px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

/* Cibler l'image  */
#ad-image {
    object-fit: cover;
    height: 250px;
    border-radius: 8px;
    border: 2px solid #ddd;
}



.btn-social i {
    margin-right: 8px;
}

/* Ajout d'un effet de survol pour les boutons de partage */
.btn-social:hover {
    opacity: 0.8;
}

/* Affichage spécifique de l'historique des annonces visitées */
.visited-history {
    margin-top: 20px;
}

.visited-history ul {
    list-style-type: none;
    padding-left: 0;
}

.visited-history li {
    margin-bottom: 5px;
}


    /* Styles pour le sticky sidebar sans défilement */
    @media (min-width: 768px) {
        .sticky-sidebar {
            position: sticky;
            top: 72px;
            height: auto;
        }
    }

    /* Styles pour mobile */
    @media (max-width: 767.98px) {
        .sticky-sidebar {
            position: relative;
            top: 0;
            margin-bottom: 1rem;
        }
    }

 /*j'espere que ça va passer cette fois ci*/
    /* Conteneur principal de l'historique */
.visited-history {
    margin-top: 1.5rem;
}

/* Style des cartes dans le carrousel */
.visited-history-item {
    width: 33.333%;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.visited-history-item:hover {
    transform: translateY(-2px);
}

.visited-history-card {
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    overflow: hidden;
    height: 100%;
}

/* Style des images */
.visited-history-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Style du contenu texte */
.visited-history-content {
    padding: 0.5rem;
}

.visited-history-title {
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.visited-history-price {
    font-size: 0.75rem;
    color: #666;
}

/* Style des contrôles du carrousel */
.visited-history .carousel-control-prev,
.visited-history .carousel-control-next {
    width: 5%;
    background: none;
}

.visited-history .carousel-control-prev-icon,
.visited-history .carousel-control-next-icon {
    background-color: rgba(108, 117, 125, 0.8);
    border-radius: 0.25rem;
    padding: 1rem;
}

/* Espacement entre les items */
.visited-history-container {
    display: flex;
    gap: 0.5rem;
}


/*le carrosel des show*/

.carousel-item img {
    background-color: #f8f9fa;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Style pour le carousel */
.carousel-img-container {
    height: 400px;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Style pour les vignettes de la galerie */
.miniatures-container {
    display: flex;
    gap: 0.5rem;
}

.miniature-item {
    cursor: pointer;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.miniature-img {
    object-fit: cover;
}

/* Style pour l'avatar du posteurr */
.seller-avatar-circle {
    background-color: #6c757d;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}




/* zone de my ads*/
.ad-image-wrapper {
    position: relative;
    padding-top: 56.25%;
}

/* Pour l'image dans la carte */
.ad-image {
    object-fit: cover;
    max-height: 200px;
}


/*prolie*/
.current-photo {
    width: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}


/*index*/
.ad-img-cover {
    object-fit: cover;
    height: 200px;
    object-position: center;
}
.icon-plus {
    font-size: 1.25rem;
}
.ad-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}


/*le welcome*/

.welcome-banner {
    background-color: #242524;
    color: white;
    text-align: center;
    padding: 50px 0;
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif;
    border-radius: 8px;
    opacity: 0; /* Initialement invisible pour l'animation */
    animation: fadeInUp 2s forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-banner h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.welcome-banner p {
    font-size: 1.2rem;
    margin: 0;
}

/* Animation pour faire apparaître le message j'ai trouver ça sur un site ça passe en tout cas*/
@keyframes fadeInUp {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .welcome-banner h1 {
        font-size: 2.5rem;
    }

    .welcome-banner p {
        font-size: 1rem;
    }
}
