:root {
  --olive: #5B6B2F;
  --olive-dark: #47541F;
  --terre: #B5532F;
  --creme: #F6EFE0;
  --creme-alt: #EFE5D0;
  --ink: #2A2A22;
  --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; }

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

img, video, iframe { 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;
}

h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 .75rem; overflow-wrap: anywhere; }

a { color: var(--terre); }

:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--olive);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: .5rem; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  width: 100%;
  max-width: 100%;
}

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

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

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.lang-switch button {
  font: inherit;
  font-size: .85rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: .2rem .7rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--creme);
  color: var(--olive-dark);
  border-color: var(--creme);
}

.main-nav {
  border-top: 1px solid rgba(255, 255, 255, .2);
  max-width: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: .4rem .5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .4rem;
  max-width: 1100px;
}

.main-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  padding: .35rem .55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, .15);
}

/* Sections */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 760px; }

.section {
  padding: 3.5rem 0;
  text-align: center;
  scroll-margin-top: 7rem;
}

.section-alt { background: var(--creme-alt); }

.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(181, 83, 47, .08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(91, 107, 47, .1), transparent 45%),
    var(--creme);
  scroll-margin-top: 7rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .85rem;
  color: var(--terre);
  font-weight: bold;
}

[dir="rtl"] .eyebrow { letter-spacing: 0; }

.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
}

[dir="rtl"] .slogan { font-style: normal; }

.ornament {
  width: 120px;
  height: 10px;
  margin: 0 auto 1.75rem;
  background:
    linear-gradient(var(--terre), var(--terre)) center / 100% 2px no-repeat,
    radial-gradient(circle, var(--olive) 4px, transparent 5px) center / 10px 10px no-repeat;
}

.note {
  font-style: italic;
  color: #4a4a40;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: bold;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  max-width: 100%;
}

.btn-primary {
  background: var(--terre);
  color: #fff;
}

.btn-primary:hover { background: #9c4526; }

.btn[disabled] {
  background: #d9cfbd;
  color: #4a4a40;
  cursor: not-allowed;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--creme);
  border: 1px solid rgba(91, 107, 47, .25);
  border-top: 4px solid var(--olive);
  border-radius: 8px;
  padding: 1.5rem;
}

.site-footer {
  text-align: center;
  font-size: .8rem;
  padding: 1.25rem 1rem;
  color: #4a4a40;
  background: var(--creme);
  border-top: 1px solid rgba(91, 107, 47, .2);
}

.site-footer a { color: var(--olive-dark); }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { font-size: 1rem; }
}

@media (max-width: 420px) {
  .header-inner { justify-content: center; text-align: center; }
  .main-nav a { font-size: .82rem; padding: .3rem .4rem; }
  .section { scroll-margin-top: 9rem; }
}
