/* ForgeLab Apps Spirituel — feuille de style unique.
   Aucune police ni ressource externe : le site ne contacte aucun tiers. */

:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-2: #efe8d8;
  --ink: #1d2721;
  --ink-soft: #4b5a51;
  --line: #ddd3bf;
  --green: #1f5d3a;
  --green-soft: #e3ede4;
  --gold: #a87a2c;
  --gold-soft: #f5e9cf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121814;
    --surface: #19211c;
    --surface-2: #222c25;
    --ink: #ece6d8;
    --ink-soft: #b2b9ad;
    --line: #2f3a32;
    --green: #7cc59a;
    --green-soft: #1d2e23;
    --gold: #e3b964;
    --gold-soft: #2c2619;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.brand img { width: 34px; height: 34px; }
.header-right { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--green); }
.lang { display: flex; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang a {
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang a:hover { color: var(--green); }
.lang a[aria-current] { background: var(--green-soft); color: var(--green); }

/* Accroche */
.hero { padding: 88px 0 72px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 40em;
}
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { color: var(--bg); filter: brightness(1.1); }
.btn.ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  margin-inline-start: 8px;
}

section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
.section-intro { color: var(--ink-soft); max-width: 42em; margin-bottom: 32px; }

/* Engagements */
.pledges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.pledge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.pledge .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 12px;
}
.pledge h3 { font-size: 1.1rem; margin-bottom: .3em; }
.pledge p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Catalogue d'applications : une fiche par app, la grille s'agrandit seule. */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.app-card > p { color: var(--ink-soft); }
.app-card .app-links { margin-top: auto; padding-top: 16px; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-head img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.app-head h3 { margin: 0; font-size: 1.5rem; }
.app-head .meta { color: var(--ink-soft); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li {
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.features { padding-inline-start: 1.1em; color: var(--ink-soft); margin: 0 0 20px; }
.features li { margin-bottom: 4px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.shots { display: flex; gap: 10px; margin: 4px 0 18px; }
.shots img {
  width: calc((100% - 20px) / 3);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.app-card.coming {
  background: transparent;
  border: 1.5px dashed var(--line);
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
  min-height: 220px;
}
.app-card.coming h3 { color: var(--ink); }

/* Studio */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-box .mail { font-size: 1.15rem; font-weight: 600; word-break: break-all; }

/* Pages de texte (confidentialité, mentions) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc .updated { color: var(--ink-soft); font-size: .95rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { width: 38%; font-weight: 600; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.doc dt { font-weight: 600; }
.doc dd { margin: 0; }

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* Arabe : polices système qui couvrent l'écriture arabe, sans espacement
   artificiel des lettres (il casserait les liaisons). */
html[lang="ar"] {
  --serif: "Noto Naskh Arabic", "Segoe UI", Tahoma, "Geeza Pro", serif;
  --sans: "Segoe UI", "Noto Sans Arabic", Tahoma, "Geeza Pro", sans-serif;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .app-card { padding: 22px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .btn.ghost { margin-inline-start: 0; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 10px; }
}
