/* ============================================================
   Source J — Style commun
   Pour : landing (FR/EN/HE) + privacy + support
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f7f4ee;
    --bg-elev: #ffffff;
    --bg-soft: #ede8dd;
    --text: #1a1a2e;
    --text-muted: #5a5a6e;
    --accent: #0e1c2f;
    --gold: #b48a3c;
    --gold-soft: #d9b86a;
    --border: #e8e3d8;
}

body {
    font-family: 'Georgia', 'Iowan Old Style', 'Cambria', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.sans {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Hebrew (RTL) — appliqué via lang="he" sur <html> */
html[lang="he"] body {
    font-family: 'David', 'SBL Hebrew', 'Frank Ruhl Libre', 'Georgia', serif;
    direction: rtl;
    text-align: right;
}
html[lang="he"] nav, html[lang="he"] header { direction: rtl; }
html[lang="he"] .lang-switcher { padding-left: 0; padding-right: 24px; border-left: none; border-right: 1px solid var(--border); }

/* ===================== Header ===================== */
header.site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: rgba(247, 244, 238, 0.94);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
nav.site {
    display: flex;
    gap: 32px;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
nav.site a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
nav.site a:hover { color: var(--accent); }
.lang-switcher {
    display: flex;
    gap: 10px;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}
.lang-switcher a {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.lang-switcher .active { color: var(--gold); }

/* ===================== Hero (landing) ===================== */
.hero {
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 820px;
    margin: 0 auto;
}
.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 56px;
    box-shadow: 0 8px 36px rgba(14, 28, 47, 0.14);
}
.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 32px;
    letter-spacing: -0.015em;
}
.hero p.lead {
    font-size: 21px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 56px;
    font-style: italic;
}
.cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.15s;
}
.cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cta-btn .store-label { font-size: 10px; opacity: 0.7; display: block; line-height: 1; letter-spacing: 0.04em; }
.cta-btn .store-name { font-size: 15px; font-weight: 600; }

/* ===================== Section : Manifesto (landing) ===================== */
section.manifesto {
    padding: 80px 24px 100px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
section.manifesto .verse {
    font-size: 22px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 28px;
}
section.manifesto .pause {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold-soft);
    margin: 56px auto;
}

/* ===================== Section : Corpus (landing) ===================== */
section.corpus {
    background: var(--bg-elev);
    padding: 100px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.corpus-inner {
    max-width: 1080px;
    margin: 0 auto;
}
section.corpus h2 {
    text-align: center;
    font-size: 38px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
}
section.corpus > .corpus-inner > p.section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 72px;
}
.corpus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px 40px;
}
.corpus-item .hebrew {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 10px;
    font-family: 'David', 'SBL Hebrew', serif;
    direction: rtl;
    font-weight: 400;
}
.corpus-item h3 {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 500;
}
.corpus-item p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ===================== Section : Memory (landing) ===================== */
section.memory {
    padding: 100px 24px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
section.memory h2 {
    font-size: 38px;
    color: var(--accent);
    margin-bottom: 32px;
    font-weight: 400;
    letter-spacing: -0.01em;
}
section.memory p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}
section.memory .cities {
    margin-top: 40px;
    font-size: 16px;
    color: var(--gold);
    font-style: italic;
    letter-spacing: 0.04em;
}

/* ===================== Section : Approach (landing) ===================== */
section.approach {
    background: var(--accent);
    color: white;
    padding: 100px 24px;
    text-align: center;
}
section.approach h2 {
    font-size: 38px;
    margin-bottom: 32px;
    font-weight: 400;
}
section.approach p {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 20px;
    opacity: 0.88;
    line-height: 1.8;
}
section.approach .closing {
    margin-top: 56px;
    font-size: 22px;
    font-style: italic;
    opacity: 0.95;
}

/* ===================== Section : Support contact (landing & support) ===================== */
section.support {
    padding: 100px 24px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
section.support h2 {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 500;
}
section.support p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 12px;
}
section.support a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
section.support a:hover { text-decoration: underline; }

/* ===================== Pages internes (privacy, support) ===================== */
main.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}
main.page h1 {
    font-size: 42px;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
main.page p.updated {
    color: var(--text-muted);
    font-style: italic;
    font-size: 15px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
main.page h2 {
    font-size: 24px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold-soft);
}
main.page h3 {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
}
main.page p {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}
main.page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
html[lang="he"] main.page ul { padding-left: 0; padding-right: 24px; }
main.page li {
    margin-bottom: 8px;
    color: var(--text);
}
main.page a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--gold-soft);
    text-underline-offset: 3px;
}
main.page a:hover { text-decoration-color: var(--gold); }
main.page .card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

/* ===================== Footer ===================== */
footer.site {
    background: var(--bg-soft);
    padding: 48px 24px 36px;
    text-align: center;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    border-top: 1px solid var(--border);
}
footer.site a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 12px;
}
footer.site a:hover { color: var(--accent); }
footer.site .copyright {
    margin-top: 24px;
    font-size: 12px;
    opacity: 0.7;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    header.site { padding: 16px 24px; }
    nav.site > a:not(.lang-switcher a) { display: none; }
    .hero { padding: 80px 16px 56px; }
    .hero h1 { font-size: 34px; }
    .hero p.lead { font-size: 18px; }
    section.manifesto, section.corpus, section.memory, section.approach, section.support {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 72px;
        padding-bottom: 72px;
    }
    section.manifesto .verse { font-size: 18px; }
    section.corpus h2, section.memory h2, section.approach h2 { font-size: 28px; }
    main.page { padding: 56px 16px; }
    main.page h1 { font-size: 30px; }
}
