:root {
  --olive: #5B6B2F;
  --olive-dark: #46531F;
  --terre: #B5532F;
  --terre-dark: #9A4424;
  --creme: #F6EFE0;
  --creme-alt: #EFE5CF;
  --texte: #2E2A22;
  --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.65;
  color: var(--texte);
  background: var(--creme);
  overflow-x: hidden;
}

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

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

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

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  inset-inline-start: -999px;
  top: 0;
  background: var(--olive-dark);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10;
}
.skip:focus { inset-inline-start: 0; }

/* En-tête */
.site-header {
  background: var(--creme);
  border-bottom: 1px solid rgba(91, 107, 47, .25);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .6rem;
  padding-bottom: .4rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

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

.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: .25rem 1rem .6rem;
  max-width: 64rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .9rem;
}
.main-nav a {
  display: inline-block;
  padding: .3rem .2rem;
  font-size: .9rem;
  color: var(--olive-dark);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { text-decoration: underline; }
.main-nav a.nav-cta {
  background: var(--terre-dark);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .9rem;
}

/* Accueil */
.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(181, 83, 47, .10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(91, 107, 47, .12), transparent 45%),
    var(--creme);
}
.ornament {
  margin: 0;
  font-size: 2rem;
  color: var(--terre);
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  margin: .25rem 0 .75rem;
}
.slogan {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  margin: 0 auto 1.75rem;
  max-width: 32rem;
}

.btn {
  display: inline-block;
  background: var(--terre-dark);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn:hover { background: var(--olive-dark); }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--creme-alt); }
.section h2 {
  font-size: clamp(1.5rem, 6vw, 2rem);
  text-align: center;
  margin: 0 0 1.75rem;
}
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--terre);
  margin: .6rem auto 0;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid rgba(91, 107, 47, .2);
  border-radius: 1rem;
  padding: 1.25rem;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.card p { margin: 0; }

.note { text-align: center; margin: 1.5rem 0 0; }

.hours {
  max-width: 26rem;
  margin: 0 auto;
}
.hours div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 0;
  border-bottom: 1px dashed rgba(91, 107, 47, .4);
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 30rem;
  text-align: center;
}
.contact-list li { padding: .4rem 0; overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: .8rem;
  color: #5a5446;
  border-top: 1px solid rgba(91, 107, 47, .2);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--olive-dark); }

/* Arabe */
html[lang="ar"] body { line-height: 1.85; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { font-size: 1rem; }
  .brand { font-size: 1.5rem; }
}

@media (max-width: 400px) {
  .main-nav ul { gap: .15rem .6rem; padding-inline: .5rem; }
  .main-nav a { font-size: .85rem; }
}

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