/* Qalbun — site vitrine
   Palette dérivée de l'icône de l'app : vert profond + or. */

:root {
  --green-950: #071c14;
  --green-900: #0b2b20;
  --green-800: #10382a;
  --green-700: #17503b;
  --green-600: #1f6b4f;
  --gold-400: #e8c07a;
  --gold-500: #d9a552;
  --gold-600: #b8853a;
  --cream: #f5f1e8;
  --cream-dim: rgba(245, 241, 232, 0.72);
  --cream-faint: rgba(245, 241, 232, 0.52);
  --hairline: rgba(232, 192, 122, 0.18);
  --radius: 16px;
  --measure: 68ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--green-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-400); }
a:hover { color: var(--gold-500); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--gold-500);
  color: var(--green-950);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- En-tête ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 28, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--cream); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  display: block;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.brand-mark img { width: 100%; height: 100%; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}
.nav a {
  color: var(--cream-dim);
  text-decoration: none;
}
.nav a:hover { color: var(--gold-400); }

@media (max-width: 640px) {
  .nav .nav-hide-sm { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(165deg, var(--gold-400), var(--gold-600));
  color: var(--green-950);
}
.btn-primary:hover { color: var(--green-950); }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--cream);
  background: rgba(245, 241, 232, 0.03);
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(232, 192, 122, 0.4);
}

.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- Héros ---------- */

.hero {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 50% auto;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(31, 107, 79, 0.5) 0%,
    rgba(31, 107, 79, 0.12) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero > * { position: relative; }

.hero-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--hairline);
}
.hero-mark img { width: 100%; height: 100%; display: block; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub {
  max-width: 40ch;
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
  color: var(--cream-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-meta {
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--cream-faint);
}

/* ---------- Sections ---------- */

section {
  padding: 76px 0;
  border-top: 1px solid var(--hairline);
}
section[id],
[id] { scroll-margin-top: 88px; }
section:first-of-type { border-top: none; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 680;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.08rem;
  color: var(--cream-dim);
}

/* ---------- Grille de fonctionnalités ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(
    170deg,
    rgba(31, 107, 79, 0.13),
    rgba(7, 28, 20, 0.2)
  );
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-color: rgba(232, 192, 122, 0.36);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(232, 192, 122, 0.11);
  color: var(--gold-400);
}
.card-icon svg { width: 19px; height: 19px; }

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-dim);
}

/* ---------- Premium ---------- */

.panel {
  padding: 40px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: linear-gradient(
    165deg,
    rgba(31, 107, 79, 0.2),
    rgba(7, 28, 20, 0.35)
  );
}

@media (max-width: 560px) {
  .panel { padding: 28px 22px; }
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 28px;
}
.check-list li {
  position: relative;
  padding-left: 27px;
  font-size: 0.96rem;
  color: var(--cream-dim);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.fineprint {
  margin-top: 26px;
  font-size: 0.87rem;
  color: var(--cream-faint);
}

/* ---------- Détails / spécifications ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.specs dt,
.specs .spec-k {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 6px;
}
.specs .spec-v {
  font-size: 0.98rem;
  color: var(--cream-dim);
}

/* ---------- Contact ---------- */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Note ---------- */

.note {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold-600);
  background: rgba(232, 192, 122, 0.05);
  border-radius: 0 12px 12px 0;
  font-size: 0.93rem;
  color: var(--cream-dim);
}

/* ---------- Pied de page ---------- */

.site-foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
  color: var(--cream-faint);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot-links a {
  color: var(--cream-dim);
  text-decoration: none;
}
.foot-links a:hover { color: var(--gold-400); }
.foot-legal { margin-top: 26px; line-height: 1.7; }
.foot-legal p { margin: 0; max-width: none; }

/* ---------- Pages légales ---------- */

.doc {
  padding: 64px 0 80px;
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  margin-bottom: 10px;
}
.doc .updated {
  font-size: 0.88rem;
  color: var(--cream-faint);
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 1.22rem;
  margin: 40px 0 12px;
  padding-top: 0;
  border: none;
}
.doc p,
.doc li {
  color: var(--cream-dim);
  font-size: 0.99rem;
}
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 7px; }

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 34px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.lang-switch a {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream-dim);
}
.lang-switch a[aria-current="true"] {
  background: rgba(232, 192, 122, 0.14);
  color: var(--gold-400);
}

@media print {
  .site-head, .site-foot, .lang-switch { display: none; }
  body { background: #fff; color: #000; }
  .doc p, .doc li { color: #000; }
}
