body {
    /* background-color: #f8f9fa; */
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* Container principal centré */
.detail-container {
    margin-top: 45px;
    padding: 20px;
    background-color: #f5f5f5;
}

.container{
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}


/* Carrousel */
#carouselArticle {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d3d3d3; 
    box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.2);
    
}





.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Centre l'image dans le carrousel */
}

/* Ombre au survol de l'image */ 
.carousel-item img:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée au survol */
    transform: scale(1.02); /* Zoom léger */
    transition: all 0.3s ease; /* Animation fluide */
}

/* Prix */
h3.text-danger {
    font-size: 26px;
    font-weight: bold;
    color: #ff6600;
    margin: 15px 0;
}

/* Boutons alignés horizontalement */
.bouton-contact {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 15px 0;
}

.btn-warning,
.btn-success {
    font-size: 15px;
    font-weight: bold;
    padding: 10px 10px;
    border: none;
    border-radius: 35px;
    flex: 1;
    white-space: nowrap;
}

.btn-warning {
    background-color: #ff6600;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-success {
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-success img {
    margin-right: 5px;
}

.livraison-container {
    position: absolute;
    top: 700px; 
    right: 0px;
    width: 100px;
    height: 60px;
    margin-right: 5px;
}

.livraison-icon{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.livraison-text

/* Titre article */
.title {
    font-size: 20px;
    font-weight: bold;
    color: #393939;
    margin-top: 35px;
}

/* Description */
.description {
    font-size: 10px;
    color: #555;
    line-height: 1.5;
}

/* Lien retour */
.retour-accueil {
    position: fixed;
    top: 185px;
    left: 10px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 50;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    font-weight: bold;
    color: #ff6f00;
}

.details-post-titre{
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #7a7a7a;
    background-color: #cecbcb;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}



.ecrire-voir-commentaire {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}














/* debut de saisi des commentaires*/
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    overflow: hidden;
}

.input-container textarea {
    border: none;
    resize: none;
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 12px;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background-color: transparent;
}

.input-container button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.2rem;
    cursor: pointer;
}

.input-container button:hover {
    color: #0056b3;
}


/* fin de saisi de commentaire */

/* debut des commentaires deja ajoutés */
/* .comments-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #ddd;
} */

/* ============================================
   SYSTÈME DE COMMENTAIRES - STYLE CHAT PRO
   ============================================ */

/* En-tête de la section commentaires */
.comments-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.comments-title i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.comments-count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Container des commentaires - Style Chat Pro */
.comments-container {
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 0;
    margin-bottom: 16px;
}

/* Scrollbar élégante */
.comments-container::-webkit-scrollbar {
    width: 5px;
}

.comments-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-radius: 10px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

/* Item de commentaire - Style Chat Pro */
.comment-item {
    background: #f8fafc;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-item:hover {
    background: #f1f5f9;
    border-left-color: #3b82f6;
    transform: translateX(2px);
}

/* Avatar du commentaire */
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Corps du commentaire - Style Chat Pro */
.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    min-width: 0;
}

/* Métadonnées du commentaire (nom, badge, temps) */
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.comment-badge-certified {
    color: #3b82f6;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.comment-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 2px;
}

.comment-edited {
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
}

/* Texte du commentaire */
.comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    word-wrap: break-word;
}

.comment-ellipsis {
    color: #94a3b8;
}

.comment-see-more,
.comment-see-less {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-left: 4px;
    font-weight: 600;
    transition: color 0.2s;
}

.comment-see-more:hover,
.comment-see-less:hover {
    color: #2563eb;
    text-decoration: underline;
}

.comment-full-text {
    display: none;
}

.comment-text.expanded .comment-full-text {
    display: inline;
}

.comment-text.expanded .comment-ellipsis {
    display: none;
}

.comment-text.expanded .comment-see-more {
    display: none;
}

/* Actions sur les commentaires */
.comment-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comment-item:hover .comment-actions {
    opacity: 1;
}

.comment-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.edit-comment-btn:hover {
    color: #3b82f6;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.delete-comment-btn:hover {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.report-comment-btn:hover {
    color: #f59e0b;
    background: #fffbeb;
    border-color: #fde68a;
}

/* Masquer l'ancienne structure si elle existe encore */
.comment-header,
.comment-user-info,
.comment-user-details,
.comment-user-name,
.comment-date {
    display: none;
}

/* Formulaire d'édition - Pro */
.comment-edit-form {
    margin-top: 10px;
    width: 100%;
}

.comment-edit-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.88rem;
    resize: none;
    min-height: 60px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.comment-edit-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.btn-save-edit,
