/* ==========================================================
   FIL & STYLE — Feuille de style
   Univers : prune profond, or, ivoire. Mobile d'abord.
   Les propriétés « logiques » (inline-start/end) gèrent
   automatiquement l'arabe (RTL) et le français (LTR).
   ========================================================== */

:root {
  --plum-950: #150812;
  --plum-900: #1f0c1b;
  --plum-800: #2d1328;
  --plum-700: #3f1c39;
  --gold: #c9a45c;
  --gold-hi: #e6cf97;
  --gold-lo: #8f7034;
  --ivory: #f7f1e8;
  --ivory-2: #efe5d6;
  --ink: #241720;
  --muted: #7d6a74;
  --ok: #3f7d52;
  --err: #b3263a;

  --serif: "Cormorant Garamond", "Amiri", Georgia, serif;
  --sans: "Jost", "Tajawal", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(21, 8, 18, .55);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

html[lang="ar"] {
  --serif: "Amiri", "Cormorant Garamond", serif;
  --sans: "Tajawal", "Jost", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 84px; /* place pour la barre d'achat mobile */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Bandeau ---------- */
.ribbon {
  background: var(--plum-950);
  color: var(--gold-hi);
  font-size: 13px;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201, 164, 92, .25);
}
.ribbon__track {
  display: inline-flex; gap: 18px; align-items: center;
  padding: 8px 0;
  animation: ribbon 28s linear infinite;
}
.ribbon i { color: var(--gold); font-style: normal; font-size: 10px; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ribbon__track { animation-name: ribbon-rtl; }
@keyframes ribbon-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(31, 12, 27, .92);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  border-bottom: 1px solid rgba(201, 164, 92, .18);
}
.logo { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; text-decoration: none; direction: ltr; }
.logo__needle { width: 26px; height: 32px; color: var(--gold); grid-row: span 2; }
.logo__word { font-family: "Cormorant Garamond", serif; font-size: 22px; letter-spacing: .14em; color: var(--ivory); line-height: 1; }
.logo__word em { color: var(--gold); font-style: italic; }
.logo__tag { font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-family: "Jost", sans-serif; }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.lang {
  border: 1px solid rgba(201, 164, 92, .5); background: transparent; color: var(--gold-hi);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; min-width: 46px;
}
.nav__cta { display: none; }
@media (min-width: 720px) { .nav__cta { display: inline-flex; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  color: var(--plum-950);
  box-shadow: 0 10px 30px -12px rgba(201, 164, 92, .8);
}
.btn--gold:hover { box-shadow: 0 14px 36px -10px rgba(201, 164, 92, .95); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--gold-lo); text-decoration: underline; cursor: pointer; font-size: 13px; margin-inline-start: 8px; }

/* ---------- Typo utilitaires ---------- */
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.rule { width: 64px; height: 1px; background: var(--gold); margin: 18px auto 0; position: relative; }
.rule::after { content: "✦"; position: absolute; inset-inline-start: 50%; top: -9px; transform: translateX(-50%); font-size: 10px; color: var(--gold); background: inherit; }
.section .rule::after { background: var(--ivory); padding: 0 6px; }
.price { font-family: "Cormorant Garamond", serif; font-weight: 600; direction: ltr; unicode-bidi: isolate; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; gap: 28px;
  padding: 36px var(--gutter) 56px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(201, 164, 92, .18), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(120, 40, 100, .35), transparent 70%),
    var(--plum-900);
  color: var(--ivory);
  overflow: hidden;
}
.hero::before { /* fine trame dorée */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 22px);
}
.hero__text { position: relative; z-index: 1; text-align: center; }
.hero__title { font-size: clamp(36px, 9vw, 68px); color: var(--ivory); }
.hero__title em { color: var(--gold-hi); font-style: italic; }
.hero__lead { color: rgba(247, 241, 232, .78); max-width: 34em; margin: 16px auto 0; font-weight: 300; }
.hero__price { margin: 26px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__price .price { font-size: 46px; color: var(--gold-hi); line-height: 1; }
.hero__price-note { font-size: 13px; color: rgba(247, 241, 232, .7); letter-spacing: .04em; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.hero__ctas .btn--ghost { color: var(--gold-hi); }
.hero__trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: rgba(247, 241, 232, .8); }
.hero__trust .ico { color: var(--gold); margin-inline-end: 6px; }
.hero__visual { position: relative; z-index: 1; margin: 0 auto; width: min(360px, 82vw); }
.disclaimer { margin-top: 10px; text-align: center; font-size: 12px; }
.disclaimer a { color: rgba(247, 241, 232, .6); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 64px max(var(--gutter), calc((100vw - var(--max)) / 2)) 80px; }
  .hero__text { text-align: start; }
  .hero__lead { margin-inline: 0; }
  .hero__price { align-items: flex-start; }
  .hero__ctas, .hero__trust { justify-content: flex-start; }
}

