/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    line-height: 1.7;
    padding: 40px 20px;
}

/* Conteneur principal */
.container {
    max-width: 900px;
    margin: auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titres */
h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-size: 32px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

h2 {
    font-size: 26px;
    margin-top: 30px;
}

h3 {
    font-size: 20px;
    margin-top: 20px;
}

/* Paragraphes */
p {
    margin: 15px 0;
    color: #e0e0e0;
}

/* Liens */
a {
    color: #00f2fe;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Listes */
ul, ol {
    margin: 15px 0 15px 25px;
}

li {
    margin-bottom: 8px;
}

/* Code inline */
code {
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    color: #00f2fe;
}

/* Blocs de code */
pre {
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    color: #00ffcc;
}

/* Citations */
blockquote {
    border-left: 4px solid #00f2fe;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #ccc;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255,255,255,0.15);
}

/* Images */
img {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

/* Bouton retour */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    transition: 0.3s;
}

.back-link:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }
}