/* SoBeauty Cosmetics : feuille de style unique */

:root {
  --blush: #F6E3DF;      /* fond principal, rose des étiquettes */
  --petal: #EED0CA;      /* sections contrastées */
  --porcelain: #FFFAF8;  /* panneaux */
  --cacao: #4B2427;      /* texte, couleur du logo */
  --cacao-soft: #75494A; /* texte secondaire */
  --rosegold: #A86E58;   /* filets, liens, or rose */
  --papaya: #E07A3F;     /* repère des étapes du rituel */
  --line: rgba(75, 36, 39, 0.16);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-logo: "Cinzel", "Cormorant Garamond", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --arch: 999px 999px 18px 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--blush);
  color: var(--cacao);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 2px solid var(--cacao); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--cacao); color: var(--porcelain); padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--cacao); color: var(--porcelain);
  border: 0; border-radius: 999px;
  font: 500 1rem/1 var(--f-body); letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #5d2e31; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 0.94rem; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.link { color: var(--rosegold); text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 500; }
.link:hover { color: var(--cacao); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--blush) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: auto; height: 50px; }
.brand-word { font: 500 1.15rem/1 var(--f-logo); letter-spacing: 0.08em; display: flex; flex-direction: column; }
.brand-word small { font-size: 0.56rem; letter-spacing: 0.42em; margin-top: 5px; color: var(--cacao-soft); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--cacao-soft); }
.nav a:hover { color: var(--cacao); }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- Héros ---------- */
.hero { padding: clamp(20px, 4vw, 56px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero-visual img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 60%;
  border-radius: 280px 280px 18px 18px;
}
@media (max-width: 700px) { .hero-visual img { aspect-ratio: 4 / 3; border-radius: 160px 160px 14px 14px; } }

h1 { margin: 0 0 20px; }
.h1-main { display: block; font-size: clamp(3rem, 2rem + 4.4vw, 5.4rem); line-height: 0.95; font-weight: 400; letter-spacing: -0.02em; }
.h1-sub { display: block; margin-top: 14px; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); font-style: italic; color: var(--rosegold); line-height: 1.25; }
.lede { font-size: 1.12rem; color: var(--cacao-soft); max-width: 34em; }

