/* =============================================
   GO2 SANTÉ — CSS Personnalisé PrestaShop
   Couleurs : Orange #F7941D / Gris foncé #3D3D3D
   ============================================= */

:root {
  --go2-orange: #F7941D;
  --go2-orange-dark: #e0850f;
  --go2-orange-light: #FFF3E0;
  --go2-gray: #3D3D3D;
  --go2-gray-light: #6B6B6B;
  --go2-white: #FFFFFF;
  --go2-bg: #F8F9FA;
  --go2-green: #4CAF50;
  --go2-red: #E53935;
  --go2-border-radius: 12px;
}

/* === HEADER === */
#header {
  background: var(--go2-white) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--go2-orange);
}

#header .header-nav {
  background: var(--go2-gray) !important;
  color: var(--go2-white);
}

#header .header-nav a {
  color: var(--go2-white) !important;
}

/* === BARRE DE RECHERCHE === */
#search_widget input[type="text"],
.search-widget input[type="text"] {
  border: 2px solid var(--go2-orange) !important;
  border-radius: 30px !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  height: 50px !important;
}

#search_widget button,
.search-widget button {
  background: var(--go2-orange) !important;
  border-color: var(--go2-orange) !important;
  border-radius: 0 30px 30px 0 !important;
  color: white !important;
  height: 50px !important;
  width: 50px !important;
}

#search_widget button:hover,
.search-widget button:hover {
  background: var(--go2-orange-dark) !important;
}

/* === NAVIGATION / MENU === */
#_desktop_top_menu .top-menu > li > a,
.top-menu > li > a {
  color: var(--go2-gray) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 15px 20px !important;
  transition: color 0.3s, border-bottom 0.3s;
}

#_desktop_top_menu .top-menu > li > a:hover,
.top-menu > li > a:hover,
.top-menu > li.current > a {
  color: var(--go2-orange) !important;
  border-bottom: 3px solid var(--go2-orange);
}

.top-menu .sub-menu {
  border-top: 3px solid var(--go2-orange) !important;
}

/* === BOUTONS === */
.btn-primary,
.add-to-cart,
#add-to-cart-or-refresh .add-to-cart {
  background: var(--go2-orange) !important;
  border-color: var(--go2-orange) !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  transition: all 0.3s ease;
  text-transform: none !important;
}

