/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #1a1a1a;
}

/* NAVBAR */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: #0f172a;
}

.logo a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

/* LAYOUT */

.container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

.sidebar {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* ARTICLE */

.blog-article {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ARTICLE HEADER */

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-tags a {
    text-decoration: none;
    background: #e2e8f0;
    color: #1e293b;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* IMAGE */

.article-cover img {
    width: 100%;
    border-radius: 6px;
    margin: 25px 0;
}

/* CONTENT */

.article-content h2 {
    margin-top: 35px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ol,
.article-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* CODE BLOCK */

pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
}

/* BLOCKQUOTE */

blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 15px;
    color: #475569;
    margin: 20px 0;
    font-style: italic;
}

/* ARTICLE FOOTER */

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.article-footer a {
    text-decoration: none;
    color: #2563eb;
}

.article-share a {
    margin-right: 10px;
}

/* SIDEBAR */

.recent-articles {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.recent-articles h3 {
    margin-bottom: 10px;
}

.recent-articles ul {
    list-style: none;
}

.recent-articles li {
    margin-bottom: 8px;
}

.recent-articles a {
    text-decoration: none;
    color: #1e293b;
}

.recent-articles a:hover {
    color: #2563eb;
}

/* FOOTER */

.site-footer {
    margin-top: 40px;
    padding: 25px;
    text-align: center;
    background: #0f172a;
    color: #cbd5f5;
}

.site-footer a {
    color: #cbd5f5;
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    color: white;
}

/* HOMEPAGE */

.homepage-intro {
    margin-bottom: 40px;
}

.homepage-intro h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.homepage-intro p {
    color: #475569;
}

/* LISTE ARTICLES */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-preview h2 a {
    text-decoration: none;
    color: #1e293b;
}

.article-preview h2 a:hover {
    color: #2563eb;
}

.article-excerpt {
    margin: 15px 0;
}

.read-more {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

/* IMAGE D'ARTICLE */
.blog-article img {
    width: 100%;               /* prend toute la largeur du conteneur */
    height: auto;              /* garde les proportions */
    border-radius: 6px;        /* bords arrondis */
    margin: 20px 0;            /* marge au-dessus et en dessous */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* légère ombre */
    object-fit: cover;         /* évite la déformation */
}



/* IMAGE DANS LA PREVIEW DE LA HOMEPAGE */
.article-preview img {
    max-height: 200px;         /* limite la hauteur pour que la liste reste compacte */
    object-fit: cover;
}

/* PAGE A PROPOS */

.about-page {
    max-width: 750px;
    margin: auto;
    padding: 40px;
}

/* TITRE */

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0f172a;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

/* CONTENU */

.about-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.about-content p {
    margin-bottom: 18px;
}

/* SOUS TITRES */

.about-content h2 {
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #1e293b;
}

/* LISTE DES SUJETS */

.about-topics {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.about-topics li {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #3b82f6;
}

/* EFFET CARD */

.about-page {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
