:root {
  --ink: #17120d;
  --roast: #2a1f16;
  --gold: #7fb069;
  --gold-soft: #b9dba0;
  --terra: #c65a3a;
  --cream: #f7f1e8;
  --paper: #fffaf3;
  --text: #23180f;
  --muted: #7a6a5c;
  --line: #e6dccd;
  --ok: #2f7d4f;
  --err: #b3402f;
  --radius: 16px;
  --display: "Bebas Neue", "Cairo", sans-serif;
  --body: "Inter", "Cairo", system-ui, sans-serif;
}
html[dir="rtl"] { --body: "Cairo", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { text-wrap: balance; }

/* Titres : Bebas en français, Cairo gras en arabe */
.display, .lp-hero h1, .home-hero h1, .sec-head h2, .story-text h2, .dims-text h2, .final-cta h2, .pname, .card h3 {
  font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95;
}
html[dir="rtl"] :is(.lp-hero h1, .home-hero h1, .sec-head h2, .story-text h2, .dims-text h2, .final-cta h2, .pname, .card h3) {
  font-family: "Cairo", sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.2;
}

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(23, 18, 13, .94); backdrop-filter: blur(8px); color: var(--cream); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.brand .logo { width: auto; height: 42px; flex: none; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-weight: 500; font-size: 11px; color: var(--gold-soft); letter-spacing: .02em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--cream); padding: 6px 12px; font-size: 13px; font-weight: 700; }
.lang-switch button.active { background: var(--gold); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 800; background: var(--gold); color: var(--ink); transition: transform .15s, background .15s, box-shadow .15s; box-shadow: 0 8px 20px rgba(127,176,105,.28); }
.btn:hover { background: var(--gold-soft); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 17px 32px; font-size: 18px; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(127,176,105,.55); } 50% { box-shadow: 0 0 0 14px rgba(127,176,105,0); } }