.btn-primary:hover,
.add-to-cart:hover {
  background: var(--go2-orange-dark) !important;
  border-color: var(--go2-orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
}

.btn-secondary {
  border-color: var(--go2-orange) !important;
  color: var(--go2-orange) !important;
  border-radius: 30px !important;
  background: transparent !important;
}

.btn-secondary:hover {
  background: var(--go2-orange) !important;
  color: white !important;
}

/* === CARTES PRODUITS === */
.product-miniature {
  border: none !important;
  border-radius: var(--go2-border-radius) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

.product-miniature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-miniature .thumbnail-container {
  border-radius: var(--go2-border-radius) var(--go2-border-radius) 0 0 !important;
  overflow: hidden;
}

.product-miniature .product-title a {
  color: var(--go2-gray) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.product-miniature .product-title a:hover {
  color: var(--go2-orange) !important;
}

.product-miniature .price,
.product-price {
  color: var(--go2-orange) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}

/* === INDICATEUR DE STOCK === */
.product-availability {
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.product-availability .product-available {
  color: var(--go2-green) !important;
}

.product-availability .product-unavailable {
  color: var(--go2-red) !important;
}

/* Stock badge sur les cartes produit */
.product-miniature .go2-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.go2-stock-badge.in-stock {
  background: #E8F5E9;
  color: #2E7D32;
}

.go2-stock-badge.low-stock {
  background: #FFF3E0;
  color: #E65100;
}

.go2-stock-badge.out-of-stock {
  background: #FFEBEE;
  color: #C62828;
}

/* === BARRE DE RÉASSURANCE === */
.go2-reassurance-bar {
  background: var(--go2-gray);
  color: white;
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
  overflow: hidden;
}

.go2-reassurance-bar .items {
  display: flex;
  justify-content: center;
  gap: 40px;
  animation: scroll-reassurance 20s linear infinite;
}

.go2-reassurance-bar .item {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.go2-reassurance-bar .item span.icon {
  color: var(--go2-orange);
  font-size: 16px;
}

@keyframes scroll-reassurance {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === CATÉGORIES VISUELLES (tuiles) === */
.go2-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.go2-category-tile {
  background: white;
  border-radius: var(--go2-border-radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--go2-gray);
  border: 2px solid transparent;
}

.go2-category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: var(--go2-orange);
  color: var(--go2-orange);
}

.go2-category-tile .icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.go2-category-tile .name {
  font-weight: 600;
  font-size: 15px;
}

/* === BANNIÈRE IA CONSEILLER === */
.go2-ai-banner {
  background: linear-gradient(135deg, var(--go2-orange), var(--go2-orange-dark));
  color: white;
  padding: 30px;
  border-radius: var(--go2-border-radius);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.go2-ai-banner .icon {
  font-size: 48px;
  flex-shrink: 0;
}

.go2-ai-banner h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.go2-ai-banner p {
  margin: 0;
  opacity: 0.9;
}

/* === BOUTON FLOTTANT CHAT IA === */
.go2-chat-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--go2-orange);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(247, 148, 29, 0.5);
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.go2-chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(247, 148, 29, 0.6);
}

.go2-chat-fab .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--go2-green);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* === FENÊTRE CHAT IA === */
.go2-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  max-height: 500px;
  background: white;
  border-radius: var(--go2-border-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.go2-chat-window.open {
  display: flex;
}

.go2-chat-window .chat-header {
  background: var(--go2-orange);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.go2-chat-window .chat-header h4 {
  margin: 0;
  font-size: 16px;
}

.go2-chat-window .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-height: 350px;
}

.go2-chat-window .chat-input {
  border-top: 1px solid #eee;
  padding: 15px;
  display: flex;
  gap: 10px;
}

.go2-chat-window .chat-input input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 14px;
}

.go2-chat-window .chat-input button {
  background: var(--go2-orange);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
}

/* === FOOTER === */
#footer {
  background: var(--go2-gray) !important;
  color: #ccc !important;
}

#footer h4,
#footer .h4 {
  color: var(--go2-orange) !important;
}

#footer a {
  color: #ccc !important;
}

#footer a:hover {
  color: var(--go2-orange) !important;
}

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--go2-bg) !important;
}

.breadcrumb a {
  color: var(--go2-gray) !important;
}

.breadcrumb .breadcrumb-item.active {
  color: var(--go2-orange) !important;
}

/* === PAGE PRODUIT === */
.product-cover img {
  border-radius: var(--go2-border-radius);
}

.product-information .product-title {
  color: var(--go2-gray);
  font-size: 24px;
  font-weight: 700;
}

.current-price .price {
  color: var(--go2-orange) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
}

.product-quantity .qty input {
  border-radius: 8px !important;
}

/* === PAGINATION === */
.pagination .page-item.active .page-link {
  background: var(--go2-orange) !important;
  border-color: var(--go2-orange) !important;
}

.pagination .page-link {
  color: var(--go2-orange) !important;
  border-radius: 8px !important;
  margin: 0 3px;
}

/* === FILTRES LATÉRAUX === */
#search_filters .facet .facet-title {
  color: var(--go2-gray) !important;
  font-weight: 600;
}

#search_filters .facet .custom-checkbox input:checked + span {
  background: var(--go2-orange) !important;
  border-color: var(--go2-orange) !important;
}

/* === SENIOR-FRIENDLY === */
body {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--go2-gray);
}

/* Plus grands touch targets pour les personnes âgées */
a, button, .btn, input, select {
  min-height: 44px;
}

/* Meilleur contraste */
.product-description p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
  .go2-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 10px;
  }

  .go2-chat-window {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 80px;
  }

  .go2-reassurance-bar .items {
    gap: 20px;
  }

  body {
    font-size: 15px !important;
  }

  .product-miniature {
    margin-bottom: 15px;
  }

  .current-price .price {
    font-size: 22px !important;
  }
}

@media (max-width: 480px) {
  .go2-categories-grid {
    grid-template-columns: 1fr;
  }
}
