/* General Body and Page Setup */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER --- */
.header {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* --- NAVIGATION --- */
/* A nav container to make it responsive */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on small screens */
    gap: 15px; /* Adds space between nav items */
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.nav-container a, .nav-container img {
    border: none;
    vertical-align: middle;
}

/* --- MAIN CONTENT LAYOUT --- */
/* The main container is now flexible and centered */
.conteneur {
    width: 95%; /* Use a percentage for fluidity */
    max-width: 900px; /* Set a comfortable max-width for readability */
    margin: 0 auto; /* Center the container */
    padding: 25px 0;
}

/* Styling for the content blocks inside the main container */
.conteneur > div {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.conteneur > div:last-child {
    margin-bottom: 0;
}

/* --- TYPOGRAPHY AND CONTENT STYLES --- */
h1, h2, h3, h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }

p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
}

ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 8px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* General image styling */
img {
    max-width: 100%; /* Makes images responsive by default */
    height: auto;    /* Maintains aspect ratio */
    border: 0;
}

/* Utility classes for text alignment */
.text-center { text-align: center; }

/* Horizontal rule styling */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 25px auto;
    width: 80%;
}

img.namo-hr {
    display: block;
    margin: 20px auto;
}

/* --- FOOTER --- */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 30px 15px;
    text-align: center;
    margin-top: 30px; /* Add space above the footer */
}

footer .conteneur {
    padding: 0; /* Reset padding for footer container */
}

footer p {
    color: #adb5bd;
}

footer a {
    color: #87ceeb;
}

footer a:hover {
    color: #a0e0ff;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
/* For tablets and smaller devices */
@media screen and (max-width: 768px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }

    /* Stack navigation items vertically on smaller screens */
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* For mobile phones */
@media screen and (max-width: 480px) {
    .conteneur > div {
        padding: 15px; /* Reduce padding on small screens */
    }

    h1 { font-size: 1.5em; }
    h2 { font-size: 1.25em; }
}
