:root {
  --noir: #1C1C1C;
  --or: #C9A24B;
  --or-fonce: #7A5C1E;
  --ivoire: #F8F4EC;
  --ivoire-2: #EFE8DA;
  --texte: #1C1C1C;
  --texte-doux: #4A4540;
  --serif: "Didot", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabe: "Geeza Pro", "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Segoe UI", Tahoma, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--texte);
  background: var(--ivoire);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

html[lang="ar"] body { font-family: var(--arabe); font-weight: 400; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: .01em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--arabe); letter-spacing: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: .5rem;
  top: -3rem;
  background: var(--noir);
  color: var(--ivoire);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: .5rem; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--noir);
  color: var(--ivoire);
  border-bottom: 1px solid var(--or);
  max-width: 100%;
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem 1rem .3rem;
}
.brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--or);
  letter-spacing: .04em;
}
.lang-switch { display: flex; flex-wrap: wrap; gap: .25rem; }
.lang-switch button {
  font: inherit;
  font-size: .8rem;
  background: transparent;
  color: var(--ivoire);
  border: 1px solid rgba(201, 162, 75, .55);
  border-radius: 2rem;
  padding: .2rem .65rem;
  cursor: pointer;
  min-height: 32px;
}
.lang-switch button[aria-pressed="true"] { background: var(--or); color: var(--noir); border-color: var(--or); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: .25rem .5rem .6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .35rem;
}
.main-nav a {
  display: inline-block;
  color: var(--ivoire);
  text-decoration: none;
  font-size: .82rem;
  padding: .35rem .5rem;
  border-radius: 2rem;
  white-space: normal;
  text-align: center;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--or); }

/* Sections */
section { scroll-margin-top: 8rem; }

.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 75, .18), transparent 60%),
    var(--ivoire);
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
  border-bottom: 1px solid var(--ivoire-2);
}
.hero-inner { max-width: 40rem; margin: 0 auto; }
.hero-ornament { color: var(--or); font-size: 1.25rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); color: var(--noir); }
.slogan { font-size: 1.1rem; color: var(--texte-doux); margin: 0 0 2rem; }

.section {
  padding: 3.5rem 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}
.section h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--or);
  margin: .9rem auto 0;
}
.section-alt { background: var(--ivoire-2); max-width: none; }
.section-alt > * { max-width: 64rem; margin-inline: auto; }

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

.placeholder-card {
  max-width: 26rem;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid var(--ivoire-2);
  padding: 2.5rem 1rem;
  color: var(--texte-doux);
  font-style: italic;
}
.placeholder-visual { font-size: 2.5rem; color: var(--or); font-style: normal; line-height: 1; margin-bottom: .75rem; }

.btn {
  display: inline-block;
  font: inherit;
  font-size: .95rem;
  padding: .75rem 1.6rem;
  border-radius: 2rem;
  text-decoration: none;
  max-width: 100%;
  min-height: 44px;
}
.btn-primary { background: var(--noir); color: var(--ivoire); border: 1px solid var(--noir); }
.btn-primary:hover { background: var(--or); color: var(--noir); border-color: var(--or); }
.btn-outline { background: transparent; color: var(--texte-doux); border: 1px dashed var(--texte-doux); }
.btn[disabled] { cursor: not-allowed; opacity: .75; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.info-card {
  background: var(--ivoire);
  border: 1px solid rgba(201, 162, 75, .45);
  padding: 1.5rem 1rem;
}
.info-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.info-card p { margin: .25rem 0; }

/* Footer */
.site-footer {
  background: var(--noir);
  color: #BDB6A8;
  text-align: center;
  font-size: .78rem;
  padding: 1.25rem 1rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--or); }

@media (min-width: 720px) {
  .header-top { padding: .8rem 2rem .3rem; }
  .brand { font-size: 1.25rem; }
  .main-nav a { font-size: .95rem; padding: .4rem .8rem; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 5rem 2rem; }
  .hero { padding: 7rem 2rem 6rem; }
}

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