.btn-cancel-edit {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-save-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-save-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-cancel-edit {
    background: #f1f5f9;
    color: #64748b;
}

.btn-cancel-edit:hover {
    background: #e2e8f0;
}

/* Message aucun commentaire - Pro */
.no-comments {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.no-comments i {
    display: block;
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.no-comments p {
    font-size: 0.9rem;
    margin: 0;
    color: #94a3b8;
}

/* Bouton charger plus - Pro */
.load-more-comments {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
}

.btn-load-more {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Formulaire de commentaire - Style Chat Pro */
.comment-form {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-form-container {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 6px 6px 6px 18px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment-form-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.comment-form-avatar {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.comment-form-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-textarea {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    resize: none;
    min-height: auto;
    height: 40px;
    font-family: inherit;
    background: transparent;
    color: #1f2937;
}

.comment-form-textarea::placeholder {
    color: #94a3b8;
}

.comment-form-textarea:focus {
    outline: none;
    box-shadow: none;
}

.comment-form-footer {
    display: flex;
    align-items: center;
    gap: 0;
}

.comment-char-count {
    display: none;
}

.comment-char-count span {
    display: none;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
}

.comment-submit-btn span {
    display: none;
}

.comment-submit-btn i {
    font-size: 1.1rem;
}

.comment-submit-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.comment-submit-btn:active {
    transform: scale(0.95);
}

.comment-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner de chargement pour le bouton d'envoi */
.comment-submit-btn .comment-spinner {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.35) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    display: block !important;
    box-sizing: border-box;
    background: transparent !important;
    -webkit-animation: comment-spin 0.7s linear infinite;
    animation: comment-spin 0.7s linear infinite;
}

@-webkit-keyframes comment-spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes comment-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prompt de connexion - Pro */
.comment-login-prompt {
    text-align: center;
    padding: 24px 16px;
    margin-top: 0;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.comment-login-prompt p {
    color: #64748b;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.btn-comment-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-comment-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    color: white;
}

.btn-comment-login:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .ecrire-voir-commentaire {
        padding: 16px;
        border-radius: 14px;
    }
    
    .comments-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .comments-title {
        font-size: 0.95rem;
    }
    
    .comments-count {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .comment-item {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-user-name strong {
        font-size: 0.82rem;
    }
    
    .comment-text {
        font-size: 0.85rem;
    }
    
    .comment-date {
        font-size: 0.7rem;
    }
    
    .comment-form-container {
        padding: 4px 4px 4px 14px;
        border-radius: 30px;
    }
    
    .comment-form-avatar {
        width: 32px;
        height: 32px;
        display: none;
    }
    
    .comment-form-textarea {
        font-size: 0.88rem;
        height: 38px;
    }
    
    .comment-submit-btn {
        width: 40px;
        height: 40px;
    }
    
    .comment-submit-btn i {
        font-size: 1rem;
    }
}

/* .see-more {
    text-align: center;
    color: #007bff;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
    text-decoration: underline;
} */
@media screen and (max-width: 600px) {
    .ecrire-voir-commentaire {
        padding: 14px;
        margin-top: 20px;
    }
    
    .comments-container {
        max-height: 280px;
    }

    .comment-item {
        padding: 10px;
        gap: 8px;
        margin-bottom: 8px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-user-name strong {
        font-size: 0.8rem;
    }
    
    .comment-text {
        font-size: 0.84rem;
        line-height: 1.5;
    }
    
    .comment-date {
        font-size: 0.68rem;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .comment-form-container {
        padding: 4px 4px 4px 12px;
    }
    
    .comment-form-textarea {
        font-size: 0.85rem;
    }
    
    .btn-comment-login {
        padding: 10px 20px;
        font-size: 0.84rem;
    }
    
    .no-comments {
        padding: 24px 16px;
    }
    
    .no-comments i {
        font-size: 2rem;
    }
}

/* fin des commentaires */





/* Responsive MOBILE */
@media (max-width: 480px) {
    .detail-container {
        padding-top: 200px;
        background-color: #f5f5f5;
    }

    
    /* Prix */
    h3.text-danger {
        font-size: 22px;
        font-weight: bold;
        color: #ff6600;
        margin: 15px 0;
    }



    .btn-warning,
    .btn-success {
        font-size: 13px;
        padding: 8px 12px;
    }

    .title {
        font-size: 20px;
    }

    .description {
        font-size: 15px;
    }

    /* Carrousel */
    #carouselArticle {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #d3d3d3; 
        width: 300px;
        box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.2);
        margin: 0 auto;
        
    }





    .carousel-item img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
        margin: 0 auto; /* Centre l'image dans le carrousel */
    }

    .prix-like {
        width: 300px;
        display: flex; /* Aligne les éléments sur une seule ligne */
        justify-content: space-between; /* Espace entre le prix et le bouton */
        align-items: center; /* Centre verticalement les éléments */
        margin: 5px auto;
    }

    .bouton-contact{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 300px;
        margin: 5px auto;
        /* gap: 60px; */
        
    }


}






/* Conteneur pour les boutons "like" et "partage" */
.actions-container {
    display: flex; /* Aligne les boutons sur une seule ligne */
    gap: 20px; /* Espace entre le bouton "like" et le bouton "partage" */
    align-items: center; /* Centre verticalement les boutons */
}

/* Positionnement du bouton de like */
.like-container-detail {
    margin-right: 0px; /* Espace à droite du bouton */
    margin-top: 0px; /* Espace au-dessus du bouton */
    position: relative;
    /* top: 308px; /* Décalage depuis le haut */
    /* right: 15px; Décalage depuis la droite */ 
    z-index: 10; /* Assure que le bouton est au-dessus des autres éléments */
    width: 38px; /* Largeur du cercle */
    height: 38px; /* Hauteur du cercle (égale à la largeur pour un cercle parfait) */
    border-radius: 50%; /* Rend le conteneur circulaire */
    /* background-color: rgba(0, 0, 0, 0.1); Arrière-plan légèrement transparent */
    background-color: #f5f5f5; /* Arrière-plan légèrement transparent */
    display: flex; /* Active le flexbox pour centrer le contenu */
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: center; /* Centre verticalement le contenu */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); Ajoute une ombre douce */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease; /* Animation fluide au survol */
}


/* style de like */
/* Style du bouton de like */
.like-button-detail {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;

}

/* Icône de cœur non liké (bordure rouge uniquement) */
.like-icon-detail {
    display: flex; /* Utilisation de flexbox pour centrer l'icône */
    justify-content: center; /* Centre horizontalement l'icône */
    align-items: center; /* Centre verticalement l'icône */
    position: absolute;
    font-size:  28px;
    color: transparent; /* Pas de couleur de remplissage */
    border: 4px solid red; /* Bordure rouge */
    border-radius: 50%; /* Coins arrondis pour l'icône */
    padding: 0px; /* Espacement interne */
    transition: all 0.3s ease; /* Animation fluide */
    background-color: #f5f5f5;; /* Fond blanc pour le cœur */
    top: 0px;
    left: 0px;  
    height: 38px; /* Hauteur de l'icône */ 
    width: 38px;
}

/* Icône de cœur liké (remplissage rouge) */
.like-icon-detail.liked {
    color: red; /* Remplissage rouge */
    border: none; /* Pas de bordure */
}

/* Supprimer l'effet de cercle rouge */
.like-icon-detail:not(.liked) {
    border: none; /* Pas de bordure autour du cœur */
    color: red; /* Bordure rouge uniquement pour le contour */
}

/* Animation au survol */
.like-icon-detail:hover {
    transform: scale(1.1); /* Zoom léger au survol */
}



/* Compteur de likes */
.like-count-detail {
    /* position: absolute; Positionnement absolu pour le compteur */
    /* top: ; Positionné en haut du conteneur */
    font-size: 0.7rem; /* Taille de la police */
    color: #555; /* Couleur grise pour le texte */
    margin-top: 20px; /* Espacement au-dessus du compteur */
    text-align: center; /* Centre le texte */
    font-weight: bold; /* Texte en gras */ 
}



.prix-like {
    display: flex; /* Aligne les éléments sur une seule ligne */
    justify-content: space-between; /* Espace entre le prix et le bouton */
    align-items: center; /* Centre verticalement les éléments */
    /* margin-top: 10px; Espacement au-dessus */
}


/* Bouton de partage */
.share-container-detail {
    margin-right: 0px; /* Espace à droite du bouton */ 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Largeur du bouton */
    height: 40px; /* Hauteur du bouton */
    border-radius: 50%; /* Bouton circulaire */
    background-color: #f5f5f5; /* Fond blanc */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /*Ombre douce*/
    transition: transform 0.3s ease; /* Animation fluide au survol */
}

.share-button-detail {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%; /* S'assure que le bouton occupe tout le conteneur */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-button-detail:hover {
    transform: scale(1.1); /* Zoom léger au survol */
}

/* Icône de partage */
.share-icon {
    width: 30px; /* Taille de l'icône */
    height: 30px;
    object-fit: cover; /* Ajuste l'image sans déformation */
}





/* Modale de fond */
.share-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}



.share-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}




/* Bouton de fermeture */
.share-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Input lien */
#share-url {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Bouton copier */
.copy-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Icônes de partage */
.share-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.share-icons a {
    font-size: 24px;
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-icons .facebook {
    background-color: #3b5998;
}

.share-icons .whatsapp {
    background-color: #25d366;
}

.share-icons .twitter {
    background-color: #000;
}

