@font-face {
  font-family: "Orange Avenue Outline";
  src: url("uploads/OrangeAvenueOutlineDEMO-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orange Avenue";
  src: url("uploads/OrangeAvenueDEMO-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #16140f;
  --soft: #736c60;
  --line: rgba(22, 20, 15, 0.12);
  --accent: #b89b6a;
  --font-display: "Orange Avenue", "Didot", serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
input, button { font-family: inherit; }

/* ---- loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader__bar {
  width: min(180px, 40vw);
  height: 1px;
  background: rgba(22, 20, 15, 0.15);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

/* ---- curseur ---- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 2000;
  transform: translate(-50%, -50%);
}
.cursor { width: 6px; height: 6px; background: var(--ink); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(22, 20, 15, 0.35);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
body.has-ring .cursor-ring { width: 52px; height: 52px; border-color: rgba(22, 20, 15, 0.5); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }
@media (pointer: fine) {
  body, body * { cursor: none !important; }
}

/* ---- header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.3rem 2.2rem;
  background: rgba(246, 243, 236, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.nav { display: flex; gap: 2rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a { position: relative; color: var(--soft); transition: color 0.25s, transform 0.25s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.55rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover { transform: translateY(-2px); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
}
.cart-btn__count {
  min-width: 1.1rem; height: 1.1rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.7rem;
}
@media (max-width: 720px) { .nav { display: none; } }

/* ---- effet balle : limité au hero, il disparaît naturellement au scroll ---- */
#scene {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  pointer-events: none;
}
#scene canvas { display: block; width: 100%; height: 100%; }

/* ---- sections ---- */
.page { position: relative; z-index: 1; }
.section { position: relative; padding: 7rem 4rem; }
.section__dark { background: rgba(22, 20, 15, 0.92); color: var(--bg); }

@media (max-width: 720px) { .section { padding: 5rem 1.5rem; } }

.eyebrow { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--soft); margin: 0; }
.section__dark .eyebrow { color: rgba(246, 243, 236, 0.6); }

/* hero : laisse voir la balle en grand */
.hero { min-height: 100vh; padding: 0; display: flex; }
.hero__box { position: relative; width: 100%; min-height: 100vh; padding: 7rem 4rem 3.5rem; }
.hero__eyebrow { position: absolute; top: 6.4rem; left: 4rem; }
.hero__cta { position: absolute; bottom: 3.5rem; left: 4rem; }
.hero__hint {
  position: absolute; right: 4rem; bottom: 3.6rem;
  display: flex; align-items: center; gap: 1rem;
  margin: 0; color: var(--soft); font-size: 0.78rem; line-height: 1.6;
  letter-spacing: 0.08em; text-align: right;
}
.hero__hint-icon { display: block; width: 4.2rem; height: 4.2rem; color: var(--accent); flex: 0 0 auto; }
.hero__hint-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hint-icon__orbit { stroke: currentColor; stroke-width: 0.8; stroke-dasharray: 2 5; transform-box: fill-box; transform-origin: center; animation: hintOrbit 8s linear infinite; }
.hint-icon__cursor { fill: var(--bg); stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: hintCursor 2.8s ease-in-out infinite; }
.hint-icon__sparkle { stroke: currentColor; stroke-width: 1; stroke-linecap: round; animation: hintSparkle 2.2s ease-in-out infinite; }
@keyframes hintOrbit { to { transform: rotate(360deg); } }
@keyframes hintCursor { 0%, 100% { transform: translate(0, 1px) rotate(-5deg); } 50% { transform: translate(3px, -3px) rotate(4deg); } }
@keyframes hintSparkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }
@media (max-width: 720px) {
  .hero__eyebrow { left: 1.5rem; top: 5.4rem; }
  .hero__cta { left: 1.5rem; bottom: 2.5rem; }
  .hero__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hint-icon__orbit, .hint-icon__cursor, .hint-icon__sparkle { animation: none; }
}

/* boutons */
.btn {
  display: inline-block; padding: 1rem 2.2rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22, 20, 15, 0.18); }
.btn--block { width: 100%; text-align: center; }

/* ---------- collection ---------- */
.collection, .rituel, .apropos, .newsletter, .valeurs, .quote {
  background: var(--bg);
}

