.parchment-container {
    position: relative;
    width: 600px;
    max-width: 90%;
}

.parchment {
    position: relative;
    background: linear-gradient(135deg, #f4e4c1 0%, #e8d4a8 50%, #f0dcb3 100%);
    padding: 60px 50px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Bordure en bois sombre */
.parchment::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, #4a2c1a 0%, #3d2415 50%, #2f1a0f 100%);
    border-radius: 5px;
    z-index: -1;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Effet de texture papier */
.parchment::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(139, 119, 101, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(139, 119, 101, 0.03) 3px
    );
    pointer-events: none;
}

/* Déchirures sur les côtés */
.tear-left {
    position: absolute;
    left: -15px;
    top: 20%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 15px 15px 0;
    border-color: transparent #f4e4c1 transparent transparent;
    filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.3));
}

.tear-left-2 {
    position: absolute;
    left: -15px;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 15px 20px 0;
    border-color: transparent #e8d4a8 transparent transparent;
    filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.3));
}

.tear-left-3 {
    position: absolute;
    left: -15px;
    top: 75%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 15px 12px 0;
    border-color: transparent #f0dcb3 transparent transparent;
    filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.3));
}

.tear-right {
    position: absolute;
    right: -15px;
    top: 25%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 0 18px 15px;
    border-color: transparent transparent transparent #e8d4a8;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.3));
}

.tear-right-2 {
    position: absolute;
    right: -15px;
    top: 55%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent #f4e4c1;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.3));
}

.tear-right-3 {
    position: absolute;
    right: -15px;
    top: 80%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #f0dcb3;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.3));
}

/* Coin replié en haut à droite */
.folded-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent #d4c4a0 transparent transparent;
    filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.2));
}

.folded-corner::before {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.1);
}

/* Coin abîmé en bas à droite */
.damaged-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent #d4c4a0 transparent;
}

.download-window,
.rules-window,
.tcg-window {
    width: 800px;
    margin: auto;
}

@media (max-width: 600px) {
    .download-window,
    .rules-window,
    .tcg-window {
        width: 95%;
    }
}

/* Contenu du parchemin */
.parchment-content {
    position: relative;
    z-index: 1;
    color: #3d2415;
    line-height: 1.8;
}

.parchment-content h1 {
    font-size: 32px;
    margin: 0 0 20px 0;
    text-align: center;
    color: #2f1a0f;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.parchment-content p {
    margin: 15px 0;
    font-size: 16px;
    text-align: justify;
}

/* Effet de vieillissement */
.age-spot {
    position: absolute;
    background: radial-gradient(
        circle,
        rgba(139, 119, 101, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.spot-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 15%;
}

.spot-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
}

.spot-3 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    left: 25%;
}

.arrows {
    display: flex;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    gap: 20px;
    justify-content: center;
}


.arrow-r, .arrow-l {
    width: 100px;

    background: transparent;
    border: none;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}

.arrow-r {
    transform: scaleX(-1);
}

.title-bis {
    display: inline-block;
    color: #6a2c05;
    font-size: 50px;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    width: 80px;
}

.parchment-title {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.js-rule {
    font-size: 22px;
}

@media (max-width: 600px) {
    .arrow-r, .arrow-l {
        width: 60px;
    }

    .title-bis {
        font-size: 35px;
    }
}

.icon {
    display: inline-block;
    vertical-align: middle;
    width: 80px;
}

.parchment-title {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.js-rule {
    font-size: 22px;
}

@media (max-width: 600px) {
    .arrow-r, .arrow-l {
        width: 90px;
    }

    .title-bis {
        font-size: 35px;
    }
}