/*
Theme Name: CookiesCool Child Theme
Theme URI: https://cookiescool.tn
Description: Thème enfant élégant et raffiné pour la pâtisserie artisanale CookiesCool. Design moderne, vidéo hero, vitrine des univers gourmands, palette chocolat & crème dorée, optimisé WooCommerce et Raspberry Pi.
Author: CookiesCool Creative Studio
Author URI: https://cookiescool.tn
Template: astra
Version: 2.0.0
Text Domain: cookiescool-child
*/

/* ==========================================================================
   COOKIESCOOL DESIGN SYSTEM - HAUTE PÂTISSERIE ARTISANALE
   ========================================================================== */

:root {
  --cc-bg-primary: #FDFBF7;
  --cc-bg-secondary: #F6F1EA;
  --cc-bg-card: #FFFFFF;
  --cc-border-subtle: #EAE1D5;

  --cc-choco-deep: #2A170F;
  --cc-choco-body: #4E382E;
  --cc-choco-muted: #836B5E;

  --cc-gold-primary: #C59A27;
  --cc-gold-hover: #AA821C;
  --cc-gold-light: #F7EFCF;
  --cc-caramel: #C67D34;

  --cc-shadow-soft: 0 10px 30px rgba(42, 23, 15, 0.06), 0 2px 8px rgba(42, 23, 15, 0.04);
  --cc-shadow-hover: 0 20px 45px rgba(42, 23, 15, 0.14), 0 0 25px rgba(197, 154, 39, 0.22);
  --cc-radius-card: 20px;
  --cc-radius-btn: 50px;
  --cc-transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base */
body {
  background-color: var(--cc-bg-primary) !important;
  color: var(--cc-choco-body);
}

.cookiescool-homepage {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--cc-choco-body);
}

/* ==========================================================================
   1. HERO BANNER AVEC VIDÉO D'ARRIÈRE-PLAN
   ========================================================================== */
.cc-video-hero {
  position: relative;
  min-height: 580px;
  border-radius: 28px;
  overflow: hidden;
  margin: 20px auto 40px auto;
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 15px 45px rgba(42, 23, 15, 0.15);
}

.cc-hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.cc-video-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(42, 23, 15, 0.45) 0%, rgba(42, 23, 15, 0.75) 100%);
  z-index: 2;
}

.cc-video-hero-content {
  position: relative;
  z-index: 3;
  padding: 60px 25px;
  max-width: 850px;
}

.cc-hero-logo {
  max-width: 130px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.cc-hero-pill {
  display: inline-block;
  background: rgba(197, 154, 39, 0.9);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.cc-hero-main-title {
  color: #FFFFFF !important;
  font-size: 3.8rem;
  font-family: "Georgia", "Playfair Display", serif;
  margin-bottom: 15px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.cc-hero-lead-text {
  color: #F8F3EC;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 35px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cc-hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cc-btn-gold {
  background: linear-gradient(135deg, var(--cc-gold-primary), var(--cc-caramel));
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--cc-radius-btn);
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(197, 154, 39, 0.4);
  transition: var(--cc-transition);
}

.cc-btn-gold:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(197, 154, 39, 0.55);
}

.cc-btn-outline {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--cc-radius-btn);
  border: 2px solid #FFFFFF;
  text-decoration: none !important;
  transition: var(--cc-transition);
}

.cc-btn-outline:hover {
  background: #FFFFFF;
  color: var(--cc-choco-deep) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   2. BANDEAU DE RÉASSURANCE
   ========================================================================== */
.cc-features-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: -20px auto 60px auto;
  position: relative;
  z-index: 4;
  padding: 0 15px;
}

.cc-feature-item {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--cc-shadow-soft);
  border: 1px solid var(--cc-border-subtle);
  transition: var(--cc-transition);
}

.cc-feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--cc-gold-primary);
}

.cc-feature-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

.cc-feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--cc-choco-deep);
}

.cc-feature-item p {
  font-size: 0.88rem;
  color: var(--cc-choco-muted);
  margin: 0;
}

/* ==========================================================================
   3. SECTIONS & TITRES
   ========================================================================== */
.cc-section {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

.cc-section-alt {
  background: var(--cc-bg-secondary);
  padding: 60px 25px;
  border-radius: 28px;
}

.cc-section-header {
  text-align: center;
  margin-bottom: 45px;
}

.cc-section-subtitle {
  display: inline-block;
  color: var(--cc-caramel);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.cc-section-title {
  font-size: 2.6rem;
  color: var(--cc-choco-deep);
  font-family: "Georgia", "Playfair Display", serif;
  margin-bottom: 12px;
}

.cc-section-description {
  font-size: 1.1rem;
  color: var(--cc-choco-muted);
  margin-bottom: 15px;
}

.cc-title-separator {
  width: 60px;
  height: 3px;
  background: var(--cc-gold-primary);
  margin: 0 auto;
  border-radius: 3px;
}

/* ==========================================================================
   4. CATÉGORIES (UNIVERS GOURMANDS)
   ========================================================================== */
.cc-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.cc-category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--cc-shadow-soft);
  text-decoration: none !important;
  transition: var(--cc-transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cc-border-subtle);
}