.section-head { margin-bottom: 3rem; }
.section-head__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0.6rem 0 0; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card { position: relative; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-8px); }
.card__tag { position: absolute; top: 1rem; left: 1rem; z-index: 3; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.card__img {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, #fff, #efe9dd);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .4s ease;
}
.card:hover .card__img { box-shadow: 0 20px 38px rgba(22,20,15,.11); }
.card__photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter .4s ease; }
.card:hover .card__photo { transform: scale(1.045); filter: saturate(1.04); }
.card__body { padding: 1.1rem 0 0; }
.card__cat { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); }
.card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin: 0.3rem 0 0.4rem; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.card__price { font-size: 1rem; }
.card__price s { color: var(--soft); font-size: 0.82rem; margin-right: 0.45rem; }
.card__btn {
  border: 1px solid var(--ink); background: none; color: var(--ink); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.6rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.card__btn:hover { background: var(--ink); color: var(--bg); }
.card__btn.card__added { background: var(--ink); color: var(--bg); }

/* ---------- rituel ---------- */
.rituel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
@media (max-width: 800px) { .rituel-grid { grid-template-columns: 1fr; } }
.rituel__num { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; }
.rituel__item h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; margin: 0.4rem 0 0.8rem; }
.rituel__item { transition: transform .35s ease; }
.rituel__item:hover { transform: translateY(-6px); }
.rituel__item h3 { transition: color .25s ease; }
.rituel__item:hover h3 { color: var(--accent); }
.rituel__item p { color: var(--soft); line-height: 1.7; margin: 0; max-width: 30ch; }

/* ---------- valeurs / engagement ---------- */
.valeurs { text-align: center; }
.valeurs__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.14; margin: 0 0 2.4rem; }
.valeurs-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.valeurs-grid span {
  display: inline-block; padding: 0.8rem 1.6rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.valeurs-grid span:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-3px); }

/* ---------- citation ---------- */
.quote { text-align: center; }
.quote__text { font-family: var(--font-display); font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.2; margin: 0; }
.quote__by { color: var(--soft); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; margin: 1.6rem 0 0; }

/* ---------- apropos ---------- */
.apropos__text { max-width: 46ch; color: var(--soft); line-height: 1.85; margin: 0; font-size: 1.02rem; }

/* ---------- newsletter ---------- */
.newsletter__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; margin: 0.6rem 0 0.8rem; }
.newsletter__text { color: var(--soft); margin: 0 0 2rem; max-width: 40ch; line-height: 1.7; }
.newsletter__form { display: flex; gap: 0.8rem; flex-wrap: wrap; max-width: 480px; }
.newsletter__form input {
  flex: 1; min-width: 220px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 0.95rem;
}
.newsletter__form input:focus { outline: none; border-color: var(--ink); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: 3rem 4rem 7rem; background: var(--bg); }
.footer__brand p { color: var(--soft); margin: 0.4rem 0 0; }
.footer__alpha { position: absolute; right: -1rem; bottom: -3rem; font-family: var(--font-display); font-size: 11rem; color: rgba(22, 20, 15, 0.06); line-height: 1; user-select: none; }
.footer__meta { position: absolute; left: 4rem; bottom: 2rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }

