/* ============================================================
   1. FOND ET STRUCTURE
   ============================================================ */
.fond-bureau-poste {
    background-color: hsl(45, 100%, 35%); /* Couleur bois sombre du bureau */
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

.enveloppe {
    width: 100%;
    max-width: 800px;
}

/* ============================================================
   2. NOTE DE L'INSTITUTRICE (Avec lien intégré)
   ============================================================ */
.note-enseignante {
    background-color: #fff9c4;
    border-left: 5px solid #1a237e;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.note-enseignante h4 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #1a237e;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.note-enseignante p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.zone-retour {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(26, 35, 126, 0.2);
}

.lien-retour-note {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: hsl(30, 100%, 20%);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lien-retour-note:hover {
    color: #d32f2f;
}

/* ============================================================
   3. LA LETTRE (Papier vieilli sans contour)
   ============================================================ */
.papier-lettre {
    /* Effet parchemin jauni sur les bords sans bordure tracée */
    background: radial-gradient(circle, #fcfaf2 50%, #f1e4c4 100%);
    padding: 80px 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    border: none; /* AUCUNE BORDURE BRUNE */
}

.entete-lettre {
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 50px;
    color: #5d4037;
}

.corps-manuscrit p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.0rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.salutation {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 40px !important;
}

.signature-lettre {
    margin-top: 30px;
    font-size: 24px;
    text-align: right;
    font-family: 'Dancing Script', cursive;
}

.nom-signature {
    font-size: 20px;
    font-weight: 700;
    color: #1a237e; /* Bleu encre de fer */
}

/* ============================================================
   4. CACHET DE CIRE
   ============================================================ */
.cachet-cire {
    position: absolute;
    bottom: 50px;
    left: 70px;
    width: 140px;
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.4));
    transform: rotate(-8deg);
}

.sceau-maxime {
    background-image: url('images-ecriture/011.png');
}

/* Optimisation iPad */
@media (max-width: 1024px) {
    .papier-lettre { padding: 50px 40px; }
    .corps-manuscrit p { font-size: 1.0rem; }
}