/*
Theme Name: Theme Elements Evolution
Description: Thème juridique moderne pour WordPress - Documents Prud'hommes
Version: 3.0
Author: Votre Nom
Text Domain: elements-evolution
*/

/* ==========================================================================
   BASE
   ========================================================================== */
* {
    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: #1e293b;
    background: #f8fafc;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: #ffffff;
    padding: 32px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e2e8f0;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.site-subtitle {
    font-size: 1rem;
    text-align: center;
    color: #64748b;
    font-weight: 400;
}

.company-name {
    color: #0ea5e9;
    font-weight: 800;
}

/* Menu Navigation */
.main-nav {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-radius: 6px;
}

.main-nav a:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.main-nav a.active {
    background: #0ea5e9;
    color: #ffffff;
}

/* ==========================================================================
   CONTENU PRINCIPAL
   ========================================================================== */
.main-content {
    padding: 48px 0;
    min-height: 70vh;
}

.main-content > .container > p:first-child {
    margin-bottom: 24px;
}

.main-content > .container > p:first-child a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-content > .container > p:first-child a:hover {
    color: #0284c7;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 64px 24px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid #bae6fd;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 400;
}

/* Cards de documents */
.document-card,
.legal-document,
article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* Titres */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

h2.section-title {
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #0ea5e9;
}

h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 24px 0 12px 0;
    font-weight: 600;
}

h3.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

/* Paragraphes */
p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

/* Alertes */
.alert {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #78350f;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.alert.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert strong {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Sections de décision */
.decision-section {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

/* Table des matières */
.toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.toc h2 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 16px;
    border: none;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 8px 0;
}

.toc li ul {
    padding-left: 20px;
    margin-top: 6px;
}

.toc a {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Éléments centrés */
.centered {
    text-align: center;
    margin: 24px 0;
}

.header-info {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.header-section {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

/* Date */
.document-date {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0ea5e9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 16px;
    font-size: 0.95rem;
    border: none;
}

.btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* Navigation entre documents */
.document-navigation {
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    text-align: center;
    padding: 48px 24px;
    margin-top: 64px;
}

.site-footer .container {
    max-width: 800px;
    margin: 0 auto;
}

.site-footer p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.site-footer small {
    color: #94a3b8;
}

footer {
    margin-top: 48px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.footer-alert {
    margin-top: 16px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .site-header {
        padding: 24px 0;
    }
    
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-section {
        padding: 48px 20px;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .main-nav a {
        display: block;
        text-align: center;
    }
    
    .document-card,
    .legal-document,
    article {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .document-navigation {
        flex-direction: column;
    }
}