:root {
  --olive: #5B6B2F;
  --olive-dark: #46531F;
  --terre: #B5532F;
  --terre-dark: #9A4424;
  --creme: #F6EFE0;
  --creme-alt: #EFE4CC;
  --texte: #2B2A22;
  --serif: Georgia, "Times New Roman", "Noto Naskh Arabic", 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;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--olive-dark);
  line-height: 1.25;
  font-weight: 600;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 720px; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: .6rem 1rem .3rem;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.lang-switch button {
  font: inherit;
  font-size: .8rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: .2rem .65rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--creme);
  color: var(--olive-dark);
  border-color: var(--creme);
}

.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: .2rem .5rem .55rem;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .35rem;
}
.main-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  padding: .3rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, .15); }

/* Accueil */
.hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(181, 83, 47, .12), transparent 60%),
    var(--creme);
  overflow: hidden;
}
.eyebrow {
  margin: 0;
  color: var(--terre-dark);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin: .4rem 0 .6rem;
  overflow-wrap: anywhere;
}
.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 1.75rem;
}
html[dir="rtl"] .slogan { font-style: normal; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.ornament {
  width: 120px;
  height: 10px;
  margin: 2.5rem auto 0;
  background: repeating-linear-gradient(90deg, var(--terre) 0 10px, transparent 10px 16px);
  opacity: .55;
}

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

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--creme-alt); }
.section h2 {
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
  text-align: center;
}
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: .6rem auto 0;
  background: var(--terre);
  border-radius: 2px;
}
.section p { text-align: center; }
.soon {
  color: #5a574a;
  font-style: italic;
}
.feature-slot { text-align: center; margin-top: 1.25rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.card {
  background: #fffaf0;
  border: 1px solid #e2d5b8;
  border-radius: 10px;
  padding: 1.25rem;
  min-width: 0;
}
.card h3 { margin: 0 0 .6rem; font-size: 1.2rem; text-align: center; }
.card p { margin: .35rem 0; }
.break { overflow-wrap: anywhere; word-break: break-word; }

/* Pied de page */
.site-footer {
  text-align: center;
  font-size: .8rem;
  color: #5a574a;
  padding: 1.25rem 1rem;
  border-top: 1px solid #e2d5b8;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--olive-dark); }

@media (min-width: 768px) {
  .main-nav a { font-size: .95rem; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
}
