/* Styles pour les pages de documentation README */

.readme-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding-bottom: 2rem;
}

/* Menu de navigation en haut */
.readme-top-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.readme-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.readme-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.readme-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
    text-decoration: none;
}

.readme-nav-link .nav-icon {
    font-size: 16px;
}

.readme-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.readme-nav-link-small {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.readme-nav-link-small:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    text-decoration: none;
}

.readme-nav-separator {
    color: #475569;
    font-size: 14px;
}

@media (max-width: 768px) {
    .readme-nav-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .readme-nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .readme-nav-links {
        width: 100%;
        justify-content: center;
    }
}

.readme-header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    margin-bottom: 2rem;
}

.readme-header h1 {
    color: #0ea5e9;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.readme-header .lead {
    color: #94a3b8;
    font-size: 1.1rem;
}

.breadcrumb-nav {
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: #0ea5e9;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #0284c7;
}

/* Liste des documents */
.readme-list h2 {
    color: #e2e8f0;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.readme-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.readme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.5);
}

.readme-card-header h3 {
    color: #0ea5e9;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    word-break: break-word;
}

.readme-card-body {
    color: #94a3b8;
}

.readme-card-body .btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.readme-card-body .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

/* Contenu du document */
.readme-content {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    line-height: 1.8;
    color: #e2e8f0;
}

.readme-content h1 {
    color: #0ea5e9;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

.readme-content h1:first-child {
    margin-top: 0;
}

.readme-content h2 {
    color: #0ea5e9;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.readme-content h3 {
    color: #8b5cf6;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.readme-content h4 {
    color: #10b981;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.readme-content p {
    margin-bottom: 1.25rem;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.readme-content ul,
.readme-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #cbd5e1;
}

.readme-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.readme-content ul li::marker {
    color: #0ea5e9;
}

.readme-content strong {
    color: #0ea5e9;
    font-weight: 600;
}

.readme-content em {
    color: #8b5cf6;
    font-style: italic;
}

.readme-content code {
    background: rgba(15, 23, 42, 0.8);
    color: #10b981;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.readme-content pre {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.readme-content pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
    border: none;
    font-size: inherit;
}

.readme-content a {
    color: #0ea5e9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.readme-content a:hover {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

.readme-content hr {
    border: none;
    border-top: 2px solid rgba(71, 85, 105, 0.5);
    margin: 2rem 0;
}

.readme-content blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-style: italic;
}

.readme-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.readme-content table th,
.readme-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(71, 85, 105, 0.3);
    text-align: left;
}

.readme-content table th {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    font-weight: 600;
}

.readme-content table tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3);
}

/* Footer */
.readme-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    margin-top: 3rem;
}

.readme-footer a {
    color: #0ea5e9;
    transition: color 0.3s;
}

.readme-footer a:hover {
    color: #0284c7;
}

/* Responsive */
@media (max-width: 768px) {
    .readme-header h1 {
        font-size: 2rem;
    }

    .readme-content {
        padding: 1.5rem;
    }

    .readme-content h1 {
        font-size: 2rem;
    }

    .readme-content h2 {
        font-size: 1.5rem;
    }

    .readme-content h3 {
        font-size: 1.25rem;
    }

    .readme-content pre {
        font-size: 0.85rem;
        padding: 1rem;
    }
}

/* Amélioration de la lisibilité */
.readme-content {
    max-width: 100%;
}

.readme-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Styles pour les listes de tâches */
.readme-content ul li:has(input[type="checkbox"]) {
    list-style: none;
    padding-left: 0;
}

/* Amélioration des emojis */
.readme-content {
    font-feature-settings: "liga" 1;
}
