:root {
  --charbon: #222222;
  --sable: #E9DFCF;
  --terracotta: #B85C3E;
  --blanc: #FFFFFF;
  --texte-doux: #4A4A4A;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabe: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Arabic Typesetting", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

html[lang="ar"] body { font-family: var(--arabe); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--arabe); }

img, video, svg, select, input, button { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
h3 { font-size: 1.2rem; }

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

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

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

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

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--sable);
  max-width: 100%;
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.25rem 0.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--charbon);
  text-decoration: none;
  min-width: 0;
}
.lang-switch { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.lang-switch button {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  min-height: 2.25rem;
  border: 1px solid var(--charbon);
  background: var(--blanc);
  color: var(--charbon);
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--charbon); color: var(--blanc); }

.main-nav { max-width: 100%; }
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.25rem 0.75rem 0.6rem;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.4rem;
}
.main-nav a {
  display: inline-block;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: var(--charbon);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--sable); }

/* Sections */
.hero {
  background: var(--sable);
  text-align: center;
  padding: 4.5rem 0 4rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.slogan { font-size: 1.2rem; margin: 0 0 2rem; }

.section { padding: 3.5rem 0; }
.section-alt { background: #F7F3EC; }

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

.btn {
  display: inline-block;
  font: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  max-width: 100%;
}
.btn-primary { background: var(--terracotta); color: var(--blanc); }
.btn-primary:hover { background: #9E4C31; }
.btn-outline { background: transparent; border-color: var(--texte-doux); color: var(--texte-doux); }
.btn[disabled] { cursor: not-allowed; opacity: 0.85; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 10rem; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field select {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid #8A8A8A;
  border-radius: 6px;
  background: var(--blanc);
  color: var(--charbon);
  width: 100%;
}
.field select:disabled { background: #F2F2F2; color: var(--texte-doux); }

.feature-slot { margin-top: 1.5rem; }

.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  background: var(--blanc);
  border: 1px solid var(--sable);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  min-width: 0;
}
.card p { margin: 0.25rem 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--sable); }
.contact-list .label { display: block; font-size: 0.85rem; color: var(--texte-doux); }
.contact-list a { color: var(--charbon); font-size: 1.05rem; word-break: break-all; }

/* Pied de page */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--texte-doux);
  border-top: 1px solid var(--sable);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--texte-doux); }

@media (min-width: 720px) {
  .main-nav a { font-size: 0.95rem; padding: 0.4rem 0.75rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero { padding: 6.5rem 0 6rem; }
  .filters { max-width: 36rem; }
}

@media (max-width: 360px) {
  .main-nav a { font-size: 0.8rem; padding: 0.35rem 0.4rem; }
  .brand { font-size: 1rem; }
}

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