/* style.css complet */

/* Reset basique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Html et body occupent tout l’écran avec fond papier ancien texturé */
html, body {
    width: 100%;
    min-height: 100%;
    font-family: "Georgia", serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;

    /* Couleur de fond douce */
    background-color: #f8f4e3;

    /* Texture subtile type papier ancien */
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Corps de la page */
body {
    margin: 0;
    padding: 1rem 2rem;
}

/* Titres */
h1, h2, h3 {
    font-family: "Times New Roman", Times, serif;
    color: #003366;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* Paragraphes */
p {
    margin-bottom: 1rem;
}

/* Liens */
a {
    color: #0056b3;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Navigation */
nav {
    margin-bottom: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 600;
}

/* Sections / articles */
section, article {
    margin-bottom: 2rem;
}

/* Footer simple */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
}

/* Images de contenu (général) */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

/* Portrait avec retour à la ligne et taille limitée */
img.portrait {
    display: block;
    margin: 0 0 1rem 0;
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Listes */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive automatique */
@media (max-width: 600px) {
    html, body {
        font-size: 14px;
        padding: 0.5rem 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    img.portrait {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 80%;
    }
}
