/* Style de la fenêtre de chat */
#chatbot-container {
	display:none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    max-width: 500px;
    width:100%;
    height: 800px;
    max-height: 95%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex-direction: column;
    font-family: 'Open Sans', Arial, sans-serif; /* Typographie modernisée */
    z-index: 100000;
    overflow: hidden;
    border-radius: 12px; /* Standardisation border-radius */
}

#chatbot-container h4{
	padding-bottom: 1px;
    font-size: 14px;
    margin-bottom:5px;
}

#chatbot-container ul{
	padding: 0 0 0 25px;
}

/* En-tête du chat */
.chat-header {
	position: relative;
    background: #D0006F;
    color: white;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ombre adoucie */
    z-index: 1000;
}

.chat-header-icon {
    width: 60px;
    height: 40px;
    padding-top: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D0006F;
    font-weight: bold;
}
.chat-header-icon img{
    width: 100%;
}

.chat-header-text {
    font-weight: 600;
    font-size: 16px;
}

.new-chat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
	margin:10px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.new-chat-btn svg {
    width: 14px;
    height: 14px;
}
.close-btn {
	position:absolute;
	right: 15px;
	top: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.session_txt{
    display: none;
	font-size: 11px;
	font-style: italic;
	font-weight:normal;
	color:#FFF;
	background:#232323;
	padding:2px 5px;
}

/* Corps du chat */
#chatbot-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacement augmenté */
}
#chatbot-messages hr{
    display: none;
}

/* Bulles de message */
.message {
    padding: 12px 16px;
    border-radius: 18px; /* Standardisation border-radius */
    font-size: 13px; /* Lisibilité augmentée */
    line-height: 1.5; /* Interlignage amélioré */
    max-width: 90%; /* Évite que les messages longs prennent toute la largeur */
}

.bot-message {
    background: white;
    color: #2D3436;
    align-self: flex-start;
    border: 1px solid #E0E0E0; /* Bordure adoucie */
    border-radius: 18px 18px 18px 4px; /* Forme distinctive conservée, radius ajusté */
	max-width: 90%;
}
.bot-message h2{
    font-size: 14px;
    margin-top: 10px;
}
.bot-message img{
    max-width: 100%;
}

.user-message {
    background: #D0006F;
    color: white;
    align-self: flex-end;
    border-radius: 18px 18px 4px 18px; /* Forme distinctive conservée, radius ajusté */
}

/* Suggestions rapides */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    align-self: flex-start; /* Pour que les quick actions ne prennent pas toute la largeur */
    max-width: 100%; 
}

.quick-action {
    padding: 10px 16px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 20px; /* Cohérence */
    color: #2D3436;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 13px; /* Cohérence avec .message */
}

.quick-action:hover {
    background: #D0006F;
    color: white;
    border-color: #D0006F;
}

/* Zone de saisie */
#chatbot-input {
	position: relative;
    padding: 10px 15px; /* Espacement harmonisé */
    background: white;
    border-top: 1px solid #E0E0E0; /* Bordure adoucie */
    display: flex;
    gap: 8px;
}

#user-input {
    flex-grow: 1;
    padding: 5px 50px 5px 16px; /* Padding vertical augmenté */
    margin:0;
    border: 1px solid #E0E0E0; /* Bordure adoucie */
    border-radius: 20px; /* Standardisation border-radius */
    font-size: 15px;
    outline: none;
}

#user-input::placeholder {
    color: #888888; /* Contraste amélioré WCAG AA */
    opacity: 1
}



.simple-loading {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 8px;
}

.simple-loading .dot {
    width: 6px;
    height: 6px;
    background: #D0006F;
    border-radius: 50%;
    opacity: 0.3;
    animation: dotFade 1.4s infinite ease-in-out;
}

.simple-loading .dot:nth-child(1) { animation-delay: 0s; }
.simple-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.simple-loading .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotFade {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.1); }
}


#loading-message {
    display: flex;
    align-items: center;
    font-style: italic;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px 18px 18px 4px;
    max-width: 90%;
    align-self: flex-start;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#loading-message .loading-text {
    color: #a29a9a;
    font-size: 13px;
    font-weight: 400;
}

.btn-envoyer {
    position: absolute;
    right:30px;
    bottom:23px;
}

.btn-envoyer .fa {
    color:#9a9996;
    font-size: 20px;
}

.btn-envoyer:hover .fa {
    color:#D0006F;
}

/* Version désactivée */
.btn-envoyer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#retry-container {
    border-top: 1px solid #E0E0E0; /* Bordure adoucie */
}

