/* ============ Rayamina — tokens ============ */
:root {
  --ivory: #FFFDF8;        /* blanc */
  --sand: #EFE5D6;         /* beige */
  --sand-light: #F7F1E8;   /* beige très clair */
  --sand-deep: #CDB89A;    /* beige profond */
  --ink: #1C1915;          /* noir chaud (à petites doses) */
  --espresso: #1C1915;     /* fond sombre : seulement le pied de page */
  --champagne: #DCC195;    /* or clair */
  --gold: #A9814A;         /* or du logo (traits, fonds, bordures) */
  --gold-ink: #7F5F2E;     /* or plus profond pour les petits textes (lisibilité) */

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", system-ui, sans-serif;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --header-h: 84px;
}

html[lang="ar"] {
  --f-display: "Amiri", serif;
  --f-body: "Tajawal", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* Transition douce entre les pages (navigateurs récents) */
@view-transition { navigation: auto; }

/* Lien d'évitement : visible seulement au clavier */
.skip-link {
  position: fixed; top: 10px; inset-inline-start: 10px; z-index: 200;
  padding: 12px 20px;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px;
  font-size: .9rem;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============ Accueil animé ============ */
/* Déroulé : poussière dorée (0 → 2 s) · logo net (2 s) · reflet + étoiles (2,35 s)
   · bienvenue (2,9 s) · le rideau se lève (≈ 4,2 s). Les délais sont aussi dans home.js. */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 45%, #FFFFFF 0%, var(--ivory) 45%, var(--sand-light) 75%, var(--sand) 100%);
  transition: transform 1.15s var(--ease), box-shadow 1.15s ease;
}

.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.intro__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px;
}

.intro__logo {
  position: relative;
  width: min(520px, 82vw);
  aspect-ratio: 900 / 656;
}

/* halo de lumière au moment où le logo se forme */
.intro__glow {
  position: absolute; left: 50%; top: 45%;
  width: 120%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.7);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 226, .95) 0%, rgba(232, 210, 168, .25) 38%, rgba(232, 210, 168, 0) 66%);
  opacity: 0;
}

.intro__full { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }

/* reflet de lumière qui traverse l'or */
.intro__shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-mask: url("images/logo.webp") center / 100% 100% no-repeat;
          mask: url("images/logo.webp") center / 100% 100% no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0;
}

