/* ===== BASE ===== */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: Baskerville, serif;
    line-height: 1.6;
}

/* ===== TITRES ===== */
h1, h2, h3 {
    font-family: Arial, sans-serif;
    color: #2c3e50;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 26px;
    margin-bottom: 15px;
    border-bottom: 2px solid #198754;
    padding-bottom: 5px;
}

h3 {
    font-size: 20px;
}

/* ===== LIENS ===== */
a {
    color: #198754;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #145c32;
    text-decoration: underline;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    align-items: center;
}

nav a {
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* ===== HEADER ===== */
header {
    background-color: #198754;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
}

/* ===== MAIN ===== */
main {
    padding: 20px;
}

/* ===== ARTICLES ===== */
article {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

article:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

article img {
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ===== SECTIONS ===== */
section {
    margin-bottom: 20px;
}

/* ===== ASIDE ===== */
aside {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

/* ===== BOUTONS ===== */
button {
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}

button:hover {
    background-color: #146c43;
}

/* ===== FORMULAIRE ===== */
form {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
}

form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

form input,
form select {
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 5px;
}

/* ===== FOOTER ===== */
footer {
    font-size: 14px;
    background-color: #198754;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 50px;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
    transition: 0.3s;
}

img:hover {
    opacity: 0.9;
}

/* ===== CARDS (articles index) ===== */
article h3 {
    margin-top: 10px;
}

article p {
    font-size: 14px;
}

/* ===== UTILITAIRES ===== */
.border {
    border-radius: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    article {
        margin-bottom: 15px;
    }
}