:root {
  --bg: #F6F0E3;
  --bar: #EDE3CF;
  --card: #E5D7B8;
  --ink: #2B2118;
  --muted: #6B5B49;
  --rust: #B5452B;
  --teal: #1F6F78;
  --line: #DCCFB2;
  --night: #0F1A2B;
  --sand: #E8B86D;
  --radius: 22px;
  --latin: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Naskh Arabic", "Amiri", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--latin);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.ar { font-family: var(--arabic); direction: rtl; }

/* En-tête */
.top { background: var(--bar); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.top nav { display: flex; gap: 20px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--rust); }

/* Accueil */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .ar { font-size: clamp(40px, 6vw, 60px); line-height: 1.5; margin: 0; color: var(--ink); text-align: left; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; margin: 4px 0 16px; color: var(--rust); letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: inline-flex; align-items: center; gap: 12px; background: var(--rust); color: #fff; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 18px; box-shadow: 0 10px 26px #b5452b40; }
.cta:hover { background: #9c3a23; }
.cta svg { width: 22px; height: 22px; }

.phone { width: min(330px, 80vw); margin-inline: auto; border-radius: 40px; padding: 10px; background: #1a120c;
  box-shadow: 0 30px 60px #2b211840, 0 0 0 2px #b5452b33; }
.phone img { border-radius: 31px; width: 100%; height: auto; aspect-ratio: 540 / 1145; }

/* Sections */
section { padding-block: 64px; }
section h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
section .intro { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fffaf0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 20px; color: var(--rust); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.dark { background: var(--night); color: #F5EEDC; }
.dark .intro { color: #c9bfae; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; box-shadow: 0 16px 36px #0008; aspect-ratio: 540 / 1145; height: auto; }
.shots figcaption { text-align: center; margin-top: 12px; font-size: 16px; color: var(--sand); }

.xassidas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.xassida { background: var(--card); border: 1.5px solid #c98b6f; border-radius: var(--radius); padding: 22px 12px; text-align: center; }
.xassida .ar { font-size: 32px; line-height: 1.6; display: block; }
.xassida span:last-child { color: var(--teal); font-weight: 700; }

.band { text-align: center; }
.band h2 { margin-bottom: 20px; }

/* Pied de page */
footer { background: var(--bar); border-top: 1px solid var(--line); padding-block: 32px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink); }

/* Page de texte (confidentialité) */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; color: var(--rust); }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--bar); }
.note { background: #fffaf0; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 18px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero .ar { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .xassidas { grid-template-columns: repeat(2, 1fr); }
  .top nav { gap: 14px; font-size: 15px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: none; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
