.button-rules{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: auto;
    height: auto;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
    flex: 0 0 auto;
    padding : 1rem;
}

button.button-rules {
    background-color: transparent;
    border: none;
}

.button-rules a {
    text-decoration: none;
    padding: 0.6rem;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
}

.button-rules {
    color: #fff;
    font-family: Arial;
    font-size: 1.2rem;
    text-align: center;
    margin: auto;
}

.button-rules img {
    width: 50px; 
    height: auto;
    border: 1px solid #fff;
}

.button-rules span {
    font-size: 1.2rem;
    color: #fff;
    text-align: center; 
}

.button-rules img:hover, .familier-image:hover, .arme-image:hover, .sort-image:hover {
    transform: scale(1.1);
    transition: transform 0.3s; 
}

.quote {
    display: block; 
    text-align: center;
    margin: 0 auto; 
}

.familier-section {
    display: flex;
    position: relative;
    align-items: center; 
    gap: 2rem;
    margin: 0.25rem 0;
    margin-left: 15rem; 
    padding: 1rem;
    padding-top: 6.6rem;
}

.familier-section h2 {
    position: absolute;
    left: 1.5rem;
    top: 1.75rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    z-index: 40;
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    pointer-events: none;
}

.familier-section .quote {
    position: absolute;
    left: 1.5rem;
    top: 4rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    z-index: 40;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    pointer-events: none;
}

.familier-image {
    position: relative;
    z-index: 30;
    width: 300px;
    height: auto;
    margin-left: 1rem;
}

.familier-text {
    position: static;
    max-width: 600px; 
    font-family: Arial, sans-serif;
    color: #fff;
}

.familier-text p, .sort-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.familier-type {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 2rem;
    margin: 0 0; 
}

.type-item {
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

.type-icon {
    width: 56px; 
    height: auto; 
    border-radius: 3px; 
}

.type-text {
    font-size: 0.1rem; 
    color: #fff; 
    margin-top: 0rem;
}

.vie {
    color: #FF0000; 
}

.arme-section {
    display: flex;
    position: relative;
    justify-content: flex-end; 
    align-items: center; 
    gap: 0; 
    margin: 0.25rem 0;
    margin-right: 15rem; 
    padding: 1rem;
    padding-top: 6.6rem;
}
.arme-section h2 {
    position: absolute;
    right: 1.5rem;
    top: 1.75rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    z-index: 40;
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    text-align: right;
    pointer-events: none;
}

.arme-section .quote {
    position: absolute;
    right: 1.5rem;
    top: 4rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    z-index: 40;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    text-align: right;
    pointer-events: none;
}

.arme-text {
    position: static;
    max-width: 600px; 
    font-family: Arial, sans-serif;
    color: #fff;
    text-align: right; 
    margin-right: 2rem; 
}

.arme-image {
    position: relative;
    z-index: 30; 
    width: 300px; 
    height: auto; 
    margin-right: 1rem;
}

.cout {
    color: #FFCC00; 
}

.sort-section {
    position: relative;
    display: flex;
    align-items: center; 
    gap: 2rem;
    margin: 0.25rem 0;
    margin-left: 8.5rem; 
    padding: 1rem;
    padding-top: 6.6rem;
}

.sort-section h2 {
    position: absolute;
    left: 1.5rem;
    top: 1.75rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    z-index: 40;
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    pointer-events: none;
}

.sort-section .quote {
    position: absolute;
    left: 1.5rem;
    top: 4rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    z-index: 40;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    pointer-events: none;
}

.sort-image {
    position: relative;
    z-index: 30;
    width: auto;
    height: 300px;
    margin-left: 0.55rem;
    
}

.sort-text {
    position: static;
    max-width: 600px; 
    font-family: Arial, sans-serif;
    color: #fff;
}

.sort-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .button-rules {
        width: 95%;
        padding: 0.6rem;
        font-size: 1rem;
        margin: 0.5rem auto;
    }

    .button-rules a {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .button-rules img {
        width: 40px;
        height: auto;
        margin: 0;
    }

    .familier-section, .arme-section, .sort-section {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding-top: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .familier-section h2, .arme-section h2, .sort-section h2 {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        text-align: center;
        margin: 0.05rem 0 0.05rem 0; 
        font-size: 1.4rem;
        z-index: auto;
        pointer-events: auto;
    }

    .familier-section .quote, .arme-section .quote, .sort-section .quote {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        text-align: center;
        margin: 0.05rem 0 0.15rem 0; 
        font-size: 0.95rem;
        z-index: auto;
        pointer-events: auto;
    }

    .familier-image, .arme-image {
        position: relative;
        z-index: auto;
        width: 40vw; 
        max-width: 260px; 
        height: auto;
        margin: 0.25rem auto;
    }

    .sort-image {
        position: relative;
        z-index: auto;
        width: auto;
        height: 40vw; 
        max-height: 260px; 
        margin: 0.25rem auto;
        object-fit: contain;
    }

    .familier-text, .arme-text, .sort-text {
        position: static;
        max-width: 100%;
        text-align: center;
        margin-top: 0.25rem;
        margin-right: 0;
        padding: 0 0.25rem;
    }

    .familier-text p, .sort-text p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .type-icon {
        margin-top: 0.25rem;
    }

    .type-text {
        margin-bottom: 0.25rem;
    }
}
