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

/* STYLE DU BODY - Papier journal */
body {
    font-family: 'Times New Roman', 'Georgia', 'Garamond', serif;
    line-height: 1.65;
    color: #2c2c2c;
    background: linear-gradient(145deg, #f7f5f0 0%, #f2efe8 50%, #ede9e0 100%);
    min-height: 100vh;
    position: relative;
    /* Texture papier subtile */
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(139, 69, 19, 0.03) 1px, transparent 0),
        radial-gradient(circle at 2px 2px, rgba(160, 82, 45, 0.02) 1px, transparent 0);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 15px 15px;
}

/* Texture de papier sur tout le body */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* HEADER - Masthead de journal */
header {
    background: #fefdfb;
    border-bottom: 4px double #8b4513;
    border-top: 2px solid #8b4513;
    color: #2c2c2c;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    position: relative;
    margin-bottom: 1.5rem;
    /* Légère texture papier */
    background-image: 
        linear-gradient(90deg, transparent 79px, rgba(139, 69, 19, 0.04) 81px, rgba(139, 69, 19, 0.04) 82px, transparent 84px),
        linear-gradient(rgba(139, 69, 19, 0.02) 50%, transparent 50%);
}

/* Ornement décoratif en haut du header */
header::before {
    content: "❦ ❦ ❦";
    position: absolute;
    top: 0.5rem;
    font-size: 1rem;
    color: #8b4513;
    letter-spacing: 1rem;
}

/* TITRE PRINCIPAL - Style journal classique */
header h1 {
    margin-bottom: 1rem;
    font-size: 3.2rem;
    font-weight: 900;
    color: #2c2c2c;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    border-bottom: 1px solid #8b4513;
    padding-bottom: 0.5rem;
    position: relative;
}

/* Ornements autour du titre */
header h1::before,
header h1::after {
    content: "◆";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #8b4513;
}

header h1::before {
    left: -2rem;
}

header h1::after {
    right: -2rem;
}

/* NAVIGATION - Style index de journal */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    background: #f8f6f2;
    border: 1px solid #d4c4a8;
    border-radius: 0;
    padding: 0.3rem 0;
    margin-top: 1rem;
    font-family: 'Times New Roman', serif;
}

nav li {
    margin: 0;
    border-right: 1px solid #d4c4a8;
}

nav li:last-child {
    border-right: none;
}

/* LIENS DE NAVIGATION */
nav a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: background-color 0.2s ease;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    background: #e8e4dc;
    color: #8b4513;
}

/* CONTENEUR PRINCIPAL */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* TITRE PRINCIPAL DE LA PAGE D'ACCUEIL */
main h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #2c2c2c;
    font-weight: 700;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 1rem;
    position: relative;
}

/* Date du jour sous le titre */
main h2::after {
    content: "Edition du Mercredi 24 Septembre 2025";
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 0.5rem;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

/* ARTICLES - Style colonnes de journal */
article {
    background: #fefdfb;
    border: 1px solid #d4c4a8;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        2px 2px 5px rgba(139, 69, 19, 0.1),
        inset 0 0 0 1px rgba(139, 69, 19, 0.05);
    transition: box-shadow 0.3s ease;
    position: relative;
    /* Texture papier journal */
    background-image: 
        linear-gradient(90deg, transparent 79px, rgba(139, 69, 19, 0.03) 81px, rgba(139, 69, 19, 0.03) 82px, transparent 84px),
        linear-gradient(rgba(139, 69, 19, 0.01) 50%, transparent 50%);
    background-size: 84px 1px, 100% 24px;
}

/* Articles sur pages individuelles */
main > article {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Effet de vieillissement au survol */
article:hover {
    box-shadow: 
        3px 3px 8px rgba(139, 69, 19, 0.15),
        inset 0 0 0 1px rgba(139, 69, 19, 0.08);
    transform: translateY(-2px);
}

/* TITRES D'ARTICLES - Style manchette */
article h2,
article h3 {
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-weight: 700;
    font-family: 'Times New Roman', serif;
    line-height: 1.3;
    text-align: left;
}

article h2 {
    font-size: 2.4rem;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

article h3 {
    font-size: 1.8rem;
    color: #8b4513;
    margin-bottom: 0.8rem;
}

/* PARAGRAPHES D'ARTICLES - Style colonne */
article p {
    color: #2c2c2c;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Times New Roman', serif;
    /* Indentation première ligne */
    text-indent: 1.5em;
}

/* Première ligne après titre sans indentation */
article h2 + .meta + p,
article h3 + p {
    text-indent: 0;
}

/* Paragraphes dans articles individuels */
main > article p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    /* Colonnes pour longs articles */
    column-count: 1;
}

/* MÉTADONNÉES - Style signature de journaliste */
.meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    font-style: italic;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ccc;
    font-family: 'Times New Roman', serif;
    text-align: left;
}

/* IMAGES D'ARTICLES - Style photo de presse */
.article-img {
    display: block;
    margin: 2rem auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 3px solid #2c2c2c;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Légende photo style journal */
.article-img::after {
    content: "Photo d'illustration";
    position: absolute;
    bottom: -2rem;
    left: 0;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    font-family: 'Times New Roman', serif;
}

.article-img:hover {
    transform: scale(1.02);
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

/* BOUTONS/LIENS D'ARTICLES - Style renvoi */
article a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #2c2c2c;
    color: #fefdfb;
    text-decoration: none;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

article a:hover {
    background: #8b4513;
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* FOOTER - Pied de journal */
footer {
    background: #2c2c2c;
    color: #fefdfb;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 3rem 0 0 0;
    font-size: 0.9rem;
    border-top: 4px double #8b4513;
    position: relative;
}

/* Ornement en bas */
footer::before {
    content: "◆ ◆ ◆";
    position: absolute;
    top: -1rem;
    background: #fefdfb;
    padding: 0 1rem;
    color: #8b4513;
    letter-spacing: 0.5rem;
}

footer p {
    font-weight: 400;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    header h1::before,
    header h1::after {
        display: none;
    }
    
    main h2 {
        font-size: 2.2rem;
    }
    
    article h2 {
        font-size: 2rem;
    }
    
    article h3 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    main {
        padding: 0 1rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    main > article p {
        column-count: 1;
    }
}