:root {
  --fond: #F6EDE0;
  --principale: #5A3825;
  --accent: #C9A24D;
  --texte: #3A2418;
  --muted: #6B4F3E;
  --surface: #FFFAF3;
  --radius: 999px;
  --serif: Georgia, "Times New Roman", "Noto Naskh Arabic", "Amiri", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--principale);
  line-height: 1.25;
  margin: 0 0 .6em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--principale); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--principale);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--principale);
  color: var(--fond);
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: .5rem; }

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(90, 56, 37, .08);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: .6rem 1rem .3rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--principale);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.lang-btn {
  font: inherit;
  font-size: .82rem;
  padding: .3rem .7rem;
  border: 1.5px solid var(--principale);
  background: transparent;
  color: var(--principale);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 32px;
}
.lang-btn[aria-pressed="true"] {
  background: var(--principale);
  color: var(--fond);
}

.main-nav { max-width: 1100px; margin: 0 auto; padding: 0 .5rem .5rem; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .4rem;
}
.main-nav a {
  display: inline-block;
  padding: .35rem .55rem;
  font-size: .85rem;
  color: var(--texte);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: normal;
  text-align: center;
}
.main-nav a:hover { background: var(--fond); color: var(--principale); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 77, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201, 162, 77, .25), transparent 40%),
    linear-gradient(160deg, #6b4430 0%, var(--principale) 60%, #452a1b 100%);
  color: var(--fond);
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { color: var(--fond); }
.hero-kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .2rem .9rem;
}
.hero-slogan { font-family: var(--serif); font-size: clamp(1.1rem, 4vw, 1.4rem); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #2b1a10; }
.btn-primary:hover { background: #d8b363; }
.btn-ghost { border-color: var(--fond); color: var(--fond); }
.btn-ghost:hover { background: rgba(246, 237, 224, .15); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--accent); }

/* Sections */
.section { padding: 3.5rem 1.25rem; }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.section h2 { text-align: center; }
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: .6rem auto 0;
}
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.muted { color: var(--muted); font-size: .9rem; }

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--accent);
  border-radius: 24px;
  padding: 2.5rem 1rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.empty-state p { margin: 0; font-weight: 600; color: var(--principale); }
.empty-icon { display: block; font-size: 1.8rem; color: var(--accent); }

.feature-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.feature-tags li {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--principale);
  border-radius: var(--radius);
  padding: .3rem .9rem;
  font-size: .85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--fond);
  border-radius: 20px;
  padding: 1.5rem;
  border-top: 4px solid var(--accent);
  min-width: 0;
}
.section:not(.section-alt) .card { background: var(--surface); }
.card p:last-child { margin-bottom: 0; }

.order-placeholder { text-align: center; margin-top: 2rem; }
.order-placeholder .muted { margin-top: .75rem; }

.info-list { margin: 0; }
.info-list dt { font-weight: 700; color: var(--principale); font-size: .9rem; }
.info-list dd { margin: 0 0 .9rem; overflow-wrap: anywhere; }
.info-list dd:last-child { margin-bottom: 0; }
.break { word-break: break-all; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid rgba(90, 56, 37, .15);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--principale); }

/* RTL */
[dir="rtl"] body, [dir="rtl"] { letter-spacing: 0; }
[dir="rtl"] .hero-kicker { letter-spacing: 0; text-transform: none; }

@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
  .main-nav a { font-size: .95rem; padding: .4rem .8rem; }
  .section { padding: 5rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
