/* =========================================================
   Rêve de Femmes — feuille de style
   Palette : émeraude profond, bordeaux, or, ivoire
   ========================================================= */
:root {
  --ivory: #faf6ef;
  --sand: #f1e8d9;
  --ink: #2a1f1d;
  --muted: #6e5f58;
  --emerald: #0f4c45;
  --emerald-dark: #0a3530;
  --burgundy: #7a1f35;
  --gold: #b88a3e;
  --gold-light: #d9b872;
  --line: #e3d6c2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 31, 29, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .8em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .9em 1.8em;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .03em;
  border: 1px solid var(--emerald);
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--emerald-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--small { padding: .55em 1.2em; font-size: .88rem; }
.btn--full { width: 100%; }
.btn--outline { background: transparent; color: var(--emerald); }
.btn--outline:hover { background: var(--emerald); color: #fff; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .5em; text-decoration: none; }
.logo__mark { color: var(--gold); font-size: 1.2rem; }
.logo__text { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--burgundy); white-space: nowrap; }
@media (max-width: 420px) {
  .logo__text { font-size: 1.3rem; }
  .logo { gap: .35em; }
}
.header__inner { gap: 16px; }
.nav { display: flex; align-items: center; gap: 1.8rem; margin-inline-start: auto; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- Sélecteur de langue ---------- */
.lang { position: relative; flex-shrink: 0; }
.flag { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(42,31,29,.15); }
.lang__current {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px 5px 6px; cursor: pointer; transition: border-color .2s;
}
[dir="rtl"] .lang__current { padding: 5px 6px 5px 10px; }
.lang__current:hover, .lang__current[aria-expanded="true"] { border-color: var(--gold); }
.lang__caret { width: 10px; height: 6px; opacity: .6; transition: transform .2s; }
.lang__current[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70;
  list-style: none; margin: 0; padding: 6px; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang__menu[hidden] { display: none; }
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .95rem; color: var(--ink); text-align: start;
}
.lang__menu button[lang="ar"] { font-family: "Tajawal", sans-serif; }
.lang__menu button:hover { background: var(--ivory); }
.lang__menu button.is-current { background: var(--sand); font-weight: 500; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Motif zellige (SVG inline) ---------- */
.hero__pattern, .arch__pattern, .product__visual::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d9b872' stroke-width='1' opacity='.55'%3E%3Cpath d='M40 4 L52 28 L76 40 L52 52 L40 76 L28 52 L4 40 L28 28 Z'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background: radial-gradient(ellipse at 70% 30%, #16655b 0%, var(--emerald) 45%, var(--emerald-dark) 100%);
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 110px);
}
.hero__pattern { position: absolute; inset: 0; opacity: .35; mask-image: linear-gradient(to left, #000 20%, transparent 85%); -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 85%); }
.hero__inner { position: relative; max-width: 1180px; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero__lead { max-width: 560px; font-size: 1.12rem; opacity: .9; margin: 1.2em 0 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn:not(.btn--ghost) { background: var(--gold); border-color: var(--gold); color: var(--emerald-dark); font-weight: 500; }
.hero .btn:not(.btn--ghost):hover { background: var(--gold-light); }
.hero__facts {
  list-style: none; padding: 0; margin: 3.5em 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  font-size: .95rem; opacity: .85;
}
.hero__facts strong { color: var(--gold-light); font-weight: 500; }

/* ---------- Occasions ---------- */
.occasions { background: var(--sand); padding: 48px 0; border-bottom: 1px solid var(--line); }
.occasions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.occasion { text-align: center; }
.occasion__icon { color: var(--gold); font-size: 1.6rem; }
.occasion h3 { margin: .3em 0 .2em; color: var(--burgundy); }
.occasion p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 110px) 0; }
.section--tinted { background: var(--sand); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p:last-child { color: var(--muted); }

/* ---------- Filtres ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: var(--sans); font-size: .92rem;
  padding: .55em 1.4em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

/* ---------- Produits ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  animation: fadeUp .45s ease both;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,31,29,.12); }
.product__visual {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  display: grid; place-items: center;
}
.product__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product__visual::before { content: ""; position: absolute; inset: 0; opacity: .5; }
.product__silhouette { position: relative; width: 46%; color: rgba(255,255,255,.85); }
.product__tags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; z-index: 2; }
.tag {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .8em; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 500;
}
.tag--location { background: var(--gold-light); color: var(--emerald-dark); }
.product__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { margin-bottom: .15em; }
.product__desc { color: var(--muted); font-size: .93rem; margin-bottom: 1em; }
.product__prices { display: flex; gap: 18px; margin-bottom: 1.1em; font-size: .92rem; }
.product__prices span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product__prices strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--burgundy); }
.product__body .btn { margin-top: auto; text-align: center; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }
.step__num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; border: 1px solid var(--line); }
.price-card--featured { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); transform: scale(1.03); }
.price-card__price { font-size: 1rem; margin-bottom: .2em; }
.price-card__price strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--burgundy); }
.price-card--featured .price-card__price strong { color: var(--gold-light); }
.price-card__note { font-size: .9rem; opacity: .75; margin: 0; }
.pricing__foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* ---------- La maison ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.arch {
  aspect-ratio: 4 / 5; max-width: 440px; margin: 0 auto;
  border-radius: 999px 999px 18px 18px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--burgundy), #4d1222);
  box-shadow: var(--shadow);
  outline: 1px solid var(--gold); outline-offset: 10px;
}
.arch__pattern { position: absolute; inset: 0; opacity: .5; }
.about__text p { color: var(--muted); }
.about__list { list-style: none; padding: 0; margin: 1.5em 0 0; }
.about__list li { padding-block: .45em; padding-inline-start: 1.8em; position: relative; }
.about__list li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 18px; padding-inline-end: 28px; position: relative;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.6rem; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { margin: 2em 0; display: grid; gap: 18px; }
.contact__list dt { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.contact__list dd { margin: .2em 0 0; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { text-decoration: none; font-size: .9rem; padding: .45em 1.1em; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.socials a:hover { border-color: var(--gold); }

.form { background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { margin-bottom: .2em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,138,62,.15); }
.form input.is-invalid { border-color: var(--burgundy); }
.form__error { color: var(--burgundy); font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--emerald-dark); color: rgba(250,246,239,.8); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer .logo__text { color: var(--gold-light); }
.footer p { margin: .3em 0 0; font-size: .92rem; }
.footer__copy { font-size: .85rem; opacity: .7; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Arabe (lecture de droite à gauche) ---------- */
:root[dir="rtl"] {
  --serif: "Amiri", "Cormorant Garamond", serif;
  --sans: "Tajawal", "Jost", system-ui, sans-serif;
}
[dir="rtl"] body { font-weight: 400; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .tag,
[dir="rtl"] .contact__list dt,
[dir="rtl"] .product__prices span,
[dir="rtl"] .btn { letter-spacing: 0; }
[dir="rtl"] .eyebrow { font-size: .9rem; }
[dir="rtl"] .hero h1 em { font-style: normal; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.4; }
[dir="rtl"] .hero__pattern {
  mask-image: linear-gradient(to right, #000 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(to right, #000 20%, transparent 85%);
}
[dir="rtl"] .logo__text, [dir="rtl"] .product__body h3 { font-family: "Cormorant Garamond", serif; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .occasions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .lang { margin-inline-start: auto; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pricing { grid-template-columns: 1fr; max-width: 400px; }
  .price-card--featured { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .occasions__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__facts { flex-direction: column; gap: 8px; }
}

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