/*
Theme Name: Rosée Child
Theme URI: https://rosee-beaute.fr
Description: Thème enfant Astra pour la boutique Rosée — cosmétiques. Palette rose poudré & crème, typographie Cormorant Garamond / Nunito.
Author: Rosée
Template: astra
Version: 1.1.4
Text Domain: rosee-child
*/

:root {
  --rosee-primary:   #E8B4B8; /* rose poudré */
  --rosee-secondary: #F7E1E3; /* rose voile */
  --rosee-accent:    #C98B8F; /* rose profond */
  --rosee-text:      #4A3F41; /* brun-prune */
  --rosee-bg:        #FFFBFA; /* crème */
  --rosee-radius:    9999px;
  --rosee-shadow:    0 8px 24px rgba(201,139,143,.18);
}

/* ---------- Base ---------- */
html, body, .site, #page,
.ast-separate-container {
  background-color: var(--rosee-bg) !important;
}

/* ---------- Largeur & centrage du contenu ----------
   Astra était réglé en pleine largeur étirée (.ast-container{max-width:100%}),
   d'où un contenu collé à gauche. On recadre la zone de contenu et on la centre. */
.site-content > .ast-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
/* Pages de texte (légales, à propos, FAQ, contact) : largeur de lecture,
   alignée à gauche sous le logo (cohérence avec le header). */
.page-template-default:not(.home):not(.woocommerce-page) .entry-header,
.page-template-default:not(.home):not(.woocommerce-page) .entry-content {
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;
}
.page-template-default:not(.home):not(.woocommerce-page) .entry-content > * {
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 921px) {
  .site-content > .ast-container { padding-left: 16px; padding-right: 16px; }
}
body {
  color: var(--rosee-text);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
/* Cartes/articles en blanc sur fond crème */
.ast-separate-container .ast-article-post,
.ast-separate-container .comments-area .comment-respond,
.ast-separate-container .ast-comment-list li {
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title,
.widget-title, .woocommerce-loop-product__title,
.product_title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--rosee-text);
  font-weight: 600;
  letter-spacing: .2px;
}

h1, .entry-title { font-size: 2.6rem; line-height: 1.2; }
h2 { font-size: 2rem; }

a { color: var(--rosee-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rosee-text); }

/* ---------- Header ---------- */
.site-header, .ast-primary-header-bar, .main-header-bar {
  background-color: #fff;
  box-shadow: 0 2px 14px rgba(201,139,143,.10);
}
.site-title a { color: var(--rosee-text) !important; font-size: 2rem; }
.main-header-menu a { color: var(--rosee-text); font-weight: 600; }
.main-header-menu a:hover,
.main-header-menu .current-menu-item > a { color: var(--rosee-accent); }

/* ---------- Boutons pilule ---------- */
.button, button, input[type="submit"],
.ast-button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button,
.woocommerce .button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background-color: var(--rosee-primary);
  color: #fff !important;
  border: none;
  border-radius: var(--rosee-radius);
  padding: .7em 1.8em;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: var(--rosee-shadow);
  transition: background-color .25s ease, transform .15s ease;
}
.button:hover, button:hover, input[type="submit"]:hover,
.ast-button:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background-color: var(--rosee-accent);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---------- WooCommerce grille produits (robuste) ---------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  list-style: none !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  list-style: none !important;
}
.woocommerce ul.products li.product img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin-top: .4rem; font-size: 1.15rem; }
.woocommerce ul.products li.product .button { margin-top: .6rem; }
@media (max-width: 992px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ---------- WooCommerce cartes produit ---------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border-radius: 18px;
  padding: 14px 14px 22px;
  box-shadow: 0 6px 20px rgba(74,63,65,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--rosee-shadow);
}
.woocommerce ul.products li.product img { border-radius: 14px; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--rosee-accent);
  font-weight: 700;
  font-size: 1.15rem;
}
.woocommerce span.onsale {
  background-color: var(--rosee-accent);
  border-radius: var(--rosee-radius);
  color: #fff;
  padding: .3em .9em;
}

/* Bandeau / sections douces */
.rosee-hero {
  background: linear-gradient(135deg, var(--rosee-secondary), var(--rosee-bg));
  padding: 4rem 1.5rem;
  border-radius: 24px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer, .ast-small-footer, .footer-sml-layout {
  background-color: var(--rosee-secondary);
  color: var(--rosee-text);
}
.site-footer a { color: var(--rosee-accent); }

/* Champs de formulaire */
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], textarea, select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #EAD6D8;
  border-radius: 12px;
  padding: .6em .9em;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rosee-primary);
  box-shadow: 0 0 0 3px rgba(232,180,184,.25);
}

