/* =====================================================
   OLIA KIDS V3 — CSS GLOBAL FLATSOME CHILD
   Palette Honey Sunday · Typo Fraunces + Nunito
   À ne PAS modifier dans le thème parent Flatsome.
   ===================================================== */

/* === 1. VARIABLES CSS (custom properties) === */
:root {
  --olia-cream:        #FBF6EE;  /* fond principal */
  --olia-soft-sand:    #EFE4D2;  /* hero panneau, bébés */
  --olia-sand-honey:   #F5EAD2;  /* carnet matières */
  --olia-honey-light:  #E4CFA8;  /* univers enfants */
  --olia-apricot:      #F2B57C;  /* point wordmark uniquement */
  --olia-clay:         #D4877D;  /* accents, téléphone */
  --olia-sage:         #B5C6B0;  /* bloc adresse Salé uniquement */
  --olia-cocoa:        #2A1E16;  /* texte principal, footer */
  --olia-muted:        #5A4D42;  /* texte secondaire */
  --olia-persimmon:    #E85D3C;  /* CTA panier UNIQUEMENT */
}

/* === 2. BASE === */
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--olia-cream);
  color: var(--olia-cocoa);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--olia-cocoa);
  letter-spacing: -0.01em;
}

a {
  color: var(--olia-cocoa);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--olia-clay);
}

/* === 3. LABELS MICRO-CAPS === */
.olia-label,
.olia-kicker {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olia-muted);
  display: block;
}

/* === 4. CTA UNDERLINE (le plus utilisé, style éditorial) === */
.olia-cta {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--olia-cocoa) !important;
  border-bottom: 1px solid var(--olia-cocoa);
  padding-bottom: 3px;
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.olia-cta:hover {
  color: var(--olia-clay) !important;
  border-bottom-color: var(--olia-clay);
}

/* === 5. CTA PRIMARY DARK (rare) === */
.olia-btn-primary {
  background: var(--olia-cocoa) !important;
  color: var(--olia-cream) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px !important;
  transition: background 0.2s ease;
}

.olia-btn-primary:hover {
  background: var(--olia-clay) !important;
}

/* === 6. CTA PANIER PERSIMMON (UNIQUE — fiches + cart) === */
.olia-btn-cart,
.single_add_to_cart_button,
button.single_add_to_cart_button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--olia-persimmon) !important;
  color: var(--olia-cream) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  transition: opacity 0.2s ease;
}

.olia-btn-cart:hover,
.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
  opacity: 0.9;
  background: var(--olia-persimmon) !important;
}

/* === 7. HEADER === */
.header-main {
  background: var(--olia-cream) !important;
  border-bottom: 1px solid rgba(212, 135, 125, 0.2);
  box-shadow: none !important;
}

.header-nav a {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  color: var(--olia-cocoa) !important;
  text-transform: none !important;
}

.header-nav a:hover {
  color: var(--olia-clay) !important;
}

.header-nav .nav-dropdown {
  background: var(--olia-cream) !important;
  border-color: rgba(212, 135, 125, 0.15) !important;
}

/* Sticky header */
.stuck .header-main {
  background: var(--olia-cream) !important;
  box-shadow: none !important;
}

/* === 8. FOOTER === */
.footer-wrapper,
.absolute-footer {
  background: var(--olia-cocoa) !important;
  color: rgba(239, 228, 210, 0.7) !important;
}

.footer-wrapper a,
.absolute-footer a {
  color: var(--olia-soft-sand) !important;
  text-decoration: none !important;
}

.footer-wrapper a:hover,
.absolute-footer a:hover {
  color: var(--olia-apricot) !important;
}

