/* =========================================================================
   MAISON TAYA — Feuille de style principale
   Palette neutre et apaisante · Or discret · Compatible LTR / RTL
   ========================================================================= */

/* ---------- 1. Jetons de design ---------- */
:root {
  /* Neutres */
  --ivoire: #fbf9f5;
  --ivoire-2: #f6f1e9;
  --sable: #f0e8dc;
  --lin: #e5d9c8;
  --taupe: #b3a18c;
  --taupe-clair: #cbbca8;
  --brun: #6b5d4f;
  --encre: #2b2724;
  --encre-doux: #4a423b;

  /* Or */
  --or: #c3a267;
  --or-clair: #e2caa0;
  --or-fonce: #a1834b;
  --or-voile: rgba(195, 162, 103, 0.18);

  /* Fonctionnels */
  --blanc: #ffffff;
  --whatsapp: #1f7a5c;
  --whatsapp-fonce: #17604a;

  /* Typographie */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ls-wide: 0.22em;
  --ls-mid: 0.12em;

  /* Rythme */
  --max: 1280px;
  --max-lecture: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;
  --radius-img: 3px;

  /* Ombres */
  --ombre-douce: 0 1px 2px rgba(43, 39, 36, 0.04), 0 8px 30px rgba(43, 39, 36, 0.06);
  --ombre-forte: 0 2px 6px rgba(43, 39, 36, 0.06), 0 20px 60px rgba(43, 39, 36, 0.12);

  --t: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-court: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[dir="rtl"] {
  --font-display: "Amiri", "Cormorant Garamond", serif;
  --font-body: "Tajawal", "Segoe UI", sans-serif;
  --ls-wide: 0.06em;
  --ls-mid: 0.03em;
}

/* ---------- 2. Réinitialisation ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir="rtl"] body { font-weight: 400; line-height: 1.95; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--or-voile); color: var(--encre); }

:focus-visible {
  outline: 2px solid var(--or-fonce);
  outline-offset: 3px;
}

/* ---------- 3. Typographie ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

[dir="rtl"] .display { line-height: 1.45; letter-spacing: 0; }

.t-xxl { font-size: clamp(2.75rem, 7.5vw, 5.75rem); }
.t-xl  { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.t-l   { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
.t-m   { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--or-fonce);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: clamp(24px, 4vw, 46px);
  height: 1px;
  background: var(--or);
  flex: none;
}

[dir="rtl"] .eyebrow { text-transform: none; font-size: 0.82rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--encre-doux);
  line-height: 1.85;
}

.muted { color: var(--brun); }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--encre);
  max-width: 22ch;
}

[dir="rtl"] .quote { font-style: normal; max-width: 26ch; }

/* ---------- 4. Structure ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: 860px; }

section { position: relative; }

.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }

.bg-ivoire { background: var(--ivoire); }
.bg-sable  { background: var(--ivoire-2); }
.bg-lin    { background: var(--sable); }
.bg-encre  { background: var(--encre); color: var(--ivoire); }
.bg-encre .muted { color: var(--taupe-clair); }
.bg-encre .eyebrow { color: var(--or-clair); }
.bg-encre .eyebrow::before { background: var(--or-clair); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lin) 20%, var(--lin) 80%, transparent);
  border: 0;
  margin: 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.1rem; }

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--encre);
  color: var(--ivoire);
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip:focus { inset-inline-start: 0; }

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  line-height: 1;
  transition: background var(--t-court), color var(--t-court), border-color var(--t-court), transform var(--t-court);
  white-space: nowrap;
}

[dir="rtl"] .btn { text-transform: none; font-size: 0.9rem; }

.btn:hover { transform: translateY(-1px); }

.btn-dark { background: var(--encre); color: var(--ivoire); }
.btn-dark:hover { background: #1c1917; }

.btn-gold { background: var(--or); color: #fff; }
.btn-gold:hover { background: var(--or-fonce); }

.btn-line {
  background: transparent;
  border-color: var(--taupe);
  color: var(--encre);
}
.btn-line:hover { border-color: var(--encre); background: rgba(255,255,255,0.5); }

.bg-encre .btn-line { border-color: rgba(226, 202, 160, 0.5); color: var(--ivoire); }
.bg-encre .btn-line:hover { border-color: var(--or-clair); background: rgba(255,255,255,0.06); }

.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-fonce); }
.btn-wa svg { width: 17px; height: 17px; fill: currentColor; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.75rem 1.35rem; font-size: 0.68rem; }
[dir="rtl"] .btn-sm { font-size: 0.82rem; }

.link-under {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  color: var(--encre);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--or);
  transition: gap var(--t-court), color var(--t-court);
}
.link-under:hover { gap: 0.95rem; color: var(--or-fonce); }
.link-under .arrow { transition: transform var(--t-court); }
[dir="rtl"] .link-under { text-transform: none; font-size: 0.9rem; }
[dir="rtl"] .link-under .arrow { transform: scaleX(-1); }

/* ---------- 6. En-tête ---------- */
.announce {
  background: var(--encre);
  color: var(--sable);
  font-size: 0.68rem;
  letter-spacing: var(--ls-mid);
  text-align: center;
  padding: 0.65rem var(--gutter);
  position: relative;
  z-index: 60;
}
[dir="rtl"] .announce { font-size: 0.8rem; letter-spacing: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-court), background var(--t-court);
}