/* ---------- Engagements « naturel » (bandeau) ---------- */
.rosee-engagements{
  display:grid;grid-template-columns:repeat(4,1fr);gap:22px;
  max-width:1080px;margin:2.5rem auto;padding:0 16px;list-style:none;
}
.rosee-eng-item{text-align:center;margin:0;}
.rosee-eng-ic{
  display:flex;align-items:center;justify-content:center;
  width:66px;height:66px;margin:0 auto .8rem;border-radius:9999px;
  background:linear-gradient(135deg,var(--rosee-secondary),#fff);
  box-shadow:0 6px 18px rgba(201,139,143,.18);font-size:30px;line-height:1;
}
.rosee-eng-title{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;color:var(--rosee-text);font-size:1.15rem;margin:0 0 .25rem;}
.rosee-eng-desc{font-size:.86rem;color:#7a6c6e;margin:0;line-height:1.5;}
@media(max-width:782px){.rosee-engagements{grid-template-columns:repeat(2,1fr);}}
@media(max-width:480px){.rosee-engagements{grid-template-columns:1fr;}}

/* ---------- Intro boutique ---------- */
.rosee-shop-intro{
  text-align:center;max-width:760px;margin:0 auto 1rem;color:var(--rosee-text);
  font-size:1.05rem;line-height:1.7;
}
.rosee-shop-intro strong{color:var(--rosee-accent);}

/* ---------- Badges d'engagement (fiche produit) ---------- */
.rosee-prod-badges{
  display:flex;flex-wrap:wrap;gap:8px;margin:.2rem 0 1.4rem;padding:0;list-style:none;
}
.rosee-badge{
  display:inline-flex;align-items:center;gap:5px;
  background:var(--rosee-secondary);color:var(--rosee-text);
  border:1px solid #EAD0D3;border-radius:9999px;
  padding:.34em .9em;font-size:.78rem;font-weight:700;font-family:'Nunito',sans-serif;
}

/* ---------- Logo image présent → masquer le titre texte redondant ---------- */
.site-header .ast-site-title-wrap,
.site-header .site-title{display:none!important;}

/* ---------- Barre supérieure + sélecteur de langue FR | US ---------- */
.rosee-topbar{background:var(--rosee-secondary);border-bottom:1px solid #EAD0D3;}
.rosee-topbar-inner{max-width:1200px;margin:0 auto;padding:5px 24px;display:flex;justify-content:flex-end;align-items:center;}
.rosee-lang-switch{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;}
.rosee-lang-switch .rosee-lang{font-weight:700;color:var(--rosee-text);text-decoration:none;line-height:1;}
.rosee-lang-switch .rosee-lang:hover{color:var(--rosee-accent);}
.rosee-lang-switch .rosee-lang-active{color:var(--rosee-accent);text-decoration:underline;text-underline-offset:3px;}
.rosee-lang-switch .rosee-lang-sep{color:#d9c4c6;}
@media (max-width:921px){ .rosee-topbar-inner{padding:5px 16px;} }

/* ---------- Panier (header) ---------- */
li.rosee-cart-item{display:flex!important;align-items:center;}
.rosee-cart{position:relative;display:inline-flex!important;align-items:center;color:var(--rosee-text)!important;padding:0 2px!important;line-height:1;}
.rosee-cart:hover{color:var(--rosee-accent)!important;}
.rosee-cart-ic{display:block;}
.rosee-cart-count{position:absolute;top:-7px;right:-10px;min-width:18px;height:18px;padding:0 4px;border-radius:9999px;background:var(--rosee-accent);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;font-family:'Nunito',sans-serif;box-sizing:border-box;}
.rosee-cart-count.rosee-cart-empty{display:none;}

/* ---------- Accroche & gabarit fiche produit ---------- */
.rosee-accroche{font-size:1.1rem;color:var(--rosee-text);}
.woocommerce div.product .woocommerce-Tabs-panel h3,
.woocommerce div.product .entry-content h3{font-size:1.3rem;margin-top:1.4rem;}

/* ---------- Header : nav centrée entre le logo et le bloc de droite (desktop) ---------- */
@media (min-width:922px){
  /* La grille du header devient un flex : la section droite (qui contient le menu)
     s'étend sur tout l'espace après le logo. */
  .main-header-bar .ast-builder-grid-row{display:flex!important;align-items:center;width:100%;}
  .site-header-primary-section-left{flex:0 0 auto!important;}
  .site-header-primary-section-right{flex:1 1 auto!important;width:auto!important;max-width:none!important;}
  /* On étire toute la chaîne de conteneurs jusqu'au <ul> du menu. */
  .ast-builder-menu-1,
  .ast-main-header-bar-alignment,
  .main-header-bar-navigation,
  #primary-site-navigation-desktop,
  #primary-site-navigation-desktop .main-navigation{flex:1 1 auto!important;width:100%!important;display:flex!important;}
  #ast-hf-menu-1{width:100%!important;display:flex!important;align-items:center;}
  /* Marge auto à gauche d'Accueil et à droite de Contact : le groupe Accueil→Contact
     est centré ; Mon compte / langue / panier se calent à droite. */
  #ast-hf-menu-1 > li.menu-item-60{margin-left:auto!important;}
  #ast-hf-menu-1 > li.menu-item-66{margin-right:auto!important;}
}
