/*
Theme Name: Atelier Alchimmie
Theme URI: https://alchimmie.fr
Author: Alchimmie Parfumerie
Description: Thème e-commerce éditorial pour Alchimmie Parfumerie, compatible avec WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: atelier-alchimmie
*/

:root {
  --cream: #f7efe7;
  --paper: #fbf7f2;
  --burgundy: #6d2932;
  --burgundy-deep: #2d2020;
  --terracotta: #a54242;
  --terracotta-light: #ead5cf;
  --gold: #c89952;
  --ink-soft: #6b5554;
  --line: #d7c5bd;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Outfit", Arial, sans-serif;
  --mono: "Outfit", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--burgundy-deep);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.site-shell { overflow: hidden; min-height: 100vh; }
.container-alchimmie { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.serif { font-family: var(--serif); }
.eyebrow {
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.announcement {
  padding: 10px 16px;
  background: var(--burgundy-deep);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.announcement span { color: var(--gold); margin: 0 10px; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 239, 231, .96);
  position: relative;
  z-index: 10;
}
.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  height: 88px;
  justify-content: space-between;
  position: relative;
}
.brand { align-items: center; display: flex; gap: 12px; left: 50%; position: absolute; transform: translateX(-50%); }
.brand img { border-radius: 999px; height: 64px; object-fit: cover; transition: transform .45s ease; width: 64px; }
.brand:hover img { transform: scale(1.05); }
.brand-name { display: none; }
.main-nav ul { align-items: center; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .header-action {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.main-nav a:hover, .header-action:hover { color: var(--terracotta); }
.header-actions { align-items: center; display: flex; gap: 16px; }
.header-action { background: none; border: 0; color: var(--burgundy-deep); padding: 6px 0; }
.mobile-menu-toggle { display: none; }
.hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: .8fr 1.2fr;
  min-height: 650px;
  padding: 64px 0;
}
.hero-centered {
  align-items: center;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 90px 24px 130px;
  position: relative;
  text-align: center;
}
.hero-centered::before {
  background: linear-gradient(to bottom, rgba(247,239,231,.54), rgba(247,239,231,.75) 50%, var(--cream) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
.hero-content {
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  z-index: 1;
}
.hero-centered h1 {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(60px, 7vw, 112px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 26px 0 0;
}
.hero-centered h1 em { color: var(--burgundy-deep); font-weight: 400; }
.hero-centered .hero-copy { font-size: 18px; margin: 34px auto 0; max-width: 520px; }
.hero-cta {
  background: var(--burgundy);
  color: var(--cream);
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  margin-top: 38px;
  padding: 18px 32px;
  text-transform: uppercase;
}
.hero-cta:hover { background: var(--burgundy-deep); }
.featured-hero {
  border-bottom: 1px solid var(--line);
  min-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 70px 0 120px;
  position: relative;
}
.featured-watermark {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 23vw;
  left: 50%;
  line-height: 1;
  opacity: .028;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.featured-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(55px, 7vw, 110px);
  grid-template-columns: repeat(12, 1fr);
  position: relative;
  z-index: 1;
}
.featured-product-media {
  background: var(--cream-deep);
  box-shadow: 0 30px 75px rgba(84,35,45,.09);
  grid-column: 2 / span 5;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}
.featured-product-media img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .9s ease;
  width: 100%;
}
.featured-product-media:hover img { transform: scale(1.035); }
.featured-badge {
  background: rgba(247,239,231,.92);
  font-size: 10px;
  letter-spacing: .17em;
  padding: 12px 17px;
  position: absolute;
  right: 22px;
  text-transform: uppercase;
  top: 22px;
}
.featured-product-copy { grid-column: 8 / span 5; }
.featured-kicker { align-items: center; color: var(--gold); display: flex; gap: 18px; }
.featured-kicker i { background: var(--line); display: block; height: 1px; width: 100%; }
.featured-product-copy h1 {
  color: var(--burgundy-deep);
  font-family: var(--serif);
  font-size: clamp(66px, 6vw, 94px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 26px 0 18px;
}
.featured-product-copy h1 em { color: var(--burgundy); font-weight: 400; }
.featured-price { font-family: var(--serif); font-size: 36px; margin-bottom: 22px; }
.featured-price del { color: var(--muted); font-size: 24px; }
.featured-product-copy > p { color: var(--muted); font-size: 18px; line-height: 1.75; max-width: 520px; }
.featured-notes { margin-top: 32px; }
.featured-notes > span { color: var(--muted); display: block; margin-bottom: 14px; }
.featured-notes div { display: flex; flex-wrap: wrap; gap: 10px; }
.featured-notes b { border: 1px solid var(--line); font-size: 13px; font-weight: 400; padding: 10px 16px; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.featured-buy, .featured-explore {
  align-items: center;
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: .16em;
  min-height: 52px;
  padding: 0 28px;
  text-transform: uppercase;
}
.featured-buy { background: var(--burgundy); color: var(--cream); }
.featured-buy:hover { background: var(--burgundy-deep); color: var(--cream); }
.featured-explore { border: 1px solid var(--ink); }
.featured-explore:hover { background: var(--ink); color: var(--cream); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(68px, 8vw, 136px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .78;
  margin: 22px 0 0;
}
.hero h1 em { color: var(--terracotta); font-weight: 400; }
.hero-copy { color: var(--ink-soft); font-size: 16px; line-height: 1.8; margin: 32px 0 0; max-width: 380px; }
.text-link {
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 12px;
  letter-spacing: .16em;
  margin-top: 34px;
  padding-bottom: 9px;
  text-transform: uppercase;
}
.text-link:hover { color: var(--terracotta); }
.hero-media { min-height: 585px; position: relative; }
.hero-media > img { height: 100%; object-fit: cover; position: absolute; width: 100%; }
.hero-label {
  background: rgba(53, 22, 29, .88);
  bottom: 20px;
  color: var(--cream);
  left: 20px;
  padding: 15px 18px;
  position: absolute;
}
.hero-label strong { display: block; font-family: var(--serif); font-size: 25px; font-weight: 400; margin-top: 5px; }
.category-bar { background: var(--terracotta-light); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.category-bar-inner { align-items: center; display: flex; gap: 24px; min-height: 72px; overflow-x: auto; white-space: nowrap; }
.category-label { color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.category-bar a { color: var(--ink-soft); font-size: 14px; padding-bottom: 4px; }
.category-bar a:hover { border-bottom: 1px solid var(--terracotta); color: var(--terracotta); }
.collection { padding: 108px 0; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 48px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(54px, 6vw, 86px); font-weight: 400; letter-spacing: -.04em; line-height: .85; margin: 16px 0 0; }
.section-link { color: var(--ink-soft); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.section-link:hover { color: var(--terracotta); }
.product-grid { display: grid; gap: 48px 22px; grid-template-columns: repeat(4, 1fr); }
.product-card { min-width: 0; }
.product-card-image { aspect-ratio: .78; background: var(--terracotta-light); overflow: hidden; position: relative; }
.product-card-image img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-badge { background: var(--cream); color: var(--burgundy-deep); font-family: var(--mono); font-size: 9px; left: 12px; letter-spacing: .1em; padding: 7px 9px; position: absolute; text-transform: uppercase; top: 12px; }
.product-card-category { color: var(--ink-soft); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; margin: 17px 0 6px; text-transform: uppercase; }
.product-card h3 { font-size: 15px; font-weight: 600; margin: 0; }
.product-card-price { color: var(--ink-soft); font-size: 14px; margin: 6px 0 0; }
.story { background: var(--burgundy-deep); color: var(--cream); display: grid; grid-template-columns: 1fr 1fr; }
.story-media { min-height: 570px; }
.story-media img { height: 100%; object-fit: cover; width: 100%; }
.story-copy { align-self: center; max-width: 470px; padding: 90px 11%; }
.story-copy h2 { font-family: var(--serif); font-size: clamp(55px, 6vw, 88px); font-weight: 400; letter-spacing: -.045em; line-height: .9; margin: 24px 0 0; }
.story-copy h2 em { color: var(--gold); font-weight: 400; }
.story-copy p { color: #e7dcd1; font-size: 15px; line-height: 1.85; margin: 32px 0 0; }
.newsletter { padding: 105px 0; }
.newsletter-inner { align-items: end; display: grid; gap: 48px; grid-template-columns: 1fr 1.3fr; }
.newsletter h2 { font-family: var(--serif); font-size: clamp(55px, 6vw, 84px); font-weight: 400; letter-spacing: -.04em; line-height: .9; margin: 16px 0 0; }
.newsletter-form { border-bottom: 1px solid var(--burgundy-deep); display: flex; max-width: 560px; padding-bottom: 12px; }
.newsletter-form input { background: transparent; border: 0; color: var(--burgundy-deep); flex: 1; outline: 0; }
.newsletter-form button { background: none; border: 0; color: var(--burgundy-deep); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.newsletter-form button:hover { color: var(--terracotta); }
.site-footer { background: var(--terracotta-light); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 54px 0; }
.footer-brand { font-family: var(--serif); font-size: 36px; }
.footer-copy { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin-top: 18px; max-width: 240px; }
.footer-list { list-style: none; margin: 15px 0 0; padding: 0; }
.footer-list li { color: var(--ink-soft); font-size: 14px; margin: 9px 0; }
.footer-list a:hover { color: var(--terracotta); }
.footer-bottom { border-top: 1px solid var(--line); color: #907779; display: flex; font-family: var(--mono); font-size: 9px; justify-content: space-between; letter-spacing: .12em; padding: 20px 0; text-transform: uppercase; }
.woocommerce .site-main, .woocommerce-page .site-main { padding: 70px 0; }
.woocommerce .woocommerce-breadcrumb { color: var(--ink-soft); font-size: 12px; margin: 0 0 25px; }
.woocommerce ul.products { display: grid; gap: 48px 22px; grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; margin: 0; width: auto; }
.woocommerce ul.products li.product a img { margin: 0; }
.woocommerce ul.products li.product .price { color: var(--ink-soft); font-size: 14px; }
.woocommerce span.onsale { background: var(--terracotta); font-size: 10px; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--burgundy-deep);
  border-radius: 0;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 14px 20px;
  text-transform: uppercase;
}
.woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--terracotta); color: var(--cream); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--burgundy-deep); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--terracotta); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--terracotta); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
}
.commerce-header {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 150px minmax(280px, 620px) 1fr;
  min-height: 104px;
}
.commerce-brand img { border-radius: 50%; height: 72px; object-fit: cover; transition: transform .4s ease; width: 72px; }
.commerce-brand:hover img { transform: scale(1.04); }
.header-search form { border: 1px solid var(--line); display: flex; min-height: 50px; }
.header-search input { background: transparent; border: 0; color: var(--ink); flex: 1; min-width: 0; padding: 0 20px; }
.header-search button { background: transparent; border: 0; color: var(--burgundy); font-family: var(--serif); font-size: 26px; padding: 0 18px; }
.commerce-header .header-actions { justify-content: flex-end; }
.catalog-nav { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.catalog-nav .container-alchimmie { align-items: center; display: flex; gap: clamp(28px, 4vw, 60px); justify-content: center; min-height: 54px; }
.catalog-nav a { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.catalog-nav a:hover { color: var(--burgundy); }
.category-hero { display: grid; gap: 16px; grid-template-columns: 1.55fr 1fr; min-height: 720px; padding-bottom: 24px; padding-top: 24px; }
.category-tile-stack { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.category-tile { color: var(--cream); overflow: hidden; position: relative; }
.category-tile img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform 1s cubic-bezier(.2,.7,.2,1); width: 100%; }
.category-tile:hover img { transform: scale(1.045); }
.category-tile-shade { background: linear-gradient(0deg, rgba(31,20,20,.72), rgba(31,20,20,.06) 70%); inset: 0; position: absolute; }
.category-tile-copy { bottom: 0; display: flex; flex-direction: column; left: 0; padding: clamp(28px, 4vw, 58px); position: absolute; right: 0; }
.category-tile-copy small { font-size: 10px; font-style: normal; letter-spacing: .18em; text-transform: uppercase; }
.category-tile-copy strong { font-family: var(--serif); font-size: clamp(42px, 5vw, 78px); font-weight: 400; line-height: 1; margin: 12px 0 22px; }
.category-tile-stack .category-tile-copy strong { font-size: clamp(36px, 3vw, 52px); margin: 8px 0 14px; }
.category-tile-copy i { border-bottom: 1px solid rgba(255,255,255,.8); font-size: 10px; font-style: normal; letter-spacing: .16em; padding-bottom: 5px; text-transform: uppercase; width: fit-content; }
.spotlight { padding: 98px 0 40px; }
.store-benefits { background: var(--cream-deep); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.store-benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.store-benefits-grid div { display: flex; flex-direction: column; min-height: 170px; padding: 46px 30px; }
.store-benefits-grid div + div { border-left: 1px solid var(--line); }
.store-benefits-grid strong { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.store-benefits-grid span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.screen-reader-text { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { background: none; border: 0; display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
  .header-inner { height: 80px; }
  .commerce-header { gap: 18px; grid-template-columns: auto 1fr auto; min-height: 82px; }
  .commerce-brand { justify-self: center; }
  .commerce-brand img { height: 52px; width: 52px; }
  .commerce-header .header-search, .catalog-nav { display: none; }
  .commerce-header .header-actions .header-action:not(:last-child) { display: none; }
  .category-hero { grid-template-columns: 1fr; min-height: 0; }
  .category-tile-main { min-height: 570px; }
  .category-tile-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 360px; }
  .store-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .store-benefits-grid div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .store-benefits-grid div:nth-child(4) { border-top: 1px solid var(--line); }
  .hero { gap: 32px; grid-template-columns: 1fr; padding: 48px 0; }
  .featured-hero { padding: 45px 0 85px; }
  .featured-hero-grid { gap: 54px; grid-template-columns: 1fr; }
  .featured-product-media, .featured-product-copy { grid-column: 1; }
  .featured-product-media { aspect-ratio: 4 / 5; min-height: 0; width: min(100%, 560px); }
  .featured-product-copy { width: min(100%, 620px); }
  .hero-media { min-height: 500px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story-media { min-height: 420px; }
  .story-copy { padding: 72px 8%; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .container-alchimmie { width: calc(100% - 32px); }
  .announcement { font-size: 8px; letter-spacing: .1em; }
  .brand img { height: 48px; width: 48px; }
  .header-actions { gap: 8px; }
  .header-action { font-size: 9px; }
  .commerce-header { min-height: 78px; }
  .commerce-header .header-actions { gap: 0; }
  .category-hero { gap: 10px; padding-top: 10px; width: 100%; }
  .category-tile-main { min-height: 470px; }
  .category-tile-stack { gap: 10px; grid-template-columns: 1fr; grid-template-rows: 300px 300px; }
  .category-tile-copy { padding: 28px 24px; }
  .category-tile-copy strong, .category-tile-stack .category-tile-copy strong { font-size: 44px; }
  .spotlight { padding-top: 72px; }
  .store-benefits-grid { grid-template-columns: 1fr; }
  .store-benefits-grid div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero h1 { font-size: clamp(64px, 20vw, 90px); }
  .hero-centered { min-height: calc(100vh - 110px); padding: 70px 18px 105px; }
  .hero-centered h1 { font-size: clamp(50px, 14vw, 72px); }
  .hero-centered .hero-copy { font-size: 16px; }
  .featured-hero { padding: 24px 0 70px; }
  .featured-product-media { aspect-ratio: auto; height: 340px; }
  .featured-product-copy h1 { font-size: clamp(52px, 15vw, 70px); }
  .featured-product-copy > p { font-size: 16px; }
  .featured-actions { flex-direction: column; }
  .featured-buy, .featured-explore { width: 100%; }
  .hero-media { min-height: 420px; }
  .category-bar-inner { gap: 18px; }
  .collection, .newsletter { padding: 76px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .section-heading h2, .newsletter h2 { font-size: 58px; }
  .product-grid, .woocommerce ul.products { gap: 42px 12px; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}