/* scintillement sur chaque étoile du logo */
.intro__glint {
  position: absolute; left: var(--x); top: var(--y);
  width: 13%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.intro__glint::before,
.intro__glint::after { content: ""; position: absolute; inset: 0; }
.intro__glint::before {   /* halo */
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 238, 200, .55) 35%, rgba(255, 238, 200, 0) 70%);
}
.intro__glint::after {    /* étoile à quatre branches, comme dans le logo */
  background: radial-gradient(circle, #FFFFFF 0%, rgba(255, 250, 238, .9) 30%, rgba(255, 244, 220, 0) 70%);
  clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
}

.intro__line {
  display: block;
  width: min(200px, 46vw); height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
}

.intro__welcome {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  letter-spacing: .16em;
  color: rgba(28, 25, 21, .8);
  text-align: center;
  opacity: 0;
}
html[lang="ar"] .intro__welcome { font-style: normal; letter-spacing: 0; }

/* ---- Chorégraphie ---- */
.intro.is-playing .intro__canvas { animation: fadeOut .5s ease 1.95s forwards; }
.intro.is-playing .intro__glow { animation: glowIn 1.7s ease 1.5s both; }
.intro.is-playing .intro__full { animation: focusIn .75s ease-out 1.6s forwards; }
.intro.is-playing .intro__shine { animation: shine 1.1s cubic-bezier(.45, 0, .25, 1) 2.35s both; }
.intro.is-playing .intro__glint { animation: glint .95s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(2.5s + var(--i) * .18s); }
.intro.is-playing .intro__line { animation: lineIn 1s var(--ease) 2.75s forwards; }
.intro.is-playing .intro__welcome { animation: welcome 1.1s ease-out 2.9s forwards; }
html[lang="ar"] .intro.is-playing .intro__welcome { animation-name: fadeUp; }

/* version simple (si la poussière ne peut pas être dessinée) : mise au point du logo */
.intro.is-simple .intro__canvas { display: none; }
.intro.is-simple.is-playing .intro__full { animation: focusInSlow 1.6s cubic-bezier(.3, 0, .2, 1) .35s forwards; }

@keyframes fadeIn  { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes glowIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  30%  { opacity: 1; }
  100% { opacity: .45; transform: translate(-50%, -50%) scale(1); }
}
@keyframes focusIn {
  from { opacity: 0; filter: blur(4px); transform: scale(1.012); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes focusInSlow {
  from { opacity: 0; filter: blur(14px); transform: scale(1.07); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes shine {
  0%   { opacity: 1; background-position: 120% 0; }
  100% { opacity: 1; background-position: -20% 0; }
}
@keyframes glint {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-45deg); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(30deg); }
}
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes welcome {
  from { opacity: 0; letter-spacing: .42em; transform: translateY(6px); }
  to   { opacity: 1; letter-spacing: .16em; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Sortie : le rideau se lève, un fil d'or souligne son bord */
.intro.is-open {
  transform: translateY(-100%);
  box-shadow: 0 1px 0 rgba(169, 129, 74, .7), 0 30px 60px rgba(28, 25, 21, .12);
  pointer-events: none;
}
.intro.is-open .intro__content {
  transform: translateY(-5vh);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity .7s ease;
}
.intro.is-done { display: none; }

/* ============ Header ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ivory);
  transition: background .5s ease, color .5s ease, height .5s ease, box-shadow .5s ease;
}

.header.is-solid {
  background: rgba(251, 248, 243, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  height: 68px;
  box-shadow: 0 1px 0 rgba(28, 25, 21, .08);
}

.header__logo { justify-self: start; display: flex; align-items: center; height: 100%; }
.header__logo { position: relative; }
.header__logo img {
  height: 64px; width: auto;
  transition: height .5s ease, opacity .5s ease;
}
/* deux versions du logo : claire sur fond sombre (vidéo), dorée sur fond clair */
.header__logo .logo--light { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); }
.header__logo .logo--gold { opacity: 0; }
.header.is-solid .header__logo img { height: 52px; }
.header.is-solid .header__logo .logo--gold { opacity: 1; }
.header.is-solid .header__logo .logo--light { opacity: 0; }
.header.is-solid.is-dark {
  background: rgba(28, 25, 21, .82);
  color: var(--ivory);
  box-shadow: 0 1px 0 rgba(220, 193, 149, .18);
}
.header.is-solid.is-dark .header__logo .logo--gold { opacity: 0; }
.header.is-solid.is-dark .header__logo .logo--light { opacity: 1; }
.header.is-dark .nav__link.is-active::after { background: var(--champagne); }

.header__wordmark {
  display: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem; letter-spacing: .14em;
}
.header__logo.no-img img { display: none !important; }
.header__logo.no-img .header__wordmark { display: block; }

/* Navigation */
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__link {
  position: relative;
  font-size: .9rem; letter-spacing: .06em;
  padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1); transform-origin: left;
}

/* Outils */
.header__tools { justify-self: end; display: flex; align-items: center; gap: 18px; }

.lang { position: relative; }
.lang__current {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; letter-spacing: .1em;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .9;
}
.lang__list {
  list-style: none;
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 150px;
  background: var(--ivory); color: var(--ink);
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(28, 25, 21, .18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list button {
  width: 100%; text-align: start;
  padding: 10px 12px; border-radius: 8px;
  font-size: .92rem;
}
.lang__list button:hover, .lang__list button.is-current { background: var(--sand); }
.lang__list button[data-lang="ar"] { font-family: "Tajawal", sans-serif; }

/* Burger (mobile) */
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--ivory);
  /* fond affiché tant que la vidéo n'est pas là */
  background:
    radial-gradient(120% 90% at 70% 30%, #7A6550 0%, #3A3128 50%, #1C1915 100%);
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.is-ready .hero__video { transform: scale(1); }

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(28, 25, 21, .62) 0%, rgba(28, 25, 21, .12) 45%, rgba(28, 25, 21, .28) 100%);
}

.hero__content {
  position: absolute;
  inset-inline-start: clamp(16px, 6vw, 96px);
  bottom: clamp(90px, 14vh, 150px);
  max-width: min(680px, calc(100% - 32px));
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
html[lang="ar"] .hero__title { line-height: 1.35; letter-spacing: 0; }

.hero__text {
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 42ch;
  opacity: .9;
}

.hero__cta {
  display: inline-flex; align-items: center;
  margin-top: 34px;
  padding: 16px 34px;
  background: var(--ivory); color: var(--ink);
  border-radius: 999px;
  font-size: .95rem; letter-spacing: .04em;
  transition: background .4s ease, color .4s ease, transform .4s var(--ease);
}
.hero__cta:hover { background: var(--sand); transform: translateY(-2px); }

/* Révélation du texte après l'intro */
.hero__title, .hero__text, .hero__cta {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s var(--ease);
}
.is-ready .hero__title { opacity: 1; transform: none; transition-delay: .15s; }
.is-ready .hero__text  { opacity: .9; transform: none; transition-delay: .35s; }
.is-ready .hero__cta   { opacity: 1; transform: none; transition-delay: .55s; }

/* Indicateur de défilement */
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px;
  width: 1px; height: 64px;
  background: rgba(251, 248, 243, .25);
  overflow: hidden;
}
.hero__scroll-line {
  position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--ivory);
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* Bouton son */
.hero__sound {
  position: absolute;
  inset-inline-end: clamp(16px, 4vw, 56px);
  bottom: 34px;
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .1em;
  opacity: .85;
}
.hero__sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.hero__sound-bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s ease; }
.hero__sound[aria-pressed="true"] .hero__sound-bars i { animation: bars 1s ease-in-out infinite; }
.hero__sound[aria-pressed="true"] .hero__sound-bars i:nth-child(2) { animation-delay: .2s; }
.hero__sound[aria-pressed="true"] .hero__sound-bars i:nth-child(3) { animation-delay: .4s; }
.hero__sound[aria-pressed="true"] .hero__sound-bars i:nth-child(4) { animation-delay: .1s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* ============ Nouveautés ============ */
.latest {
  position: relative;
  background: var(--ivory);
  --gutter: clamp(16px, 6vw, 96px);
}

.latest__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: 90px 0 40px;
}

.latest__head {
  padding: 0 var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

.latest__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.02em;
}
html[lang="ar"] .latest__title { line-height: 1.3; letter-spacing: 0; }

.latest__aside { max-width: 34ch; }
.latest__text { font-size: 1rem; line-height: 1.7; color: rgba(28, 25, 21, .7); }
.latest__all {
  display: inline-block; margin-top: 14px;
  font-size: .92rem; letter-spacing: .04em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color .3s ease;
}
.latest__all:hover { color: var(--gold-ink); }

/* Piste */
.latest__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  padding: 0 var(--gutter) 48px;
  will-change: transform;
}
.latest__track::after { content: ""; flex: 0 0 1px; }

/* Carte produit de l'accueil (arche) */
.card {
  flex: 0 0 auto;
  width: clamp(230px, 40vh, 360px);
  position: relative;
}
.card:nth-child(even) { transform: translateY(48px); }
.card__link { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 180px 180px 4px 4px; /* arche, comme une porte de la Casbah */
  background:
    radial-gradient(90% 70% at 50% 25%, #FFFBF4 0%, var(--sand) 55%, var(--sand-deep) 100%);
}

.card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card__img.is-missing { display: none; }

/* Texte affiché quand la photo manque */
.card__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.4vh, 2.2rem);
  color: rgba(28, 25, 21, .68);
}

.card__badge {
  position: absolute; top: 22%; inset-inline-start: 0;
  padding: 6px 14px;
  background: var(--ivory);
  font-size: .75rem; letter-spacing: .08em;
  border-start-end-radius: 999px; border-end-end-radius: 999px;
}

.card__view {
  position: absolute; left: 50%; bottom: 22px;
  transform: translate(-50%, 20px);
  padding: 12px 24px;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px;
  font-size: .82rem; letter-spacing: .05em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .5s ease, transform .6s var(--ease);
}

.card:hover .card__img { transform: scale(1.06); }
.card:hover .card__view,
.card:focus-within .card__view { opacity: 1; transform: translate(-50%, 0); }

.card__info {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}
.card__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.5rem;
}
.card__type { font-size: .82rem; color: rgba(28, 25, 21, .68); margin-top: 2px; }
.card__price { font-size: .95rem; white-space: nowrap; }

/* ============ Carte produit (partagée) ============ */
.pcard { position: relative; }

.pcard__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--tone) 22%, #FFFFFF) 0%,
      color-mix(in srgb, var(--tone) 55%, var(--sand)) 100%);
}

.pcard__media { position: absolute; inset: 0; display: block; }

/* Nom affiché tant que la photo manque */
.pcard__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 16px; text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vh, 2rem);
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 12px rgba(28, 25, 21, .18);
}

.pcard__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity .7s ease;
}
.pcard__img.is-missing { display: none; }
.pcard__img--b { opacity: 0; }

/* Cadre fin « passe-partout » qui apparaît au survol */
.pcard__visual::after {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(255, 255, 255, .75);
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s ease, transform .8s var(--ease);
  pointer-events: none;
}

.pcard__badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  padding: 5px 12px;
  background: var(--ivory); color: var(--ink);
  border-radius: 999px;
  font-size: .72rem; letter-spacing: .06em;
  z-index: 1;
}
.pcard__badge--out { background: var(--ink); color: var(--ivory); }

/* Bouton Commander : barre qui monte du bas */
.pcard__order {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: grid; place-items: center;
  height: 52px;
  background: var(--ink); color: var(--ivory);
  font-size: .88rem; letter-spacing: .06em;
  transform: translateY(101%);
  transition: transform .6s var(--ease), background .3s ease;
}
.pcard__order.is-disabled { background: rgba(28, 25, 21, .6); cursor: default; }