/* ---------- Arche (motif signature) ---------- */
.arch {
  position: relative;
  border-radius: 999px 999px 10px 10px;
  padding: 8px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 40%, var(--gold-lo));
  box-shadow: var(--shadow);
}
.arch img {
  width: 100%; aspect-ratio: 9 / 14; object-fit: cover; object-position: 50% 12%;
  border-radius: 999px 999px 6px 6px;
  background: var(--plum-800);
}

/* ---------- Sections ---------- */
.section { padding: 64px var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(30px, 6vw, 44px); }
.section--dark { max-width: none; background: var(--plum-900); color: var(--ivory); }
.section--dark .rule::after { background: var(--plum-900); }
.section--order { max-width: none; background: linear-gradient(var(--ivory-2), var(--ivory)); }

/* ---------- Grille modèles ---------- */
.models { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: var(--max); margin: 0 auto; }
@media (max-width: 719px) { /* carrousel horizontal sur téléphone */
  .models {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 68%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 16px; scrollbar-width: none;
  }
  .models::-webkit-scrollbar { display: none; }
  .models .card { scroll-snap-align: center; }
  .models .reveal { opacity: 1; transform: none; }
  .card h3 { font-size: 24px; }
}
.card { text-align: center; }
.card .arch { margin: 0 auto 16px; max-width: 300px; transition: transform .3s ease; }
.card:hover .arch { transform: translateY(-4px); }
.card__badge {
  position: absolute; top: 18%; inset-inline-start: -6px; z-index: 2;
  background: var(--plum-900); color: var(--gold-hi); font-size: 12px; padding: 4px 10px; border-radius: 4px;
}
.card h3 { font-size: 28px; }
.card__dots { display: flex; justify-content: center; gap: 5px; margin: 8px 0 12px; }
.card__dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.card .price { font-size: 22px; color: var(--plum-700); display: block; margin-bottom: 12px; }
.card .btn { color: var(--plum-800); }

/* ---------- Commande ---------- */
.order { display: grid; gap: 32px; max-width: var(--max); margin: 0 auto; }
@media (min-width: 900px) { .order { grid-template-columns: .85fr 1.15fr; align-items: start; } .order__media { position: sticky; top: 90px; } }
.order__media .arch { max-width: 380px; margin: 0 auto; }
@media (max-width: 899px) {
  .order { gap: 20px; }
  .order__media .arch { max-width: 220px; }
  .thumbs button { width: 46px; height: 60px; }
}
.thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid transparent; border-radius: 8px; overflow: hidden; width: 58px; height: 74px; cursor: pointer; background: none; opacity: .7; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.order__form, .thanks {
  background: #fff; border-radius: 22px; padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 30px 70px -40px rgba(31, 12, 27, .45);
  border: 1px solid rgba(201, 164, 92, .25);
}
.field { display: block; margin-bottom: 18px; border: 0; padding: 0; }
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--plum-800); }
.label em { color: var(--muted); font-weight: 300; font-style: normal; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1px solid #ddd0c3; background: #fffdf9; font-size: 16px; /* 16px = pas de zoom iOS */
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.err { display: none; color: var(--err); font-size: 12px; margin-top: 4px; }
.invalid input, .invalid select { border-color: var(--err); }
.invalid .err { display: block; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .chip-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid #ddd0c3; background: #fffdf9; font-size: 15px;
}
.chip input:checked + span, .chip-btn[aria-checked="true"] { border-color: var(--plum-800); background: var(--plum-800); color: var(--ivory); }
.chip input:focus-visible + span, .chip-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip-btn { cursor: pointer; }

.product-desc { color: var(--muted); font-size: 15px; margin: -6px 0 18px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #d8cabb;
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 55%);
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.06); }

