/* Styles communs aux pages légales Lallou */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --text: #333;
    --text-muted: #555;
    --text-light: #999;
    --bg: #f5f5f5;
    --surface: #fff;
    --surface-alt: #f8f9fa;
    --border: #eee;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    padding: 20px;
}

a {
    color: var(--primary);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* En-tête */

header {
    background: var(--gradient);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.subtitle,
.date {
    opacity: 0.9;
}

.date {
    font-size: 0.9em;
}

/* Contenu */

.content {
    padding: 40px 30px;
}

h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    line-height: 1.4;
}

.content > h2:first-child {
    margin-top: 0;
}

h3 {
    color: var(--secondary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

p {
    margin-bottom: 15px;
}

ul,
ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

th {
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
}

/* Encadrés */

.highlight,
.warning,
.info {
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    margin: 20px 0;
}

.highlight {
    background: #d4edda;
    border-color: #28a745;
}

.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.info {
    background: var(--surface-alt);
    border-color: var(--primary);
}

.highlight > :last-child,
.warning > :last-child,
.info > :last-child {
    margin-bottom: 0;
}

.translation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Support */

.contact-box {
    background: var(--gradient);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
}

.contact-box h2 {
    color: white;
    margin-top: 0;
}

.contact-box a {
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    transition: background 0.3s ease;
}

.contact-box a:hover {
    background: rgba(255,255,255,0.3);
}

.contact-note {
    margin: 15px 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.faq-question {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-answer {
    color: var(--text-muted);
}

.store-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.store-link {
    display: block;
    padding: 15px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.store-link small {
    opacity: 0.7;
    font-weight: normal;
}

/* Navigation & pied de page */

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9em;
    line-height: 1.6;
    border-top: 1px solid var(--border);
}

footer p {
    margin-bottom: 0;
}

footer .version {
    margin-top: 5px;
}

/* Accueil */

body.home {
    line-height: 1.6;
    background: var(--gradient);
    min-height: 100vh;
}

.home .container {
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.home header h1 {
    font-size: 2.5em;
}

.home .subtitle {
    font-size: 1.1em;
    margin-bottom: 0;
}

.links {
    display: grid;
    gap: 20px;
}

.link-card {
    display: block;
    padding: 25px;
    background: var(--surface-alt);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}

.link-card h2 {
    margin: 0 0 8px;
    font-size: 1.4em;
}

.link-card p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .content {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .home header h1 {
        font-size: 2em;
    }

    .store-links {
        grid-template-columns: 1fr;
    }
}