@media (hover: hover) {
  .pcard__order:hover { background: var(--gold); }
  .pcard:hover .pcard__img--a { transform: scale(1.04); }
  .pcard:hover .pcard__img--b:not(.is-missing) { opacity: 1; transform: scale(1.04); }
  .pcard:hover .pcard__visual::after { opacity: 1; transform: none; }
  .pcard:hover .pcard__order,
  .pcard:focus-within .pcard__order { transform: none; }
}

/* Écrans tactiles : bouton toujours visible, plus discret */
@media (hover: none) {
  .pcard__order {
    left: auto; right: auto; bottom: 10px;
    inset-inline-end: 10px;
    height: 36px; padding: 0 16px;
    border-radius: 999px;
    font-size: .78rem;
    transform: none;
  }
}

.pcard.is-soldout .pcard__img { filter: grayscale(.6) opacity(.75); }

.pcard__info { display: block; margin-top: 14px; }
.pcard__name {
  display: block;
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.15;
}
.pcard__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; margin-top: 4px;
}
.pcard__type { font-size: .82rem; color: rgba(28, 25, 21, .68); }
.pcard__price { font-size: .95rem; white-space: nowrap; }

/* Barre de progression */
.latest__progress {
  position: relative;
  margin: 0 var(--gutter);
  height: 1px;
  background: rgba(28, 25, 21, .12);
}
.latest__progress span {
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
html[dir="rtl"] .latest__progress span { transform-origin: right; }

/* ============ Défilé des modèles ============ */
.show {
  position: relative;
  background:
    radial-gradient(60% 70% at 70% 45%, #FFFFFF 0%, var(--sand-light) 45%, var(--sand) 100%);
  color: var(--ink);
  --gutter: clamp(16px, 6vw, 96px);
}

.show__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

.show__slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 38vw);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 96px calc(var(--gutter) + 120px) 56px var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
html[dir="rtl"] .slide { padding: 96px var(--gutter) 56px calc(var(--gutter) + 120px); }

.slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .7s ease;
}

/* Texte */
.slide__type {
  font-size: .9rem; letter-spacing: .08em;
  color: var(--gold-ink);
}
.slide__name {
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  padding-bottom: .08em;
  margin-top: 10px;
}
html[lang="ar"] .slide__name { line-height: 1.35; letter-spacing: 0; }
.slide__name span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }

.slide__desc {
  margin-top: 22px;
  max-width: 38ch;
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(28, 25, 21, .68);
}

.slide__buy {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 34px;
}
.slide__price { font-family: var(--f-display); font-size: 1.8rem; }
.slide__cta {
  padding: 15px 30px;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px;
  font-size: .9rem; letter-spacing: .04em;
  transition: background .4s ease, transform .4s var(--ease);
}
.slide__cta:hover { background: var(--gold); transform: translateY(-2px); }

.slide__type, .slide__desc, .slide__buy {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform .9s var(--ease);
}
.slide.is-active .slide__name span { transform: none; transition-delay: .15s; }
.slide.is-active .slide__type { opacity: 1; transform: none; transition-delay: .05s; }
.slide.is-active .slide__desc { opacity: 1; transform: none; transition-delay: .35s; }
.slide.is-active .slide__buy  { opacity: 1; transform: none; transition-delay: .5s; }

/* Scène du mannequin */
.slide__stage {
  position: relative;
  height: min(74svh, 640px);
  aspect-ratio: 5 / 8;
  justify-self: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slide__arch {
  position: absolute; inset: 0;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 35%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(#FBF6EE, #EADCC6);
  box-shadow: inset 0 0 0 1px rgba(169, 129, 74, .45);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease);
}
.slide.is-active .slide__arch { clip-path: inset(0 0 0 0); }

.slide__figure {
  position: absolute; inset: 8% 6% 3%;
  display: flex; align-items: flex-end; justify-content: center;
  transform: translateY(10%) scale(1.06);
  transition: transform 1.5s var(--ease);
}
.slide.is-active .slide__figure { transform: none; }
.slide__figure svg, .slide__figure img { width: 100%; height: 100%; object-fit: contain; }
.slide__figure model-viewer { width: 100%; height: 100%; --poster-color: transparent; }

/* Indication */
.slide__hint {
  position: absolute; left: 50%; bottom: -34px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  font-size: .8rem; color: rgba(28, 25, 21, .68);
  transition: opacity .4s ease;
}
.slide__hint::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--champagne);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220, 193, 149, .5); }
  100% { box-shadow: 0 0 0 12px transparent; }
}
.slide__stage.is-open .slide__hint { opacity: 0; }

/* Composition : pièces du modèle */
.slide__pieces { list-style: none; }
.piece {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px;
  background: var(--ivory); color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(28, 25, 21, .14);
  font-size: .85rem; white-space: nowrap;
  opacity: 0; transform: scale(.7);
  transition: opacity .45s ease, transform .6s var(--ease);
  transition-delay: calc(var(--i) * 80ms);
  pointer-events: none;
}
html[dir="rtl"] .piece { padding: 7px 7px 7px 16px; }
.piece__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tone); color: var(--ivory);
}
.piece__icon svg { width: 18px; height: 18px; }

.piece:nth-child(1) { top: 16%; inset-inline-start: -14%; }
.piece:nth-child(2) { top: 38%; inset-inline-end: -16%; }
.piece:nth-child(3) { top: 60%; inset-inline-start: -18%; }
.piece:nth-child(4) { top: 80%; inset-inline-end: -12%; }

.slide__stage.is-open .piece { opacity: 1; transform: none; }

/* Navigation latérale */
.show__nav {
  list-style: none;
  position: absolute; top: 50%;
  inset-inline-end: var(--gutter);
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 18px;
}
.show__nav button {
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; color: rgba(28, 25, 21, .68);
  transition: color .4s ease;
}
.show__nav button::before {
  content: ""; width: 14px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.show__nav button.is-current { color: var(--ink); }
.show__nav button.is-current::before { width: 36px; }

.show__counter {
  position: absolute; bottom: 30px; inset-inline-start: var(--gutter);
  font-family: "Cormorant Garamond", serif; font-size: 1.3rem;
  direction: ltr;
}
.show__total { color: rgba(28, 25, 21, .68); }
html[dir="rtl"] .show__counter { inset-inline-start: auto; left: auto; right: var(--gutter); }

.show__sound {
  position: absolute; bottom: 32px; inset-inline-end: var(--gutter);
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .1em;
}
.show__sound[aria-pressed="true"] .hero__sound-bars i { animation: bars 1s ease-in-out infinite; }
.show__sound[aria-pressed="true"] .hero__sound-bars i:nth-child(2) { animation-delay: .2s; }
.show__sound[aria-pressed="true"] .hero__sound-bars i:nth-child(3) { animation-delay: .4s; }
.show__sound[aria-pressed="true"] .hero__sound-bars i:nth-child(4) { animation-delay: .1s; }

/* ============ Savoir-faire ============ */
.atelier {
  --gutter: clamp(16px, 6vw, 96px);
  background: var(--sand-light);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}

.atelier__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(56px, 9vw, 120px);
}
.atelier__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.02em;
}
html[lang="ar"] .atelier__title { line-height: 1.3; letter-spacing: 0; }
.atelier__intro {
  max-width: 36ch;
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(28, 25, 21, .7);
}

