/* === Structure générale === */
body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1800px;
    margin: auto;
    padding: 40px 20px;
    line-height: 1.6;
    color: #222;
    background: #fafafa;
}

.spacer {
    height: 20px;
}

/* === Titres === */
h1 {
    font-size: 2.4em;
    margin-bottom: 5px;
    font-weight: 700;
}

h2 {
    margin-top: 50px;
    font-size: 1.9em;
    font-weight: 700;
    color: #2f4a6d;
}

h3 {
    margin-top: 25px;
    font-size: 1.45em;
    font-weight: 600;
    color: #2a3e57;
}

h4 {
    margin-top: 20px;
    font-size: 1.25em;
    font-weight: 600;
    color: #2a3e57;
}

ul li strong {
    color: #2f4a6d;
}

h4 strong {
    font-size: 1.3em;
}

/* === Paragraphes et listes === */
p {
    margin-bottom: 15px;
}

ul {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* === Liens === */
a {
    color: #2a3e57;
}

a:hover {
    text-decoration: underline;
}

/* === Mise en avant === */
em {
    font-style: italic;
    font-weight: 600;
    color: #2f4a6d;
}

.lieu {
    color: #7a5f4d;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* === Navigation === */
nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
    padding: 10px 0;
}

nav a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    background: #e3e8ef;
    border: 1px solid #c7d0db;
    border-radius: 6px;
    text-decoration: none;
    color: #2a3e57;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

nav a:hover {
    background: #d7dde6;
    border-color: #b8c2ce;
    text-decoration: underline;
}

/* === Section boxes === */
.section-box {
    border: 1px solid #d4d4d4;
    background: #fdfdfd;
    padding: 20px 25px;
    margin: 2px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: auto;
}

.section-box h2,
.section-box h3,
.section-box h4,
.section-box p,
.section-box ul {
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}

.section-box > *:first-child {
    margin-top: 0;
}

.section-box > *:last-child {
    margin-bottom: 0;
}

/* === Images dans les sections === */
.img-left,
.img-right {
    width: 200px;
    border-radius: 6px;
    margin-bottom: 10px;
}
img {
    max-width: 100%;
    height: auto;
}

.img-left {
    float: left;
    margin: 0 18px 10px 0;
}

.img-right {
    float: right;
    margin: 0 0 10px 18px;
}

.clearfix {
    clear: both;
}

/* === Header avec photos === */
.header-with-photos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.header-text {
    flex: 1;
}

.header-photos {
    display: flex;
    gap: 10px;
}

.header-photos img {
    width: 350px;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* === Responsive === */
@media (max-width: 700px) {
    body {
        padding: 20px 15px;
    }

    nav {
        padding: 10px;
    }

    nav a {
        display: inline-block;
        margin-bottom: 6px;
    }

.header-with-photos {
    display: flex;
    flex-direction: column;   /* ← THIS stacks them vertically */
    align-items: flex-start;  /* keeps left alignment */
    gap: 10px;
    margin-bottom: 30px;
}

}

/* === Justification du texte === */
body, p, li {
    text-align: justify;
    text-justify: inter-word;
}
footer {
    margin-top: 40px;
    padding-top: 15px;
    font-size: 0.85em;      /* makes it smaller */
    color: #666;            /* softer text */
    text-align: center;     /* centers the text */
    border-top: 1px solid #ddd;  /* optional: subtle separation line */
}

