/* ===============================
   PAGE RÈGLEMENT — NOCTH
   =============================== */

.rules-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* ===== SOMMAIRE LATÉRAL ===== */
.rules-nav {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.rules-nav h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
    color: #2b2b2b;
}

.rules-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-nav li {
    margin-bottom: 10px;
}

.rules-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #555;
    transition: background .2s ease, color .2s ease;
}

.rules-nav a:hover {
    background: rgba(138, 79, 255, 0.08);
    color: #8a4fff;
}

/* ===== CONTENU PRINCIPAL ===== */
.rules-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===== BLOC DE RÈGLES ===== */
.rule-block {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.rule-block h2 {
    margin-bottom: 14px;
    font-size: 1.5rem;
    color: #333;
    position: relative;
}

.rule-block h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, #8a4fff, #b59cff);
}

.rule-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}

.rule-block ul {
    padding-left: 20px;
    margin: 10px 0;
}

.rule-block li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

/* ===== NOTES ===== */
.rule-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #666;
    opacity: 0.9;
}

/* ===== ACCEPTATION ===== */
.rules-accept {
    background: linear-gradient(135deg, #8a4fff, #b59cff);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(138,79,255,0.35);
}

.rules-accept label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}

.rules-accept input {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.shop-cart {
    position: absolute;
    top: 20px;
    right: 20px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;

    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.shop-cart:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-nav {
        position: relative;
        top: 0;
    }
}