body {
    margin: 0;
    padding: 20px;
    background: #eee;
    display: flex;
    justify-content: center;
    font-family: "Scheherazade", Arial, sans-serif;
}

/* PAGE */
.page {
    background: white;
    padding: 8px;
    border: 8px solid #c65a1f; /* bordure style manuel */
    max-width: 620px;
    width: 100%;
}

/* BOITE DU TITRE */
.title-box {
    border: 3px solid #c96b28;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.title-box h2 {
    font-size: 18px;
    color: #a84a1b;
    margin: 0;
}

/* TABLE ARABE */
.arabic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    direction: rtl;
    font-size: 35px;
    cursor: pointer;
    transition: 0.15s;
}

/* CELLULES */
.arabic-table td,
.arabic-table th {
    border: 1px solid black;
    padding: 12px;
    line-height: 1.8; /* IMPORTANT pour shadda & tanwīn */
    white-space: nowrap;
}

/* EFFET HOVER (PC) */
.arabic-table td:hover {
    background: #fff4e6;
    transform: scale(1.05);
}

/* 📱 MOBILE */
@media (max-width: 620px) {
    body {
        padding: 10px;
    }

    .page {
        padding: 5px;
        border-width: 5px;
    }

    .arabic-table td,
    .arabic-table th {
        font-size: 20px;
        padding: 10px 6px;
        line-height: 1.7;
    }

    .title-box h2 {
        font-size: 16px;
    }
}

/* 🔴 MET TOUTES LES DIACRITIQUES EN ROUGE */
.dia {
    color: red;
}


/* ===== NOUVEAU : BARRE DE NAVIGATION AJOUTÉE À LA FIN ===== */
/* ===== SANS MODIFIER TES STYLES EXISTANTS ===== */

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: white;
    color: #b45f06;  /* Harmonisé avec ta couleur */
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #d98c40;  /* Harmonisé avec ta couleur */
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn.disabled {
    opacity: 0.5;
    border-color: #ccc;
    color: #999;
    background: #f5f5f5;
    cursor: default;
    pointer-events: none;
}

.nav-btn:not(.disabled):hover {
    background: #d98c40;  /* Harmonisé avec ta couleur */
    color: white;
    border-color: #b45f06;
}