/* ============================================================
   A Basket Case — Site officiel
   Style partagé pour index.html, privacy.html, terms.html

   Identité visuelle alignée avec l'app iOS :
   - Fond bleu nuit (#1A2845) identique au Launch Screen
   - Accent doré (#E8C547) cohérent avec l'étoile orbitante du Home
   - Typographie Inter (Google Fonts), ressemble à Avenir Next in-app
   ============================================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #1A2845;
    color: #FFFFFF;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #E8C547;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover { opacity: 0.75; }

/* ============================================================
   HEADER (présent sur les 3 pages)
   ============================================================ */
header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
}

nav a {
    color: rgba(255, 255, 255, 0.7);
}

nav a:hover { color: #FFFFFF; opacity: 1; }
nav a.active { color: #FFFFFF; }

/* ============================================================
   MAIN — contenu central
   ============================================================ */
main {
    flex: 1;
    padding: 40px 20px 60px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================================
   HERO (index.html uniquement)
   ============================================================ */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero-icon {
    width: 180px;
    height: 180px;
    border-radius: 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero .tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 36px;
}

.cta-button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #1A2845;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.cta-button.disabled {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    pointer-events: none;
}

.cta-note {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   SECTIONS génériques
   ============================================================ */
section {
    margin-bottom: 48px;
}

section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}

section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

section ul {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px 22px;
}

section ul li { margin-bottom: 8px; }

/* Page legal (privacy / terms) */
.legal h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal .updated {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-bottom: 36px;
}

/* Card highlight (used for "À propos" + contact box) */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 24px 0;
}

.card h3 {
    margin-top: 0;
    color: #E8C547;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.card p, .card ul {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* ============================================================
   FOOTER (présent sur les 3 pages)
   ============================================================ */
footer {
    padding: 28px 20px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-links a:hover { color: #FFFFFF; opacity: 1; }

/* ============================================================
   Responsive (mobile-first; the above is already mobile-friendly,
   but we adjust hero and font sizes on small screens)
   ============================================================ */
@media (max-width: 540px) {
    .hero { padding: 20px 0 40px; }
    .hero-icon { width: 140px; height: 140px; border-radius: 28px; margin-bottom: 24px; }
    .hero h1 { font-size: 36px; }
    .hero .tagline { font-size: 16px; margin-bottom: 28px; }

    section h2 { font-size: 20px; }
    .legal h1 { font-size: 26px; }

    nav { gap: 14px; font-size: 13px; }
    .brand { font-size: 16px; }
    .brand img { width: 32px; height: 32px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
