/* GMPL - Styles CSS */

/* Variables */
:root {
  --primary-color: #0073cf; /* Bleu GMPL */
  --primary-dark: #004080; /* Bleu GMPL foncé */
  --primary-light: #0066cc; /* Bleu GMPL clair */
  --secondary-color: #004390; /* Autre ton de bleu du logo */
  --accent-color: #0073cf; /* Bleu accent */
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --text-color: #212529;
  --white: #ffffff;
  --black: #000000;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease-in-out;
}

.logoff {
  width: 200px; height: auto;
}


/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.section {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Animation classes */
.fade-in, .slide-in-left, .slide-in-right, .zoom-in {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  transform: translateY(40px);
}

.slide-in-left {
  transform: translateX(-100px);
}

.slide-in-right {
  transform: translateX(100px);
}

.zoom-in {
  transform: scale(0.8);
}

.fade-in.animated,
.slide-in-left.animated,
.slide-in-right.animated,
.zoom-in.animated {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Navbar */
.navbar {
  transition: var(--transition);
  background-color: white;
  padding: 1.5rem 1rem;
}

.navbar-brand img {
  height: 70px;
  transition: var(--transition);
}

.navbar-scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.navbar-scrolled .navbar-brand img {
  height: 55px;
}

.navbar .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* Styles pour le dropdown */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border-radius: var(--border-radius);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover, 
.dropdown-item:focus {
  background-color: rgba(0, 85, 164, 0.1);
  color: var(--primary-color);
}

.navbar-nav .dropdown-menu {
  min-width: 200px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: var(--dark-gray);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Products Section */
.product-card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.price-tag {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.category-btn {
  border: 1px solid var(--medium-gray);
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem 0.5rem 0;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* About Section */
.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.about-feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

/* Services Section */
.service-card {
  text-align: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1.5rem;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--white);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background-color: var(--primary-dark);
}

/* Modal */
.modal-product-image {
  width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.modal-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
}

.specs-table tr:nth-child(even) {
  background-color: var(--light-gray);
}

/* Product Detail Page */
.product-detail-image {
  width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--primary-color);
}

.product-detail-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
}

.product-meta-item {
  display: flex;
  align-items: center;
}

.product-meta-icon {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.product-tabs {
  margin-top: 3rem;
}

.nav-tabs .nav-link {
  color: var(--text-color);
  border: none;
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  background-color: transparent;
}

.tab-content {
  padding: 2rem 0;
}

.related-products {
  margin-top: 4rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    height: 35px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .product-detail-title {
    font-size: 1.5rem;
  }
  
  .product-detail-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .navbar-brand img {
    height: 30px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .category-btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
  
  #backToTop {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1.25rem;
  }
}

/* Enhanced Product Page Styles */
.product-gallery {
  position: relative;
  margin-bottom: 2rem;
}

.product-main-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: var(--light-gray);
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.product-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.product-feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.product-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.product-action-btn {
  flex: 1;
}

.product-quantity {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-gray);
  border: 1px solid var(--medium-gray);
  font-size: 1.25rem;
  cursor: pointer;
  user-select: none;
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--medium-gray);
  border-left: none;
  border-right: none;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.specs-table th {
  font-weight: 600;
  text-align: left;
}

.specs-icon {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(255, 102, 0, 0.05);
}

.accordion-button:focus {
  border-color: rgba(255, 102, 0, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
}

.badge-new {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10;
}

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

.pulse {
  animation: pulse 2s infinite;
}

/* Custom styles for product tabs */
.product-tab-content {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-tab-nav {
  gap: 0.5rem;
}

.product-tab-nav .nav-link {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background-color: var(--light-gray);
  border-bottom: 2px solid transparent;
}

.product-tab-nav .nav-link.active {
  background-color: var(--white);
  border-bottom: 2px solid var(--primary-color);
}

/* Related products carousel */
.related-product-card {
  margin: 0 10px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.related-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.related-product-image {
  height: 180px;
  object-fit: cover;
}

/* Improved feedback section */
.review-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.reviewer-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.review-date {
  font-size: 0.875rem;
  color: var(--dark-gray);
  opacity: 0.7;
}

.review-stars {
  color: #ffc107;
  margin-bottom: 0.75rem;
}

/* Category Banner */
.category-banner {
  background-color: var(--light-gray);
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.category-title {
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--dark-gray);
}

.breadcrumbs a {
  color: var(--dark-gray);
}

.breadcrumbs li:last-child a {
  color: var(--primary-color);
  font-weight: 500;
}