/* ============================================================
   1. IMPORTATION ET RÉINITIALISATION
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Montserrat:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

* { 
    box-sizing: border-box; 
}

/* Le fond derrière tout (simule la "table") */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #dcdcdc; /* Gris neutre pour le fond perdu */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Le conteneur qui limite la largeur de la page (le "papier") */
.papier-lettre-fond, .zone-lettre-citoyen {
    max-width: 1100px; 
    margin: 0 auto;    /* Centre le bloc sur la table grise */
    background-color: #fdf5e6; /* Couleur papier crème uniforme */
    box-shadow: 0 0 40px rgba(0,0,0,0.2); /* Relief sur les côtés */
    min-height: 100vh;
    width: 100%;
}

/* ============================================================
   2. ÉLÉMENTS D'ENTÊTE ET NAVIGATION
   ============================================================ */

.bandeau-principal img {
    width: 100%;
    height: auto;
    display: block;
}

.entete-lettres {
    text-align: center;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.entete-lettres h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem !important;
    color: #3e2723;
    margin-bottom: 5px;
}

.entete-lettres .sous-titre {
    font-family: 'Montserrat', sans-serif;
    font-variant: small-caps;
    color: #8b5a2b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Navigation centrée avec lignes de séparation */
.navigation-intermediaire {
    max-width: 850px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 15px 0;
    border-top: 1px solid rgba(139, 90, 43, 0.2);
    border-bottom: 1px solid rgba(139, 90, 43, 0.2);
}

.lien-nav {
    text-decoration: none;
    color: #8b5a2b;
    font-weight: bold;
    font-variant: small-caps;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.lien-nav:hover {
    color: #3e2723;
    text-decoration: underline;
}

/* Navigation élégante style Village */
.navigation-village {
    padding: 10px 0;
}

.ligne-separatrice {
    height: 1px;
    background: linear-gradient(to right, transparent, #8b5a2b, transparent);
    margin-bottom: 15px;
    opacity: 0.4;
}

.nav-ligne {
    display: flex;
    justify-content: space-between;
}

.lien-elegant {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;separatrice
    font-weight: bold;
    color: #8b5a2b !important;
    text-decoration: none;
    letter-spacing: 1px;
}

.lien-elegant:hover {
    color: #d32f2f !important;
    
}

/* ============================================================
   3. LE HUB (Grille de rectangles 2x2)
   ============================================================ */
.accueil .conteneur-hub {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 20px;
}

.apercu {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 5px solid #8b5a2b;
    display: flex;
    flex-direction: column;
}

.titre-special {
    background: #fffcf5;
    border-left: 5px solid #5d4037;
}

.apercu h3 {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    color: #3e2723;
    font-size: 1.2rem;
}

.apercu a {
    color: #8b5a2b;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

/* ============================================================
   4. LA GAZETTE (Registre à 3 colonnes)
   ============================================================ */
.grille-registre {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.colonne-registre {
    border-left: 1px solid rgba(139, 90, 43, 0.3);
    padding-left: 20px;
}

.titre-colonne {
    font-size: 1.0rem;
    text-align: center;
    text-transform: uppercase;
    color: #3e2723;
    border-bottom: 1px solid #8b5a2b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.liste-liens-registre {
    list-style: none;
    padding: 0;
}

.liste-liens-registre a {
    text-decoration: none;
    color: #5d4037;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* ============================================================
   5. LA LETTRE INDIVIDUELLE (Papier ancien)
   ============================================================ */
.document-ancien {
    background-color: #fdf5e6;
    max-width: 800px; /* Plus étroit pour faire "lettre" */
    margin: 20px auto;
    padding: 50px;
    position: relative;
}

.bandeau-entete-lettre {
    margin: -50px -50px 30px -50px;
    overflow: hidden;
}

.bandeau-entete-lettre img { width: 100%; display: block; }

h2.titre-chronique {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.1rem !important;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.contenu-lettre p {
    font-size: 1.0rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.signature-manuscrite {
    font-family: 'Dancing Script', cursive !important;
    font-size: 2.2rem;
    text-align: right;
    margin-top: 30px;
}

.image-de-fin { text-align: center; margin: 40px 0; }

/* ============================================================
   NOUVEAU STYLE D'IMAGE AVEC RELIEF (Pour les chroniques)
   ============================================================ */

.conteneur-relief {
    /* Positionnement à gauche pour que le texte l'entoure */
    float: left;
    width: 400px;           /* Largeur fixe, ajustable selon vos besoins */
    margin: 5px 25px 15px 0; /* Espace à droite (25px) et en bas (15px) */

    /* Le style du cadre et de l'ombre */
    border: 32x solid #333333;  /* Fine bordure foncée */
    padding: 4px;               /* Petit espace blanc entre l'image et la bordure */
    background-color: #333333;  /* Fond blanc sous l'image */
    
    /* L'OMBRE PORTÉE pour l'effet de relief */
    /* Décalage horiz., décalage vert., flou, couleur (noir transparent) */
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.3); 
}

/* Force l'image à bien remplir le conteneur */
.conteneur-relief img {
    width: 100%;
    height: auto;
    display: block;
}

/* Style optionnel pour une légende sous ce type d'image */
.legende-relief {
    font-family: 'Playfair Display', serif; /* Police élégante pour la légende */
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
    color: #555;
}

/* Section Chaconne simulant un papier superposé */
        .section-chaconne {
            background-color: #fdfaf0; /* Teinte papier un peu plus opaque */
            padding: 20px 25px;
            border: 1px solid #d2b48c; /* Bordure fine couleur parchemin */
            border-radius: 2px;
            box-shadow: 2px 2px 8px rgba(0,0,0,0.1); /* Ombre pour l'effet de relief */
            font-family: 'verdana', 'arial', 'avenir', 'arial';
            font-size: 10px;
            color: #2e4d2e;
            margin: 20px 10px; /* Décalage pour l'effet visuel */
        }
        
        .section-chaconne p {
            margin-bottom: 6px; /* Espace encore plus réduit pour Chaconne */
            margin-top: 0;
            color: hsl(30, 100%, 10%);
            line-height: 1.6;
        }

        .section-chaconne h3 {
            font-family: 'Dancing Script', cursive;
            margin-top: 0;
            margin-bottom: 11px;
            font-size: 1.6rem;
            color: hsl(45, 100%, 20%);
        }
/* ============================================================
   6. ADAPTABILITÉ MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .accueil .conteneur-hub, .grille-registre {
        grid-template-columns: 1fr;
    }
    
    .navigation-intermediaire {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .document-ancien { padding: 25px; }
}