/* Baby Star Boutique — styles du site (jetons dans brand/tokens.css) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--bsb-cacao); line-height: 1.1; }
h2 { font-size: clamp(30px, 4vw, 44px); }
em { font-style: italic; color: var(--bsb-or); }
.skip { position: absolute; left: -999px; top: 0; background: var(--bsb-cacao); color: var(--bsb-lait); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--bsb-or); outline-offset: 3px; }

.wrap, section, .header, .footer { padding-left: max(16px, calc((100vw - 1240px) / 2)); padding-right: max(16px, calc((100vw - 1240px) / 2)); }
section { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }

/* Bandeau */
.topbar { background: var(--bsb-cacao); color: var(--bsb-lait); font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 10px 16px; }
.topbar .dot { color: var(--bsb-or); margin: 0 6px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bsb-lin); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; }
.nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: .02em; }
.nav a { text-decoration: none; color: var(--bsb-cacao); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--bsb-or); }
.nav-right { justify-content: flex-end; align-items: center; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo svg { width: 18px; height: 18px; fill: var(--bsb-or); margin-bottom: 4px; }
.logo-nom { font-family: var(--bsb-font-display); font-size: 27px; color: var(--bsb-cacao); }
.logo-sous { font-family: var(--bsb-font-body); font-weight: 300; font-size: 9px; letter-spacing: .5em; text-transform: uppercase; color: var(--bsb-argile); margin-top: 4px; padding-left: .5em; }
.wa-mini svg, .wa-flottant svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.burger { display: none; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-family: var(--bsb-font-label); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--bsb-cacao); cursor: pointer; transition: background .2s, color .2s; }
.btn-plein { background: var(--bsb-cacao); color: var(--bsb-lait); }
.btn-plein:hover { background: #4a4339; }
.btn-ligne { background: transparent; color: var(--bsb-cacao); }
.btn-ligne:hover { background: var(--bsb-cacao); color: var(--bsb-lait); }
.btn.large { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; background: var(--bsb-sable); padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 400; margin: 18px 0 22px; letter-spacing: -.01em; }
.lead { font-size: 17px; color: var(--bsb-argile); max-width: 46ch; margin: 0 0 18px; }
.prix-depart { font-family: var(--bsb-font-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bsb-argile); margin: 0 0 30px; }
.prix-depart strong { color: var(--bsb-cacao); font-weight: 700; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bsb-placeholder); }
.hero { position: relative; overflow: hidden; }
.hero-texte, .hero-photo { position: relative; z-index: 1; }
.diapos { position: absolute; inset: 0; }
.diapos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 15%; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease-out; }
.diapos img.actif { opacity: 1; transform: scale(1); }
.points { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.points button { width: 28px; height: 28px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.points button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(251, 247, 240, .6); box-shadow: 0 1px 4px rgba(46, 42, 36, .3); transition: width .3s, background .3s; }
.points button[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--bsb-or); }
.hero-etoile { z-index: 2; animation: tourne 14s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.scintille { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.scintille i { position: absolute; width: 10px; height: 10px; background: var(--bsb-or); clip-path: polygon(50% 0, 61.8% 33.8%, 97.6% 34.6%, 69% 56.2%, 79.4% 90.5%, 50% 70%, 20.6% 90.5%, 31% 56.2%, 2.4% 34.6%, 38.2% 33.8%); opacity: 0; animation: brille 4.5s ease-in-out infinite; }
.scintille i:nth-child(1) { top: 12%; left: 6%; animation-delay: 0s; }
.scintille i:nth-child(2) { top: 22%; left: 44%; width: 7px; height: 7px; animation-delay: 1.2s; }
.scintille i:nth-child(3) { top: 70%; left: 3%; width: 14px; height: 14px; animation-delay: 2.1s; }
.scintille i:nth-child(4) { top: 84%; left: 38%; animation-delay: .6s; }
.scintille i:nth-child(5) { top: 8%; left: 30%; width: 6px; height: 6px; animation-delay: 3s; }
.scintille i:nth-child(6) { top: 52%; left: 47%; width: 8px; height: 8px; animation-delay: 1.8s; }
.scintille i:nth-child(7) { top: 92%; left: 14%; width: 6px; height: 6px; animation-delay: 2.7s; }
@keyframes brille { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .8; transform: scale(1) rotate(40deg); } }
.compte { display: inline-flex; align-items: center; gap: 10px; font-family: var(--bsb-font-label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bsb-cacao); background: var(--bsb-lait); border: 1px solid var(--bsb-or); padding: 8px 14px; margin: -14px 0 28px; }
.compte b { font-size: 15px; color: var(--bsb-or); }
.compte[hidden], [hidden] { display: none !important; }

/* Apparitions au défilement (actives seulement si JavaScript tourne) */
.js [data-apparait] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-apparait].vu { opacity: 1; transform: none; }
.js .hero-texte > * { animation: monte .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-texte > :nth-child(2) { animation-delay: .12s; } .js .hero-texte > :nth-child(3) { animation-delay: .24s; }
.js .hero-texte > :nth-child(4) { animation-delay: .36s; } .js .hero-texte > :nth-child(5) { animation-delay: .44s; } .js .hero-texte > :nth-child(6) { animation-delay: .52s; }
@keyframes monte { from { opacity: 0; transform: translateY(22px); } }
.hero-etoile { position: absolute; top: 22px; left: 22px; width: 34px; fill: var(--bsb-or); }

/* Têtes de section */
.sec-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-tete .bsb-label { margin: 0 0 10px; }
.sec-tete.centre { justify-content: center; text-align: center; }
.sec-note { margin: 0; max-width: 42ch; color: var(--bsb-argile); font-size: 15px; }

/* Univers */
.univers-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bsb-gap); }
.tuile { text-decoration: none; display: block; }
.tuile img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: 25% 15%; background: var(--bsb-placeholder); transition: transform .5s; }
.tuile:hover img { transform: scale(1.03); }
.tuile { overflow: hidden; }
.tuile-nom { display: block; font-family: var(--bsb-font-display); font-size: 24px; margin-top: 14px; color: var(--bsb-cacao); }
.tuile-meta { display: block; font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bsb-pierre); margin-top: 4px; }

