/* Importation des polices modernes depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

/* Variables du Design System - Thème Sombre Premium */
:root {
  --bg-dark: #000000;
  --bg-main: #0a0a0c;
  --bg-card: #121215;
  --bg-card-hover: #18181f;
  --color-primary: #ffffff;
  --color-secondary: #a0a0a5;
  --color-muted: #626266;
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-hover: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --border-color: #202025;
  --border-color-hover: #303038;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(18, 18, 21, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
  --max-width: 1200px;
}

/* Réinitialisations de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Typographie */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--color-secondary);
}

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

/* Conteneur principal */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Navigation */
header.site-header {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

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

.logo a {
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.logo-blue {
  color: var(--accent);
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation Menu */
nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-secondary);
  position: relative;
  padding: 8px 0;
}

nav.main-nav a:hover,
nav.main-nav li.active a {
  color: var(--color-primary);
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

nav.main-nav a:hover::after,
nav.main-nav li.active a::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--accent);
  color: var(--color-primary) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

/* Hamburger pour Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(var(--accent-rgb), 0.08) 0%, rgba(0,0,0,0) 70%);
  position: relative;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 19px;
  color: var(--color-secondary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Éléments de Réassurance (Expérience / Satisfaction) */
.reassurance {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.reassurance-item h3 {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 8px;
}

.reassurance-item p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
}

/* Section explicative pour le Grand Public (Accessibilité) */
.educational-section {
  padding: 90px 0;
}

.educational-section h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
}

.educational-intro {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
  font-size: 17px;
}

.educational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.edu-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.edu-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.edu-card:hover::before {
  opacity: 1;
}

.edu-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.edu-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.edu-card p {
  font-size: 15px;
  color: var(--color-secondary);
}

/* Catalogue - Grille des Catégories & Produits */
.shop-section {
  padding: 90px 0;
  background-color: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border-color);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.shop-header h2 {
  font-size: 36px;
}

.category-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--color-primary);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Fiche Produit (Card) */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  padding-bottom: 75%; /* Ratio 4:3 */
  background-color: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.product-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-card-desc {
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-family: var(--font-title);
}

.product-price .price-label {
  font-size: 11px;
  color: var(--color-muted);
  display: block;
  text-transform: uppercase;
}

.product-price .price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--color-primary);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-secondary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

/* Page Détail Produit Dynamique */
.product-detail-layout {
  padding: 60px 0 90px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail-visual {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.product-detail-visual img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.product-detail-info h1 {
  font-size: 42px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.product-detail-category {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.product-long-desc {
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 30px;
}

.product-utility-box {
  background-color: rgba(var(--accent-rgb), 0.04);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 30px;
}

.product-utility-box h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--accent);
}

.product-utility-box p {
  font-size: 14px;
  color: var(--color-primary);
}

.product-features-list {
  list-style: none;
  margin-bottom: 40px;
}

.product-features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
}

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

.detail-purchase-zone {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.detail-price-box .price-label {
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  display: block;
}

.detail-price-box .price-value {
  font-size: 32px;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--accent);
}

/* Lecteur Audio Personnalisé */
.custom-audio-player {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.player-btn {
  background: var(--accent);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: var(--transition-smooth);
}

.player-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.player-btn svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.player-progress-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
}

.progress-bar-bg {
  background-color: var(--border-color);
  height: 6px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  background-color: var(--accent);
  height: 100%;
  width: 0%;
  border-radius: 3px;
  position: relative;
}

/* Animation d'onde sonore (Wave micro-animation) */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-left: auto;
}

.sound-waves span {
  display: block;
  width: 3px;
  background-color: var(--accent);
  height: 2px;
  transition: transform 0.1s ease;
}

.sound-waves.playing span {
  animation: wavePulse 1.2s infinite ease-in-out;
}

.sound-waves.playing span:nth-child(1) { animation-delay: 0.1s; height: 18px; }
.sound-waves.playing span:nth-child(2) { animation-delay: 0.3s; height: 12px; }
.sound-waves.playing span:nth-child(3) { animation-delay: 0.6s; height: 22px; }
.sound-waves.playing span:nth-child(4) { animation-delay: 0.2s; height: 14px; }
.sound-waves.playing span:nth-child(5) { animation-delay: 0.4s; height: 19px; }

@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(0.1);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Footer Section */
footer.site-footer {
  background-color: #000000;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--color-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--color-muted);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--color-primary);
  border-color: var(--accent);
}

/* Menu Mobile Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 105;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-nav-overlay a {
  font-size: 24px;
  font-family: var(--font-title);
  font-weight: 700;
}

/* Responsivité */
@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  
  /* Menu Mobile Actif */
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
  
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Visuellement masqué pour les humains, visible pour les robots d'IA et crawlers */
.ai-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Arrière-plan Canvas Interactif Ondes Sonores */
#wave-canvas-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-dark);
  opacity: 0.55; /* Assombrit le canvas pour adoucir la clarté et faire ressortir le texte */
}

/* Bandeau Cookies RGPD Premium */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: rgba(18, 18, 21, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 100px rgba(var(--accent-rgb), 0.05);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.cookie-icon {
  font-size: 32px;
  line-height: 1;
  animation: cookieWobble 2s ease infinite alternate;
}

.cookie-text h5 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 13.5px;
  color: var(--color-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-actions button {
  white-space: nowrap;
  font-size: 13.5px;
  padding: 10px 20px;
}

@keyframes cookieWobble {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 18px;
  }
  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cookie-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .cookie-actions button {
    flex: 1;
    text-align: center;
  }
}