/* Bandeau qui défile */
.ribbon { background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; overflow: hidden; white-space: nowrap; }
.ribbon-track { display: inline-flex; gap: 36px; padding: 8px 18px; animation: ribbon 22s linear infinite; }
html[dir="rtl"] .ribbon-track { animation-name: ribbon-rtl; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes ribbon-rtl { to { transform: translateX(50%); } }
@media (min-width: 900px) { .ribbon-track { animation: none; display: flex; justify-content: center; width: 100%; } .ribbon-track > span:nth-child(n+4) { display: none; } }

.kicker { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }

/* Accueil : hero */
.home-hero { background: radial-gradient(120% 90% at 85% 10%, #3a2a1c 0%, var(--ink) 60%); color: var(--cream); overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 64px 0 80px; }
.home-hero h1 { color: var(--gold); font-size: clamp(58px, 9vw, 112px); margin: 14px 0 18px; }
html[dir="rtl"] .home-hero h1 { font-size: clamp(40px, 7vw, 72px); }
.home-hero p { font-size: 18px; color: #d9cbb8; max-width: 30em; margin: 0 0 28px; }
.collage { position: relative; height: 480px; }
.collage img { position: absolute; width: 56%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.5); animation: float 7s ease-in-out infinite; }
.collage img:nth-child(1) { inset-inline-start: 0; top: 30px; transform: rotate(-5deg); }
.collage img:nth-child(2) { inset-inline-end: 0; top: 0; animation-delay: -2s; z-index: 2; }
.collage img:nth-child(3) { inset-inline-start: 24%; bottom: -10px; width: 46%; animation-delay: -4s; z-index: 3; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Sections */
section.block { padding: 72px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(40px, 5.5vw, 60px); margin: 0 0 8px; }
html[dir="rtl"] .sec-head h2 { font-size: clamp(28px, 4vw, 40px); }
.sec-head p { color: var(--muted); margin: 0; }
.dark { background: var(--ink); color: var(--cream); }
.dark .sec-head h2 { color: var(--gold); }

/* Cartes produits (accueil) */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(42,28,19,.08); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 50px rgba(42,28,19,.14); }
.card-img { position: relative; aspect-ratio: 4/5; background: #e9e0d3; overflow: hidden; }
.card-img img, .card-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); flex: 1; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 32px; margin: 0; }
html[dir="rtl"] .card h3 { font-size: 22px; }
.card .price { font-size: 20px; font-weight: 800; white-space: nowrap; color: var(--terra); }

/* Meilleures ventes : défilé */
.best-sec { background: var(--paper); overflow: hidden; }
.marquee { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 6px 16px 18px; }
.best-card { position: relative; width: 220px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; flex: none; box-shadow: 0 12px 28px rgba(42,28,19,.15); }
.best-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.best-card:hover img { transform: scale(1.06); }
.best-info { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(23,18,13,.9)); color: #fff; display: flex; flex-direction: column; }
.best-info b { font-size: 15px; }
.best-info span { color: var(--gold-soft); font-weight: 800; }

/* Avantages */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px 20px; }
.benefit .ico { font-size: 34px; display: block; margin-bottom: 10px; }
.benefit h3 { margin: 0 0 6px; font-size: 18px; color: var(--gold-soft); }
.benefit p { margin: 0; color: #d9cbb8; font-size: 15px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 1px 0 var(--line); }
.step b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 20px; margin-bottom: 12px; }
.step h4 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 0 var(--line); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.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 summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Landing : hero avec vidéo */
.lp-hero { background: radial-gradient(110% 90% at 80% 0%, #3d2c1d 0%, var(--ink) 62%); color: var(--cream); overflow: hidden; }
.lp-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.lp-hero h1 { color: var(--gold); font-size: clamp(54px, 8.5vw, 104px); margin: 12px 0 16px; }
html[dir="rtl"] .lp-hero h1 { font-size: clamp(38px, 6.5vw, 66px); }
.lp-hero p { font-size: 18px; color: #d9cbb8; max-width: 30em; margin: 0 0 22px; }
.price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.price-pill { background: var(--terra); color: #fff; font-weight: 800; font-size: 26px; padding: 6px 18px; border-radius: 999px; transform: rotate(-2deg); display: inline-block; }
.price-note { color: var(--gold-soft); font-weight: 600; font-size: 14px; }
.phone { position: relative; width: min(340px, 100%); margin-inline: auto; aspect-ratio: 9/16; border-radius: 34px; overflow: hidden; border: 8px solid #2b2119; box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(127,176,105,.25); background: #000; animation: float 8s ease-in-out infinite; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(23,18,13,.7); font-size: 20px; backdrop-filter: blur(4px); }

/* Landing : achat */
.buy { padding-top: 56px; }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.product > * { min-width: 0; }
.gallery { position: sticky; top: 84px; }
.stage { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: #e9e0d3; }
.stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: .4; } }
.nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,250,243,.9); font-size: 26px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.prev { inset-inline-start: 12px; }
.next { inset-inline-end: 12px; }
.counter { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(23,18,13,.7); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs button { flex: none; width: 66px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; opacity: .7; }
.thumbs button.active { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.info .tag { display: inline-block; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.pname { font-size: clamp(44px, 6vw, 64px); margin: 12px 0 10px; }
html[dir="rtl"] .pname { font-size: clamp(30px, 4.5vw, 42px); }
.desc { color: var(--muted); margin: 0 0 14px; }
.big-price { font-size: 34px; font-weight: 800; color: var(--terra); }
.ship { color: var(--ok); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.opt { margin-bottom: 18px; }
.opt-label { font-weight: 800; margin: 0 0 8px; }
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px; text-align: start; transition: border-color .15s, transform .15s; }
.variant img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.variant span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.3; }
.variant b { color: var(--terra); font-size: 16px; }
.variant.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(127,176,105,.25); }
.variants.grid9 { grid-template-columns: repeat(3, 1fr); }
.grid9 .variant { flex-direction: column; padding: 6px; gap: 6px; text-align: center; }
.grid9 .variant img { width: 100%; height: auto; aspect-ratio: 4/5; }
.grid9 .variant span { font-size: 12px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; }
.qty span { min-width: 32px; text-align: center; font-weight: 800; }

.order { background: var(--paper); border-radius: 20px; padding: 24px 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(42,28,19,.08); border: 2px solid var(--gold); scroll-margin-top: 90px; }
.order h2 { margin: 0 0 4px; font-size: 24px; }
.hint { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.field input { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.field input:focus { outline: 0; border-color: var(--gold); }
.field .err { display: none; color: var(--err); font-size: 13px; margin-top: 4px; }
.field.bad input { border-color: var(--err); }
.field.bad .err { display: block; }
.summary { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); padding-top: 6px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 20px; padding: 10px 0 14px; border-top: 1px dashed var(--line); margin-top: 8px; }
.order .btn { width: 100%; font-size: 18px; padding: 17px; }
.order .btn:disabled { opacity: .6; }
.send-err { color: var(--err); font-size: 14px; }
.cod { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.success { text-align: center; padding: 20px 0; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 12px; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.4); } }

/* Histoire */
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px rgba(42,28,19,.2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.story-img:hover img { transform: scale(1.06); }
.story-text h2 { font-size: clamp(44px, 6vw, 68px); margin: 10px 0 14px; color: var(--ink); }
html[dir="rtl"] .story-text h2 { font-size: clamp(30px, 4.5vw, 44px); }
.story-text p { font-size: 18px; color: var(--muted); margin: 0 0 24px; }

/* Clips vidéo */
.clips-sec { background: var(--paper); }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clip { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 9/16; background: #000; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(23,18,13,.75); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }

/* Dimensions */
.dims { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.dims-img { border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(42,28,19,.12); cursor: zoom-in; }
.dims-text h2 { font-size: clamp(40px, 5vw, 56px); margin: 0 0 16px; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.specs li { background: var(--paper); padding: 14px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 1px 0 var(--line); display: flex; gap: 10px; }
.specs li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* Appel final */
.final-cta { background: linear-gradient(135deg, var(--terra), #9e3f24); color: #fff; text-align: center; padding: 64px 0; }
.final-cta h2 { font-size: clamp(42px, 6vw, 68px); margin: 0 0 10px; }
html[dir="rtl"] .final-cta h2 { font-size: clamp(28px, 4.5vw, 42px); }
.final-cta p { margin: 0 0 24px; opacity: .9; }

/* Barre « Commander » en bas (mobile) */
.sticky-cta { position: fixed; inset: auto 0 0; z-index: 25; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(23,18,13,.96); color: #fff; transition: transform .3s; }
.sticky-cta > span { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta small { color: #d9cbb8; font-size: 12px; }
.sticky-cta strong { font-size: 20px; color: var(--gold); }
.sticky-cta.hide { transform: translateY(110%); }

/* WhatsApp */
.wa { position: fixed; inset-inline-end: 16px; bottom: 84px; z-index: 26; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.wa svg { width: 30px; fill: #fff; }

/* Zoom */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal img { max-height: 92vh; border-radius: 12px; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; }

.social { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--cream); font-weight: 700; font-size: 14px; transition: background .15s; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social.big { justify-content: center; width: 100%; gap: 14px; }
.social.big a { background: var(--ink); color: #fff; padding: 14px 24px; font-size: 16px; }
.social.big a:hover { background: var(--gold); color: var(--ink); }
.social.big svg { width: 22px; height: 22px; }
footer { background: var(--ink); color: #b9a994; font-size: 14px; padding: 26px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-logo { height: 64px; width: auto; background: var(--paper); border-radius: 12px; padding: 6px 12px; }
body.has-sticky footer { padding-bottom: 96px; }

/* Apparition au défilement */
.reveal.pending { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* Tablette et mobile */
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section.block { padding: 52px 0; }
  .home-hero .wrap, .lp-hero .wrap, .product, .story .wrap, .dims { grid-template-columns: 1fr; }
  .home-hero .wrap { padding: 40px 0 56px; gap: 24px; }
  .collage { height: 340px; }
  .lp-hero .wrap { padding: 32px 0 44px; gap: 28px; }
  .lp-hero-text { text-align: center; }
  .lp-hero p { margin-inline: auto; }
  .price-row { justify-content: center; }
  .phone { width: min(300px, 82%); }
  .gallery { position: static; }
  .products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .clips { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .clip { scroll-snap-align: center; }
  .sticky-cta { display: flex; }
  .brand small { display: none; }
  .top .btn-sm { padding: 8px 12px; }
  .best-card { width: 170px; }
}
@media (max-width: 380px) {
  .brand > span { font-size: 16px; }
  .lang-switch button { padding: 6px 9px; }
  .variants.grid9 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