.atelier__blocks {
  display: flex; flex-direction: column;
  gap: clamp(80px, 12vw, 170px);
}

/* Un bloc : collage de 3 photos + texte sur le côté */
.craft {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
}
.craft:nth-child(even) .craft__gallery { order: 2; }

.craft__gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  aspect-ratio: 6 / 5;
}

.craft__photo {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ph);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}
.craft__photo:nth-child(1) {
  grid-row: 1 / 3;
  border-radius: 999px 999px 6px 6px; /* même arche que les cartes */
}
.craft__photo:nth-child(2) { transition-delay: .18s; }
.craft__photo:nth-child(3) { transition-delay: .32s; }

.craft__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.8s var(--ease);
}
.craft__photo img.is-missing { display: none; }
.craft__photo:hover img { transform: scale(1.05); }

.craft.is-in .craft__photo { clip-path: inset(0 0 0 0); }
.craft.is-in .craft__photo img { transform: scale(1); }

/* Texte */
.craft__text { max-width: 46ch; }
.craft__line {
  display: block; width: 0; height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
  transition: width 1.2s var(--ease) .3s;
}
.craft.is-in .craft__line { width: 72px; }

.craft__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.05;
}
html[lang="ar"] .craft__title { line-height: 1.4; }

.craft__desc {
  margin-top: 20px;
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(28, 25, 21, .72);
}

.craft__tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.craft__tags li {
  padding: 8px 18px;
  border: 1px solid rgba(169, 129, 74, .55);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink);
}

.craft__title, .craft__desc, .craft__tags {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform .9s var(--ease);
}
.craft.is-in .craft__title { opacity: 1; transform: none; transition-delay: .35s; }
.craft.is-in .craft__desc  { opacity: 1; transform: none; transition-delay: .5s; }
.craft.is-in .craft__tags  { opacity: 1; transform: none; transition-delay: .65s; }

/* ============ Page Collection ============ */
.coll {
  --gutter: clamp(16px, 6vw, 96px);
  padding-top: 68px; /* hauteur de l'en-tête */
}

.coll__head {
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(36px, 5vw, 64px);
  background:
    radial-gradient(70% 120% at 85% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    var(--sand-light);
}
.coll__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: .9;
  letter-spacing: -.02em;
}
html[lang="ar"] .coll__title { line-height: 1.3; letter-spacing: 0; }
.coll__count {
  font-family: var(--f-body);
  font-size: .9rem; letter-spacing: .04em;
  vertical-align: top;
  margin-inline-start: 14px;
  color: var(--gold-ink);
  position: relative; top: .6em;
}
.coll__text {
  margin-top: 22px; max-width: 46ch;
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(28, 25, 21, .7);
}

/* Barre des filtres, collée sous l'en-tête */
.coll__bar {
  position: sticky; top: 68px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 25, 21, .08);
}

.coll__filters {
  position: relative;
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.coll__filters::-webkit-scrollbar { display: none; }

.coll__filters button {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .92rem;
  color: rgba(28, 25, 21, .7);
  transition: color .4s ease;
}
.coll__filters button sup { font-size: .68rem; opacity: .6; }
.coll__filters button.is-current { color: var(--ivory); }

.coll__pill {
  position: absolute; top: 0; bottom: 0; left: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .6s var(--ease), width .6s var(--ease);
}

.coll__sort {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: rgba(28, 25, 21, .68);
}
.coll__sort select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .92rem; color: var(--ink);
  padding: 10px 34px 10px 16px;
  border: 1px solid rgba(28, 25, 21, .16);
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231C1915' stroke-width='1.2'/%3E%3C/svg%3E")
    no-repeat right 14px center,
    #fff;
  cursor: pointer;
}
html[dir="rtl"] .coll__sort select {
  padding: 10px 16px 10px 34px;
  background-position: left 14px center, 0 0;
}

/* Grille */
.coll__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px clamp(16px, 2.2vw, 32px);
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(80px, 10vw, 140px);
  transition: opacity .25s ease;
}
.coll__grid.is-leaving { opacity: 0; }
@media (min-width: 1280px) { .coll__grid { grid-template-columns: repeat(4, 1fr); } }

/* Entrée des cartes, en cascade */
.coll__grid .pcard {
  animation: cardIn .9s var(--ease) both;
  animation-delay: calc(var(--i) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

.coll__empty {
  padding: 0 var(--gutter) 120px;
  text-align: center;
  font-family: var(--f-display); font-size: 1.6rem;
  color: rgba(28, 25, 21, .68);
}

/* ============ Page Commande ============ */
.order {
  --gutter: clamp(16px, 6vw, 96px);
  padding: 68px 0 0;
  background: var(--sand-light);
}

.order__top { padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px); }
.order__back {
  display: inline-block;
  font-size: .88rem; color: rgba(28, 25, 21, .68);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(28, 25, 21, .2);
  transition: color .3s ease, border-color .3s ease;
}
.order__back:hover { color: var(--gold-ink); border-color: var(--gold); }
.order__title {
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.01em;
}
html[lang="ar"] .order__title { line-height: 1.4; letter-spacing: 0; }

.order__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}

/* Visuel collé pendant le défilement */
.order__visual { position: sticky; top: 96px; }

.order__stage {
  position: relative;
  height: min(calc(100svh - 300px), 680px);
  min-height: 360px;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--tone, #CDB89A) 25%, #FFFFFF) 0%,
      color-mix(in srgb, var(--tone, #CDB89A) 70%, var(--sand)) 100%);
  transition: background .8s ease;
}
.order__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 16px rgba(28, 25, 21, .2);
}
.order__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .7s ease, transform 1.2s var(--ease);
}
.order__img.is-front { opacity: 1; transform: none; }

.order__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.order__thumbs:empty { display: none; }
.thumb {
  width: 64px; aspect-ratio: 4 / 5;
  border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--tone) 45%, #fff);
  outline: 1px solid transparent; outline-offset: 2px;
  transition: outline-color .3s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-current { outline-color: var(--ink); }