/* Catalogue */
.catalogue { background: var(--bsb-lait); border-top: 1px solid var(--bsb-lin); }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filtres button { font-family: var(--bsb-font-body); font-size: 14px; border: 1px solid var(--bsb-lin); background: transparent; color: var(--bsb-cacao); border-radius: 99px; padding: 9px 18px; cursor: pointer; }
.filtres button[aria-pressed="true"] { background: var(--bsb-cacao); color: var(--bsb-lait); border-color: var(--bsb-cacao); }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--bsb-gap); }
.carte-produit { display: flex; flex-direction: column; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.carte-produit .photo { position: relative; aspect-ratio: 2 / 3; background: var(--bsb-placeholder); overflow: hidden; }
.carte-produit .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.carte-produit:hover .photo img { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--bsb-cacao); color: var(--bsb-lait); font-family: var(--bsb-font-label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; }
.carte-produit .nom { font-family: var(--bsb-font-display); font-size: 21px; line-height: 1.2; margin-top: 14px; color: var(--bsb-cacao); }
.carte-produit .meta { font-size: 13px; color: var(--bsb-argile); margin-top: 4px; }
.carte-produit .bas { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.carte-produit .prix { font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pastilles { display: flex; gap: 5px; }
.pastilles i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(46, 42, 36, .18); display: block; }
.vide { text-align: center; color: var(--bsb-argile); }

/* Engagement */
.engagement { background: var(--bsb-cacao); color: var(--bsb-lait); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.eng-texte svg { width: 30px; fill: var(--bsb-or); margin-bottom: 22px; }
.citation { font-family: var(--bsb-font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; margin: 0; }
.piliers { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.piliers li { border-top: 1px solid rgba(201, 162, 75, .35); padding-top: 18px; }
.piliers strong { display: block; font-family: var(--bsb-font-display); font-weight: 400; font-size: 24px; color: var(--bsb-lait); }
.piliers span { color: #cfc4b3; font-size: 15px; }

/* Tailles */
.tailles { background: var(--bsb-sable); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--bsb-lait); font-size: 15px; }
th { font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bsb-argile); font-weight: 400; text-align: left; }
th, td { padding: 13px 18px; border-bottom: 1px solid var(--bsb-lin); white-space: nowrap; }

/* Boutique */
.boutique { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: stretch; }
.boutique h2 { margin: 10px 0 28px; }
dl { margin: 0 0 30px; display: grid; gap: 4px; }
dt { font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bsb-pierre); margin-top: 14px; }
dd { margin: 0; font-size: 16px; }
.carte { min-height: 380px; background: var(--bsb-placeholder); }
.carte iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: sepia(.25) saturate(.85); }

/* Contact */
.contact { background: var(--bsb-sable); }
.contact-intro { text-align: center; color: var(--bsb-argile); max-width: 52ch; margin: -12px auto 32px; }
.form { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ.plein, .form .btn, .form-erreur { grid-column: 1 / -1; }
label { font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bsb-argile); }
input, select, textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--bsb-cacao); background: var(--bsb-lait); border: 1px solid var(--bsb-lin); padding: 12px 14px; border-radius: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bsb-or); }
.form-erreur { color: var(--bsb-erreur); margin: 0; }

