:root {
  --gold: #dfaf73;
  --gold-strong: #c8955a;
  --primary: #296b54;
  --primary-light: #43936c;
  --primary-deep: #133a2b;
  --bg: #f2f4f2;
  --surface: #ffffff;
  --surface-2: #e8ede9;
  --text: #1a231e;
  --text-dim: #4a5850;
  --text-faint: #95a39a;
  --line: rgba(26, 35, 30, 0.10);
  --hero-a: #f4efe4;
  --hero-b: #e9efe9;
  --hero-c: #f2f4f2;
  --hero-text: #1a231e;
  --nav-bg: rgba(242, 244, 242, 0.85);
  --shadow: 0 10px 30px rgba(19, 58, 43, 0.08);
}

html[data-theme="dark"] {
  --gold: #e4b981;
  --gold-strong: #dfaf73;
  --primary: #43936c;
  --primary-light: #52ae81;
  --primary-deep: #0d2b20;
  --bg: #0a100d;
  --surface: #141c17;
  --surface-2: #232b25;
  --text: #f5f9f6;
  --text-dim: #a3b3a8;
  --text-faint: #6a756d;
  --line: rgba(227, 186, 130, 0.10);
  --hero-a: #123b2b;
  --hero-b: #0a2117;
  --hero-c: #0a100d;
  --hero-text: #f2ede3;
  --nav-bg: rgba(10, 16, 13, 0.85);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --gold: #e4b981;
    --gold-strong: #dfaf73;
    --primary: #43936c;
    --primary-light: #52ae81;
    --primary-deep: #0d2b20;
    --bg: #0a100d;
    --surface: #141c17;
    --surface-2: #232b25;
    --text: #f5f9f6;
    --text-dim: #a3b3a8;
    --text-faint: #6a756d;
    --line: rgba(227, 186, 130, 0.10);
    --hero-a: #123b2b;
    --hero-b: #0a2117;
    --hero-c: #0a100d;
    --hero-text: #f2ede3;
    --nav-bg: rgba(10, 16, 13, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

html[lang="ar"] body { font-family: "Amiri", -apple-system, serif; }

.serif { font-family: "Playfair Display", Georgia, serif; }
html[lang="ar"] .serif { font-family: "Amiri", Georgia, serif; }
.arabic { font-family: "Amiri", serif; }

/* i18n : seuls les blocs de la langue active s'affichent */
.tr { display: none !important; }
html[lang="fr"] .tr[data-l="fr"],
html[lang="en"] .tr[data-l="en"],
html[lang="ar"] .tr[data-l="ar"] { display: revert !important; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav ─── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1060px; margin: 0 auto; gap: 14px;
}
.nav-brand { display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; color: var(--text); line-height: 1; }
.nav-brand .ar { font-size: 21px; margin-bottom: 1px; }
.nav-brand .laurel-mini { width: 38px; color: var(--gold); display: block; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-strong); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch button {
  background: none; border: none; cursor: pointer;
  padding: 5px 10px; font-size: 12px; font-weight: 700;
  color: var(--text-faint); font-family: inherit;
}
.lang-switch button.active { background: var(--surface-2); color: var(--text); }

.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 34px; height: 30px; cursor: pointer; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--gold-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
html[data-theme="dark"] .icon-moon, html:not([data-theme]) .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .icon-moon { display: block; }
  html:not([data-theme]) .icon-sun { display: none; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .icon-sun { display: block; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 96px 24px 84px;
  text-align: center;
  color: var(--hero-text);
  background:
    radial-gradient(ellipse 55% 45% at 72% 6%, rgba(223, 175, 115, 0.14), transparent),
    linear-gradient(180deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--bg) 100%);
}
.hero .ar-title { font-size: clamp(80px, 14vw, 138px); line-height: 1.12; }
.hero .laurel { width: min(220px, 55vw); margin: 4px auto 16px; color: var(--gold); display: block; }
.hero .latin-title { font-size: 14px; letter-spacing: 9px; font-weight: 700; text-transform: uppercase; color: var(--gold-strong); margin-bottom: 30px; }
.hero .tagline { font-size: clamp(21px, 3.4vw, 29px); max-width: 640px; margin: 0 auto 14px; font-weight: 500; }
.hero .sub { color: var(--text-dim); max-width: 570px; margin: 0 auto 36px; font-size: 16px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary); color: #f5f9f6;
  border-radius: 14px; padding: 13px 26px;
  text-decoration: none; font-size: 15px; font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}
.store-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.store-badge svg { width: 17px; height: 20px; }
.store-note { display: block; margin-top: 13px; font-size: 12.5px; color: var(--text-faint); }

/* ─── Sections ─── */
section { padding: 78px 0; }
.gold-rule { width: 44px; height: 1px; background: var(--gold); opacity: 0.7; margin: 0 auto 18px; }
.section-title { text-align: center; font-size: clamp(25px, 4vw, 33px); margin-bottom: 10px; font-weight: 600; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 48px; font-size: 15.5px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── Features ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
  transition: border-color 0.2s, background 0.2s;
}
.feature:hover { border-color: rgba(223, 175, 115, 0.5); }
.feature .f-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--gold-strong); }
.feature .f-head svg { width: 19px; height: 19px; flex-shrink: 0; }
.feature h3 { font-size: 15.5px; font-weight: 600; color: var(--text); margin: 0; }
.feature p { color: var(--text-dim); font-size: 13.5px; }

