:root {
  --rose: #b0386b;
  --rose-dark: #8f2754;
  --rose-soft: #fbe7ef;
  --rose-line: #f0d3df;
  --ink: #2b1a24;
  --muted: #7a6470;
  --bg: #fffafc;
  --card: #ffffff;
  --green: #1f8a5b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120, 30, 70, .09);
  --heading: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 64px;
}
html[lang="ar"] {
  --heading: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --sans: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lock { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; font-family: var(--heading); }
h3 { font-family: var(--sans); }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 700; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; vertical-align: middle; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- Header ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rose); color: #fff;
  font-size: .82rem; font-weight: 500;
  padding: 8px 16px; text-align: center;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 250, 252, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rose-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
@media (min-width: 768px) { :root { --header-h: 76px; } .logo img { height: 58px; } }
.footer-logo { height: 56px; width: auto; margin: 0 auto 16px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 10px; border-radius: 10px; transition: background .15s;
}
.site-header nav a:hover { background: var(--rose-soft); }
.site-header nav a.active { color: var(--rose); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--rose-line); border-radius: 999px !important;
  padding: 6px 12px !important; font-size: .88rem !important;
}
@media (max-width: 420px) { .hide-xs { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px;
  font: 700 1rem var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 8px 20px rgba(176, 56, 107, .28); }
.btn-primary:hover { background: var(--rose-dark); box-shadow: 0 10px 26px rgba(176, 56, 107, .36); }
.btn-primary:disabled { opacity: .65; cursor: wait; }
.btn-ghost { background: var(--rose-soft); color: var(--rose); }
.btn-lg { min-height: 56px; font-size: 1.08rem; padding: 14px 32px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(82svh - 100px);
  display: grid; place-items: center;
  text-align: center;
  padding: 40px 20px 24px;
  background:
    radial-gradient(circle at 20% 15%, #fde1ec 0, transparent 45%),
    radial-gradient(circle at 85% 80%, #f7d4e3 0, transparent 45%),
    var(--bg);
}
@media (min-width: 900px) { .hero { min-height: 62vh; } }
.hero-inner { max-width: 620px; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 700; color: var(--rose);
  margin: 0 0 12px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); margin-bottom: 14px; }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.scroll-hint {
  margin-top: 32px; color: var(--rose); display: inline-flex;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Product cards ---------- */
.products { display: grid; gap: 24px; padding-block: 16px 40px; }
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 900px) {
  .product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .product-card .card-body { padding: 40px 48px; }
  .product-card .card-title h2 { font-size: 2rem; }
}
.card-media { position: relative; }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--green);
  font-size: .78rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-body { padding: 18px 16px 22px; }
.card-title { color: inherit; text-decoration: none; }
.card-title:hover h2 { color: var(--rose); }
.card-title h2 { font-size: 1.35rem; margin-bottom: 4px; transition: color .15s; }
.card-body > .muted { margin: 0 0 10px; }
.price { font-size: 1.6rem; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-lg { font-size: 2.1rem; margin-bottom: 6px; }
.free { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--green); }
.more-link {
  display: inline-flex; align-items: center; gap: 4px; justify-content: center;
  width: 100%; margin-top: 14px; font-weight: 600; text-decoration: none; font-size: .95rem;
}
.more-link:hover { text-decoration: underline; }
.mini-perks {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  font-size: .82rem; color: var(--muted);
}
.mini-perks li { display: inline-flex; align-items: center; gap: 6px; }
.mini-perks .icon { color: var(--rose); }

/* ---------- Slider ---------- */
.slider-wrap { position: relative; }
.slider {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 5;
  background: var(--rose-soft);
}
.slider::-webkit-scrollbar { display: none; }
.slider img {
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; scroll-snap-align: center; user-select: none;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: pointer;
  transition: opacity .2s, background .15s;
}
.slide-btn:hover { background: #fff; }
.slide-prev { inset-inline-start: 12px; }
.slide-next { inset-inline-end: 12px; }
@media (hover: hover) and (min-width: 768px) { .slide-btn { display: inline-flex; } }
.dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); transition: all .2s; }
.dots span.on { background: #fff; width: 18px; border-radius: 4px; }

/* ---------- Sizes ---------- */
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.size {
  min-width: 48px; height: 42px; padding: 0 10px;
  border: 1.5px solid var(--rose-line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font: 700 .9rem 'DM Sans', system-ui, sans-serif;
  cursor: pointer; touch-action: manipulation;
  transition: all .15s ease;
}
.size:hover { border-color: var(--rose); }
.size.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sizes-sm .size { min-width: 44px; height: 38px; }

.field { display: block; margin-bottom: 14px; }
.label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-block: 8px 32px; text-align: center; }
.perks div { background: var(--card); border-radius: 14px; padding: 16px 8px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .perks { gap: 20px; } .perks div { padding: 26px 16px; } .perks strong { font-size: 1rem !important; } .perks small { font-size: .88rem !important; } }
.perk-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rose-soft); color: var(--rose);
}
.perks strong { display: block; font-size: .84rem; margin-top: 8px; }
.perks small { color: var(--muted); font-size: .74rem; }
.seo-text { padding-block: 8px 40px; max-width: 860px; }
.seo-text h2 { font-size: 1.25rem; }
.seo-text p { color: var(--muted); margin: 0; }

