/*
Theme Name: Sky UGC Platform
Theme URI: https://skylechihuahua.com
Author: Sky le Chihuahua
Author URI: https://skylechihuahua.com
Description: Thème professionnel pour Sky UGC Platform — Vente de vidéos UGC avec WooCommerce intégré.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: sky-ugc
Tags: woocommerce, ugc, professional, conversion
*/

/* ============================================
   VARIABLES CSS GLOBALES
============================================ */
:root {
  --ink: #0D0A07;
  --ink2: #2A2118;
  --paper: #FAF7F2;
  --warm: #F0EAE0;
  --cream: #FFF8EE;
  --fire: #E8431A;
  --fire2: #FF6B3D;
  --gold: #C9A84C;
  --gold2: #E8C96D;
  --grey: rgba(13,10,7,0.45);
  --grey2: rgba(13,10,7,0.2);
  --border: rgba(13,10,7,0.1);
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(13,10,7,0.06);
  --shadow: 0 8px 30px rgba(13,10,7,0.08);
  --shadow-lg: 0 20px 60px rgba(13,10,7,0.12);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   TYPOGRAPHIE
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.entry-title, .page-title { font-family: 'Playfair Display', serif; }

p { line-height: 1.75; color: var(--grey); }

/* ============================================
   NAVIGATION
============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: rgba(13,10,7,0.15);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-branding .site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-branding .site-title a { color: inherit; }
.site-branding .site-title em { font-style: normal; color: var(--fire); }

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-navigation a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-navigation a:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  transition: color 0.2s;
}

.nav-cart:hover { color: var(--ink); }

.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--fire);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-nav-cta {
  background: var(--ink);
  color: white !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease) !important;
}

.btn-nav-cta:hover {
  background: var(--fire) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,67,26,0.3);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   CONTENU PRINCIPAL
============================================ */
.site-main { padding-top: 80px; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* ============================================
   SECTIONS COMMUNES
============================================ */
.section { padding: 7rem 3rem; }
.section-dark { background: var(--ink); }
.section-warm { background: var(--warm); }
.section-cream { background: var(--cream); }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.section-title em { font-style: italic; color: var(--fire); }
.section-title.light { color: white; }

.section-sub {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================
   BOUTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--fire);
  color: white;
  box-shadow: 0 4px 0 rgba(232,67,26,0.25), 0 12px 40px rgba(232,67,26,0.2);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(13,10,7,0.15), 0 20px 50px rgba(13,10,7,0.12);
  color: white;
}

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

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

.btn-white {
  background: white;
  color: var(--fire);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.btn-white:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================
   WOOCOMMERCE - STYLES GLOBAUX
============================================ */
.woocommerce-page .site-main { background: var(--paper); }

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 0.78rem;
  color: var(--grey);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.woocommerce-breadcrumb a { color: var(--grey); }
.woocommerce-breadcrumb a:hover { color: var(--fire); }

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--r);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.woocommerce-message { background: #F0FFF8; color: #06825A; border-left: 4px solid #06D6A0; }
.woocommerce-info { background: #F0F8FF; color: #0066CC; border-left: 4px solid #4CC9F0; }
.woocommerce-error { background: #FFF0F0; color: #CC0000; border-left: 4px solid #FF3B3B; }

/* Boutons WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order,
.woocommerce .button {
  background: var(--fire) !important;
  color: white !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 0.75rem 1.75rem !important;
  border: none !important;
  transition: all 0.25s var(--ease) !important;
  letter-spacing: 0.02em;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #place_order:hover {
  background: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,10,7,0.15) !important;
}

/* Champs de formulaire */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid var(--border) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  background: var(--cream) !important;
  color: var(--ink) !important;
  transition: all 0.2s !important;
  outline: none !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--fire) !important;
  background: white !important;
  box-shadow: 0 0 0 3px rgba(232,67,26,0.1) !important;
}

/* Labels */
.woocommerce form .form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Tableau récap commande */
.woocommerce table.shop_table {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce table.shop_table th {
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1.25rem;
}

.woocommerce table.shop_table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

/* ============================================
   SHOP / ARCHIVE PRODUITS
============================================ */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(232,67,26,0.2);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding: 0 1.25rem;
}

.woocommerce ul.products li.product .price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fire);
  padding: 0 1.25rem;
}

.woocommerce ul.products li.product a.button {
  margin: 1.25rem;
  width: calc(100% - 2.5rem);
  text-align: center;
}

/* ============================================
   PAGE PRODUIT SIMPLE
============================================ */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 3rem;
}

.woocommerce div.product .product_title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.woocommerce div.product .price {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--fire);
  margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ============================================
   PANIER
============================================ */
.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.cart-collaterals {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
}

.cart_totals h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   CHECKOUT
============================================ */
.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}

#order_review {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

#order_review h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

#place_order {
  width: 100%;
  font-size: 1rem !important;
  padding: 1rem !important;
  margin-top: 1rem;
}

/* ============================================
   MON COMPTE
============================================ */
.woocommerce-account .woocommerce {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
}

.woocommerce-MyAccount-navigation {
  background: var(--ink);
  border-radius: var(--r);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 0.25rem; }

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
  background: var(--fire);
  color: white;
}

.woocommerce-MyAccount-content {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
}

/* ============================================
   TICKER
============================================ */
.ticker-bar {
  background: var(--ink);
  padding: 0.875rem 0;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  gap: 4rem;
  animation: tickerAnim 30s linear infinite;
  white-space: nowrap;
}

@keyframes tickerAnim {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(250,247,242,0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker-dot { color: var(--fire); }

/* ============================================
   VIDÉO CARDS
============================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.video-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--warm);
  cursor: pointer;
  border: 1px solid var(--border);
}

.video-thumb {
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.video-card:hover .video-thumb-bg { transform: scale(1.05); }

.video-emoji {
  position: relative;
  z-index: 1;
  font-size: 4.5rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: transform 0.4s var(--ease);
}

.video-card:hover .video-emoji { transform: scale(1.15) rotate(-5deg); }

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,7,0.95) 0%, rgba(13,10,7,0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

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

.play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--fire);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transform: scale(0.8);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 4px 20px rgba(232,67,26,0.4);
}

.video-card:hover .play-btn { transform: scale(1); }

.video-niche-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 0.4rem;
}

.video-title-hover {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  line-height: 1.3;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
}

.video-brand { font-size: 0.75rem; font-weight: 600; color: var(--grey); }
.video-views { font-size: 0.72rem; color: var(--fire); font-weight: 700; }

/* ============================================
   REVEAL ANIMATION
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--ink);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: rgba(250,247,242,0.35);
}

.footer-logo em { font-style: normal; color: rgba(232,67,26,0.6); }

.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }

.footer-nav a {
  font-size: 0.78rem;
  color: rgba(250,247,242,0.3);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(250,247,242,0.7); }

.footer-copy { font-size: 0.72rem; color: rgba(250,247,242,0.2); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 2rem; }
  .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-checkout .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-container { padding: 1rem 1.5rem; }
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .site-footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .woocommerce div.product,
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding: 0 1.5rem; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