#retry-btn {
    background-color: #D0006F; /* Couleur principale */
    color: white;
    border: 1px solid #D0006F;
}
#retry-btn:hover {
    background-color: #b00056; /* Un peu plus foncé au survol */
    border-color: #b00056;
}

#open-chat-btn {
    position: fixed;
    display: inline-flex;
  	align-items: center;
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 10px;
    padding: 0 0 0 10px;
    background-color: #D0006F;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    font-family: 'Open Sans', Arial, sans-serif; /* Cohérence typo */
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#open-chat-btn:hover {
    background-color: #C0006E;
}

/* Style pour la pastille de notification */
#chat-notification-badge {
    position: absolute;
    top: -5px; /* Ajustez pour le positionnement */
    right: -5px; /* Ajustez pour le positionnement */
    background-color: #38cb02;
    color: white;
    border-radius: 50%;
    padding: 4px 6px 2px;
    font-size: 12px;
    font-weight: bold;
    width: 12px; /* Pour que le cercle soit rond même avec un seul chiffre */
    height: 16px;
    text-align: center;
    display: none; /* Caché par défaut */
}



.product-recommendation {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
}

.product-recommendation:hover {
	box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Conservé, bonne ombre pour survol */
}



/* Layout horizontal pour la carte produit */
.product-layout {
	display: flex;
	border-bottom: 1px solid #eee;
	padding:15px 15px 0;
}

.product-image-container {
	position: relative;
	overflow: hidden;
	width: 45%;
	flex-shrink: 0;
	border-radius: 8px;
}