/* ---------- Product page ---------- */
.product-page { padding-block: 0 100px; }
.product-page.container { padding-inline: 0; }
@media (min-width: 860px) {
  .product-page.container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding: 40px 32px 64px; }
  .gallery { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .slider-lg { border-radius: var(--radius); }
  .product-info { padding: 0 !important; }
}
.thumbs { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; }
@media (min-width: 860px) { .thumbs { padding: 14px 0; } }
.thumbs button {
  flex: 0 0 64px; height: 80px; padding: 0;
  border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--rose-soft); cursor: pointer;
}
.thumbs button.on { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 18px 16px; }
.product-info h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.free-line { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--green); font-weight: 500; }
.reassure { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--muted); font-size: .88rem; margin: 12px 0 0; }

.accordion { margin-top: 28px; }
.accordion details { border-bottom: 1px solid var(--rose-line); }
.accordion summary {
  list-style: none; cursor: pointer;
  padding: 16px 0; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--rose); transition: transform .2s; line-height: 1; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > *:not(summary) { margin-top: 0; }
.accordion details > :last-child { margin-bottom: 16px; }
.checks { list-style: none; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.checks .icon { color: var(--green); margin-top: 4px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th, .size-table td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--rose-line); }
.size-table th { background: var(--rose-soft); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: #fff; border-top: 1px solid var(--rose-line);
  box-shadow: 0 -6px 20px rgba(120, 30, 70, .08);
}
.sticky-buy strong { display: block; font-size: 1.2rem; }
.sticky-buy small { color: var(--green); font-weight: 700; }
.sticky-buy .btn { flex: 1; max-width: 220px; }
@media (min-width: 860px) { .sticky-buy { display: none; } }

/* ---------- Content pages ---------- */
.page { padding-bottom: 48px; }
.page-hero { text-align: center; padding: 48px 4px 28px; }
.page-hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto 16px; }
.cards-3 { display: grid; gap: 14px; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.info-card { background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card h3 { margin: 12px 0 4px; }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps { margin-top: 40px; }
.steps ol { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 4px; }
@media (min-width: 860px) { .steps ol { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.steps li {
  counter-increment: step; position: relative;
  padding-block: 4px 18px; padding-inline-start: 52px; color: var(--muted);
}
.steps li strong { color: var(--ink); display: block; }
.steps li::before {
  content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--rose); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.partner {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--rose-soft); border-radius: var(--radius); padding: 24px; margin-top: 24px;
}
.partner > div:last-child { flex: 1 1 260px; }
.partner p { margin: 0; color: var(--muted); }
.partner-logo {
  font: 800 1.6rem 'DM Sans', system-ui, sans-serif; letter-spacing: -.02em;
  background: #fff; color: var(--ink);
  padding: 14px 24px; border-radius: 12px;
}
.faq { margin-top: 40px; max-width: 860px; }
.cta-band {
  text-align: center; margin-top: 40px; padding: 36px 20px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.cta-band p { color: #e8d5de; margin: 0 0 20px; }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.2rem; margin-top: 30px; }
.legal p, .legal li { color: #4a3842; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 32px 0 calc(32px + var(--safe-bottom)); border-top: 1px solid var(--rose-line); font-size: .9rem; background: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-weight: 500; }
.footer-badges span { display: inline-flex; align-items: center; gap: 8px; }
.footer-badges .icon { color: var(--rose); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.footer-links span { color: var(--rose-line); }
.product-page ~ .site-footer { padding-bottom: calc(100px + var(--safe-bottom)); }
@media (min-width: 860px) { .product-page ~ .site-footer { padding-bottom: 32px; } }

/* ---------- Order modal (bottom sheet on mobile, centered on desktop) ---------- */
.modal {
  position: fixed; left: 0; right: 0; top: 0; height: 100%;
  z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(43, 26, 36, .5);
  opacity: 0; transition: opacity .2s ease;
}
.modal-sheet {
  position: relative; width: 100%; max-width: 460px;
  max-height: 100%; overflow-y: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(18px + var(--safe-bottom));
  transform: translateY(30px); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-sheet { transform: none; opacity: 1; }
@media (min-width: 600px) {
  .modal { align-items: center; }
  .modal-sheet { border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(43, 26, 36, .3); }
}
.modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--rose-soft); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.order-summary { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding-inline-end: 44px; }
.order-summary img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--rose-soft); flex-shrink: 0; }
.order-summary h2 { font-size: 1.15rem; margin: 0; }
.order-summary p { margin: 0; font-size: .92rem; }
.order-line { color: var(--muted); }

.phone-input {
  display: flex; align-items: stretch;
  border: 2px solid var(--rose-line); border-radius: 14px;
  overflow: hidden; transition: border-color .15s;
}
.phone-input:focus-within { border-color: var(--rose); }
.phone-input .prefix {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--rose-soft); font: 700 1.05rem 'DM Sans', system-ui, sans-serif; white-space: nowrap;
}
.phone-input input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  padding: 14px 12px;
  font: 700 1.25rem 'DM Sans', system-ui, sans-serif; /* >= 16px : pas de zoom sur iOS */
  letter-spacing: .04em; color: var(--ink);
}
.phone-input.invalid { border-color: #d33; }
.form-error { color: #c62828; font-size: .9rem; margin: -4px 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.order-success { text-align: center; padding: 10px 4px 0; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
}
.order-success p { color: var(--muted); }
.order-success p strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
