/*
Theme Name: Peigne Massage Pro
Description: Thème WooCommerce premium pour peigne de massage électrique - Design moderne et optimisé conversion
Version: 1.0
Author: Expert E-commerce
Text Domain: peigne-massage-pro
WC tested up to: 8.0
*/

/* ===== VARIABLES CSS ===== */
:root {
  /* Palette de couleurs relaxante */
  --primary-color: #2E7D32;     /* Vert nature */
  --secondary-color: #81C784;   /* Vert pastel */
  --accent-color: #FFD700;      /* Doré léger */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  
  /* Typographie moderne */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Roboto', Arial, sans-serif;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Bordures */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Ombres */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--medium-gray);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-top {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xs) 0;
  text-align: center;
  font-size: 14px;
  animation: slideDown 0.5s ease;
}

.header-main {
  padding: var(--spacing-sm) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.site-logo .logo-icon {
  font-size: 2rem;
}

/* Navigation principale */
.main-navigation {
  display: flex;
  gap: var(--spacing-lg);
}

.main-navigation a {
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.main-navigation a:hover {
  background: var(--light-gray);
}

/* Panier header */
.header-cart {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.cart-icon {
  position: relative;
  padding: var(--spacing-xs);
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.cart-icon:hover,
.cart-icon:focus {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.05);
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-color);
  color: var(--dark-gray);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 120px 0 var(--spacing-xl);
  margin-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-content {
  animation: fadeInLeft 1s ease;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
}

.hero-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.hero-features li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.hero-features li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-image {
  text-align: center;
  animation: fadeInRight 1s ease;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-accent {
  background: var(--accent-color);
  color: var(--dark-gray);
}

.btn-accent:hover {
  background: #FFA000;
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
}

/* ===== SECTIONS PRODUIT ===== */
.product-features {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* ===== TÉMOIGNAGES ===== */
.testimonials {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.testimonial-card {
  background: var(--light-gray);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--primary-color);
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

.testimonial-author {
  font-weight: 600;
  margin-top: var(--spacing-sm);
  color: var(--primary-color);
}

/* ===== URGENCE & PROMOTION ===== */
.urgency-banner {
  background: linear-gradient(45deg, var(--danger), #FF6B6B);
  color: var(--white);
  padding: var(--spacing-sm) 0;
  text-align: center;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.promo-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  z-index: 1000;
  animation: slideInRight 0.5s ease;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: #CCCCCC;
  display: block;
  padding: 2px 0;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: var(--spacing-sm);
  text-align: center;
  color: #CCCCCC;
  font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .main-navigation {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  .hero-section {
    padding: 100px 0 var(--spacing-lg);
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}