/* =========================================
   IQRA.CSS — Page de présentation Iqra
   Palette : Bleu Nuit & Or (thème sombre app)
   =========================================
   Background:  #141a28
   Surface:     #1e2636 / #2a3447
   Accent Or:   #d4af37
   Texte:       #f8f9fa / #cbd5e1
   ========================================= */

:root {
    --bg:           #141a28;
    --surface:      #1e2636;
    --surface-2:    #2a3447;
    --gold:         #d4af37;
    --gold-light:   rgba(212, 175, 55, 0.15);
    --gold-border:  rgba(212, 175, 55, 0.25);
    --text:         #f8f9fa;
    --text-muted:   #cbd5e1;
    --text-dim:     #8a94a6;
    --radius-lg:    20px;
    --radius-md:    12px;
    --radius-pill:  50px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Décorations de fond ---- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.06);
    top: -200px;
    right: -150px;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(30, 60, 100, 0.4);
    bottom: -150px;
    left: -150px;
}

/* ---- Layout principal ---- */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ---- Header / Logo ---- */
.iqra-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 64px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.brand-name span {
    color: var(--gold);
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

.app-icon {
    width: 100px;
    height: 100px;
    background: var(--surface-2);
    border: 2px solid var(--gold-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.12);
    overflow: hidden;
    padding: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hero h1 .arabic {
    color: var(--gold);
    font-size: 2.5rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero .version-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 36px;
}

/* ---- Bouton Play Store ---- */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-playstore {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-playstore:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.btn-playstore img {
    display: block;
    height: 60px;
    width: auto;
}



.coming-soon-note {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---- Fonctionnalités ---- */
.features-section {
    margin-bottom: 64px;
}

.features-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.feature-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    height: 34px;
}

.feature-icon i {
    width: 30px;
    height: 30px;
    color: var(--gold);
    stroke-width: 1.75;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Section légale ---- */
.legal-section {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.legal-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.legal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
}

.legal-link:last-child {
    border-bottom: none;
}

.legal-link:hover {
    background: var(--surface-2);
}

.legal-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-link-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.legal-link-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.legal-link-arrow {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--gold-border);
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.site-footer a {
    color: var(--gold);
    transition: opacity 0.2s;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* =========================================
   PAGES LÉGALES
   ========================================= */

/* ---- Header ---- */
.law-header {
    background: var(--surface);
    border-bottom: 1px solid var(--gold-border);
    padding: 28px 24px 20px;
    text-align: center;
}

.law-header .app-name {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.law-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
}

/* ---- Navigation légale ---- */
.law-nav {
    background: var(--surface);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 12px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.law-nav::-webkit-scrollbar { display: none; }

.law-nav-links {
    display: flex;
    flex: 1;
}

.law-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.law-nav a:hover { color: var(--text); }

.law-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.law-nav a.back-link {
    border-left: 1px solid rgba(255,255,255,0.08);
    margin-left: auto;
    padding-left: 16px;
}

.lang-btn {
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    border-radius: var(--radius-md);
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    transition: background 0.2s;
    font-family: inherit;
}

.lang-btn:hover { background: rgba(212,175,55,0.25); }

/* Lucide icon sizes */
.law-nav a i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke-width: 2;
}

.law-article h2 i {
    color: var(--gold);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke-width: 2;
}

.law-intro-box i {
    width: 15px;
    height: 15px;
    color: var(--gold);
    vertical-align: -2px;
    stroke-width: 2;
}

/* ---- Contenu ---- */
.law-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

/* ---- Box intro ---- */
.law-intro-box {
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 36px;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.law-intro-box strong { color: var(--gold); }

/* ---- Articles ---- */
.law-article {
    margin-bottom: 40px;
}

.law-article h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-border);
}

.law-article h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
    margin: 16px 0 8px;
}

.law-article p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.75;
}

.law-article ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.law-article ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.65;
}

.law-article ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.law-article a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.law-article strong { color: var(--text); }

/* ---- Encadré mise en évidence ---- */
.law-highlight {
    background: var(--surface-2);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 16px;
    margin: 12px 0;
}

.law-highlight p { margin: 0; }

/* ---- Date de mise à jour ---- */
.law-updated {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: right;
    margin-bottom: 28px;
}

/* ---- Footer légal ---- */
.law-footer {
    text-align: center;
    padding: 24px;
    margin-top: 20px;
    border-top: 1px solid var(--gold-border);
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.law-footer a { color: var(--gold); }

/* ---- Responsive légal ---- */
@media (max-width: 480px) {
    .law-container { padding: 24px 16px 60px; }
    .law-header h1 { font-size: 1.2rem; }
    .law-nav a { padding: 12px 8px; font-size: 0.75rem; }
}

/* =========================================
   FIN PAGES LÉGALES
   ========================================= */

/* ---- Responsive ---- */
@media (max-width: 500px) {
    .page-wrapper {
        padding: 40px 18px 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
