:root {
  --olive: #5B6B2F;
  --olive-dark: #45521f;
  --terre: #B5532F;
  --terre-dark: #96421f;
  --creme: #F6EFE0;
  --creme-2: #EFE4CC;
  --texte: #2b2a22;
  --serif: Georgia, "Times New Roman", "Noto Naskh Arabic", 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;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  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 .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.2rem; }

p { margin: 0 0 .8em; }

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

.break { overflow-wrap: anywhere; word-break: break-word; }

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

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

/* En-tête */
.site-header {
  background: var(--olive);
  color: #fff;
  border-bottom: 4px solid var(--terre);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: .75rem 1rem .25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}
.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,.7);
  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 { max-width: 960px; margin: 0 auto; padding: .25rem .5rem .6rem; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .5rem;
}
.main-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  padding: .35rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible { background: var(--olive-dark); text-decoration: underline; }

/* Sections */
main section { padding: 3rem 0; }
section.alt { background: var(--creme-2); }
[id] { scroll-margin-top: 1rem; }

.hero { text-align: center; padding: 3.5rem 0 3rem; }
.eyebrow {
  color: var(--terre-dark);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.slogan { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--texte); }
html[lang="ar"] .slogan { font-style: normal; }

.hero-actions, .placeholder-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem;
}
.placeholder-actions { justify-content: flex-start; }

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

.soon { font-style: italic; color: #5a564a; }

.ornament {
  height: 14px;
  max-width: 220px;
  margin: 0 auto;
  background:
    radial-gradient(circle, var(--terre) 3px, transparent 4px) center / 22px 14px repeat-x;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  background: #fff;
  border: 1px solid #e3d6b8;
  border-top: 4px solid var(--olive);
  border-radius: 10px;
  padding: 1.25rem;
  min-width: 0;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { font-size: 1rem; }
}

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

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

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