/* Arrière-plan romantique */
.letter-background {
    background: url('https://unsplash.com/fr/photos/photo-de-mise-au-point-selective-depaillettes-dans-un-bol-en-ceramique-coeur-iz1OzTbk61c') no-repeat center center/cover;
    color: #fff;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Conteneur de la lettre */
.letter-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    max-width: 700px;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Titre */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #f5c6cb;
}

/* Texte */
p, li {
    font-size: 1.2em;
    margin: 10px 0;
}

/* Liste du prénom */
.prenom-description {
    list-style: none;
    padding: 0;
}

.prenom-description li,.prnom{
    margin: 5px 0;
    font-size: 1.1em;
    color: #f8d7da;
}

/* Signature */
.signature{
    margin-top: 20px;
    text-align: right;
    font-style: italic;
    color: #f5c6cb;
}
/* Style global */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f2f2f2;
}

/* Enveloppe */
.container {
    text-align: center;
}

.envelope {
    position: relative;
    width: 300px;
    height: 200px;
    background: #e74c3c;
    cursor: pointer;
    border-radius: 10px;
    margin-left: 50px;
}

.envelope .flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #c0392b;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transform-origin: top;
    transition: transform 0.5s ease;
}

.envelope:hover .flap {
    transform: rotateX(180deg);
}

.letter-preview {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
}

.letter-container {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    line-height: 1.5;
}

.signature {
    margin-top: 30px;
    font-style: italic;
}
