/* Tikita Legal Pages - Style unifié cohérent avec l'application mobile */

:root {
    /* Couleurs officielles Tikita (identiques à l'app Flutter) */
    --primary: #3B5CCC;              /* Bleu Indigo principal */
    --primary-dark: #2A4199;         /* Hover/active */
    --primary-light: #597BEE;        /* Accents clairs */
    --secondary: #EA7E2F;            /* Orange ambré */
    --tertiary: #2FB7A6;             /* Teal moderne */
    
    /* Neutrals (Tailwind palette de l'app) */
    --text-dark: #0F172A;            /* neutral-900 */
    --text-medium: #475569;          /* neutral-600 */
    --text-light: #94A3B8;           /* neutral-400 */
    --bg: #F8FAFC;                   /* neutral-50 */
    --card-bg: #FFFFFF;
    --border: #E2E8F0;               /* neutral-200 */
    
    /* Sémantiques */
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;
    --info: #0EA5E9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg);
}

/* ===== HEADER ===== */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(59, 92, 204, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

nav a.active {
    background: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    text-align: right;
}

.language-selector select {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233B5CCC' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.language-selector select:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(59, 92, 204, 0.1);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 92, 204, 0.1);
}

/* ===== MAIN CONTENT ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.hero {
    position: relative;
    text-align: center;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 92, 204, 0.12), rgba(47, 183, 166, 0.08));
    box-shadow: 0 18px 40px rgba(59, 92, 204, 0.12);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(234, 126, 47, 0.15), transparent 45%);
    pointer-events: none;
}

.hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(59, 92, 204, 0.25);
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.app-stores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    min-width: 180px;
    background: linear-gradient(135deg, var(--text-dark), #1f2a44);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.store-button span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-button small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    color: white;
}

.store-button strong {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(59, 92, 204, 0.28);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.store-button svg {
    width: 20px;
    height: 20px;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--text-dark);
    font-weight: 600;
}

code {
    background: var(--bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===== ALERT BOXES ===== */
.warning {
    background: #FEF3C7;
    border-left: 4px solid var(--warning);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.info {
    background: #E0F2FE;
    border-left: 4px solid var(--info);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.success {
    background: #DCFCE7;
    border-left: 4px solid var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.contact-box {
    background: #E0F2FE;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--info);
    margin: 2rem 0;
}

.contact-box h3 {
    margin-top: 0;
    color: var(--info);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg);
    border-top: 2px solid var(--border);
    margin-top: 4rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-content > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    nav {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.2rem;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero {
        padding: 2.5rem 1.75rem;
    }
    
    .app-stores {
        gap: 0.6rem;
    }
    
    .store-button {
        min-width: 160px;
        padding: 0.55rem 1rem;
    }
    
    .store-button svg {
        width: 18px;
        height: 18px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* ===== PRINT ===== */
@media print {
    header,
    footer,
    .language-selector,
    .app-stores {
        display: none;
    }
    
    body {
        font-size: 12pt;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, #F0F4FF, white);
    position: relative;
    box-shadow: 0 4px 12px rgba(59, 92, 204, 0.1);
}

.pricing-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.price {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0 1.5rem;
}

.pricing-card ul {
    margin-left: 1.2rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.pricing-card li {
    margin-bottom: 0.5rem;
}