.qty { display: inline-flex; align-items: center; border: 1px solid #ddd0c3; border-radius: 999px; overflow: hidden; direction: ltr; }
.qty button { width: 44px; height: 44px; border: 0; background: #fffdf9; font-size: 20px; cursor: pointer; }
.qty output { min-width: 36px; text-align: center; font-weight: 500; }

.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--gold-lo); font-family: var(--serif); font-size: 20px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(201, 164, 92, .4); }

.summary { background: var(--ivory); border-radius: 12px; padding: 14px 16px; margin: 8px 0 18px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; gap: 10px; }
.summary b { font-weight: 500; text-align: end; }
.summary__total { border-top: 1px dashed #d8cabb; margin-top: 6px; padding-top: 10px !important; font-size: 18px; }
.summary__total b { color: var(--plum-800); font-weight: 700; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-error { color: var(--err); text-align: center; font-size: 14px; }

.thanks { text-align: center; }
.thanks__seal { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 30px; color: var(--plum-950); background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }
.thanks h3 { font-size: 32px; margin-bottom: 8px; }
.thanks__ref { font-size: 15px; }
.thanks .btn { color: var(--plum-800); margin-top: 8px; }

/* ---------- Savoir-faire ---------- */
.craft { display: grid; gap: 36px; max-width: var(--max); margin: 0 auto; align-items: center; }
@media (min-width: 900px) { .craft { grid-template-columns: 1fr 1fr; } }
.craft__photo { margin: 0; position: relative; }
.craft__photo img { border-radius: 18px; width: 100%; box-shadow: var(--shadow); border: 1px solid rgba(201, 164, 92, .4); }
.craft__photo figcaption {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: rgba(21, 8, 18, .8); color: var(--gold-hi); font-size: 12px; padding: 5px 10px; border-radius: 6px;
}
.craft__text h2 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 20px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 26px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 52px; margin-bottom: 18px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: -2px;
  font-family: "Cormorant Garamond", serif; font-size: 30px; color: var(--gold); line-height: 1;
}
.steps b { display: block; color: var(--gold-hi); font-weight: 500; }
.steps span { color: rgba(247, 241, 232, .75); font-size: 15px; font-weight: 300; }
.craft .btn { color: var(--gold-hi); }

/* ---------- Garanties ---------- */
.promises { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.promises > div { background: #fff; border: 1px solid rgba(201, 164, 92, .3); border-radius: var(--radius); padding: 22px; text-align: center; }
.promises__ico { display: block; font-size: 26px; color: var(--gold); margin-bottom: 6px; }
.promises b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.promises p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(201, 164, 92, .35); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Pied de page ---------- */
.footer { background: var(--plum-950); color: rgba(247, 241, 232, .7); text-align: center; padding: 48px var(--gutter) 40px; font-size: 14px; }
.logo--footer { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 14px; }
.footer a { color: var(--gold-hi); }
.footer__legal { font-size: 12px; max-width: 640px; margin: 16px auto; opacity: .7; }
.footer__copy { font-size: 12px; opacity: .5; }

/* ---------- Barre d'achat mobile ---------- */
.sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 8, 18, .96); color: var(--ivory);
  border-top: 1px solid rgba(201, 164, 92, .3);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky.show { transform: none; }
.sticky__price { display: flex; flex-direction: column; line-height: 1.2; }
.sticky__price .price { font-size: 24px; color: var(--gold-hi); }
.sticky__price small { font-size: 11px; opacity: .7; }
.sticky .btn { padding: 12px 22px; }
@media (min-width: 900px) { .sticky { display: none; } body { padding-bottom: 0; } }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; inset-inline-end: 16px; bottom: 92px; z-index: 41;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #1f7a4d; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
}
.wa svg { width: 28px; height: 28px; }
@media (min-width: 900px) { .wa { bottom: 24px; } }

/* ---------- Guide des tailles ---------- */
.modal { border: 0; border-radius: 18px; padding: 24px; width: min(520px, 92vw); }
.modal::backdrop { background: rgba(21, 8, 18, .6); }
.modal h3 { font-size: 26px; margin-bottom: 12px; }
.modal table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.modal th, .modal td { padding: 8px 6px; border-bottom: 1px solid #eee2d4; text-align: center; }
.modal th { color: var(--plum-800); font-weight: 500; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
