* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    overflow-x: hidden;
}

body {
    padding: 1rem;
    position: relative;
}

/* Container principal */
.container {
    min-height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.header {
    text-align: center;
}

.header h1 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1ee5ce;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.header h1 i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #1ee5ce;
    border-radius: 1px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #e0e0e0;
}

/* Content */
.content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 229, 206, 0.3);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Section */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    color: #1ee5ce;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1ee5ce;
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.section h3 {
    color: #1ee5ce;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    letter-spacing: 0.3px;
}

.section h4 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.section p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.section ul,
.section ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #e0e0e0;
}

.section li {
    margin-bottom: 0.5rem;
}

.section blockquote {
    border-left: 4px solid #1ee5ce;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #b0b0b0;
    background: rgba(30, 229, 206, 0.05);
    border-radius: 0 5px 5px 0;
}

.section strong {
    color: #1ee5ce;
    font-weight: 600;
}

.section em {
    color: #b0b0b0;
    font-style: italic;
}

.section a {
    color: #1ee5ce;
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 229, 206, 0.3);
    transition: all 0.3s ease;
}

.section a:hover {
    color: #ffffff;
    border-bottom-color: #1ee5ce;
}

/* Code blocks */
.code-block {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(30, 229, 206, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    color: #ffffff;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

/* Styles pour les blocs de code générés par Markdown */
pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(30, 229, 206, 0.2);
    font-family: 'Courier New', monospace;
}

code {
    background-color: rgba(30, 229, 206, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #1ee5ce;
    border: 1px solid rgba(30, 229, 206, 0.2);
}

pre code {
    background: none;
    padding: 0;
    border: none;
    color: #e0e0e0;
}

/* Alert boxes */
.highlight {
    background: rgba(30, 229, 206, 0.1);
    border: 1px solid rgba(30, 229, 206, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #e0e0e0;
}

.warning {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #ff6b6b;
}

.success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #00d4aa;
}

/* Demo section */
.demo-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 229, 206, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.demo-section h3 {
    color: #1ee5ce;
    margin-bottom: 1rem;
}

/* Tables */
.property-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.property-table th,
.property-table td {
    border: 1px solid rgba(30, 229, 206, 0.3);
    padding: 12px;
    text-align: left;
    color: #e0e0e0;
}

.property-table th {
    background: rgba(30, 229, 206, 0.2);
    color: #1ee5ce;
    font-weight: 600;
}

.property-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* Tables génériques */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    border: 1px solid rgba(30, 229, 206, 0.2);
    padding: 0.8rem;
    text-align: left;
    color: #e0e0e0;
}

th {
    background-color: rgba(30, 229, 206, 0.1);
    font-weight: 600;
    color: #1ee5ce;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Method list */
.method-list {
    list-style: none;
    padding: 0;
}

.method-list li {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #1ee5ce;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    color: #e0e0e0;
}

.method-name {
    font-weight: bold;
    color: #1ee5ce;
}

.method-description {
    margin-top: 0.5rem;
    color: #b0b0b0;
}

/* Navigation container */
.nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.nav-arrow {
    background: rgba(30, 229, 206, 0.1);
    border: 1px solid rgba(30, 229, 206, 0.3);
    color: #1ee5ce;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(30, 229, 206, 0.2);
    border-color: rgba(30, 229, 206, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow-left {
    left: -20px;
}

.nav-arrow-right {
    right: -20px;
}

.nav-arrow i {
    font-size: 0.8rem;
}

.nav-tabs {
    display: flex;
    border-bottom: 2px solid rgba(30, 229, 206, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 229, 206, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    min-height: 60px;
    align-items: center;
    flex: 1;
}

/* Styles pour la scrollbar WebKit (Chrome, Safari, Edge) */
.nav-tabs::-webkit-scrollbar {
    height: 6px;
}

.nav-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(30, 229, 206, 0.3);
    border-radius: 3px;
}

.nav-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 229, 206, 0.5);
}

.nav-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #b0b0b0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

.nav-tab.active {
    color: #1ee5ce;
    border-bottom-color: #1ee5ce;
    background: rgba(30, 229, 206, 0.1);
}

.nav-tab:hover {
    color: #1ee5ce;
    background: rgba(30, 229, 206, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1ee5ce 0%, #00b8a9 100%);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 229, 206, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.btn i {
    font-size: 0.8rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 229, 206, 0.3);
    text-decoration: none;
    color: #000000;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 229, 206, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    color: #e0e0e0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 229, 206, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Styles pour les messages d'erreur */
.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

/* Effet de grille en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 229, 206, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 229, 206, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content, .section {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .container {
        gap: 1rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .section h1 {
        font-size: 1.6rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .section h3 {
        font-size: 1.1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th,
    td {
        padding: 0.5rem;
    }
    
    .nav-tabs {
        flex-direction: row;
        padding: 0 1rem;
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.03);
    }
    
    .nav-tab {
        width: auto;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.1rem;
    }
    
    .nav-tabs {
        padding: 0 0.5rem;
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }
    
    .nav-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
} 