.footer-wrapper h3,
.footer-wrapper h4 {
  color: rgba(239, 228, 210, 0.5) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

/* === 9. PRODUCTS GRID MINIMALISTE === */
.product-small .price,
.product .price {
  color: var(--olia-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.product-small .name a,
.product .name a {
  color: var(--olia-cocoa) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-family: 'Nunito', sans-serif !important;
}

/* Anti-promo policy : pas de badge "Promo" en V1 */
.onsale,
.badge-container,
.product-badges {
  display: none !important;
}

/* === 10. NO ROUNDED CORNERS (style éditorial) === */
button,
.button,
input,
select,
textarea,
.form-control,
.woocommerce-input-wrapper input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border-radius: 0 !important;
}

/* === 11. INPUTS === */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"] {
  border: 1px solid var(--olia-clay) !important;
  background: transparent !important;
  font-family: 'Nunito', sans-serif !important;
  color: var(--olia-cocoa) !important;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  outline: none !important;
  border-color: var(--olia-cocoa) !important;
  box-shadow: none !important;
}

/* === 12. NEWSLETTER === */
.olia-newsletter {
  display: flex;
  max-width: 380px;
  margin: 0 auto;
  gap: 6px;
}

.olia-newsletter input[type="email"] {
  flex: 1;
  padding: 12px 14px !important;
  font-size: 13px !important;
  color: var(--olia-cocoa) !important;
  font-family: 'Nunito', sans-serif !important;
}

.olia-newsletter button {
  padding: 12px 18px;
  background: var(--olia-cocoa);
  color: var(--olia-cream);
  border: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

/* === 13. PAGE TITLES (cacher sauf fiche produit) === */
body:not(.single-product) .page-title,
.entry-header.page-header {
  display: none;
}

/* === 14. WOO BREADCRUMB === */
.woocommerce-breadcrumb {
  font-family: 'Nunito', sans-serif !important;
  font-size: 11px !important;
  color: var(--olia-muted) !important;
  letter-spacing: 0.04em;
}

.woocommerce-breadcrumb a {
  color: var(--olia-muted) !important;
}

.woocommerce-breadcrumb a:hover {
  color: var(--olia-clay) !important;
}

/* === 15. RESPONSIVE V3 === */
@media (max-width: 850px) {
  h1 { font-size: 32px !important; }
  h2 { font-size: 24px !important; }
  h3 { font-size: 20px !important; }
  body { font-size: 15px; }

  .header-main { height: 70px !important; }

  .footer-wrapper .col {
    width: 100% !important;
    margin-bottom: 24px;
  }

  .olia-newsletter {
    flex-direction: column;
  }
  .olia-newsletter button {
    width: 100%;
  }
}

/* === 16. WHATSAPP FLOTTANT (cf. §3.8 option B) === */
.olia-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366; /* vert WhatsApp officiel */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(42, 30, 22, 0.2);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.olia-whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(42, 30, 22, 0.3);
}

@media (max-width: 850px) {
  .olia-whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  /* Évite collision avec sticky Add to Cart mobile sur fiche produit */
  .single-product .olia-whatsapp-fab {
    bottom: 80px;
  }
}

/* === 17. BANNIÈRE COOKIES COOKIEYES (palette V3) === */
.cky-consent-container {
  background: var(--olia-cream) !important;
  border-top: 1px solid var(--olia-clay) !important;
  color: var(--olia-cocoa) !important;
  font-family: 'Nunito', sans-serif !important;
}

.cky-btn-accept {
  background: var(--olia-cocoa) !important;
  color: var(--olia-cream) !important;
  border-radius: 0 !important;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cky-btn-reject {
  background: transparent !important;
  color: var(--olia-cocoa) !important;
  border: 1px solid var(--olia-cocoa) !important;
  border-radius: 0 !important;
}

/* === 18. ENCART RÉASSURANCE FICHE PRODUIT === */
.olia-cart-reassurance {
  padding: 12px 14px;
  background: var(--olia-cream);
  border-left: 2px solid var(--olia-clay);
  margin-top: 14px;
  font-size: 12px;
  color: var(--olia-muted);
}

/* === 19. PRIX EN FICHE PRODUIT === */
.single-product .price,
.single-product .price .amount {
  font-family: 'Nunito', sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: var(--olia-cocoa) !important;
}

/* === 20. CART DRAWER FLATSOME === */
.cart-popup-inner {
  background: var(--olia-cream) !important;
  border-color: rgba(212, 135, 125, 0.2) !important;
}

/* ===================================================================
   TYPO TEST (réversible) — retirer ce bloc pour revenir à Fraunces/Nunito.
   Titres -> Cormorant (léger, pas de gras) ; corps + labels -> Quicksand.
   !important pour surcharger les font-family inline de la page 368.
   Les couleurs ne sont pas touchées (titres restent cocoa #2A1E16).
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant', Georgia, serif !important;
  font-weight: 500 !important;
}
body, p, span, a, li, label,
input, select, textarea, button,
.olia-label, .olia-kicker, .olia-cta {
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif !important;
}
/* ===== FIN TYPO TEST ===== */

/* ===================================================================
   POLICE "AFFICHE" (Staatliches) — réversible. Classe réutilisable .olia-display.
   Servira aussi aux titres de la section "Deux univers" (page 368, Session 5).
   Appliquée ici aux TITRES DE PAGE CATÉGORIE WooCommerce.
   =================================================================== */
.olia-display,
body.tax-product_cat h1.shop-page-title {
  font-family: 'Staatliches', 'Cormorant', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #2A1E16 !important;
  font-weight: 400 !important;
}
/* Ré-afficher le bandeau titre des PAGES CATÉGORIE seulement (la section 13 masque .page-title) */
body.tax-product_cat .category-page-title.page-title {
  display: block !important;
}
/* ===== FIN POLICE AFFICHE ===== */

/* ===================================================================
   BADGES FICHE PRODUIT (.olia-badge) + ligne de valeur (.olia-value-line)
   =================================================================== */
.olia-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.olia-badge {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2A1E16;
  background: #F5EAD2;
  border: 1px solid rgba(212, 135, 125, 0.35);
  border-radius: 2px;
  padding: 5px 10px;
}
.olia-value-line {
  color: #D4877D;
  font-size: 14px;
  margin: 0 0 8px;
}
/* ===== FIN BADGES ===== */

/* ===================================================================
   21. PIÈCE UNIQUE — Mesuré à plat / État / Adoptée (Session 7)
   =================================================================== */
.olia-measures {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: var(--olia-cream);
  border-left: 2px solid var(--olia-clay);
  font-size: 13px;
  color: var(--olia-muted);
}
.olia-measures-title {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olia-cocoa);
  margin-bottom: 6px;
}
.olia-measures ul {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.olia-measures li {
  margin: 2px 0;
}
.olia-measures-hint {
  display: block;
  font-style: italic;
  font-size: 12px;
  opacity: 0.85;
}

.olia-etat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olia-cocoa);
  background: var(--olia-sand-honey);
  border-radius: 2px;
  padding: 4px 10px;
  margin: 0 0 12px;
}

