@font-face {
    font-family: 'Play-Regular';
    src: url(../Play/Play-Regular.ttf) format('truetype');
}

:root {
    --text-primary: #1a202c;
    /* Gris très sombre */
    --text-secondary: #4a5568;
    /* Gris moyen pour les textes longs */
    --bg-color: #fcfcfc;
    /* Blanc très léger/cassé pour moins de fatigue visuelle */
    --accent-color: #2b6cb0;
    /* Bleu élégant d'inspiration IA */
    --font-family: 'Play-Regular', Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* --- Barre de Navigation Adaptée (Fond sombre pour Header) --- */
header {
    background: linear-gradient(135deg, #02001a 0%, #0a0a3a 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.navbar {
    margin-bottom: 0 !important;
}

/* --- Style d'exploration / Articles --- */
.index-main {
    flex: 1;
    background-color: transparent;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.scroll-section {
    min-height: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-size: 1.15em;
    width: 100%;
    box-sizing: border-box;
}

.scroll-section h1 {
    font-size: 2.8em;
    color: var(--accent-color);
    margin: 0 0 20px 0;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.scroll-section h2 {
    font-size: 1.8em;
    color: #2d3748;
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(43, 108, 176, 0.2);
    padding-bottom: 8px;
    width: 100%;
}

.scroll-section p {
    line-height: 1.8;
    text-align: justify;
    width: 100%;
    margin: 15px 0;
    color: var(--text-secondary);
}

.scroll-section ul {
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 10px 0;
}

.text-italic {
    font-style: italic;
    font-size: 14px;
    color: #a0aec0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.indent {
    text-indent: 2em;
    margin-bottom: 1em;
}

/* --- Code Style --- */
.code-container {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    margin-top: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow-x: auto;
    background: #f5f2f0;
    /* Fallback Prism Light */
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.code-container pre {
    margin: 0 !important;
    padding: 20px !important;
    font-size: 0.9em;
    border-radius: 0 !important;
}

/* --- Images --- */
.transformer-img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}