/* ---------- Bloc d'achat ---------- */
.buy {
  margin-top: 28px; padding: 24px;
  background: var(--porcelain); border-radius: 18px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(75, 36, 39, 0.45);
}
.buy-head { display: none; }
.buy-compact .buy-head { display: block; }
.buy-title { font: 500 1.6rem/1.1 var(--f-display); margin: 0; }
.buy-sub { color: var(--cacao-soft); font-size: 0.95rem; margin: 4px 0 14px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 4px; }
.tva { font-size: 0.8rem; color: var(--cacao-soft); margin: 0 0 18px; }
.price-now { font: 500 2.4rem/1 var(--f-display); }
.price-old { color: var(--cacao-soft); font-size: 1.1rem; }
.price-note { font-size: 0.9rem; color: var(--cacao-soft); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; color: var(--cacao); cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--blush); }
.qty input { width: 2.2em; border: 0; background: none; text-align: center; font: 500 1.05rem var(--f-body); color: var(--cacao); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn-buy { flex: 1 1 200px; }
.buy-error { margin: 12px 0 0; color: #9b2c2c; font-size: 0.95rem; }
.assurances { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.92rem; color: var(--cacao-soft); }
.assurances li { display: flex; gap: 10px; align-items: center; }
.assurances svg { color: var(--rosegold); }

/* ---------- Titres de section ---------- */
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--cacao-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Rituel (élément signature) ---------- */
.ritual { background: var(--petal); padding: clamp(64px, 9vw, 120px) 0; }
.ritual-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .ritual-grid { grid-template-columns: minmax(280px, 0.8fr) 1.4fr; gap: 56px; align-items: start; } }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { /* le fil qui relie les étapes */
  content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 1px; background: var(--rosegold); opacity: .45;
}
.step {
  position: relative; width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 14px 12px 14px 0; background: none; border: 0; text-align: left; color: var(--cacao);
  font: inherit; cursor: pointer; border-radius: 12px;
}
.step-num {
  display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 50%;
  background: var(--petal); border: 1px solid var(--rosegold);
  font: 500 1.3rem/1 var(--f-display); color: var(--rosegold);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.step-text { display: flex; flex-direction: column; }
.step-gesture { font: 500 1.5rem/1.15 var(--f-display); }
.step-product { font-size: 0.9rem; color: var(--cacao-soft); }
.step:hover .step-num { background: var(--porcelain); }
.step[aria-selected="true"] .step-num { background: var(--papaya); border-color: var(--papaya); color: var(--porcelain); }
.step[aria-selected="true"] .step-gesture { font-style: italic; }

.stage { background: var(--porcelain); border-radius: 24px; padding: clamp(20px, 3vw, 40px); min-height: 100%; }
.stage-panel { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .stage-panel { grid-template-columns: 0.9fr 1fr; gap: 36px; } }
.stage-panel[hidden] { display: none; }
.stage-panel:not([hidden]) { animation: stage-in .45s ease both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage-img { display: grid; place-items: center; min-height: 300px; }
.stage-img img { max-height: 400px; width: auto; border-radius: 16px; box-shadow: 0 22px 40px -26px rgba(75, 36, 39, .55); }
.stage-step { color: var(--papaya); font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.stage-text h3 { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem); margin-bottom: 12px; }
.stage-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stage-meta span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; color: var(--cacao-soft); }

@media (max-width: 899px) {
  /* étapes en ruban horizontal sur mobile */
  .steps { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps::before { left: var(--gutter); right: var(--gutter); top: 35px; bottom: auto; width: auto; height: 1px; }
  .steps li { scroll-snap-align: start; flex: none; }
  .step { flex-direction: column; gap: 8px; padding: 14px 8px; width: 108px; text-align: center; align-items: center; }
  .step-gesture { font-size: 1.1rem; }
  .step-product { display: none; }
}

/* ---------- Ingrédients ---------- */
.ingredients { padding: clamp(64px, 9vw, 120px) 0; }
.table-scroll { overflow-x: auto; border-radius: 18px; background: var(--porcelain); }
.ing-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.ing-table th, .ing-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ing-table tbody tr:last-child > * { border-bottom: 0; }
.ing-table thead th { font: 500 1.08rem/1.2 var(--f-display); text-align: center; vertical-align: bottom; padding-top: 22px; }
.ing-table thead th:first-child { text-align: left; font-family: var(--f-body); font-size: 0.88rem; color: var(--cacao-soft); font-weight: 400; }
.ing-table thead a { text-decoration: none; }
.ing-table thead a:hover { color: var(--rosegold); }
.ing-table tbody th { text-align: left; font-weight: 400; width: 38%; }
.ing-name { display: block; font: 500 1.25rem/1.2 var(--f-display); }
.ing-role { display: block; font-size: 0.88rem; color: var(--cacao-soft); }
.ing-table td { text-align: center; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--rosegold); }
.ing-table tbody tr:nth-child(-n+3) .dot { background: var(--papaya); } /* le trio signature */
.ing-list { display: none; list-style: none; margin: 0; padding: 0 20px; background: var(--porcelain); border-radius: 18px; }
.ing-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ing-list li:last-child { border-bottom: 0; }
.ing-where { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--rosegold); font-weight: 500; }
@media (max-width: 759px) { .table-scroll { display: none; } .ing-list { display: block; } }

/* ---------- Contenu du coffret ---------- */
.contents { background: var(--porcelain); padding: clamp(64px, 9vw, 120px) 0; }
.contents-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .contents-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contents-photo { margin: 0; }
.contents-photo img { border-radius: 18px; }
.contents-photo figcaption { font-size: 0.9rem; color: var(--cacao-soft); margin-top: 12px; }
.contents-list ul { list-style: none; margin: 0; padding: 0; }
.contents-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contents-list li:last-child { border-bottom: 1px solid var(--line); }
.contents-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-decoration: none; }
.contents-list a:hover .cl-name { color: var(--rosegold); }
.cl-name { font: 500 1.45rem/1.2 var(--f-display); transition: color .2s; }
.cl-size { font-size: 0.92rem; color: var(--cacao-soft); white-space: nowrap; }
.contents-list p { margin: 4px 0 0; color: var(--cacao-soft); font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 9vw, 120px) 0; }
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 72px; } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 500 1.3rem/1.3 var(--f-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--rosegold); border-bottom: 1.5px solid var(--rosegold); transform: rotate(45deg); transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { color: var(--cacao-soft); max-width: 40em; padding-bottom: 8px; }

