/*
Theme Name:   Astra MillennialMood Child
Theme URI:    https://millennialmood.com
Author:       Maendly John
Author URI:   https://millennialmood.com
Template:     astra
Version:      1.2.0
Description:  Thème enfant Astra pour MillennialMood - esthétique néon rétro 80-90, optimisé WooCommerce.
Text Domain:  astra-millennialmood-child
*/

/* =========================================================
   VARIABLES GLOBALES & THEME
   ========================================================= */
:root {
  /* Palette principale */
  --mm-bg-dark: #050518;
  --mm-bg-1: #0B062E;
  --mm-bg-2: #050518;
  --mm-bg-hero: radial-gradient(circle at top, #28127a 0, #05051a 55%);

  --mm-primary: #FF2DAE;      /* Rose néon */
  --mm-secondary: #00E5FF;    /* Cyan néon */
  --mm-accent: #FFEA00;       /* Jaune rétro */
  --mm-accent-2: #7CF5FF;
  --mm-accent-purple: #A855FF;
  --mm-accent-green: #51FF9C;

  --mm-text: #F7F3FF;
  --mm-text-soft: #C7C0FF;
  --mm-text-muted: #8A86C3;
  --mm-heading: #FFFFFF;

  --mm-border: rgba(124, 245, 255, 0.26);
  --mm-border-soft: rgba(124, 245, 255, 0.14);

  --mm-grad-primary: linear-gradient(135deg, #FF2DAE, #FF6DF3);
  --mm-grad-secondary: linear-gradient(135deg, #00E5FF, #7CF5FF);
  --mm-grad-outline: linear-gradient(90deg, #FF2DAE, #00E5FF, #FFE45E);

  /* Typo */
  --mm-font-heading: 'Orbitron', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mm-font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espacements */
  --mm-spacing-xs: 0.4rem;
  --mm-spacing-sm: 0.75rem;
  --mm-spacing-md: 1.25rem;
  --mm-spacing-lg: 2rem;
  --mm-spacing-xl: 3rem;

  /* Rayons */
  --mm-radius-xs: 4px;
  --mm-radius-sm: 8px;
  --mm-radius-md: 12px;
  --mm-radius-lg: 14px;
  --mm-radius-full: 999px;

  /* Transitions */
  --mm-transition-fast: 0.15s ease;
  --mm-transition-normal: 0.25s ease;
  --mm-transition-slow: 0.4s ease;

  /* Z-index */
  --mm-z-header: 1000;
  --mm-z-dropdown: 1100;
  --mm-z-modal: 1200;
  --mm-z-tooltip: 1300;
}

/* =========================================================
   BASE & TYPOGRAPHIE
   ========================================================= */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Arial, sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: var(--mm-text);
  background: radial-gradient(1200px 700px at 50% -200px, var(--mm-bg-1) 0%, var(--mm-bg-dark) 60%, var(--mm-bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hiérarchie typographique */
h1, h2, h3, h4, h5, h6, .site-title {
  font-family: 'Orbitron', sans-serif;
  color: var(--mm-heading);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: var(--mm-spacing-md);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

p {
  margin-bottom: var(--mm-spacing-sm);
}

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

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

/* Focus accessible (WCAG 2.1) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mm-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   LAYOUT GLOBAL
   ========================================================= */
.site {
  background: transparent;
}

.site-content {
  background: transparent;
}

.ast-container {
  max-width: 1200px;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.main-header-bar,
.site-header {
  background: rgba(13, 11, 60, 0.55);
  border-bottom: 1px solid var(--mm-border);
  backdrop-filter: saturate(130%) blur(10px);
  position: sticky;
  top: 0;
  z-index: var(--mm-z-header);
  contain: layout style;
}

.main-header-menu a,
.ast-header-break-point .main-header-menu a {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.83rem;
  position: relative;
  padding: 1.2rem 1rem;
  transition: color var(--mm-transition-normal);
}

.main-header-menu a:hover {
  color: var(--mm-secondary);
}

.main-header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--mm-transition-fast), opacity var(--mm-transition-fast);
  opacity: 0;
}

.main-header-menu .current-menu-item > a::after,
.main-header-menu .current-menu-ancestor > a::after,
.main-header-menu li:hover > a::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Icône panier dans le header */
.ast-cart-menu-wrap .count {
  background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary));
  color: #fff;
  border-radius: 999px;
}

/* Sous-menu principal (desktop) */
.main-header-menu .sub-menu,
.main-header-menu ul.sub-menu {
  background: rgba(14, 11, 61, 0.96);
  border-radius: 12px;
  border: 1px solid rgba(124, 245, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: var(--mm-z-dropdown);
}

.main-header-menu .sub-menu a {
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  color: var(--mm-text-soft);
}

.main-header-menu .sub-menu a:hover {
  background: rgba(255, 45, 174, 0.1);
  color: #fff;
}

/* =========================================================
   HERO ACCUEIL
   ========================================================= */
.mm-hero {
  position: relative;
  padding: 120px 16px 110px;
  overflow: hidden;
  background: radial-gradient(circle at top, #28127a 0, #05051a 55%);
  color: var(--mm-text);
}

.mm-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Logo éventuel dans le hero */
.mm-hero-logo {
  max-width: 220px;
  margin: 0 auto 1rem;
}

/* Titre principal */
.mm-hero-title {
  font-family: var(--mm-font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow:
    0 0 16px rgba(255, 45, 174, 0.7),
    0 0 38px rgba(0, 229, 255, 0.85);
}

/* Slogan */
.mm-hero-slogan {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: #FFFFFF;
}

/* Sous-titre */
.mm-hero-subtitle {
  font-size: 1rem;
  color: var(--mm-text-soft);
  max-width: 620px;
  margin: 0 auto 1.8rem;
}

/* CTAs du hero */
.mm-hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.mm-hero-ctas .button,
.mm-hero .ast-button {
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
}

/* Bouton primaire */
.btn-primary,
.mm-hero-ctas .btn-primary {
  background-image: var(--mm-grad-primary);
  color: #fff;
  box-shadow:
    0 0 20px rgba(255, 45, 174, 0.75),
    0 0 24px rgba(0, 229, 255, 0.45);
  transition: transform var(--mm-transition-fast), box-shadow var(--mm-transition-fast);
}

.btn-primary:hover,
.mm-hero-ctas .btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 26px rgba(255, 45, 174, 0.9),
    0 0 28px rgba(0, 229, 255, 0.65);
}

/* Bouton ghost */
.mm-btn-ghost {
  border: 1px solid rgba(124, 245, 255, 0.8);
  background: rgba(5, 5, 26, 0.65);
  color: var(--mm-accent-2);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.mm-btn-ghost:hover {
  border-color: var(--mm-accent);
  color: #fff;
}

/* Grille néon de fond */
.mm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(40, 18, 122, 0.6) 0, transparent 60%),
    linear-gradient(to top, #05051a 0, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.mm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(124, 245, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to top, rgba(124, 245, 255, 0.22) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Glow au sol */
.mm-hero-floor-glow {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 160%;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle at top, rgba(0, 229, 255, 0.6), transparent 65%);
  opacity: 0.5;
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   SECTIONS GÉNÉRIQUES
   ========================================================= */
.mm-section {
  padding: 80px 16px;
  background: radial-gradient(circle at top, rgba(20, 16, 70, 0.4) 0, rgba(5, 5, 26, 0.98) 52%);
}

.mm-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--mm-spacing-md);
}

.mm-section-header {
  text-align: center;
  margin-bottom: var(--mm-spacing-lg);
}

.mm-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--mm-radius-full);
  background: rgba(255, 45, 174, 0.12);
  color: var(--mm-primary);
  border: 1px solid rgba(255, 45, 174, 0.4);
  margin-bottom: var(--mm-spacing-sm);
}

.mm-section-title {
  font-size: clamp(1.6rem, 3.3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}

.mm-section-subtitle {
  color: var(--mm-text-muted);
}

/* Séparateur néon */
.mm-sep {
  height: 3px;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 999px;
  background-image: linear-gradient(90deg, rgba(0, 229, 255, 0), rgba(0, 229, 255, 0.8), rgba(255, 45, 174, 0.9), rgba(0, 229, 255, 0));
}

/* =========================================================
   CARTES PRODUITS (ACCUEIL)
   ========================================================= */
.mm-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--mm-spacing-md);
}

.mm-product-card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(255, 45, 174, 0.18), rgba(5, 5, 26, 0.97));
  border-radius: 18px;
  border: 1px solid rgba(124, 245, 255, 0.18);
  padding: 18px 16px 20px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: transform var(--mm-transition-normal), box-shadow var(--mm-transition-normal);
}