/* ---------- panier ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(22, 20, 15, 0.4);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { 
  position: fixed; top: 0; right: 0; z-index: 160; width: min(420px, 94vw); height: 100%;
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { display: flex; align-items: baseline; gap: .6rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.drawer__head h2 small { font-family: var(--font-body); color: var(--soft); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.drawer__close { border: 0; background: none; cursor: pointer; color: var(--ink); }
.drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.drawer-empty { color: var(--soft); text-align: center; padding: 3rem 0; }
.cart-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 66px; height: 86px; border-radius: 5px; overflow: hidden; background: #f1ece3; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 500; margin: 0 0 0.15rem; }
.cart-item__price { color: var(--soft); font-size: 0.85rem; }
.cart-item__price-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.cart-item__price-row p { margin: 0; }
.cart-item__price-row strong { font-size: .88rem; font-weight: 500; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { border: 0; background: none; cursor: pointer; padding: 0.25rem 0.7rem; font-size: 1rem; color: var(--ink); }
.qty span { min-width: 1.4rem; text-align: center; font-size: 0.9rem; }
.remove { border: 0; background: none; color: var(--soft); cursor: pointer; font-size: 0.75rem; text-decoration: underline; }
.drawer__foot { padding: 1.4rem 1.6rem 1.8rem; border-top: 1px solid var(--line); }
.shipping-progress { padding: 0 0 1.2rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.shipping-progress__copy { display: flex; justify-content: space-between; gap: 1rem; color: var(--soft); font-size: .72rem; line-height: 1.45; }
.shipping-progress__copy span:first-child { max-width: 28ch; }
.shipping-progress__copy span:last-child { color: var(--ink); font-weight: 500; }
.shipping-progress__track { height: 3px; margin-top: .7rem; background: #ebe5db; border-radius: 999px; overflow: hidden; }
.shipping-progress__track span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .35s ease; }
.drawer__line, .drawer__total { display: flex; justify-content: space-between; align-items: center; }
.drawer__line { margin-bottom: .65rem; color: var(--ink); font-size: .86rem; }
.drawer__line--muted { color: var(--soft); }
.drawer__total { font-size: 1.08rem; font-weight: 600; margin: .95rem 0 1.2rem; }
#goCheckout:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- commande (modal) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 180; background: rgba(22, 20, 15, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 190; transform: translate(-50%, -46%) scale(0.98);
  width: min(440px, 92vw); max-height: 90vh; overflow: auto; padding: 2.2rem 2.4rem;
  background: var(--surface); border-radius: 12px; box-shadow: 0 40px 90px rgba(22, 20, 15, 0.3);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal__kicker { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.modal__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0.4rem 0 1.4rem; }
.modal label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0 0 1.1rem; }
.modal label input {
  width: 100%; margin-top: 0.4rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.95rem; background: transparent; color: var(--ink); text-transform: none;
}
.modal label input:focus { outline: none; border-color: var(--ink); }
.modal__total { display: flex; justify-content: space-between; font-size: 1.05rem; margin: 0.4rem 0 1.4rem; }
.modal__total strong { font-weight: 600; }
.modal__cancel { width: 100%; margin-top: 0.8rem; border: 0; background: none; color: var(--soft); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }
.modal__msg { color: var(--soft); line-height: 1.6; }
.modal__ref { font-size: 0.9rem; margin: 0.8rem 0 1.6rem; }
.modal__loading { text-align: center; padding: 2.5rem 0; }
.modal__loading p { color: var(--soft); }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal__success { text-align: center; }
.modal__check { width: 46px; height: 46px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.modal__check i { width: 18px; height: 9px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) translate(0, -2px); }
.modal__success .modal__title { margin-bottom: 0.6rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.8rem; z-index: 210; transform: translate(-50%, 20px);
  min-width: 260px; max-width: 92vw; padding: 1rem 1.4rem; text-align: center;
  background: var(--ink); color: var(--bg); border-radius: 12px; box-shadow: 0 20px 50px rgba(22, 20, 15, 0.3);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast small { display: block; margin-top: 0.25rem; opacity: 0.7; font-size: 0.8rem; }

body.no-scroll { overflow: hidden; }

/* ---------- responsive polish ---------- */
@media (max-width: 720px) {
  .header { padding: 1rem 1.25rem; }
  .logo { font-size: 1.7rem; }
  .cart-btn svg { width: 20px; height: 20px; }

  .section { padding-right: 1.25rem; padding-left: 1.25rem; }
  .hero__box { padding: 5.7rem 1.25rem 2.2rem; }
  .hero__eyebrow { top: 5rem; left: 1.25rem; }
  .hero__cta { left: 1.25rem; bottom: 2.2rem; max-width: calc(100% - 2.5rem); padding: .9rem 1.35rem; font-size: .7rem; }

  .footer { min-height: 190px; padding: 2.5rem 1.25rem 5.8rem; }
  .footer__brand p { max-width: 22ch; line-height: 1.5; }
  .footer__meta { left: 1.25rem; bottom: 1.5rem; max-width: calc(100% - 2.5rem); line-height: 1.45; }
  .footer__alpha { right: -.4rem; bottom: -2.1rem; font-size: 8rem; }

  .drawer__head, .drawer__foot { padding-right: 1.25rem; padding-left: 1.25rem; }
  .drawer__items { padding-right: 1.25rem; padding-left: 1.25rem; }
  .modal { width: min(92vw, 420px); padding: 1.7rem 1.35rem; }
}

@media (max-width: 480px) {
  .btn { letter-spacing: .1em; }
  .newsletter__form { display: grid; grid-template-columns: 1fr; max-width: none; }
  .newsletter__form input, .newsletter__form .btn { width: 100%; min-width: 0; }
}