/* Adoptée : badge sur carte catalogue + image voilée. Pas de gris morbide,
   pas de "ÉPUISÉ" : la pièce a trouvé sa famille. */
.olia-badge--adopted {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: var(--olia-cocoa);
  color: var(--olia-cream);
  border: 0;
}
.product.outofstock .box-image img,
.product-small.outofstock .box-image img {
  opacity: 0.45;
}
/* Masquer le label "Rupture" natif Flatsome pour éviter le doublon */
.product-small .out-of-stock-label {
  display: none !important;
}

/* ===================================================================
   22. MOBILE QA SESSION 7 (checklist guide §10)
   =================================================================== */
/* iOS : tout champ < 16px déclenche un zoom automatique au focus */
@media (max-width: 850px) {
  input[type="email"],
  input[type="text"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .olia-newsletter input[type="email"] {
    font-size: 16px !important;
  }
}

/* Cible tactile >= 44px des CTA underline, sans changer le visuel
   (zone cliquable étendue par pseudo-élément) */
.olia-cta {
  position: relative;
}
.olia-cta::after {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -8px;
  right: -8px;
}

/* Les sections de la home utilisent margin:0 -16px (échappement du padding
   container) : si le padding réel est < 16px, ça crée 1-2px de scroll
   horizontal. clip (et non hidden) préserve position:sticky. */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