.order__caption { margin-top: 18px; }
.order__type { font-size: .85rem; color: var(--gold-ink); letter-spacing: .04em; }
.order__name { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.15; }
.order__unit { margin-top: 4px; font-size: 1.05rem; }
.order__unit small { font-size: .8rem; color: rgba(28, 25, 21, .68); }
.order__desc { margin-top: 14px; max-width: 46ch; line-height: 1.7; color: rgba(28, 25, 21, .75); }
.order__desc[hidden] { display: none; }
.order__trust { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.order__trust li { position: relative; padding-inline-start: 22px; font-size: .88rem; color: rgba(28, 25, 21, .75); }
.order__trust li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em;
  width: 11px; height: 6px;
  border-inline-start: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* Étapes du formulaire */
.order__form { display: flex; flex-direction: column; gap: 18px; }
.order__form[hidden] { display: none; }

.step {
  background: var(--ivory);
  border-radius: 14px;
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 1px 0 rgba(28, 25, 21, .04);
  display: flex; flex-direction: column; gap: 18px;
}
.step__title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.6rem;
}
.step__n {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-body); font-size: .85rem;
  background: var(--ink); color: var(--ivory);
}

.ofield { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ofield[hidden] { display: none; }
.ofield__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ofield__label { font-size: .84rem; color: rgba(28, 25, 21, .68); }
.ofield__label b { font-weight: 500; color: var(--ink); }

.ofield input[type="text"],
.ofield input[type="tel"],
.ofield select,
.ofield textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(28, 25, 21, .14);
  border-radius: 12px;
  outline: 0;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.ofield select {
  appearance: none; -webkit-appearance: none;
  padding-inline-end: 40px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231C1915' stroke-width='1.2'/%3E%3C/svg%3E")
    no-repeat right 16px center, #fff;
  cursor: pointer;
}
html[dir="rtl"] .ofield select { background-position: left 16px center, 0 0; }
.ofield select:disabled { opacity: .55; cursor: not-allowed; }
.ofield textarea { resize: vertical; min-height: 90px; }
html[dir="rtl"] .ofield input[type="tel"] { text-align: right; }
.ofield input:focus, .ofield select:focus, .ofield textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(169, 129, 74, .15);
}

.ofield__err { font-size: .78rem; color: #B23A4E; min-height: 0; }
.ofield__err:empty { display: none; }
.ofield.is-invalid input,
.ofield.is-invalid select { border-color: #B23A4E; background-color: #FFF9F5; }

.order__alert {
  padding: 12px 16px; border-radius: 10px;
  background: #FBF0E8; color: #8E2B3D; font-size: .9rem;
}

/* Couleurs */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--ivory), 0 0 0 4px transparent;
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-current {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--ivory), 0 0 0 4.5px var(--ink);
}

/* Tailles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 54px; padding: 11px 16px;
  border: 1px solid rgba(28, 25, 21, .16);
  border-radius: 10px;
  background: #fff;
  font-size: .92rem;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip.is-static { cursor: default; }
#sizeField.is-invalid .chip:not(.is-current) { border-color: #D9A28A; }

/* Quantité */
.stepper {
  display: inline-flex; align-items: center;
  width: max-content;
  border: 1px solid rgba(28, 25, 21, .16);
  border-radius: 999px;
  background: #fff;
}
.stepper button { width: 44px; height: 44px; font-size: 1.2rem; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper input {
  width: 44px; text-align: center;
  font: inherit; font-size: 1rem;
  border: 0; outline: 0; background: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Mode de livraison */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 16px;
  border: 1px solid rgba(28, 25, 21, .14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode__body { display: flex; flex-direction: column; gap: 3px; }
.mode__name { font-weight: 500; font-size: .95rem; }
.mode__text { font-size: .78rem; color: rgba(28, 25, 21, .68); line-height: 1.4; }
.mode__price { font-size: .9rem; white-space: nowrap; }
.mode:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mode:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 3px; }
.mode:has(input:disabled) { opacity: .45; cursor: not-allowed; }

/* Paiement */
.cod {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #fff;
}
.cod__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); color: var(--ink);
}
.cod__name { display: block; font-weight: 500; font-size: .95rem; }
.cod__text { display: block; font-size: .8rem; color: rgba(28, 25, 21, .68); margin-top: 2px; }
.cod__check {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--ivory); font-size: .75rem;
}

/* Récapitulatif (sombre) */
.summary {
  background: var(--espresso);
  color: var(--ivory);
  border-radius: 14px;
  padding: clamp(22px, 2.6vw, 32px);
}
.summary__title { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 14px; }
.summary__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255, 253, 248, .1);
}
.summary__row small { color: rgba(255, 253, 248, .66); }
.summary__row .is-muted { color: rgba(255, 253, 248, .66); font-size: .85rem; }
.summary__row--total {
  border-bottom: 0;
  padding-top: 16px;
  font-family: var(--f-display);
  font-size: 1.7rem;
}
.order__formerr { color: #F2A7B4; font-size: .85rem; margin-top: 6px; }
.order__formerr:empty { display: none; }
.order__submit {
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  border-radius: 999px;
  background: var(--champagne); color: var(--ink);
  font-size: 1rem; letter-spacing: .03em;
  transition: background .3s ease, transform .3s var(--ease);
}
.order__submit:hover { background: var(--ivory); }
.order__submit:active { transform: scale(.98); }
.order__submit:disabled { opacity: .7; cursor: wait; }
.summary__call { margin-top: 12px; text-align: center; font-size: .8rem; color: rgba(255, 253, 248, .66); }

/* Confirmation */
.done {
  background: var(--ivory);
  border-radius: 14px;
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  outline: 0;
  animation: cardIn .9s var(--ease) both;
}
.done[hidden] { display: none; }
.done__mark { color: var(--gold-ink); display: inline-block; }
.done__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .8s var(--ease) .3s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.done__title { margin-top: 18px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); }
.done__text { margin: 14px auto 0; max-width: 42ch; line-height: 1.7; color: rgba(28, 25, 21, .7); }
.done__recap {
  margin: 28px auto 0; max-width: 380px;
  text-align: start;
  border-top: 1px solid rgba(28, 25, 21, .1);
}
.done__recap div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 25, 21, .1);
  font-size: .95rem;
}
.done__recap span { color: rgba(28, 25, 21, .68); }
.done__btn {
  display: inline-block; margin-top: 28px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  font-size: .92rem;
}

/* Barre fixe mobile (cachée sur ordinateur) */
.order__bar { display: none; }

.done__keep { display: inline-block; margin-top: 10px; color: var(--gold-ink); }

/* ============ Étoiles ============ */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars svg { width: 15px; height: 15px; fill: rgba(28, 25, 21, .14); }
.stars svg.is-on { fill: var(--gold); }

/* ============ Page Contact ============ */
.contact {
  --gutter: clamp(16px, 6vw, 96px);
  padding-top: 68px;
  background: var(--sand-light);
}
.contact__head {
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(36px, 5vw, 56px);
  background: radial-gradient(70% 120% at 85% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%);
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: .9;
  letter-spacing: -.02em;
}
html[lang="ar"] .contact__title { line-height: 1.3; letter-spacing: 0; }
.contact__text { margin-top: 22px; max-width: 44ch; font-size: 1.05rem; line-height: 1.7; color: rgba(28, 25, 21, .7); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding: 0 var(--gutter);
}

