/* ============================================================
   Les Rues de Roncq - Feuille de style moderne
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --rouge-brique: #8B2500;
    --rouge-accent: #C0392B;
    --or-ancien: #C4A35A;
    --or-clair: #E8D5A3;
    --creme: #FDF8F0;
    --parchemin: #F5ECD7;
    --brun-fonce: #2C1810;
    --brun-texte: #3E2723;
    --bleu-lien: #1A4B7A;
    --ombre: rgba(44, 24, 16, 0.1);
}

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

body {
    font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    background-color: var(--creme);
    font-size: 1.5rem;
    color: var(--brun-texte);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HEADER / BANNIÈRE === */
.site-header {
    background: linear-gradient(135deg, var(--brun-fonce) 0%, #4A2C20 50%, var(--rouge-brique) 100%);
    color: var(--or-clair);
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--or-ancien), var(--or-clair), var(--or-ancien));
}

.site-header a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.site-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    color: white;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-header .subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 0.2rem;
}

/* === NAVIGATION === */
.site-nav {
    background: var(--brun-fonce);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px var(--ombre);
}

.site-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--or-clair);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: rgba(196, 163, 90, 0.1);
    border-bottom-color: var(--or-ancien);
}

/* === CONTENU PRINCIPAL === */
.main-content {
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.page-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 20px var(--ombre);
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-title-bar {
    background: linear-gradient(135deg, var(--rouge-brique), var(--rouge-accent));
    color: white;
    padding: 1.2rem 2rem;
}

.page-title-bar h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.page-body {
    padding: 2rem;
}

/* === TYPOGRAPHIE === */
.page-body p {
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
}

.page-body font[color="#FF0000"],
.page-body font[color="#0000FF"],
.page-body font[color="#800000"],
.page-body font[color="#660000"] {
    /* Override inline colors with modern ones */
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--brun-fonce);
}

/* === IMAGES === */
.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0.5rem 0;
}

.page-body a img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-body a img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* === LIENS === */
a {
    color: var(--bleu-lien);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--rouge-accent);
    text-decoration: underline;
}

/* === FOOTER DU SITE === */
.site-footer {
    background: var(--brun-fonce);
    color: var(--or-clair);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--or-ancien), var(--or-clair), var(--or-ancien));
}

.site-footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.2rem 0;
}

.site-footer a {
    color: var(--or-clair);
}

.site-footer a:hover {
    color: white;
}

/* === CREDITS CRRAI (bas de page article) === */
.credits-block {
    background: var(--parchemin);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid var(--or-clair);
}

.credits-block img {
    box-shadow: none;
}

/* === TABLE DE CONTENU (rues_de_roncq) === */
table {
    border-collapse: collapse;
}

pre {
    font-family: 'Source Sans 3', Arial, sans-serif;
    white-space: pre-wrap;
    margin: 0.2rem 0;
}

pre a {
    font-weight: 600;
}

/* === TITRES RUES (bleus) === */
.titre-rue {
    font-size: 2em;
}

/* === CORPS TEXTE ARTICLES === */
.corps-rue {
    font-size: 1em;
}

@media (max-width: 1000x) {
    .titre-rue {
        font-size: 2.7em;
    }
    .corps-rue {
        font-size: 2.7em;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
    .site-header h1 {
        font-size: 1.2rem;
    }
    .site-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.72rem;
    }
    .page-body {
        padding: 1.2rem;
    }
    .page-title-bar {
        padding: 1rem 1.2rem;
    }
    .page-title-bar h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 0.8rem;
    }
}
