:root {
  --olive: #5B6B2F;
  --olive-dark: #46531F;
  --terre: #B5532F;
  --terre-dark: #9A4425;
  --creme: #F6EFE0;
  --creme-alt: #EFE4CC;
  --texte: #2E2A20;
  --texte-doux: #5A5244;
  --serif: Georgia, "Times New Roman", "Noto Naskh Arabic", "Amiri", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--olive-dark);
  line-height: 1.25;
  margin: 0 0 .75rem;
  overflow-wrap: anywhere;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: .5rem;
  top: -3rem;
  background: var(--olive-dark);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 4px;
  z-index: 10;
}
.skip-link:focus { top: .5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem 1rem .3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.lang-switch button {
  font: inherit;
  font-size: .8rem;
  padding: .3rem .6rem;
  min-height: 2rem;
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--creme);
  color: var(--olive-dark);
  border-color: var(--creme);
  font-weight: 700;
}

.main-nav {
  max-width: 72rem;
  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 .35rem;
}
.main-nav a {
  display: inline-block;
  padding: .35rem .5rem;
  font-size: .85rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  white-space: normal;
  text-align: center;
}
.main-nav a:hover { background: rgba(255,255,255,.15); text-decoration: underline; }

/* Sections */
main { display: block; }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 44rem; }

.section {
  padding: 3rem 0;
  text-align: center;
  scroll-margin-top: 7rem;
}
.section-alt { background: var(--creme-alt); }

.section h2 {
  font-size: 1.7rem;
  position: relative;
  padding-bottom: .6rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: .5rem auto 0;
  background: var(--terre);
  border-radius: 2px;
}

.soon {
  color: var(--texte-doux);
  font-style: italic;
}

/* Hero */
.hero {
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(181,83,47,.10), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(91,107,47,.14), transparent 55%),
    var(--creme);
  scroll-margin-top: 7rem;
}
.hero-inner { max-width: 40rem; margin: 0 auto; }
.hero h1 { font-size: 2.2rem; }
.slogan {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--texte-doux);
  margin: 0 0 1rem;
}
.ornament {
  width: 7rem;
  height: 12px;
  margin: 0 auto 1.5rem;
  background:
    radial-gradient(circle, var(--terre) 3px, transparent 4px) center / 14px 12px repeat-x;
}

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
}
.btn-primary { background: var(--terre-dark); color: #fff; }
.btn-primary:hover { background: var(--terre); }
.btn-outline { background: transparent; color: var(--olive-dark); border-color: var(--olive); }
.btn[disabled] {
  cursor: not-allowed;
  opacity: .55;
}
.btn-primary[disabled]:hover { background: var(--terre-dark); }

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: #fff;
  border: 1px solid #E3D7BC;
  border-top: 4px solid var(--olive);
  border-radius: 10px;
  padding: 1.25rem;
  min-width: 0;
}
.card h3 { font-size: 1.2rem; }
.card p { margin: .3rem 0; }
.email a { overflow-wrap: anywhere; word-break: break-word; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: .8rem;
  color: var(--texte-doux);
  border-top: 1px solid #E3D7BC;
}
.site-footer a { color: var(--olive-dark); }

/* RTL tweaks */
[dir="rtl"] body, [dir="rtl"] { letter-spacing: 0; }
[dir="rtl"] .main-nav a { font-size: .9rem; }

@media (min-width: 720px) {
  .header-top { padding: .75rem 1.5rem .3rem; }
  .main-nav a { font-size: .95rem; }
  .hero { padding: 6rem 1.5rem 5rem; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 4.5rem 0; }
  .section h2 { font-size: 2.1rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

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