.cc-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--cc-shadow-hover);
  border-color: var(--cc-gold-primary);
}

.cc-cat-img-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.cc-cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cc-category-card:hover .cc-cat-img-box img {
  transform: scale(1.08);
}

.cc-cat-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(42, 23, 15, 0.4) 100%);
}

.cc-cat-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cc-cat-info h3 {
  font-size: 1.25rem;
  color: var(--cc-choco-deep);
  margin-bottom: 8px;
  font-family: "Georgia", serif;
}

.cc-cat-info p {
  font-size: 0.88rem;
  color: var(--cc-choco-body);
  line-height: 1.45;
  margin-bottom: 14px;
}

.cc-cat-btn {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cc-caramel);
  display: inline-block;
  transition: transform 0.2s ease;
}

.cc-category-card:hover .cc-cat-btn {
  transform: translateX(4px);
}

/* ==========================================================================
   5. PRODUITS COOKIESCOOL & WOOCOMMERCE
   ========================================================================== */
.woocommerce ul.products li.product,
.cc-product-card {
  background: #FFFFFF !important;
  border-radius: var(--cc-radius-card) !important;
  overflow: hidden;
  box-shadow: var(--cc-shadow-soft) !important;
  border: 1px solid var(--cc-border-subtle) !important;
  transition: var(--cc-transition) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover,
.cc-product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--cc-shadow-hover) !important;
  border-color: rgba(197, 154, 39, 0.5) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.cc-product-media {
  position: relative;
  width: 100%;
  height: 260px;
  background: #F8F5EE;
  overflow: hidden;
  display: block;
}

.woocommerce ul.products li.product img,
.cc-product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.woocommerce ul.products li.product:hover img,
.cc-product-card:hover .cc-product-media img {
  transform: scale(1.07);
}

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

.cc-product-badge,
.woocommerce span.onsale {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  left: auto !important;
  background: var(--cc-caramel) !important;
  color: #FFFFFF !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  z-index: 2;
}

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

.cc-product-name,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.28rem !important;
  color: var(--cc-choco-deep) !important;
  margin: 0 0 10px 0 !important;
  font-family: "Georgia", serif !important;
  line-height: 1.3 !important;
}

.cc-product-excerpt {
  font-size: 0.92rem;
  color: var(--cc-choco-body);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cc-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cc-product-price,
.woocommerce ul.products li.product .price {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--cc-caramel) !important;
  font-family: "Georgia", serif !important;
  margin: 0 !important;
}

.cc-product-btn,
.woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, var(--cc-gold-primary), var(--cc-gold-hover)) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border-radius: var(--cc-radius-btn) !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(197, 154, 39, 0.25) !important;
  transition: var(--cc-transition) !important;
  text-decoration: none !important;
  cursor: pointer;
}

.cc-product-btn:hover,
.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, var(--cc-gold-hover), var(--cc-choco-deep)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(42, 23, 15, 0.25) !important;
}

/* ==========================================================================
   6. GALERIE ATELIER
   ========================================================================== */
.cc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.cc-gallery-item {
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  box-shadow: var(--cc-shadow-soft);
  border: 1px solid var(--cc-border-subtle);
}

.cc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cc-gallery-item:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   7. PANIER FLOTTANT AJAX
   ========================================================================== */
.cookiescool-cart-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--cc-choco-deep);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(42, 23, 15, 0.35);
  cursor: pointer;
  transition: var(--cc-transition);
  text-decoration: none !important;
  border: 2px solid var(--cc-gold-primary);
}

.cookiescool-cart-trigger:hover {
  transform: translateY(-4px) scale(1.03);
  background: #1A0D08;
  color: #FFFFFF;
}

.cookiescool-cart-count {
  background: var(--cc-gold-primary);
  color: var(--cc-choco-deep);
  font-weight: 800;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .cc-video-hero {
    min-height: 480px;
  }
  .cc-hero-main-title {
    font-size: 2.6rem;
  }
  .cc-hero-lead-text {
    font-size: 1.1rem;
  }
  .cc-section-title {
    font-size: 2rem;
  }
  .cc-product-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .cc-product-btn {
    width: 100%;
    text-align: center;
  }
}