.product-image-container img {
	width: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.product-recommendation:hover .product-image-container img {
	transform: scale(1.05);
}

.product-badge {
	position: absolute;
	top: 0px;
	right: 0px;
	background: #D0006F;
	color: white;
	padding: 3px 8px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: bold;
	z-index: 5;
}


.product-details {
	flex: 1;
	padding-left: 15px;
	display: flex;
	flex-direction: column;
}

.product-title {
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

.product-attr {
    margin: -10px 0 2px;
    font-size: 10px;
}

.product-brand {
	color: #777;
	font-size: 14px;
	margin-bottom: 5px;
}

.product-rating {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}

.stars {
	--percent: calc(var(--rating) / 5 * 100%);
	display: inline-block;
	font-size: 18px;
	line-height: 1;
}

.stars::before {
	content: '★★★★★';
	letter-spacing: -3px;
	background: linear-gradient(90deg, gold var(--percent), #ddd var(--percent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-rating span {
	margin-left: 8px;
	font-size: 11px;
	color: #777;
}

.product-price {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.current-price {
	font-size: 16px;
	font-weight: bold;
	color: #D0006F;
}

.original-price {
	text-decoration: line-through;
	color: #777;
	margin-left: 8px;
	font-size: 14px;
}

.discount {
	margin-left: 8px;
	background: #D0006F;width: 32px;
	color: white;
	padding: 2px 5px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
}

.product-highlights-compact {
	margin-top: auto;
	font-size: 12px;
}

.product-highlights-compact h4 {
	background: #232323;
	color: #FFF;
	font-size: 14px;
	padding: 5px 5px 4px;
	line-height: 14px;
	margin: 0 0 5px -5px;
}

.product-highlights-compact ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.product-highlights-compact li {
	font-size: 11px;
	line-height: 1.3;
	display: flex;
	align-items: center;
}

.highlight-icon {
	margin-right: 4px;
	font-size: 12px;
}

/* Argument produit */
.product-argument {
	margin: 8px 0 8px 0;
	padding: 6px 8px;
	background: rgb(195 251 196 / 25%);
	border-left: 3px solid #5cd000;
	color: #333;
	border-radius: 0 4px 4px 0;
	font-size: 12px;
	line-height: 1.4;
}

/* Section inférieure de la carte */
.product-footer {
	padding: 0 8px;
}

.product-review {
	margin-bottom: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	margin-top: 10px;
	padding: 10px;
	font-size: 12px;
}

.review-content {
	position: relative;
}

.review-stars {
	--percent: calc(var(--rating) / 5 * 100%);
	display: inline-block;
	font-size: 18px;
	line-height: 1;
}

.review-stars::before {
	content: '★★★★★';
	letter-spacing: -3px;
	background: linear-gradient(90deg, gold var(--percent), #ddd var(--percent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.review-text {
	margin: 5px 0;
	padding: 0;
	font-style: italic;
	line-height: 1.3;
}

.review-author {
	margin: 2px 0 0;
	font-size: 11px;
	text-align: right;
	color: #666;
}

.review-verified {
	color: #008000;
	font-weight: bold;
}

.product-actions {
	display: flex;
	gap: 10px;
}

.view-details, .add-to-cart {
	flex: 1;
	padding: 8px 10px;
	border-radius: 5px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	font-size: 14px;
}

.products-swiper-container .swiper-slide{
	padding:0;
	margin:0;
	background: none;
	border:0;
}
.products-swiper-container .swiper-slide:hover{
	box-shadow: none;
}
.products-swiper-container .swiper-button-prev,
.products-swiper-container .swiper-button-next{
	transition: all 0.2s ease;
	color: #d0006f;
	top: 105px;
	right: -2px;
}
.products-swiper-container .swiper-button-prev:hover,
.products-swiper-container .swiper-button-next:hover{
	color: #313131;
}
.products-swiper-container .swiper-button-prev{
	left:-2px;
}
.products-swiper-container .swiper-button-prev:after,
.products-swiper-container .swiper-button-next:after{
	font-size:18px;
	font-weight:bold;
}

.add-to-cart {
	background: #D0006F;
	color: white;
	border: none;
}

.add-to-cart:hover {
	background: #b00056;
}

@media screen and (max-width: 450px) {
	#chatbot-container {
		bottom: 0px;
		left: 0px;
		max-width: 100%;
		border-radius: 0;
		height: 100%;
        max-height: 100%;
	}
}

@media screen and (max-width: 450px) {
	.product-title {
		font-size: 13px; /* Maintenu car spécifique mobile */
	}
	.product-brand {
		font-size: 12px; /* Maintenu car spécifique mobile */
	}
	/* .quick-action et .message héritent de 14px de base, donc pas besoin de redéfinir ici sauf si différent */
}

/* Style pour la bulle de suggestion */
.chat-suggestion-bubble {
    position: fixed;
    bottom: 90px;
    right: 10px;
    background-color: #FFF;
    border-radius: 15px;
    padding: 10px 20px 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
    font-family: "Open Sans";
    font-size: 13px;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chat-suggestion-bubble .chat-bubble-icon{
	float:left;
    width: 50px;          /* Taille de l'avatar */
    height: 50px;
    border-radius: 50%;   /* Pour rendre l'avatar circulaire */
    background-color: #D0006F;
    overflow: hidden;
    margin:0px 10px 15px 10px;
}

.chat-bubble-icon img {
    width: 100%;
    height: 100%;
}

.chat-suggestion-bubble:after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 180px;
    width: 15px;
    height: 30px;
    background: #FFF;
    transform: rotate(115deg);
    box-shadow: 5px -5px 5px rgba(0,0,0,0.1); 
}

.chat-suggestion-bubble p {
    margin: 10px 0 0;
    padding: 0;
    letter-spacing: 0.5px;
    color: #202020;
}

.chat-suggestion-bubble.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Nouveau style pour la croix de fermeture */
.bubble-close {
    position: absolute;
    top: -40px; /* Positionné au-dessus de la bulle */
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: #d0006f;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000; /* Au-dessus de la bulle */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bubble-close:hover {
    background-color: #b00056;
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.bubble-close:active {
    transform: scale(0.95);
}

/* Ajustement pour mobile */
@media screen and (max-width: 450px) {
    body:has(.mob_acheter) #open-chat-btn {
	    bottom: 75px;
	}

    .chat-suggestion-bubble {
        max-width: 220px;
    }
    
    body:has(.mob_acheter) .chat-suggestion-bubble {
	    bottom: 150px;
	}
    
    .chat-suggestion-bubble.active {
        transform: translateY(0);
    }
    
    .chat-suggestion-bubble:after {
        left: 160px;
    }
    
    .bubble-close {

    }
}



/* Assurer que les interactions ne sont pas bloquées par d'autres éléments */
.products-container {
    z-index: 1;
    position: relative;
}

/* Éviter que les interactions sur le carousel n'affectent le reste de la page */
.products-carousel {
    -webkit-tap-highlight-color: transparent;
}

/* Animation d'apparition des messages */
.message.message-entering {
    opacity: 0;
    transform: translateY(5px);
}
.message.message-entered {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.2s ease-out;
}

/* === INDICATEUR DE CONNEXION === */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    transition: all 0.3s ease;
}

.connection-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.connection-indicator.online {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.connection-indicator.offline {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.connection-indicator.connecting {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.connection-indicator.connecting::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.6);
    animation: connectionPulse 1.5s infinite;
}

@keyframes connectionPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Amélioration du header */
.chat-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

/* Ajoutez ces styles à votre fichier CSS chatbot_ia.css */

/* Nouveau style pour la ligne de statut */
.status-line {
    display: flex;
    justify-content: space-between;
    align-items: self-start;
    width: 100%;
    margin-top: 8px;
}

/* Modification du style existant new-chat-btn */
.new-chat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    margin: 0; /* Supprime le margin-top existant */
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.new-chat-btn svg {
    width: 14px;
    height: 14px;
}

/* Amélioration du header content */
.chat-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

/* Styles pour l'indicateur de connexion (déjà existants mais ajustés) */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.connection-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.connection-indicator.online {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.connection-indicator.offline {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.connection-indicator.connecting {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.connection-indicator.connecting::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.6);
    animation: connectionPulse 1.5s infinite;
}

@keyframes connectionPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Catégories suggérées avec icônes - Version finale */
.suggested-categories {
    margin: 20px 0 10px 0;
}

.suggested-categories h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    background: linear-gradient(135deg, #D0006F 0%, #b8005f 100%);
    color: white;
    border-color: #D0006F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(208, 0, 111, 0.25);
}

.category-icon {
    margin-right: 8px;
    font-size: 13px;
    min-width: 16px;
    text-align: center;
}

.category-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .category-icon {
        font-size: 14px;
        margin-right: 10px;
    }
}

/* ===== NOUVEAUX STYLES POUR LES BOUTONS DU CARROUSEL ===== */
/* À ajouter au fichier app/public/theme/site/logishop-2014/css/1_chatbot_ia.css */

/* Structure des boutons d'actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.product-actions-row {
    display: flex;
    gap: 8px;
}

/* Style de base pour tous les boutons produit */
.product-btn {
    flex: 1;
    padding: 10px 5px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border: none;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.product-btn .fa {
    color: #ffffff;
    font-size: 14px;
}

/* Bouton principal "Voir la fiche produit" */
.view-details {
    background: #D0006F;
    color: white;
}



.view-details:hover {
    background: #9a004a;
    color: white;
    text-decoration: none;
}

/* Bouton "Plus d'infos" */
.more-info {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.more-info:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #adb5bd;
}

.more-info .fa{
    color: #495057;
}

/* Bouton "Ajouter au panier" */
.add-to-cart {
    background: #28a745;
    color: white;
    position: relative;
    overflow: hidden;
}

.add-to-cart:hover {
    background: #218838;
}

.add-to-cart.added {
    background: #20c997;
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Icônes pour les boutons */
.product-btn i {
    margin-right: 4px;
    font-size: 11px;
}

/* Overlay de chargement pour le bouton "Plus d'infos" */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
}

.more-info.loading-chatbot .loading-overlay {
    display: flex;
}

.more-info.loading-chatbot {
    pointer-events: none;
}

/* Info commande (si applicable) */
.product-order-info {
    text-align: center;
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .product-actions {
        padding: 8px;
        gap: 6px;
    }
    
    .product-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .product-btn i {
        margin-right: 3px;
        font-size: 10px;
    }
}

/* Adaptation pour très petits écrans */
@media (max-width: 480px) {
    .product-actions-row {
        gap: 4px;
    }
    
    .product-btn {
        padding: 7px 8px;
        font-size: 10px;
    }
    
    /* Réduire le texte sur mobile pour les boutons */
    .view-details .fa-eye + *::after {
        content: " fiche";
    }
    
    .more-info .fa-info-circle + *::after {
        content: " infos";
    }
    
    .add-to-cart .fa-shopping-cart + *::after {
        content: " panier";
    }
}

.criteria-selection-container {
    max-width: 100%;
    margin: 15px 0;
    padding: 20px;
    background: #d0006f;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.criteria-message {
    margin-bottom: 20px;
    text-align: center;
}

.criteria-group {
    margin-bottom: 20px;
}

.criteria-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
    color:#FFFFFF;
}

.required {
    color: #ffeb3b;
    margin-left: 5px;
}

.criteria-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.criteria-option {
    padding: 12px 15px;
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.criteria-option:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.criteria-option.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.dependent-options {
    min-height: 50px;
    border-radius: 8px;
}

.submit-criteria:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.submit-criteria:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .criteria-options {
        grid-template-columns: 1fr;
    }
    
    .criteria-option {
        padding: 15px;
        font-size: 14px;
    }
}

/* =============================================== */
/* STYLES POUR LES ÉTATS D'ATTENTE DÉTAILLÉS */
/* À ajouter à la fin de votre fichier 1_chatbot_ia.css */
/* =============================================== */

/* === AMÉLIORATION DES STYLES EXISTANTS === */

/* Amélioration de #loading-message existant pour supporter les statuts */
#loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-style: italic;
    padding: 12px 16px 8px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px 18px 18px 4px;
    max-width: 90%;
    align-self: flex-start;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: slideInFromLeft 0.3s ease-out;
}

/* Amélioration de .loading-text existant avec transition */
#loading-message .loading-text {
    color: #a29a9a;
    font-size: 13px;
    font-weight: 400;
    transition: opacity 0.3s ease-in-out;
}

/* === NOUVEAUX STYLES POUR LES STATUTS DÉTAILLÉS === */
.loading-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Couleurs spécifiques pour chaque statut */
.status-analyzing .loading-text { 
    color: #007bff; 
    font-weight: 500;
}

.status-contextualizing .loading-text { 
    color: #6f42c1; 
    font-weight: 500;
}

.status-searching .loading-text { 
    color: #fd7e14; 
    font-weight: 500;
}

.status-writing .loading-text { 
    color: #28a745; 
    font-weight: 500;
}

.status-processing .loading-text { 
    color: #17a2b8; 
    font-weight: 500;
}

/* Couleurs des dots pour chaque statut */
.status-analyzing .simple-loading .dot { 
    background-color: #007bff; 
}

.status-contextualizing .simple-loading .dot { 
    background-color: #6f42c1; 
}

.status-searching .simple-loading .dot { 
    background-color: #fd7e14; 
}

.status-writing .simple-loading .dot { 
    background-color: #28a745; 
}

.status-processing .simple-loading .dot { 
    background-color: #17a2b8; 
}

/* Bordure colorée pour chaque statut */
.status-analyzing {
    border-left: 4px solid #007bff;
}

.status-contextualizing {
    border-left: 4px solid #6f42c1;
}

.status-searching {
    border-left: 4px solid #fd7e14;
}

.status-writing {
    border-left: 4px solid #28a745;
}

.status-processing {
    border-left: 4px solid #17a2b8;
}

/* === BARRE DE PROGRESSION === */

.progress-container-chatbot {
    margin-top: 0;
    width: 100%;
    display: none; /* Masqué par défaut */
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D0006F, #ff4081);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

/* Animation de la barre de progression */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .3) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .3) 50%,
        rgba(255, 255, 255, .3) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressMove 2s linear infinite;
}