.header.is-stuck { border-bottom-color: var(--lin); }

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.logo img, .logo svg { width: 38px; height: 38px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
}

.logo-sub {
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-top: 0.32rem;
}

[dir="rtl"] .logo-name { letter-spacing: 0; text-transform: none; font-size: 1.35rem; }
[dir="rtl"] .logo-sub { letter-spacing: 0.2em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}

.nav a {
  font-size: 0.73rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  color: var(--encre-doux);
  position: relative;
  padding-block: 0.4rem;
  transition: color var(--t-court);
}

[dir="rtl"] .nav a { text-transform: none; font-size: 0.95rem; }

.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width var(--t-court);
}

.nav a:hover { color: var(--encre); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--encre); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--lin);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang a {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--brun);
  transition: background var(--t-court), color var(--t-court);
}

.lang a:hover { color: var(--encre); }
.lang a[aria-current="true"] { background: var(--encre); color: var(--ivoire); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lin);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
}

.burger span {
  position: absolute;
  inset-inline: 11px;
  height: 1px;
  background: var(--encre);
  transition: transform var(--t-court), opacity var(--t-court);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }

body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ivoire);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--t-court), transform var(--t-court);
    z-index: 40;
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { font-size: 1rem; letter-spacing: var(--ls-wide); }
  [dir="rtl"] .nav a { font-size: 1.25rem; }
  .header-actions .btn { display: none; }
}

/* ---------- 7. Héros ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(226, 202, 160, 0.34) 0%, rgba(226, 202, 160, 0) 58%),
    radial-gradient(90% 80% at 10% 92%, rgba(179, 161, 140, 0.22) 0%, rgba(179, 161, 140, 0) 60%),
    linear-gradient(168deg, var(--ivoire) 0%, var(--ivoire-2) 45%, var(--sable) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 420px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero h1 { margin-bottom: 1.6rem; }

.hero-text {
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--encre-doux);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--lin);
}

.hero-stats div { min-width: 92px; }

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--encre);
}

.hero-stats span {
  font-size: 0.68rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  color: var(--brun);
}
[dir="rtl"] .hero-stats span { text-transform: none; font-size: 0.85rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: linear-gradient(150deg, var(--lin), var(--sable) 55%, var(--ivoire-2));
  box-shadow: var(--ombre-forte);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Embleme affiche tant que la photo n'est pas ajoutee */
.emblem {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.42;
  pointer-events: none;
}
.emblem img { width: 44%; max-width: 190px; height: auto; }
.hero-visual .emblem img { width: 38%; }
.ig-cell .emblem { position: static; }
.ig-cell .emblem img { width: 34%; opacity: 0.8; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16 / 11; max-height: 42vh; }
}

