:root {
    /* Couleurs Miamothèque - exactement comme dans Theme.kt */
    --orange: #E8611A;
    --orange-light: #FDF0E8;
    --orange-mid: #F5C4A0;
    --cream: #FBF8F3;
    --white: #FFFFFF;
    --text: #1A1208;
    --muted: #8A7F72;
    --border: rgba(26, 18, 8, 0.12);
    
    /* Typographie */
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typographie - Fraunces pour les titres, DM Sans pour le corps */
h1, h2, h3, .logo h1, .section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text);
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

p, .step p, .feature-card p {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--muted);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    background-color: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
}

.language-selector select:hover {
    border-color: var(--orange);
}

/* Header */
header {
    background-color: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--orange-light);
}

.logo h1 {
    font-size: 24px;
    color: var(--orange);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-family: var(--font-sans);
    transition: color 0.2s;
}

nav a:hover {
    color: var(--orange);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--cream);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h2 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
}

.hero-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.screenshot-card {
    flex: 1;
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 200px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.screenshot-caption {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    font-family: var(--font-sans);
    transition: all 0.2s;
    margin-right: 16px;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #D45818;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--orange);
    border: 1.5px solid var(--orange);
}

.btn-secondary:hover {
    background-color: var(--orange-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Features */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
}

/* How it works */
.how-it-works {
    padding: 80px 0;
    background-color: var(--cream);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    background-color: var(--orange);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    font-family: var(--font-serif);
    color: var(--white);
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    font-size: 14px;
}

/* 3 Ways Section (spécifique Miamothèque) */
.three-ways {
    padding: 80px 0;
    background-color: var(--white);
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.way-card {
    text-align: center;
    padding: 32px;
    background-color: var(--cream);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.way-emoji {
    font-size: 56px;
    margin-bottom: 20px;
}

.way-card h3 {
    margin-bottom: 12px;
}

.way-card p {
    font-size: 14px;
}

/* Voice Section */
.voice-section {
    padding: 80px 0;
    background-color: var(--orange-light);
}

.voice-commands {
    max-width: 800px;
    margin: 0 auto;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.command-item {
    background-color: var(--white);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.command-icon {
    font-size: 20px;
}

.command-text {
    font-family: monospace;
    font-size: 13px;
    color: var(--text);
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--orange) 0%, #D45818 100%);
    text-align: center;
}

.download h2, .download p {
    color: var(--white);
}

.download h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.download p {
    margin-bottom: 32px;
    opacity: 0.9;
}

.download .btn {
    background-color: var(--white);
    color: var(--orange);
}

.download .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.coming-soon {
    margin-top: 24px;
    font-size: 13px;
    opacity: 0.8;
}

/* Footer */
footer {
    padding: 48px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo span {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--orange);
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-copyright {
    font-size: 12px;
    color: var(--muted);
}

/* Privacy Page */
.page-header {
    padding: 60px 0;
    background-color: var(--cream);
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 8px;
}

.privacy-content {
    padding: 60px 0;
}

.privacy-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.privacy-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.privacy-card h2::before {
    content: '🔒 ';
}

.privacy-card p {
    margin-bottom: 16px;
}

.privacy-card ul {
    list-style: none;
    padding: 0;
}

.privacy-card li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-card li::before {
    content: '✅';
    color: var(--orange);
}

.microphone-section {
    border-left: 4px solid var(--orange);
    background-color: var(--orange-light);
}

.permission-badge {
    background-color: var(--orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.contact-email-large {
    background-color: var(--orange-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin: 20px 0;
}

.contact-email-large a {
    color: var(--orange);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.copy-email-btn {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.faq-item h3 {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .ways-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Nouvelle section OCR Process */
.ocr-process {
    padding: 80px 0;
    background-color: var(--orange-light);
}

/* Camera section dans privacy */
.camera-section {
    border-left: 4px solid var(--orange);
    background-color: var(--orange-light);
}

.permission-badge {
    background-color: var(--orange);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 16px;
}

/* Ajustement de la grille pour 4 cartes */
.ways-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .ways-grid {
        grid-template-columns: 1fr;
    }
}