.mm-product-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(0, 229, 255, 0.25);
}

.mm-product-card img {
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

/* Badge promo */
.mm-product-badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF2DAE, #FF6DF3);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(255, 45, 174, 0.6);
}

.mm-product-title {
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.mm-product-description {
  font-size: 0.9rem;
  color: var(--mm-text-muted);
  margin-bottom: 0.75rem;
}

.mm-product-price {
  font-weight: 700;
  color: var(--mm-accent);
  margin-bottom: 0.75rem;
}

/* CTA produit */
.mm-product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background-image: var(--mm-grad-secondary);
  color: #05051a;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Bouton pour voir tous les produits */
.mm-section-cta-wrapper {
  text-align: center;
  margin-top: var(--mm-spacing-md);
}

/* =========================================================
   FRESH DROPS (Nouveautés)
   ========================================================= */
.mm-fresh-drops {
  padding: 80px 16px 90px;
  background: radial-gradient(circle at top, rgba(40, 18, 122, 0.6) 0, #05051a 60%);
}

.mm-fresh-drops .mm-section-title {
  text-shadow: 0 0 20px rgba(255, 45, 174, 0.7);
}

/* =========================================================
   RÉFÉRENCES / CONFIANCE
   ========================================================= */
.mm-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--mm-spacing-md);
}