/* ─── Verse band ─── */
.verse-band {
  text-align: center; padding: 58px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.verse-band .laurel-band { width: 120px; color: var(--gold); display: block; margin: 0 auto 14px; }
.verse-band .ar { font-size: 30px; margin-bottom: 8px; color: var(--text); }
.verse-band .fr { color: var(--text-dim); font-size: 15px; max-width: 560px; margin: 0 auto 10px; }
.verse-band .ref { color: var(--gold-strong); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }

/* ─── Values ─── */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.value { text-align: center; padding: 26px 16px; }
.value .v-icon { color: var(--gold-strong); margin-bottom: 12px; }
.value .v-icon svg { width: 24px; height: 24px; }
.value h4 { font-size: 15.5px; margin-bottom: 6px; font-weight: 600; }
.value p { color: var(--text-dim); font-size: 13.5px; }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--line); padding: 42px 24px 34px; text-align: center; }
footer .laurel-mini { width: 72px; color: var(--gold); margin: 0 auto 10px; display: block; }
footer .made { color: var(--text-dim); font-size: 13.5px; margin-bottom: 16px; }
footer .credits { color: var(--text-faint); font-size: 12px; max-width: 640px; margin: 0 auto 18px; }
footer .links { display: flex; gap: 22px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
footer .links a { color: var(--text-dim); font-size: 13px; text-decoration: none; }
footer .links a:hover { color: var(--gold-strong); }
footer .copy { color: var(--text-faint); font-size: 12px; }

/* ─── Pages légales / support ─── */
.page { max-width: 720px; margin: 0 auto; padding: 64px 24px 90px; }
.page h1 { font-size: 30px; margin-bottom: 8px; }
.page .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 38px; }
.page h2 { color: var(--gold-strong); font-size: 18px; margin: 34px 0 10px; font-weight: 600; }
.page p, .page li { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.page ul { padding-left: 22px; }
html[dir="rtl"] .page ul { padding-left: 0; padding-right: 22px; }
.page a { color: var(--gold-strong); }
.contact-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; margin-top: 28px; text-align: center;
  box-shadow: var(--shadow);
}
.contact-box a { font-size: 17px; font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 58px 0; }
  .hero { padding: 72px 20px 64px; }
}

footer .credits a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
footer .credits a:hover { color: var(--gold-strong); }

.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 22px; justify-content: center; }
.island-strip { max-width: 560px; margin: 34px auto 0; text-align: center; }
.island-strip img { width: 100%; display: block; border-radius: 26px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.island-strip img.pill { width: 62%; margin: 0 auto 16px; border-radius: 0; box-shadow: none; }
.island-strip p { margin-top: 14px; font-size: .92rem; color: var(--text-dim); line-height: 1.55; }
.phone { border: 1px solid var(--line); border-radius: 38px; padding: 10px; background: var(--surface); }
.phone img { width: 100%; display: block; border-radius: 28px; }