/* Pied de page */
.footer { background: var(--bsb-cacao); color: #cfc4b3; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 70px; padding-bottom: 30px; font-size: 14px; }
.logo-clair { align-items: flex-start; }
.logo-clair .logo-nom { color: var(--bsb-lait); }
.logo-clair .logo-sous { color: var(--bsb-pierre); padding-left: 0; }
.foot-marque p { font-family: var(--bsb-font-display); font-style: italic; font-size: 18px; color: var(--bsb-lait); margin: 18px 0 0; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col .bsb-label { margin: 0 0 6px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--bsb-lait); }
.foot-bas { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; margin: 20px 0 0; font-family: var(--bsb-font-label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bsb-pierre); }

/* WhatsApp flottant */
.wa-flottant { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--bsb-cacao); color: var(--bsb-lait); text-decoration: none; padding: 13px 18px; border-radius: 99px; box-shadow: 0 8px 24px rgba(46, 42, 36, .25); font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.wa-flottant svg { stroke: var(--bsb-or); }

/* Fiche produit */
dialog { border: 0; padding: 0; max-width: 940px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); background: var(--bsb-lait); color: var(--bsb-cacao); }
dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
dialog::backdrop { background: rgba(46, 42, 36, .55); }
.fermer { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--bsb-cacao); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 247, 240, .92); box-shadow: 0 2px 8px rgba(46, 42, 36, .15); }
.fiche-photo { background: var(--bsb-placeholder); }
.fiche-photo img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.fiche-infos { padding: 44px 36px 32px; overflow-y: auto; }
.fiche-infos h3 { font-size: 32px; font-weight: 400; margin: 12px 0 10px; }
.fiche-prix { font-family: var(--bsb-font-label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 26px; }
.fiche-label { font-family: var(--bsb-font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bsb-argile); margin: 0 0 10px; }
.fiche-label span:not(.discret) { color: var(--bsb-cacao); }
.nuancier { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.nuancier button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(46, 42, 36, .2); cursor: pointer; box-shadow: 0 0 0 3px var(--bsb-lait); }
.nuancier button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bsb-lait), 0 0 0 4px var(--bsb-cacao); }
#fiche-age { margin-bottom: 26px; }
.discret { color: var(--bsb-pierre); font-size: 13px; text-transform: none; letter-spacing: 0; font-family: var(--bsb-font-body); }
.fiche-infos > .discret { margin-top: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .grille { grid-template-columns: repeat(3, 1fr); }
  .univers-grille { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .nav { display: none; }
  .logo { grid-column: 2; }
  .burger { display: flex; flex-direction: column; gap: 6px; grid-column: 3; justify-self: end; background: none; border: 0; padding: 12px 4px; cursor: pointer; }
  .burger span { width: 24px; height: 1.5px; background: var(--bsb-cacao); display: block; }
  .header.ouvert .nav { display: flex; flex-direction: column; gap: 0; grid-column: 1 / -1; padding: 8px 0 14px; }
  .header.ouvert .nav a { padding: 12px 0; border-bottom: 1px solid var(--bsb-lin); }
  .header.ouvert .nav-right { justify-content: flex-start; align-items: stretch; padding-top: 0; }
  .header.ouvert .wa-mini { display: none; }
  .hero, .engagement, .boutique { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 4 / 4.2; }
  .grille { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .carte-produit .nom { font-size: 18px; }
  .form { grid-template-columns: 1fr; }
  dialog[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .fiche-photo img { max-height: 55dvh; }
  .fiche-infos { padding: 26px 20px 28px; overflow: visible; }
  .topbar .masque-mobile { display: none; }
}
@media (max-width: 480px) {
  .footer { grid-template-columns: 1fr; }
  .wa-flottant span { display: none; }
  .wa-flottant { padding: 14px; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; }
  .filtres button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .js [data-apparait] { opacity: 1; transform: none; } .scintille { display: none; } }