.mm-reference-item {
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.15), rgba(5, 5, 26, 0.96));
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(124, 245, 255, 0.28);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mm-reference-title {
  font-size: 1rem;
  font-weight: 600;
}

.mm-reference-text {
  font-size: 0.9rem;
  color: var(--mm-text-muted);
}

/* =========================================================
   SECTION NEWSLETTER
   ========================================================= */
.mm-newsletter {
  padding: 80px 16px 90px;
  background: radial-gradient(circle at top, rgba(10, 20, 80, 0.7) 0, #050518 55%);
}

.mm-newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.14), rgba(5, 5, 26, 0.97));
  border-radius: 24px;
  padding: 36px 26px 32px;
  border: 1px solid rgba(124, 245, 255, 0.26);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.mm-newsletter-text {
  color: var(--mm-text-soft);
  margin-bottom: 1.4rem;
}

.mm-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mm-newsletter-input {
  flex: 1;
  min-width: 220px;
}

.mm-newsletter-input input[type="email"] {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(124, 245, 255, 0.35);
  background: rgba(5, 5, 26, 0.85);
  color: #fff;
}

.mm-newsletter-btn {
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  background-image: var(--mm-grad-secondary);
  color: #050518;
  font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #050518;
  border-top: 1px solid rgba(124, 245, 255, 0.16);
  padding-top: 40px;
}

.footer-legal {
  text-align: center;
  margin-bottom: 0.75rem;
}

.footer-legal a {
  color: var(--mm-text-soft);
  font-size: 0.85rem;
  margin: 0 0.4rem;
}

.footer-legal .sep {
  color: var(--mm-text-muted);
  margin: 0 0.3rem;
}

/* =========================================================
   FORMULAIRES
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 245, 255, 0.16);
  color: #fff;
  border-radius: var(--mm-radius-md);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--mm-transition-normal), box-shadow var(--mm-transition-normal);
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgba(234, 247, 255, 0.65);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mm-secondary);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
  outline: none;
}

/* =========================================================
   BARRE DE DÉFILEMENT
   ========================================================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--mm-bg-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--mm-primary), var(--mm-accent-purple));
  border-radius: var(--mm-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--mm-secondary), var(--mm-primary));
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--mm-primary) var(--mm-bg-2);
}

/* =========================================================
   CLASSES UTILITAIRES
   ========================================================= */
.mm-text-center { text-align: center; }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 921px) {
  .main-header-menu a::after {
    bottom: -4px;
  }
  .mm-btn-lg {
    padding: 0.9rem 1.25rem;
  }
  .mm-hero {
    padding-top: 100px;
    padding-bottom: 70px;
  }
  .mm-newsletter-inner {
    padding: 28px 18px 26px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  .site-footer {
    padding: 40px var(--mm-spacing-sm) 30px;
  }
}

@media (max-width: 544px) {
  :root {
    font-size: 14px;
  }
  h1 {
    font-size: clamp(1.9rem, 4.8vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   CORRECTIFS & OPTIMISATIONS CONSOLIDÉS
   ========================================================= */

/* BOUTONS HERO - Bords plus arrondis */
.mm-hero-ctas .button,
.mm-hero-ctas .btn-primary,
.mm-hero-ctas .mm-btn-ghost,
.mm-hero .button,
.mm-hero .ast-button {
    border-radius: 30px !important;
    padding: 16px 45px !important;
    font-size: 1.05rem !important;
}

/* HEADER - Amélioration visibilité */
.site-header,
.main-header-bar {
    background: rgba(14, 11, 61, 0.85) !important;
    backdrop-filter: saturate(130%) blur(12px) !important;
    border-bottom: 2px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.main-header-menu a {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* BOUTONS - Uniformiser les bords arrondis */
.button,
.ast-button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.mm-product-cta,
.mm-newsletter-btn {
    border-radius: 25px !important;
}

/* CARTES PRODUITS - Survol plus marqué */
.mm-product-card:hover {
    transform: translateY(-10px) scale(1.01);
}

/* NEWSLETTER - Input plus large */
.mm-newsletter-input input[type="email"] {
    padding: 0.9rem 1.1rem !important;
}

/* SCROLL TO TOP (si utilisé) */
a.scroll-to-top,
a#scroll-to-top {
    border-radius: 999px !important;
}
