/* ARZ LORE - Styles Globaux */

:root {
    --arz-primary: #c41e3a;
    --arz-secondary: #1a1a2e;
    --arz-accent: #ffd700;
    --arz-dark: #0f0f1e;
    --arz-light: #f5f5f5;
    --arz-gradient: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--arz-dark);
    background-image: 
        linear-gradient(rgba(26, 26, 46, 0.9), rgba(15, 15, 30, 0.95)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(196, 30, 58, 0.03) 35px,
            rgba(196, 30, 58, 0.03) 70px
        );
}

/* Header et Navigation */
header {
    background: var(--arz-gradient);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

nav {
    background-color: var(--arz-secondary);
    padding: 1rem 0;
    border-bottom: 2px solid var(--arz-accent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.nav-container a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-container a:hover {
    background-color: var(--arz-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: var(--arz-light);
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--arz-accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

main {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

/* Typographie */
h1 {
    color: var(--arz-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--arz-accent);
    padding-bottom: 0.5rem;
}

h2 {
    color: var(--arz-secondary);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--arz-primary);
    padding-left: 1rem;
}

h3 {
    color: var(--arz-primary);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Liens */
a {
    color: var(--arz-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--arz-accent);
    text-decoration: underline;
}

/* Listes */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Sections Spéciales */
.intro-section {
    background: var(--arz-gradient);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.intro-section h2 {
    color: var(--arz-accent);
    border-left-color: white;
}

.highlight-box {
    background-color: #fff9e6;
    border-left: 4px solid var(--arz-accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box {
    background-color: #e8f4f8;
    border: 1px solid #b3d9e6;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Cartes */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: white;
    border: 2px solid var(--arz-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(196, 30, 58, 0.2);
    border-color: var(--arz-primary);
}

.card h3 {
    margin-top: 0;
    color: var(--arz-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--arz-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--arz-accent);
    border: 4px solid var(--arz-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

thead {
    background: var(--arz-gradient);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Citations */
blockquote {
    border-left: 4px solid var(--arz-primary);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background-color: #f9f9f9;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--arz-accent);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

/* Footer */
footer {
    background-color: var(--arz-secondary);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--arz-accent);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Badges et Labels */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0.25rem;
}

.badge-victory {
    background-color: var(--arz-accent);
    color: var(--arz-dark);
}

.badge-tournament {
    background-color: var(--arz-primary);
    color: white;
}

.badge-player {
    background-color: var(--arz-secondary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.6s ease-out;
}

/* Styles d'impression */
@media print {
    header, nav, footer, .breadcrumb {
        display: none;
    }
    
    main {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