/* ---------- Clôture ---------- */
.closing { background: var(--cacao); color: var(--blush); padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.closing-logo { width: min(420px, 80vw); height: auto; margin: 0 auto 28px; }
.closing p { color: color-mix(in srgb, var(--blush) 78%, transparent); max-width: 36em; margin: 0 auto 28px; }
.closing .btn { background: var(--blush); color: var(--cacao); }
.closing .btn:hover { background: var(--porcelain); }

/* ---------- Barre d'achat mobile ---------- */
.sticky-buy {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; background: var(--porcelain); border-radius: 999px;
  box-shadow: 0 12px 32px -12px rgba(75, 36, 39, .5);
  transform: translateY(0); transition: transform .3s ease, opacity .3s ease;
}
.sticky-buy[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.sticky-buy div { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-buy strong { font: 500 1.1rem var(--f-display); }
.sticky-buy span { font-size: 0.88rem; color: var(--cacao-soft); }
@media (min-width: 960px) { .sticky-buy { display: none !important; } }

/* ---------- Fiche soin ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; margin: 0; font-size: 0.9rem; color: var(--cacao-soft); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.product-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } .product-visual { position: sticky; top: 100px; } }
.product-img { display: grid; place-items: center; background: var(--petal); border-radius: var(--arch); padding: clamp(72px, 10vw, 120px) 24px 40px; }
.product-img img { max-height: 460px; width: auto; border-radius: 16px; box-shadow: 0 24px 44px -26px rgba(75, 36, 39, .55); }
.product-step { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--cacao-soft); }
.product-step span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--papaya); color: var(--porcelain); font: 500 1.1rem/1 var(--f-display); }
.product-copy h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 400; line-height: 1.02; }
.product-copy h2 { font-size: 1.6rem; margin-top: 36px; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits svg { color: var(--rosegold); margin-top: 3px; }
.in-bundle { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.in-bundle > p { color: var(--cacao-soft); }
.in-bundle .buy { margin-top: 16px; }
.step-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; }
.step-nav a { display: flex; flex-direction: column; text-decoration: none; font: 500 1.35rem/1.2 var(--f-display); padding: 18px 0; border-top: 1px solid var(--cacao); min-width: 40%; }
.step-nav small { font: 400 0.85rem var(--f-body); color: var(--cacao-soft); margin-bottom: 4px; }
.step-nav-next { text-align: right; margin-left: auto; }
.step-nav a:hover { color: var(--rosegold); }

/* ---------- Pages texte ---------- */
.prose-wrap { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 120px); }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.8rem); font-weight: 400; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose a:not(.btn) { color: var(--rosegold); }
.todo { background: var(--papaya); color: #fff; padding: 0 6px; border-radius: 4px; font-size: .85em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petal); padding: 64px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-brand { font: 500 1.2rem var(--f-logo); letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-tag { font: italic 1.15rem var(--f-display); color: var(--cacao-soft); }
.footer-title { font-weight: 500; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--cacao-soft); }
.site-footer a:hover { color: var(--cacao); text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--cacao-soft); font-size: 0.85rem; }
@media (max-width: 959px) { body:has(.sticky-buy) .site-footer { padding-bottom: 96px; } }