/* ---------- 8. Promesses ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--lin);
  border-block: 1px solid var(--lin);
}

.promise {
  background: var(--ivoire);
  padding: clamp(1.75rem, 3vw, 2.6rem) clamp(1.25rem, 2.2vw, 2rem);
}

.promise svg {
  width: 26px;
  height: 26px;
  stroke: var(--or-fonce);
  fill: none;
  stroke-width: 1.1;
  margin-bottom: 1.1rem;
}

.promise h3 {
  font-size: 0.78rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
[dir="rtl"] .promise h3 { text-transform: none; font-size: 1rem; }

.promise p { font-size: 0.88rem; color: var(--brun); line-height: 1.7; }
[dir="rtl"] .promise p { font-size: 0.95rem; }

@media (max-width: 860px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .promises { grid-template-columns: 1fr; } }

/* ---------- 9. Blocs deux colonnes ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: linear-gradient(150deg, var(--sable), var(--lin));
}

.split-visual img { width: 100%; height: 100%; object-fit: cover; }

.split-quote {
  margin-block: 2rem;
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid var(--or);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { aspect-ratio: 16 / 11; }
}

/* ---------- 10. Univers ---------- */
.univers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.univers-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ivoire);
  border: 1px solid var(--lin);
  border-radius: var(--radius-img);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.univers-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
  border-color: var(--taupe-clair);
}

.univers-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(155deg, var(--sable), var(--lin) 60%, var(--taupe-clair));
}

.univers-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.univers-card:hover .univers-media img { transform: scale(1.05); }

.univers-media .emblem {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.45;
}
.univers-media .emblem svg { width: 46%; }

.univers-body {
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.univers-body h3 { font-family: var(--font-display); font-size: 1.6rem; }

.univers-tag {
  font-size: 0.66rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--or-fonce);
}
[dir="rtl"] .univers-tag { text-transform: none; font-size: 0.85rem; letter-spacing: 0; }

.univers-body p { font-size: 0.9rem; color: var(--brun); }

.univers-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--lin);
  font-size: 0.7rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  color: var(--brun);
}
[dir="rtl"] .univers-foot { text-transform: none; font-size: 0.85rem; }

.univers-card .stretch::after { content: ""; position: absolute; inset: 0; }

/* ---------- 11. Filtres ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--lin);
}

.filter-group { display: flex; flex-direction: column; gap: 0.7rem; }

.filter-label {
  font-size: 0.64rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--or-fonce);
}
[dir="rtl"] .filter-label { text-transform: none; font-size: 0.82rem; letter-spacing: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.chip {
  background: transparent;
  border: 1px solid var(--lin);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--brun);
  transition: all var(--t-court);
}
[dir="rtl"] .chip { font-size: 0.88rem; }

.chip:hover { border-color: var(--taupe); color: var(--encre); }

.chip[aria-pressed="true"] {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--ivoire);
}

.filter-right { margin-inline-start: auto; display: flex; align-items: center; gap: 1rem; }

.select {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lin);
  padding: 0.5rem 1.6rem 0.5rem 0.1rem;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--encre);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b5d4f' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  background-size: 10px;
}
[dir="rtl"] .select { padding: 0.5rem 0.1rem 0.5rem 1.6rem; background-position: left 0.15rem center; }

.count {
  font-size: 0.72rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  color: var(--brun);
}
[dir="rtl"] .count { text-transform: none; font-size: 0.88rem; }

/* ---------- 12. Grille produits ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
}

.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .grid, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; } }

.card { position: relative; display: flex; flex-direction: column; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: linear-gradient(155deg, var(--ivoire-2) 0%, var(--sable) 55%, var(--lin) 100%);
  margin-bottom: 1rem;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1), opacity var(--t-court);
}

.card:hover .card-media img { transform: scale(1.055); }

.card-media .emblem {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.4;
  pointer-events: none;
}
.card-media .emblem svg { width: 42%; }

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(43, 39, 36, 0.06);
  border-radius: var(--radius-img);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 3;
  background: rgba(251, 249, 245, 0.94);
  color: var(--or-fonce);
  font-size: 0.6rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
[dir="rtl"] .badge { text-transform: none; font-size: 0.75rem; letter-spacing: 0; }

.badge-sale { color: #9a4b3a; }

.card-quick {
  position: absolute;
  inset-inline: 0.6rem;
  bottom: 0.6rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-court), transform var(--t-court);
}

.card:hover .card-quick,
.card:focus-within .card-quick { opacity: 1; transform: none; }

@media (hover: none) { .card-quick { opacity: 1; transform: none; } }

.card-cat {
  font-size: 0.62rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: 0.4rem;
}
[dir="rtl"] .card-cat { text-transform: none; font-size: 0.8rem; letter-spacing: 0; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.card-tag {
  font-size: 0.82rem;
  color: var(--brun);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--encre);
}

.price del { color: var(--taupe); font-size: 0.82rem; }

.card a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--brun);
  border: 1px dashed var(--lin);
  border-radius: var(--radius-img);
}

/* ---------- 13. Matière (3 colonnes) ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.trio-item { padding-top: 1.6rem; border-top: 1px solid var(--or-voile); }
.trio-item h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.7rem; }
.trio-item p { font-size: 0.92rem; color: var(--brun); }
.bg-encre .trio-item { border-top-color: rgba(226, 202, 160, 0.28); }
.bg-encre .trio-item p { color: var(--taupe-clair); }

@media (max-width: 780px) { .trio { grid-template-columns: 1fr; } }

/* ---------- 14. Rituel ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }

.step-n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--or-clair);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.step h3 {
  font-size: 0.82rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
[dir="rtl"] .step h3 { text-transform: none; font-size: 1.05rem; }
.step p { font-size: 0.9rem; color: var(--brun); }

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 15. Bande CTA ---------- */
.cta-band {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(195, 162, 103, 0.22), transparent 60%),
    var(--encre);
  color: var(--ivoire);
  text-align: center;
}