.panel {
  background: var(--ivory);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.panel__title { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; }
.panel__btn {
  align-self: flex-start;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  font-size: .95rem;
  transition: background .3s ease;
}
.panel__btn:hover { background: var(--gold); }
.panel__btn:disabled { opacity: .6; cursor: wait; }
.panel__msg { font-size: .9rem; }
.panel__msg:empty { display: none; }
.panel__msg.is-ok { color: #2F6B4F; }
.panel__msg.is-error { color: #B23A4E; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.ofield input[type="email"] {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(28, 25, 21, .14);
  border-radius: 12px;
  outline: 0;
  transition: border-color .3s ease, box-shadow .3s ease;
}
html[dir="rtl"] .ofield input[type="email"] { text-align: right; }
.ofield.is-invalid textarea, .ofield.is-invalid input { border-color: #B23A4E; background-color: #FFF9F5; }

/* Contact direct */
.direct { display: flex; flex-direction: column; gap: 14px; }
.direct__title { font-size: .9rem; font-weight: 400; color: rgba(28, 25, 21, .68); }
.direct__wa {
  display: flex; align-items: center; gap: 16px;
  padding: 22px;
  border-radius: 16px;
  background: var(--espresso); color: var(--ivory);
  transition: transform .4s var(--ease);
}
.direct__wa:hover { transform: translateY(-3px); }
.direct__wa b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.direct__wa small { font-size: .85rem; color: rgba(255, 253, 248, .66); }
.direct__wa-icon {
  flex: 0 0 auto;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--champagne); color: var(--ink);
}
.direct__wa-icon svg { width: 26px; height: 26px; }

.direct__list { display: flex; flex-direction: column; background: var(--ivory); border-radius: 16px; padding: 6px 0; }
.direct__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  font-size: .98rem;
  transition: color .3s ease, background .3s ease;
}
.direct__item + .direct__item { border-top: 1px solid rgba(28, 25, 21, .07); }
.direct__item:hover { color: var(--gold-ink); }
.direct__item > span:first-child {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand);
}
.direct__item svg { width: 19px; height: 19px; }

/* Avis */
.review {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}
.review__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; }
html[lang="ar"] .review__title { line-height: 1.4; }
.review__text { margin-top: 18px; max-width: 38ch; line-height: 1.7; color: rgba(28, 25, 21, .7); }

.panel--dark { background: var(--sand); color: var(--ink); }
.panel--dark .panel__btn { background: var(--ink); color: var(--ivory); }
.panel--dark .panel__btn:hover { background: var(--gold); }

.rate { display: flex; gap: 6px; }
.rate button { padding: 2px; }
.rate svg { width: 32px; height: 32px; fill: rgba(28, 25, 21, .14); transition: fill .2s ease, transform .3s var(--ease); }
.rate button.is-on svg, .rate button.is-hover svg { fill: var(--gold); }
.rate button:hover svg { transform: scale(1.12); }

/* ============ Avis sur l'accueil ============ */
.voices {
  --gutter: clamp(16px, 6vw, 96px);
  background: var(--ivory);
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}
.voices[hidden] { display: none; }
.voices__head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.voices__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: .95; letter-spacing: -.02em;
  max-width: 12ch;
}
html[lang="ar"] .voices__title { line-height: 1.3; letter-spacing: 0; }
.voices__avg { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(28, 25, 21, .68); }
.voices__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.voices__rail {
  direction: ltr; /* le défilement va toujours dans le même sens */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.voices__track {
  display: flex; gap: 20px;
  width: max-content;
  padding: 0 var(--gutter);
  direction: ltr;
}
.voices__dup { display: contents; }
.voices__track.is-moving {
  padding: 0;
  padding-inline-end: 20px;
  animation: drift var(--dur, 50s) linear infinite;
}
.voices__rail:hover .voices__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

.voice {
  flex: 0 0 auto;
  width: clamp(270px, 30vw, 380px);
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px;
  background: var(--sand-light);
  border-radius: 16px;
  margin: 0;
}
.voice__text {
  font-family: var(--f-display);
  font-size: 1.3rem; line-height: 1.45;
  flex: 1;
}
.voice__who { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.voice__who span { color: rgba(28, 25, 21, .68); font-size: .8rem; }

/* ============ Page À propos ============ */
.about { --gutter: clamp(16px, 6vw, 96px); padding-top: 68px; background: var(--ivory); overflow-x: clip; }

.about__hero {
  padding: clamp(64px, 11vw, 160px) var(--gutter) clamp(48px, 7vw, 96px);
  background: radial-gradient(60% 120% at 90% 0%, var(--sand) 0%, rgba(240, 225, 229, 0) 60%);
}
.about__kicker { font-size: .95rem; color: var(--gold-ink); letter-spacing: .04em; }
.about__title {
  margin-top: 18px;
  max-width: 15ch;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  line-height: .98; letter-spacing: -.02em;
}
html[lang="ar"] .about__title { line-height: 1.35; letter-spacing: 0; }

.about__story {
  display: grid;
  grid-template-columns: 1fr 1.15fr .7fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: 0 var(--gutter) clamp(80px, 11vw, 150px);
}
.about__photo {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #F6EEE2, var(--sand-deep));
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo--tall { aspect-ratio: 3 / 4.2; border-radius: 999px 999px 6px 6px; }
.about__photo--small { aspect-ratio: 3 / 4; border-radius: 6px; margin-top: 40%; background: linear-gradient(165deg, #EADCC6, #8E7556); }

.about__text { padding-top: clamp(0px, 4vw, 48px); }
.about__lead {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.35;
}
html[lang="ar"] .about__lead { line-height: 1.7; }
.about__body p {
  margin-top: 22px;
  font-size: 1.05rem; line-height: 1.85;
  color: rgba(28, 25, 21, .72);
  max-width: 60ch;
}

.about__values {
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  background: var(--sand);
  color: var(--ink);
}
.about__vtitle {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.about__vlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.value__line { display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 26px; }
.value__title { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.2; }
.value__text { margin-top: 14px; line-height: 1.75; color: rgba(28, 25, 21, .7); }

.about__end {
  display: grid; place-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--sand-light);
}
.hero__cta.about__cta { opacity: 1; transform: none; background: var(--ink); color: var(--ivory); }
.hero__cta.about__cta:hover { background: var(--gold); }

mark.todo {
  background: #FFE7A8; color: #6B4E00;
  padding: 1px 6px; border-radius: 4px;
  font-size: .75em; font-family: var(--f-body);
}

/* ============ Page Nos politiques ============ */
.policy { --gutter: clamp(16px, 6vw, 96px); padding-top: 68px; background: var(--ivory); overflow-x: clip; }
.policy__head {
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(36px, 5vw, 64px);
  background: var(--sand-light);
}
.policy__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .95; letter-spacing: -.02em;
}
html[lang="ar"] .policy__title { line-height: 1.35; letter-spacing: 0; }
.policy__lead { margin-top: 20px; max-width: 46ch; font-size: 1.05rem; line-height: 1.7; color: rgba(28, 25, 21, .7); }
.policy__date { margin-top: 14px; font-size: .85rem; color: rgba(28, 25, 21, .68); }

.policy__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px);
}

.policy__toc { position: sticky; top: 108px; align-self: start; }
.policy__toc-label { font-size: .8rem; color: rgba(28, 25, 21, .68); margin-bottom: 14px; }
.policy__toc ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.policy__toc a {
  display: block;
  padding: 9px 14px;
  border-inline-start: 1px solid rgba(28, 25, 21, .12);
  font-size: .95rem;
  color: rgba(28, 25, 21, .68);
  transition: color .3s ease, border-color .3s ease;
}
.policy__toc a:hover { color: var(--ink); }
.policy__toc a.is-current { color: var(--ink); border-inline-start-color: var(--gold); border-inline-start-width: 2px; }

.policy__content { max-width: 72ch; }
.psec { padding: 8px 0 52px; scroll-margin-top: 100px; }
.psec + .psec { border-top: 1px solid rgba(28, 25, 21, .1); padding-top: 44px; }
.psec__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; }
.psec__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.psec__list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 1.02rem; line-height: 1.75;
  color: rgba(28, 25, 21, .78);
}
.psec__list li::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: .82em;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ============ Page 404 ============ */
.nf {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 16px 80px;
  background: radial-gradient(70% 60% at 50% 35%, #FFFFFF 0%, var(--sand-light) 60%, var(--sand) 100%);
}
.nf__logo { width: min(220px, 50vw); height: auto; }
.nf__code { margin-top: 24px; font-size: .9rem; letter-spacing: .3em; color: var(--gold-ink); }
.nf__title { margin-top: 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.nf__text { margin-top: 16px; max-width: 42ch; line-height: 1.7; color: rgba(28, 25, 21, .72); }
.nf__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.nf__btn { padding: 15px 30px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: .92rem; transition: background .3s ease; }
.nf__btn:hover { background: var(--gold); }
.nf__link { font-size: .92rem; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* ============ Bouton WhatsApp flottant ============ */
.wa-float {
  position: fixed; z-index: 45;
  bottom: 22px; inset-inline-end: 22px;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory); color: var(--ink);
  box-shadow: 0 10px 30px rgba(28, 25, 21, .18), inset 0 0 0 1px rgba(169, 129, 74, .35);
  opacity: 0; transform: translateY(12px) scale(.9);
  transition: opacity .5s ease, transform .5s var(--ease), background .3s ease;
  pointer-events: none;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--sand); }
.wa-float[hidden] { display: none; }
/* pas de bouton flottant pendant la commande : la cliente reste concentrée */
body[data-page="order"] .wa-float { display: none; }

/* ============ Pied de page (noir froid) ============ */
.footer {
  --gutter: clamp(16px, 6vw, 96px);
  background: var(--espresso);
  color: var(--ivory);
  padding: clamp(72px, 10vw, 130px) var(--gutter) 28px;
  overflow: hidden;
}

.trust {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px 28px;
  padding-bottom: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid rgba(255, 253, 248, .1);
}
.trust li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: rgba(255, 253, 248, .86); }
.trust svg {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: none; stroke: var(--champagne); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
}