@keyframes progressMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.progress-text {
    display: none;
    font-size: 10px;
    color: #666;
    text-align: right;
    margin-top: 2px;
    font-weight: 500;
}

/* Couleur de la barre selon le statut */
.status-analyzing .progress-fill {
    background: linear-gradient(90deg, #007bff, #66b3ff);
}

.status-contextualizing .progress-fill {
    background: linear-gradient(90deg, #6f42c1, #a584d4);
}

.status-searching .progress-fill {
    background: linear-gradient(90deg, #fd7e14, #feb76b);
}

.status-writing .progress-fill {
    background: linear-gradient(90deg, #28a745, #71d977);
}

.status-processing .progress-fill {
    background: linear-gradient(90deg, #17a2b8, #6bc5d2);
}

/* === AMÉLIORATION DE L'ANIMATION slideInFromLeft === */

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === ANIMATIONS SUPPLÉMENTAIRES === */

/* Animation pour les changements d'état */
.status-transition {
    animation: statusChange 0.4s ease-in-out;
}

@keyframes statusChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Effet de pulsation pour l'état actif */
.status-active {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* === RESPONSIVE === */

@media (max-width: 480px) {
    .progress-bar {
        height: 3px;
    }
    
    .progress-text {
        font-size: 9px;
    }
    
    #loading-message .loading-text {
        font-size: 12px;
    }
}

/* === ÉTATS SPÉCIAUX === */

/* État d'erreur */
.status-error {
    border-left: 4px solid #dc3545;
}

.status-error .loading-text {
    color: #dc3545;
    font-weight: 500;
}

.status-error .simple-loading .dot {
    background-color: #dc3545;
}

/* État de succès */
.status-success {
    border-left: 4px solid #28a745;
}

.status-success .loading-text {
    color: #28a745;
    font-weight: 500;
}

.status-success .simple-loading .dot {
    background-color: #28a745;
}
