/* =========================================================
   PROSTAFORCE — Landing COD Algérie · v2
   Design : médical / herbes / naturel / haut de gamme
   RTL (arabe) — mobile-first
   ========================================================= */

:root {
  --green-950: #0B2B21;
  --green-900: #103C2E;
  --green-700: #1B5B45;
  --green-600: #237054;
  --green-500: #2E8768;
  --green-100: #E7F0EA;
  --sage: #DDE9E1;
  --cream: #F8F5EF;
  --white: #FFFFFF;
  --gold-500: #C6A566;
  --gold-600: #AE8C4C;
  --gold-100: #F5EEDC;
  --ink: #16332A;
  --muted: #5E7168;
  --line: #E4E6DF;
  --danger: #B5472F;
  --radius: 20px;
  --shadow: 0 16px 40px rgba(11, 43, 33, 0.12);
  --shadow-sm: 0 6px 18px rgba(11, 43, 33, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(620px 320px at 92% 0%, rgba(198, 165, 102, 0.12), transparent 60%),
    radial-gradient(620px 320px at 0% 18%, rgba(35, 112, 84, 0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
}

h1, h2, h3 { font-family: "Amiri", serif; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 22px;
  border: none;
  border-radius: 999px;
  font-family: "Almarai", sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-950));
  color: var(--white);
  box-shadow: 0 12px 26px rgba(11, 43, 33, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 43, 33, 0.38); }

.btn-gold {
  background: linear-gradient(135deg, #D9BA7C, var(--gold-600));
  color: #2A2108;
  box-shadow: 0 12px 26px rgba(174, 140, 76, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); }

.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-950);
  color: var(--gold-100);
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  padding: 9px 14px;
  letter-spacing: .2px;
}

/* ---------- Header ---------- */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  color: var(--gold-100);
  border: 1px solid rgba(198, 165, 102, 0.55);
  display: grid; place-items: center;
  font-family: "Amiri", serif;
  font-weight: 700; font-size: 1.25rem;
}
.brand-name { font-family: "Amiri", serif; font-weight: 700; font-size: 1.25rem; color: var(--green-900); }
.brand-sub { font-size: .7rem; color: var(--muted); font-family: "Almarai", sans-serif; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--green-700);
  font-size: .9rem;
  direction: ltr;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(198, 165, 102, 0.18), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  padding: 36px 0 12px;
}
.hero-badge {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid #E8D6AE;
  font-weight: 700;
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.05rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--green-950);
  margin-bottom: 12px;
}
.hero p.lead { font-size: 1rem; color: var(--muted); margin-bottom: 20px; }

.product-photo {
  position: relative;
  margin: 24px auto 6px;
  max-width: 330px;
}
.product-photo img {
  width: 100%;
  border-radius: 24px;
  border: 2px solid rgba(198, 165, 102, 0.55);
  box-shadow: var(--shadow);
}
.product-photo .badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--white);
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.price-banner {
  background: linear-gradient(135deg, var(--white), var(--gold-100));
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.price-old { color: var(--muted); font-size: .92rem; text-decoration: line-through; font-weight: 700; }
.price-new { color: var(--green-950); font-weight: 800; font-size: 1.55rem; font-family: "Almarai", sans-serif; }
.price-new small { font-size: .78rem; font-weight: 700; color: var(--muted); }
.price-off {
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: 38px 0 6px; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-900);
  text-align: center;
  margin-bottom: 6px;
}
.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
  margin: 10px auto 0;
}
.section-sub { text-align: center; color: var(--muted); font-size: .93rem; margin: 12px 0 20px; }

