/*
Theme Name: Les p'tits précieux
Theme URI: https://example.com/
Author: OpenAI
Description: Thème WooCommerce responsive pour la boutique Les p'tits précieux.
Version: 1.0.0
Text Domain: les-ptits-precieux
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
*/
:root{
 --turquoise:#27B8AD;--turquoise-dark:#168f87;--yellow:#F8BD20;--pink:#E74791;
 --ink:#151515;--muted:#687078;--paper:#fff;--soft:#f7fbfa;--line:#e8eeee;
 --radius:22px;--shadow:0 12px 36px rgba(20,55,52,.08);--max:1220px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input{font:inherit}
.container{width:min(var(--max),calc(100% - 44px));margin-inline:auto}
.announcement{background:var(--ink);color:#fff;font-size:12px;letter-spacing:.02em}
.announcement .container{display:flex;justify-content:center;gap:22px;align-items:center;min-height:34px;flex-wrap:wrap}
.announcement span:before{content:"•";color:var(--yellow);margin-right:8px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-main{min-height:86px;display:grid;grid-template-columns:190px minmax(220px,1fr) auto;align-items:center;gap:28px}
.brand img{width:172px;max-height:76px;object-fit:contain}
.search{position:relative}
.search input{width:100%;height:46px;border:1px solid var(--line);border-radius:999px;background:#f8fbfa;padding:0 48px 0 19px;outline:none}
.search input:focus{border-color:var(--turquoise);box-shadow:0 0 0 3px rgba(39,184,173,.13)}
.search button{position:absolute;right:6px;top:5px;width:36px;height:36px;border:0;border-radius:50%;background:var(--turquoise);color:#fff;cursor:pointer}
.header-actions{display:flex;align-items:center;gap:17px;font-size:13px;font-weight:700}
.header-actions a{white-space:nowrap}
.cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:var(--pink);color:#fff;font-size:11px;margin-left:4px}
.nav-wrap{border-top:1px solid #f1f3f3}
.main-nav{display:flex;justify-content:center;align-items:center;gap:34px;min-height:48px;font-size:13px;font-weight:750}
.main-nav a{padding:13px 0;position:relative}
.main-nav a:after{content:"";position:absolute;left:0;right:100%;bottom:6px;height:2px;background:var(--turquoise);transition:right .25s}
.main-nav a:hover:after{right:0}
.mobile-toggle{display:none;border:0;background:var(--soft);border-radius:12px;width:42px;height:42px;font-size:22px}
.hero{padding:26px 0 16px}
.hero-panel{position:relative;overflow:hidden;border-radius:30px;min-height:440px;background:linear-gradient(115deg,#e9fbf8 0%,#fff9e9 55%,#fff0f7 100%);display:grid;grid-template-columns:1.05fr .95fr;align-items:center}
.hero-copy{padding:58px 0 58px 7.5%;position:relative;z-index:2}
.eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:var(--turquoise-dark)}
.eyebrow:before{content:"";width:25px;height:3px;background:var(--pink);border-radius:4px}
.hero h1{font-size:clamp(42px,5.4vw,72px);line-height:1.02;letter-spacing:-.055em;margin:18px 0 18px;max-width:590px}
.hero h1 em{font-style:normal;color:var(--turquoise-dark)}
.hero p{font-size:17px;color:#596568;max-width:490px;margin:0 0 28px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:14px 23px;border-radius:999px;background:var(--turquoise);color:#fff;font-weight:800;font-size:14px;border:0;transition:transform .2s,background .2s,box-shadow .2s;cursor:pointer}
.button:hover{background:var(--turquoise-dark);transform:translateY(-2px);box-shadow:0 10px 22px rgba(39,184,173,.2)}
.button.secondary{background:#fff;color:var(--ink);border:1px solid var(--line);margin-left:8px}
.hero-art{height:100%;min-height:400px;position:relative;display:grid;place-items:center}
.hero-orbit{width:min(78%,390px);aspect-ratio:1;border-radius:50%;border:13px solid transparent;border-top-color:var(--yellow);border-right-color:var(--pink);border-bottom-color:var(--turquoise);transform:rotate(-20deg);position:absolute}
.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;border-radius:50%;background:#fff;opacity:.8}
.hero-orbit:before{width:15px;height:15px;top:8%;left:18%}.hero-orbit:after{width:22px;height:22px;bottom:8%;right:15%}
.hero-bubble{position:absolute;display:grid;place-items:center;border-radius:28px;box-shadow:var(--shadow);font-size:72px}
.hero-bubble.one{width:155px;height:155px;background:#fff;transform:rotate(-8deg);top:17%;left:17%}
.hero-bubble.two{width:130px;height:130px;background:#fff3c9;transform:rotate(9deg);right:13%;top:24%;font-size:62px}
.hero-bubble.three{width:145px;height:145px;background:#ffe1ef;transform:rotate(-5deg);bottom:12%;left:35%;font-size:68px}
.hero-spark{position:absolute;color:var(--pink);font-size:42px}.hero-spark.s1{top:12%;right:18%}.hero-spark.s2{bottom:15%;right:12%;color:var(--yellow)}
.section{padding:58px 0}
.section.soft{background:var(--soft)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
.section-kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:850;color:var(--turquoise-dark)}
.section h2{font-size:clamp(28px,3.5vw,42px);letter-spacing:-.04em;line-height:1.1;margin:7px 0 0}
.section-head p{color:var(--muted);max-width:430px;margin:0}
.text-link{color:var(--turquoise-dark);font-weight:800;font-size:13px}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:24px 0}
.trust-item{display:flex;gap:13px;align-items:center;padding:15px 17px;border:1px solid var(--line);border-radius:17px;background:#fff}
.trust-icon{width:42px;height:42px;border-radius:14px;background:#e8faf7;display:grid;place-items:center;font-size:21px;flex:none}
.trust-item:nth-child(2) .trust-icon{background:#fff6d9}.trust-item:nth-child(3) .trust-icon{background:#fff0f7}.trust-item:nth-child(4) .trust-icon{background:#eef4ff}
.trust-item strong{display:block;font-size:13px}.trust-item small{display:block;color:var(--muted);font-size:11px}
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}
.category-card{position:relative;overflow:hidden;border-radius:21px;min-height:205px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .25s}
.category-card:hover{transform:translateY(-5px)}
.category-card:nth-child(1){background:#e5f8f5}.category-card:nth-child(2){background:#fff4cf}.category-card:nth-child(3){background:#ffedf5}.category-card:nth-child(4){background:#edf2ff}.category-card:nth-child(5){background:#f3f0ff}
.category-emoji{font-size:48px;align-self:flex-end;filter:drop-shadow(0 8px 9px rgba(0,0,0,.08))}
.category-card strong{font-size:17px;line-height:1.2;max-width:130px}
.category-card small{color:#657072;font-size:11px}
.category-arrow{position:absolute;right:17px;bottom:16px;width:30px;height:30px;border-radius:50%;background:#fff;display:grid;place-items:center}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{border:1px solid var(--line);border-radius:19px;overflow:hidden;background:#fff;transition:transform .22s,box-shadow .22s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-image{aspect-ratio:1/1.05;background:linear-gradient(145deg,#f1fbf9,#fff4f8);display:grid;place-items:center;position:relative;overflow:hidden}
.product-image .placeholder{font-size:72px;filter:drop-shadow(0 10px 8px rgba(0,0,0,.08))}
.product-badge{position:absolute;top:12px;left:12px;background:var(--pink);color:#fff;padding:5px 10px;border-radius:30px;font-size:10px;font-weight:850}
.product-info{padding:15px}
.product-category{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--turquoise-dark);font-weight:850}
.product-info h3{font-size:14px;line-height:1.35;margin:7px 0 9px;min-height:38px}
.price{font-size:16px;font-weight:900}.price del{font-size:12px;color:#9aa2a5;font-weight:500;margin-left:6px}
.product-actions{display:flex;align-items:center;justify-content:space-between;margin-top:13px}
.add-button{border:0;background:#e8f8f6;color:#147e77;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:850;cursor:pointer}
.add-button:hover{background:var(--turquoise);color:#fff}
.age-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.age-card{padding:23px;border-radius:20px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between}
.age-card:nth-child(1){background:#e8f8f6}.age-card:nth-child(2){background:#fff4d7}.age-card:nth-child(3){background:#ffedf5}.age-card:nth-child(4){background:#eef1ff}
.age-card strong{font-size:22px}.age-card span{font-size:12px;color:#657072}
.promo-banner{border-radius:26px;background:var(--ink);color:#fff;padding:38px 42px;display:flex;justify-content:space-between;align-items:center;gap:24px;overflow:hidden;position:relative}
.promo-banner:after{content:"";position:absolute;width:250px;height:250px;border:24px solid var(--turquoise);border-radius:50%;right:16%;top:-155px;opacity:.5}
.promo-banner h2{font-size:clamp(27px,3vw,39px);line-height:1.1;margin:0 0 10px;max-width:550px}
.promo-banner p{color:#d2dddd;margin:0}.promo-banner .button{position:relative;z-index:1;white-space:nowrap;background:var(--yellow);color:var(--ink)}
.newsletter{background:#fff5d9;border-radius:25px;padding:34px;display:flex;justify-content:space-between;align-items:center;gap:25px}
.newsletter h2{font-size:27px;margin:0 0 7px}.newsletter p{margin:0;color:#677072}
.newsletter-form{display:flex;gap:8px;min-width:min(430px,100%)}
.newsletter-form input{min-width:0;flex:1;border:1px solid #e8dfc5;border-radius:999px;padding:13px 17px;background:#fff}
.site-footer{background:#111c1b;color:#fff;padding:50px 0 20px;margin-top:55px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:35px}
.footer-brand img{width:150px;background:#fff;border-radius:12px;padding:5px}
.site-footer p,.site-footer a{color:#c8d1d0;font-size:13px}.site-footer h4{margin:0 0 15px;font-size:14px}.footer-links{display:grid;gap:9px}
.footer-bottom{border-top:1px solid #34413f;margin-top:35px;padding-top:18px;display:flex;justify-content:space-between;color:#aebcba;font-size:11px}
.mobile-bottom{display:none}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}.reveal.is-visible{opacity:1;transform:none}
@media(max-width:980px){
 .header-main{grid-template-columns:150px 1fr auto;gap:15px}.brand img{width:145px}
 .category-grid{grid-template-columns:repeat(3,1fr)}.category-card{min-height:175px}
 .trust-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}
 .hero-panel{min-height:390px}.hero-copy{padding-left:6%}
}
@media(max-width:680px){
 body{padding-bottom:66px}.container{width:min(100% - 28px,var(--max))}
 .announcement .container{gap:7px 14px;padding:8px 0;font-size:10px}
 .header-main{min-height:70px;grid-template-columns:42px 1fr auto;gap:10px}
 .mobile-toggle{display:block}.brand{justify-self:center}.brand img{width:124px;max-height:58px}
 .header-actions{gap:10px}.header-actions .account-link{display:none}
 .search{grid-column:1/-1;grid-row:2;margin-bottom:12px}.header-main{padding-top:8px}
 .nav-wrap{display:none}.nav-wrap.open{display:block}.main-nav{align-items:stretch;flex-direction:column;gap:0;padding:8px 0}.main-nav a{padding:12px 5px;border-bottom:1px solid var(--line)}
 .hero{padding-top:14px}.hero-panel{grid-template-columns:1fr;min-height:0;border-radius:22px}
 .hero-copy{padding:35px 25px 8px}.hero h1{font-size:43px}.hero p{font-size:14px}
 .hero-art{min-height:240px}.hero-orbit{width:210px;border-width:9px}.hero-bubble.one{width:100px;height:100px;font-size:48px;left:20%;top:12%}.hero-bubble.two{width:88px;height:88px;font-size:42px;right:16%;top:20%}.hero-bubble.three{width:95px;height:95px;font-size:48px;bottom:8%;left:39%}
 .button{padding:12px 17px;font-size:12px}.button.secondary{margin-left:4px}
 .section{padding:38px 0}.section-head{align-items:start;flex-direction:column}.section-head p{font-size:13px}
 .trust-grid{gap:8px;padding:16px 0}.trust-item{padding:10px;gap:9px}.trust-icon{width:34px;height:34px;font-size:17px}.trust-item strong{font-size:11px}.trust-item small{font-size:9px}
 .category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.category-card{min-height:145px;padding:15px}.category-card strong{font-size:15px}.category-emoji{font-size:38px}
 .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-info{padding:11px}.product-info h3{font-size:12px;min-height:34px}.price{font-size:14px}.product-image .placeholder{font-size:58px}
 .age-grid{grid-template-columns:repeat(2,1fr);gap:10px}.age-card{min-height:125px;padding:17px}.age-card strong{font-size:19px}
 .promo-banner{padding:28px 23px;display:block}.promo-banner .button{margin-top:18px}
 .newsletter{padding:24px;display:block}.newsletter-form{min-width:0;margin-top:18px}.newsletter h2{font-size:23px}
 .footer-grid{grid-template-columns:repeat(2,1fr);gap:25px}.footer-brand{grid-column:1/-1}.footer-bottom{display:block;line-height:2}
 .mobile-bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:60;background:#fff;border-top:1px solid var(--line);padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px rgba(0,0,0,.05)}
 .mobile-bottom a{display:grid;justify-items:center;gap:2px;font-size:9px;font-weight:750;color:#586363}.mobile-bottom span{font-size:19px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.reveal{opacity:1;transform:none}}


/* --- Motion and merchandising additions (v1.1) --- */
.hero-slider{position:relative;overflow:hidden;border-radius:30px;background:#f4fbf9}
.hero-slide{display:none;grid-template-columns:1.05fr .95fr;align-items:center;min-height:440px;position:relative;overflow:hidden}
.hero-slide.is-active{display:grid}
.hero-slide.tone-mint{background:linear-gradient(115deg,#e7faf6,#fffdf5 58%,#fff0f7)}
.hero-slide.tone-sun{background:linear-gradient(115deg,#fff6d8,#fffdf6 58%,#e8faf7)}
.hero-slide.tone-pink{background:linear-gradient(115deg,#fff0f7,#fffdf8 58%,#e9f9f6)}
.hero-slide.tone-lilac{background:linear-gradient(115deg,#f1efff,#fffdf8 58%,#fff0f7)}
.hero-slide .hero-copy{padding:58px 0 76px 7.5%;z-index:2}
.hero-slide .hero-art{min-height:400px}
.hero-controls{position:absolute;left:7.5%;bottom:23px;display:flex;align-items:center;gap:18px;z-index:4}
.hero-dots{display:flex;gap:7px}.hero-dots button{width:8px;height:8px;padding:0;border:0;border-radius:20px;background:#b9ccca;cursor:pointer;transition:width .25s,background .25s}
.hero-dots button.active{width:28px;background:var(--turquoise-dark)}
.hero-count{font-size:11px;font-weight:800;color:#62716f}.hero-count .current{color:var(--ink)}
.hero-arrows,.carousel-arrows{display:flex;gap:7px}
.hero-arrows button,.carousel-arrows button{width:34px;height:34px;border-radius:50%;border:1px solid #dce8e5;background:#fff;cursor:pointer;transition:.2s}
.hero-arrows button:hover,.carousel-arrows button:hover{background:var(--turquoise);color:#fff;border-color:var(--turquoise)}
.product-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.product-tabs button{border:1px solid var(--line);border-radius:999px;background:#fff;padding:10px 17px;font-size:12px;font-weight:800;cursor:pointer;transition:.2s}
.product-tabs button.is-active,.product-tabs button:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.product-tab-panel{display:none}.product-tab-panel.is-active{display:block}
.product-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:calc(25% - 14px);grid-template-columns:none;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 18px;scroll-behavior:smooth}
.product-carousel::-webkit-scrollbar{display:none}.product-carousel .product-card{scroll-snap-align:start;min-width:0}
.brand-marquee-section{padding:35px 0 55px;background:#fbfdfc;overflow:hidden}
.brand-marquee{overflow:hidden;border-block:1px solid var(--line);background:#fff}
.brand-track{display:flex;align-items:center;gap:55px;width:max-content;padding:18px 0;animation:lpp-marquee 28s linear infinite}
.brand-track span{font-size:14px;font-weight:850;color:#546461;white-space:nowrap}
.brand-marquee:hover .brand-track{animation-play-state:paused}
@keyframes lpp-marquee{to{transform:translateX(-50%)}}
.cart-drawer-backdrop{position:fixed;inset:0;background:rgba(8,22,21,.42);z-index:100;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.cart-drawer{position:fixed;z-index:101;right:0;top:0;height:100dvh;width:min(430px,92vw);background:#fff;box-shadow:-15px 0 45px rgba(0,0,0,.12);transform:translateX(105%);transition:transform .38s cubic-bezier(.2,.75,.25,1);padding:24px;overflow:auto}
.cart-drawer-open .cart-drawer-backdrop{opacity:1;visibility:visible}
.cart-drawer-open .cart-drawer{transform:translateX(0)}
.cart-drawer-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:18px}
.cart-drawer-head h3{margin:0;font-size:21px}.cart-drawer-close{border:0;background:#f2f7f6;width:38px;height:38px;border-radius:50%;font-size:20px;cursor:pointer}
.cart-drawer .woocommerce-mini-cart{list-style:none;padding:0;margin:0}
.cart-drawer .woocommerce-mini-cart-item{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.cart-drawer .woocommerce-mini-cart-item img{width:58px;float:right}
.cart-drawer .woocommerce-mini-cart__total{font-weight:850;margin:18px 0}
.cart-drawer .button{display:block;text-align:center;margin:8px 0}
.site-header.is-scrolled{box-shadow:0 8px 25px rgba(20,55,52,.08)}
@media(max-width:980px){.product-carousel{grid-auto-columns:calc(33.333% - 12px)}}
@media(max-width:680px){
 .hero-slider{border-radius:22px}.hero-slide{grid-template-columns:1fr;min-height:0}
 .hero-slide .hero-copy{padding:35px 25px 8px}.hero-slide .hero-art{min-height:225px}
 .hero-controls{left:25px;bottom:15px;gap:12px}.hero-arrows button{width:30px;height:30px}
 .product-carousel{grid-auto-columns:calc(50% - 6px);gap:10px}
 .product-carousel .product-info{padding:11px}
 .brand-marquee-section{padding:25px 0 35px}
}
@media(prefers-reduced-motion:reduce){.brand-track{animation:none}.hero-slide,.cart-drawer,.cart-drawer-backdrop{transition:none}}