.cta-band .wrap { max-width: 720px; }
.cta-band p { color: var(--taupe-clair); margin-top: 1rem; }
.cta-band .btn { margin-top: 2rem; }

/* ---------- 16. Instagram ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ig-cell {
  aspect-ratio: 1;
  background: linear-gradient(150deg, var(--sable), var(--lin));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ig-cell svg { width: 28%; opacity: 0.35; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 780px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 17. FAQ ---------- */
.faq-list { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--lin); }

.faq-item { border-bottom: 1px solid var(--lin); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 2.5rem 1.5rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.4;
  transition: color var(--t-court);
}
[dir="rtl"] .faq-item summary { padding: 1.5rem 0 1.5rem 2.5rem; }

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--or-fonce); }

.faq-item summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.4rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-inline-end: 1px solid var(--or-fonce);
  border-bottom: 1px solid var(--or-fonce);
  transform: rotate(45deg);
  transition: transform var(--t-court);
}

.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq-answer { padding: 0 2.5rem 1.75rem 0; color: var(--brun); font-size: 0.95rem; max-width: 62ch; }
[dir="rtl"] .faq-answer { padding: 0 0 1.75rem 2.5rem; }

/* ---------- 18. Fil d'Ariane ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--brun);
  padding-block: 1.5rem;
}
[dir="rtl"] .crumbs { font-size: 0.85rem; }
.crumbs a:hover { color: var(--encre); }
.crumbs .sep { color: var(--taupe-clair); }
[dir="rtl"] .crumbs .sep { transform: scaleX(-1); display: inline-block; }

/* ---------- 19. Page produit ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: var(--section);
}

.pdp-gallery { display: flex; flex-direction: column; gap: 0.75rem; position: sticky; top: 96px; }

.pdp-main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: linear-gradient(155deg, var(--ivoire-2), var(--sable) 55%, var(--lin));
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main .emblem { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.4; }
.pdp-main .emblem svg { width: 38%; }

.pdp-thumbs { display: flex; gap: 0.75rem; }

.pdp-thumb {
  width: 84px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--lin);
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ivoire-2), var(--sable));
  padding: 0;
  transition: border-color var(--t-court);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb[aria-current="true"] { border-color: var(--or); }

.pdp-info h1 { margin-bottom: 0.9rem; }
.pdp-tagline { font-size: 1.05rem; color: var(--brun); font-style: italic; margin-bottom: 1.8rem; }
[dir="rtl"] .pdp-tagline { font-style: normal; }

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.pdp-price del { font-family: var(--font-body); font-size: 1rem; color: var(--taupe); }
.pdp-save { font-size: 0.72rem; letter-spacing: var(--ls-mid); text-transform: uppercase; color: #9a4b3a; }
[dir="rtl"] .pdp-save { text-transform: none; font-size: 0.85rem; }

.pdp-order { margin-block: 1.9rem; }
.pdp-note { font-size: 0.76rem; color: var(--brun); margin-top: 0.75rem; text-align: center; }
[dir="rtl"] .pdp-note { font-size: 0.88rem; }

.pdp-block { padding-block: 1.6rem; border-top: 1px solid var(--lin); }
.pdp-block h2 {
  font-size: 0.72rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: 1rem;
}
[dir="rtl"] .pdp-block h2 { text-transform: none; font-size: 0.9rem; letter-spacing: 0; }

.spec-list { display: grid; gap: 0.55rem; font-size: 0.9rem; }
.spec-row { display: flex; gap: 1rem; justify-content: space-between; border-bottom: 1px dotted var(--lin); padding-bottom: 0.55rem; }
.spec-row dt { color: var(--brun); flex: none; }
.spec-row dd { margin: 0; text-align: end; }

.tick-list { display: grid; gap: 0.65rem; font-size: 0.9rem; color: var(--brun); }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.tick-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--or);
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
}

/* ---------- 20. Pages éditoriales ---------- */
.prose { max-width: var(--max-lecture); }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.6rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--encre-doux); }

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head .lead { max-width: 46rem; margin-top: 1.5rem; }