.section-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-top: 6px;
}
.img-stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Bénéfices ---------- */
.benefits { display: flex; flex-direction: column; gap: 14px; }
.benefit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.benefit .ico {
  min-width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.benefit h3 { font-size: 1.18rem; font-weight: 700; color: var(--green-900); margin-bottom: 3px; }
.benefit p { font-size: .9rem; color: var(--muted); }

/* ---------- Formulaire ---------- */
.order-card {
  background:
    radial-gradient(760px 300px at 20% -20%, rgba(198, 165, 102, 0.28), transparent 60%),
    linear-gradient(160deg, var(--green-950), var(--green-700));
  border: 1.5px solid rgba(198, 165, 102, 0.55);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--cream);
}
.order-card h2 { font-size: 1.55rem; color: #F2EAD8; margin-bottom: 6px; }
.order-card .sub { color: #D9E4DC; font-size: .92rem; margin-bottom: 6px; }
.order-card .sub.tiny { font-size: .84rem; margin-bottom: 18px; }

.order-card .field { text-align: right; margin-bottom: 14px; }
.order-card .field label { color: #F2EAD8; font-size: .86rem; font-weight: 700; display: block; margin-bottom: 6px; }
.order-card .field input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid rgba(198, 165, 102, 0.4);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #FFFFFF;
  color: var(--ink);
}
.order-card .field input:focus { outline: none; border-color: var(--gold-500); }

.field .err { color: #F3B8A8; font-size: .78rem; font-weight: 700; margin-top: 4px; display: none; }
.field.has-error input { border-color: #E08A73; }
.field.has-error .err { display: block; }

.note-cod { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.note-cod strong { color: var(--green-900); }
.order-card .note-cod { color: #D9E4DC; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
details.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
}
details.faq-item summary {
  font-family: "Almarai", sans-serif;
  font-weight: 800;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "﹀"; color: var(--gold-600); font-weight: 800; }
details.faq-item[open] summary::after { content: "︿"; }
details.faq-item p { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- Trust bar ---------- */
.trustbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  font-size: .84rem;
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}
.trust-item .ticon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(180deg, var(--cream), var(--gold-100));
  padding: 36px 0 50px;
  text-align: center;
}
.final-cta h2 { color: var(--green-900); font-size: 1.55rem; margin-bottom: 8px; }
.final-cta p { color: var(--muted); margin-bottom: 18px; }
.final-cta .section-img { border: none; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  color: #C9D8CE;
  font-size: .78rem;
  padding: 22px 0 92px;
  text-align: center;
}
.footer .disclaimer {
  border: 1px solid rgba(198, 165, 102, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gold-100);
  margin-bottom: 10px;
}

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sticky-cta .price-mini { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.sticky-cta .price-mini strong { color: var(--green-950); font-size: 1rem; display: block; }
.sticky-cta .btn { width: auto; flex: 1; padding: 14px 18px; }

bdi { unicode-bidi: isolate; }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.35rem; }
  .benefits { flex-direction: row; }
  .benefit { flex: 1; }
  .trustbar { grid-template-columns: repeat(4, 1fr); }
}


/* ============ BLOC DE COMMANDE (v3) ============ */
.order-card {
  position: relative;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(198, 165, 102, 0.35), transparent 60%),
    linear-gradient(160deg, #0B2B21 0%, #103C2E 45%, #1B5B45 100%);
  border: 2px solid var(--gold-500);
  border-radius: 26px;
  padding: 0 20px 22px;
  text-align: center;
  color: #F2EAD8;
  box-shadow: 0 20px 50px rgba(11, 43, 33, 0.28);
  overflow: hidden;
}

.order-ribbon {
  background: linear-gradient(135deg, #E4C37E, var(--gold-600));
  color: #2A2108;
  font-weight: 800;
  font-size: .88rem;
  padding: 11px 14px;
  margin: 0 -20px 18px;
}

/* Produit + texte côte à côte */
.order-head {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
  margin-bottom: 16px;
}
.order-product { flex: 0 0 auto; width: 104px; }
.order-product img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(198, 165, 102, 0.65);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.order-info { flex: 1; }
.order-info h2 { font-size: 1.35rem; color: #F6EFDD; margin-bottom: 2px; text-align: right; }
.order-unit { color: #D9E4DC; font-size: .84rem; margin-bottom: 8px; text-align: right; }
.order-benefits { list-style: none; margin: 0; padding: 0; text-align: right; }
.order-benefits li { font-size: .88rem; font-weight: 700; color: #F2EAD8; padding: 1px 0; }

/* Bloc formulaire délimité */
.order-form-box {
  background: #FFFFFF;
  border: 2px solid var(--gold-500);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 4px;
  text-align: right;
}
.order-form-box .field { margin-bottom: 12px; }
.order-form-box .field input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid #D8DDD6;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #FAF9F5;
  color: var(--ink);
}
.order-form-box .field input::placeholder { color: #8A9A91; }
.order-form-box .field input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(35, 112, 84, 0.15);
}
.order-form-box .field.has-error input { border-color: var(--danger); }
.order-form-box .field .err {
  color: var(--danger);
  font-size: .78rem;
  font-weight: 700;
  margin-top: 4px;
  display: none;
}
.order-form-box .field.has-error .err { display: block; }

/* Bouton achat — doré vif (jamais blanc) */
.btn-buy {
  background: linear-gradient(135deg, #F6D488 0%, #D9A83C 100%);
  color: #241A04;
  font-size: 1.18rem;
  font-weight: 800;
  padding: 17px 22px;
  border: none;
  border-radius: 999px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(246, 212, 136, 0.6); }
  70% { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 12px rgba(246, 212, 136, 0); }
  100% { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(246, 212, 136, 0); }
}

.order-cod { color: var(--muted); font-size: .86rem; margin-top: 12px; text-align: center; }

.order-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(198, 165, 102, 0.4);
  font-size: .78rem;
  color: #D9E4DC;
}

/* Ajustement : photo du produit à GAUCHE et plus grande */
.order-head { flex-direction: row-reverse; }
.order-product { width: 128px; }
.order-product img { width: 128px; height: 128px; }
@media (min-width: 700px) {
  .order-product { width: 150px; }
  .order-product img { width: 150px; height: 150px; }
}

/* ---------- Pages de confirmation ---------- */
.confirm-wrap { text-align: center; padding: 60px 0 70px; }
.confirm-ico {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 2.4rem;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(198, 165, 102, 0.4);
}
.confirm-wrap h1 { color: var(--green-900); font-size: 1.7rem; margin-bottom: 10px; }
.confirm-wrap p { color: var(--muted); margin-bottom: 8px; }
.confirm-steps {
  text-align: right;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.confirm-steps li {
  list-style: none;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}
.confirm-steps li:last-child { border-bottom: none; }
.confirm-steps li b { color: var(--green-700); }