.footer__news-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  max-width: 14ch;
}
.footer__form {
  display: flex;
  margin-top: 28px;
  max-width: 420px;
  border-bottom: 1px solid rgba(220, 193, 149, .45);
}
.footer__form input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--ivory);
  font: inherit; font-size: 1rem;
  padding: 14px 0;
}
.footer__form input::placeholder { color: rgba(255, 253, 248, .66); }
.footer__form button {
  padding: 14px 0 14px 18px;
  color: var(--champagne);
  font-size: .95rem;
  white-space: nowrap;
}
html[dir="rtl"] .footer__form button { padding: 14px 18px 14px 0; }
.footer__form-msg { margin-top: 12px; font-size: .85rem; color: var(--champagne); min-height: 1.2em; }

.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__col h3 {
  font-size: .85rem; font-weight: 400;
  color: rgba(255, 253, 248, .66);
  margin-bottom: 6px;
}
.footer__col a {
  font-size: .98rem;
  color: rgba(255, 253, 248, .88);
  transition: color .3s ease;
}
.footer__col a:hover { color: var(--champagne); }
.footer__follow { margin-top: 18px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(220, 193, 149, .3);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.footer__social a:hover { background: var(--champagne); color: var(--ink); border-color: var(--champagne); }
.footer__social svg { width: 19px; height: 19px; }

/* Grand nom de la marque */
.footer__word {
  margin: clamp(56px, 8vw, 110px) 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 21vw, 22rem);
  line-height: .78;
  letter-spacing: -.03em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(220, 193, 149, .55) 0%, rgba(220, 193, 149, .04) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
  direction: ltr;
}

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 248, .1);
  font-size: .82rem;
  color: rgba(255, 253, 248, .66);
}

/* ============ Fenêtre d'inscription ============ */
.popup {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 16px;
}
.popup[hidden] { display: none; }

.popup__backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 25, 21, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .5s ease;
}

.popup__card {
  position: relative;
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--ivory);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(28, 25, 21, .35);
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .6s ease, transform .7s var(--ease);
}
.popup.is-open .popup__backdrop { opacity: 1; }
.popup.is-open .popup__card { opacity: 1; transform: none; }

.popup__visual {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(80% 60% at 50% 30%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(170deg, #F6EEE2 0%, #E6D6BE 55%, #C9AE88 100%);
  display: grid; place-items: center;
}
.popup__visual::after {
  /* arche fine, rappel des cartes */
  content: "";
  position: absolute; inset: 9% 16% 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.popup__logo { width: 56%; position: relative; z-index: 1; }

.popup__body { padding: clamp(28px, 4vw, 48px); }
.popup__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
}
html[lang="ar"] .popup__title { line-height: 1.5; }
.popup__text { margin-top: 12px; font-size: .98rem; line-height: 1.6; color: rgba(28, 25, 21, .7); }

.popup__form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .8rem; color: rgba(28, 25, 21, .68); }
.field input {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px;
  background: #fff;
  border: 1px solid rgba(28, 25, 21, .14);
  border-radius: 12px;
  outline: 0;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169, 129, 74, .15); }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }

.popup__error { min-height: 1em; font-size: .82rem; color: #B23A4E; }
.popup__submit {
  padding: 15px;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px;
  font-size: .95rem;
  transition: background .3s ease;
}
.popup__submit:hover { background: var(--gold); }
.popup__later {
  font-size: .85rem; color: rgba(28, 25, 21, .68);
  text-decoration: underline; text-underline-offset: 4px;
  align-self: center;
}
.popup__consent { font-size: .72rem; line-height: 1.5; color: rgba(28, 25, 21, .68); text-align: center; }

.popup__thanks { min-height: 220px; display: grid; place-items: center; text-align: center; }
.popup__thanks[hidden], #popFormWrap[hidden] { display: none; }

.popup__close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .85);
  transition: background .3s ease;
}
.popup__close:hover { background: var(--sand); }