.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 780px) { .two-lists { grid-template-columns: 1fr; } }

.list-check li, .list-cross li { display: flex; gap: 0.8rem; padding-block: 0.6rem; font-size: 0.95rem; color: var(--encre-doux); border-bottom: 1px solid var(--lin); }
.list-check li::before { content: "✓"; color: var(--or-fonce); flex: none; }
.list-cross li::before { content: "×"; color: #9a4b3a; flex: none; font-size: 1.15rem; line-height: 1.3; }

.numbered { counter-reset: n; display: grid; gap: 1.1rem; }
.numbered li { counter-increment: n; display: flex; gap: 1rem; font-size: 0.98rem; color: var(--encre-doux); }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--or);
  flex: none;
  width: 1.8rem;
}

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }

.contact-card {
  background: var(--ivoire);
  border: 1px solid var(--lin);
  border-radius: var(--radius-img);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-card h2 { font-family: var(--font-display); font-size: 1.5rem; }
.contact-card p { font-size: 0.9rem; color: var(--brun); }
.contact-card .btn { margin-top: auto; }

.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.info-strip h3 { font-size: 0.72rem; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--or-fonce); margin-bottom: 0.5rem; }
[dir="rtl"] .info-strip h3 { text-transform: none; font-size: 0.9rem; letter-spacing: 0; }
.info-strip p { font-size: 0.92rem; color: var(--brun); }

/* ---------- 21. Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.testimonial { background: var(--ivoire); border: 1px solid var(--lin); padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius-img); }
.testimonial p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.5; margin-bottom: 1.2rem; }
[dir="rtl"] .testimonial p { font-style: normal; }
.testimonial cite { font-style: normal; font-size: 0.72rem; letter-spacing: var(--ls-mid); text-transform: uppercase; color: var(--or-fonce); }

/* ---------- 22. Pied de page ---------- */
.footer { background: var(--encre); color: var(--sable); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(226, 202, 160, 0.2);
}

.footer .logo-name { color: var(--ivoire); }
.footer-tagline { font-size: 0.9rem; color: var(--taupe-clair); max-width: 32ch; margin-top: 1.4rem; }

.footer h3 {
  font-size: 0.66rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 1.2rem;
}
[dir="rtl"] .footer h3 { text-transform: none; font-size: 0.88rem; letter-spacing: 0; }

.footer li { margin-bottom: 0.7rem; }
.footer a { font-size: 0.88rem; color: var(--sable); transition: color var(--t-court); }
.footer a:hover { color: var(--or-clair); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(226, 202, 160, 0.28);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color var(--t-court), background var(--t-court);
}
.footer-social a:hover { border-color: var(--or-clair); background: rgba(226, 202, 160, 0.1); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--taupe);
}

@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 23. Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 122, 92, 0.3);
  font-size: 0.75rem;
  letter-spacing: var(--ls-mid);
  text-transform: uppercase;
  transition: transform var(--t-court), background var(--t-court);
}
[dir="rtl"] .wa-float { text-transform: none; font-size: 0.9rem; }
.wa-float:hover { transform: translateY(-2px); background: var(--whatsapp-fonce); }
.wa-float svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0.95rem; } }

/* ---------- 24. Animations d'apparition ---------- */
/* Uniquement si JavaScript est actif : sans JS, tout reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 25. Utilitaires ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.flex-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.center .flex-cta { justify-content: center; }