/* ============ Mobile ============ */
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; }
  .burger { display: block; }

  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 26px;
    background: var(--ivory); color: var(--ink);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav__link { font-family: var(--f-display); font-size: 2rem; letter-spacing: 0; }

  .header.menu-open { color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.menu-open .header__logo .logo--gold { opacity: 1; }
  .header.menu-open .header__logo .logo--light { opacity: 0; }

  .header__logo img { height: 50px; }
  .lang__current { padding: 7px 12px; }
  .hero__scroll { display: none; }

  /* Nouveautés : glissement au doigt */
  .latest__pin { position: static; height: auto; padding: 72px 0 56px; }
  .latest__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 56px;
  }
  .latest__track::-webkit-scrollbar { display: none; }
  .card { width: 72vw; scroll-snap-align: center; }
  .card:nth-child(even) { transform: translateY(28px); }
  .card__view { opacity: 1; transform: translate(-50%, 0); }

  /* Défilé : scène en haut, texte en bas */
  .slide,
  html[dir="rtl"] .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 54px;
    padding: 72px var(--gutter) 64px;
  }
  .slide__stage { order: -1; height: 46svh; }
  .slide__text { text-align: center; }
  .slide__name { font-size: clamp(2.6rem, 13vw, 3.6rem); margin-top: 4px; }
  .slide__desc { margin: 12px auto 0; font-size: .95rem; line-height: 1.6; }
  .slide__buy { justify-content: center; gap: 18px; margin-top: 18px; }
  .slide__price { font-size: 1.4rem; }
  .slide__cta { padding: 13px 24px; font-size: .85rem; }
  .slide__hint { bottom: -28px; font-size: .75rem; }

  .piece { font-size: .78rem; padding: 5px 12px 5px 5px; }
  html[dir="rtl"] .piece { padding: 5px 5px 5px 12px; }
  .piece__icon { width: 28px; height: 28px; }
  .piece:nth-child(1) { inset-inline-start: -10%; }
  .piece:nth-child(2) { inset-inline-end: -10%; }
  .piece:nth-child(3) { inset-inline-start: -12%; }
  .piece:nth-child(4) { inset-inline-end: -8%; }

  .show__nav { display: none; }

  /* Savoir-faire : photos puis texte */
  .craft { grid-template-columns: 1fr; gap: 32px; }
  .craft:nth-child(even) .craft__gallery { order: 0; }
  .craft__gallery { aspect-ratio: 1 / 1.05; }
  .craft__line { margin-bottom: 20px; }
  .craft__desc { font-size: 1rem; line-height: 1.7; }

  /* Collection : 2 colonnes, filtres qui défilent au doigt */
  .coll__bar { gap: 8px; padding: 10px 0 10px var(--gutter); }
  html[dir="rtl"] .coll__bar { padding: 10px var(--gutter) 10px 0; }
  .coll__filters { flex: 1; min-width: 0; }
  .coll__filters button { padding: 9px 14px; font-size: .86rem; }
  .coll__sort > span { display: none; }
  .coll__sort { padding-inline-end: var(--gutter); }
  .coll__sort select { font-size: .82rem; padding: 9px 28px 9px 12px; background-position: right 10px center, 0 0; max-width: 128px; }
  html[dir="rtl"] .coll__sort select { padding: 9px 12px 9px 28px; background-position: left 10px center, 0 0; }
  .coll__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 12px; }
  .pcard__name { font-size: 1.15rem; }
  .pcard__meta { flex-direction: column; gap: 2px; }
  .pcard__price { font-size: .88rem; }
  .pcard__badge { top: 10px; inset-inline-start: 10px; font-size: .66rem; padding: 4px 10px; }

  /* Commande : visuel en haut, barre de total fixée en bas */
  .order { padding-bottom: 76px; }
  .order__top { padding: 28px var(--gutter) 18px; }
  .order__layout { grid-template-columns: 1fr; gap: 18px; padding-bottom: 48px; }
  .order__visual { position: static; display: grid; grid-template-columns: 38% 1fr; gap: 16px; align-items: end; }
  .order__stage { grid-row: span 2; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .order__ph { font-size: 1.3rem; padding: 8px; text-align: center; }
  .order__thumbs { grid-column: 2; margin: 0; }
  .thumb { width: 44px; }
  .order__caption { grid-column: 2; grid-row: 1; margin: 0; }
  .order__name { font-size: 1.6rem; }
  .ofield__row { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .step { border-radius: 12px; padding: 20px 16px; }
  .summary { border-radius: 12px; }
  .order__submit { display: none; }

  .order__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(28, 25, 21, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--ivory);
  }
  .order__bar[hidden] { display: none; }
  .order__bar-total { display: flex; flex-direction: column; line-height: 1.2; }
  .order__bar-total small { font-size: .72rem; color: rgba(255, 253, 248, .66); }
  .order__bar-total b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
  .order__bar-btn {
    padding: 14px 22px; border-radius: 999px;
    background: var(--champagne); color: var(--ink);
    font-size: .92rem;
  }
  .order__bar-btn:disabled { opacity: .7; }

  /* À propos */
  .about__story { grid-template-columns: 1fr 1fr; }
  .about__text { grid-column: 1 / -1; grid-row: 1; padding: 0; }
  .about__photo--small { margin-top: 30%; }
  .about__vlist { grid-template-columns: 1fr; gap: 40px; }

  /* Politiques : sommaire en ligne, collé sous l'en-tête */
  .policy__layout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 0; }
  .policy__toc { min-width: 0; }
  .policy__toc {
    position: sticky; top: 68px; z-index: 10;
    margin: 0 calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    background: rgba(255, 253, 248, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(28, 25, 21, .08);
  }
  .policy__toc-label { display: none; }
  .policy__toc ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .policy__toc ol::-webkit-scrollbar { display: none; }
  .policy__toc a { white-space: nowrap; border: 1px solid rgba(28, 25, 21, .14); border-radius: 999px; padding: 8px 14px; font-size: .85rem; }
  .policy__toc a.is-current { background: var(--ink); color: var(--ivory); border-color: var(--ink); border-width: 1px; }
  .psec { scroll-margin-top: 130px; padding-top: 32px; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .panel__btn { align-self: stretch; }
  .voice { width: 78vw; padding: 22px; }
  .voice__text { font-size: 1.15rem; }

  /* Pied de page */
  .trust { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .trust li { font-size: .85rem; align-items: flex-start; }
  .wa-float { bottom: 16px; inset-inline-end: 16px; width: 50px; height: 50px; }
  .order__desc, .order__trust { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }

  /* Fenêtre d'inscription : panneau en bas de l'écran */
  .popup { place-items: end center; padding: 0; }
  .popup__card {
    grid-template-columns: 1fr;
    border-radius: 22px 22px 0 0;
    max-height: 92svh; overflow-y: auto;
    transform: translateY(100%);
  }
  .popup__visual { min-height: 110px; }
  .popup__visual::after { inset: 18% 30% 0; }
  .popup__logo { width: 42%; }
  .popup__body { padding: 24px 20px 28px; }
  .show__counter { bottom: 20px; font-size: 1.1rem; }
  .show__sound { bottom: 22px; }
}

/* ============ Mouvement réduit ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
