/* =========================================================
   QALALIF BESCHERELLE ARABE — CSS FINAL PROPRE
========================================================= */

:root {
    --qb-blue-dark: #114370;
    --qb-blue: #2f6fd6;
    --qb-blue-light: #f4f8ff;
    --qb-blue-soft: #e9f3ff;
    --qb-pink: #dc3290;
    --qb-pink-soft: #fff0f8;
    --qb-yellow-soft: #fffaf0;
    --qb-yellow-border: #f1df8a;
    --qb-green: #24a862;
    --qb-orange: #f59a23;
    --qb-text: #0b2559;
    --qb-muted: #61708f;
    --qb-border: #dbe8f7;
    --qb-border-light: #e7edf7;
    --qb-white: #ffffff;
    --qb-radius: 14px;
}

.qb-audio-btn {
    font-size: 0 !important;
}

.qb-audio-btn .qb-audio-svg {
    font-size: initial !important;
}

/* =========================================================
   PAGE LISTE / ACCUEIL BESCHERELLE
========================================================= */

.qalalif-bescherelle {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
    color: var(--qb-text);
}

.qb-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--qb-white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(11, 37, 89, 0.08);
    margin-bottom: 25px;
}

.qb-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--qb-pink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.qb-hero h1 {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.1;
    color: var(--qb-text);
}

.qb-hero p {
    margin: 0;
    color: var(--qb-muted);
    font-size: 17px;
}

.qb-search-wrap {
    margin-bottom: 22px;
}

.qb-main-search-box {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--qb-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(11, 37, 89, 0.08);
    overflow: hidden;
}

.qb-main-search-box:focus-within {
    border-color: var(--qb-pink);
}

.qb-main-search-icon {
    width: 64px;
    min-width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qb-blue-dark);
}

.qb-main-search-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qb-main-search-separator {
    width: 1px;
    height: 30px;
    background: var(--qb-border);
    display: block;
}

#qb-search {
    width: 100%;
    height: 64px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 22px;
    font-size: 17px;
    font-weight: 700;
    color: var(--qb-text);
}

#qb-search::placeholder {
    color: #8a98b4;
    font-weight: 600;
}

.qb-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.qb-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qb-switch-btn,
.qb-saved-btn,
.qb-letter,
.qb-reset {
    border: 1px solid var(--qb-border);
    background: var(--qb-white);
    color: var(--qb-text);
    border-radius: var(--qb-radius);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.qb-switch-btn.active {
    background: var(--qb-blue);
    color: var(--qb-white);
    border-color: var(--qb-blue);
}

.qb-saved-btn {
    color: var(--qb-pink);
    border-color: #ffc5da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.qb-saved-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qb-saved-btn .qb-bookmark-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qb-saved-btn.active {
    background: var(--qb-pink);
    border-color: var(--qb-pink);
    color: #ffffff;
}

.qb-saved-btn.active .qb-bookmark-svg {
    fill: currentColor;
}

/* =========================================================
   CARROUSEL LETTRES
========================================================= */

.qb-letters-carousel {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.qb-letters-carousel.active {
    display: flex;
}

.qb-letters {
    display: flex;
    gap: 9px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 2px 0;
}

.qb-letters::-webkit-scrollbar {
    display: none;
}

.qb-letter {
    min-width: 40px;
    height: 40px;
    padding: 0 4px;
    font-size: 23px;
    line-height: 1;
    border: 1px solid var(--qb-border);
    background: #ffffff;
    color: var(--qb-text);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qb-letters-arabe .qb-letter {
    font-size: 27px;
    padding-bottom: 2px;
}

.qb-letter.active {
    background: var(--qb-blue);
    border-color: var(--qb-blue);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(47, 111, 214, 0.22);
}

.qb-letters-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid var(--qb-border);
    border-radius: 14px;
    background: var(--qb-blue-soft);
    color: var(--qb-blue-dark);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qb-letters-arrow:hover {
    background: #dfeeff;
}

.qb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qb-card {
    display: grid;
    grid-template-columns: 90px 1fr 30px;
    align-items: center;
    gap: 16px;
    background: var(--qb-white);
    border: 1px solid var(--qb-border-light);
    border-radius: 18px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--qb-text);
    box-shadow: 0 6px 18px rgba(11, 37, 89, 0.05);
    transition: 0.2s ease;
}

.qb-card:hover {
    transform: translateY(-2px);
    background: rgba(220, 50, 144, 0.045);
    border-color: rgba(220, 50, 144, 0.24);
    box-shadow: 0 12px 28px rgba(220, 50, 144, 0.10);
}
.qb-card:hover .qb-card-content strong {
    color: var(--qb-pink);
}

.qb-thumb {
    width: 90px;
    height: 58px;
    border-radius: 12px;
    background: var(--qb-blue-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.qb-card-content {
    display: flex;
    align-items: center;
    gap: 28px;
}

.qb-card-content strong {
    font-size: 30px;
    min-width: 120px;
}

.qb-card-content span {
    color: var(--qb-muted);
    font-size: 16px;
}

.qb-arrow {
    font-size: 34px;
    color: var(--qb-blue);
}

.qb-card.hidden {
    display: none;
}

/* =========================================================
   PAGE INDIVIDUELLE VERBE
========================================================= */

.qalalif-verbe-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 70px;
    color: var(--qb-text);
}

/* =========================================================
   ENTÊTE PREMIUM
========================================================= */

.qb-detail-topbar {
    width: 100%;
    max-width: none;
    background: var(--qb-blue-dark);
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    align-items: center;
    column-gap: 24px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    margin-bottom: 0;
    border: none;
    box-shadow: 0 8px 22px rgba(17, 67, 112, 0.18);
}

.qb-topbar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.qb-topbar-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.qb-topbar-logo img,
.qb-topbar-logo .custom-logo,
.qb-detail-topbar-logo img,
.qb-detail-topbar-logo .custom-logo {
    max-height: 46px !important;
    max-width: 170px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.qb-logo-text {
    color: var(--qb-white);
    font-size: 26px;
    font-weight: 900;
}

.qb-detail-search-form {
    position: relative;
    width: 340px;
    max-width: 340px;
    min-height: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dce8f6;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.qb-search-icon {
    display: none;
}

.qb-detail-search-form input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--qb-text);
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
}

.qb-detail-search-form input::placeholder {
    color: #8a98b4;
}

.qb-detail-search-form button {
    width: 44px;
    height: 40px;
    min-width: 44px;
    flex: 0 0 44px;
    border: none;
    border-left: 1px solid #dce8f6;
    border-radius: 0;
    background: #ffffff;
    color: var(--qb-blue-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}

.qb-detail-search-form button:hover {
    background: #f8fbff;
}

.qb-search-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qb-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.qb-header-link,
.qb-member-link {
    min-height: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}

.qb-header-link {
    background: #ffffff;
    color: var(--qb-blue-dark) !important;
    border: 1px solid var(--qb-border);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.qb-header-link:hover {
    background: #f8fbff;
    color: var(--qb-blue-dark) !important;
}

.qb-member-link {
    gap: 8px;
    background: var(--qb-pink);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(220, 50, 144, 0.25);
}

.qb-member-link:hover {
    background: #c7277e;
    color: #ffffff !important;
}

.qb-member-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* =========================================================
   GRAND BLOC CONTENU
========================================================= */

.qb-verbe-card {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--qb-white);
    border: 1px solid var(--qb-border-light);
    border-top: none;
    border-radius: 0 0 24px 24px;
    padding: 28px 34px 44px;
    box-shadow: 0 18px 55px rgba(11, 37, 89, 0.09);
}

/* =========================================================
   HERO VERBE + IMAGE
========================================================= */

.qb-hero-card {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: 0.78fr 1.45fr;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #dbe8f7;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(17, 67, 112, 0.08);
}

.qb-hero-left {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8fbff;
    text-align: center;
}

.qb-hero-ar {
    margin: 0;
    color: var(--qb-blue-dark);
    font-size: 78px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
}

.qb-hero-fr {
    margin: 10px 0 0;
    color: var(--qb-blue-dark);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
    text-align: center;
}

.qb-hero-buttons {
    display: none;
}

.qb-save-verbe-wide {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #efc45a;
    background: #ffffff;
    color: var(--qb-blue-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17, 67, 112, 0.06);
}

.qb-save-verbe-wide:hover {
    background: #fff7d6;
}

.qb-save-icon {
    color: var(--qb-blue-dark);
    font-size: 22px;
    line-height: 1;
}

.qb-save-verbe-wide.is-saved {
    background: #fff0f8;
    border-color: #f4bddb;
}

.qb-save-verbe-wide.is-saved .qb-save-icon {
    color: var(--qb-pink);
}

.qb-print-single {
    min-height: 54px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #dbe8f7;
    border-radius: 14px;
    color: var(--qb-blue-dark);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(17, 67, 112, 0.08);
}

.qb-print-single:hover {
    background: #f8fbff;
    color: var(--qb-blue-dark);
}

.qb-print-single-icon {
    font-size: 22px;
    line-height: 1;
}

.qb-print-single strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
}

.qb-print-single small {
    display: block;
    color: var(--qb-muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.qb-print-svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qb-hero-right {
    min-height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: #f8fbff;
}

.qb-hero-image-wrap {
    width: 100%;
    overflow: hidden;
    background: #f8fbff;
}

.qb-hero-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    max-height: 245px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}

.qb-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid var(--qb-border-light);
}

.qb-hero-actions .qb-save-verbe-wide,
.qb-hero-actions .qb-print-single {
    width: 100%;
    min-height: 72px;
    padding: 14px 18px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none !important;
    text-align: left;
    line-height: 1.15;
}

.qb-hero-actions .qb-save-verbe-wide {
    background: var(--qb-pink);
    border-right: 1px solid rgba(255,255,255,0.22);
}

.qb-hero-actions .qb-print-single {
    background: var(--qb-blue-dark);
}

.qb-hero-actions .qb-save-verbe-wide:hover {
    background: #c7277e;
}

.qb-hero-actions .qb-print-single:hover {
    background: #0d365c;
}

.qb-hero-actions .qb-save-icon,
.qb-hero-actions .qb-print-single-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qb-hero-actions .qb-save-icon {
    font-size: 24px;
}

.qb-hero-actions .qb-print-single-icon {
    font-size: 22px;
}

.qb-hero-actions .qb-save-text {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.qb-hero-actions .qb-print-single > span:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.qb-hero-actions .qb-print-single strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
}

.qb-hero-actions .qb-print-single small {
    display: block;
    color: rgba(255,255,255,0.86);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.2;
}

.qb-hero-actions .qb-save-verbe-wide:focus,
.qb-hero-actions .qb-print-single:focus {
    outline: none;
}

/* =========================================================
   PHRASE EXEMPLE
========================================================= */

.qb-example-box {
    max-width: 900px;
    width: 100%;
    min-height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fbff 0%, #e9f3ff 100%);
    border: 1px solid #cfe0f4;
    border-radius: 0;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 18px;
    align-items: center;
    box-shadow: 0 8px 18px rgba(17, 67, 112, 0.05);
}

.qb-example-content {
    text-align: center;
}

.qb-example-ar {
    color: var(--qb-blue-dark);
    font-size: 34px;
    line-height: 1.55;
    font-weight: 900;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.qb-example-fr {
    color: #44566f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.qb-example-audio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-example-audio .qb-audio-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid #dbe8f7;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(17, 67, 112, 0.08);
    color: var(--qb-blue-dark);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qb-example-audio .qb-audio-btn:hover {
    background: #f8fbff;
}

/* =========================================================
   TABLEAU PRINCIPAL / ACCORDÉONS
========================================================= */

.qb-accordion-list {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #d9e5f3;
    border-top: none;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 67, 112, 0.07);
}

.qb-verb-accordion,
.qb-masdar-row {
    border: none;
    border-top: 1px solid #d9e5f3;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
}

.qb-verb-accordion:first-child {
    border-top: none;
}

.qb-verb-accordion > summary,
.qb-masdar-row {
    display: grid;
    grid-template-columns: 170px 1fr 1fr 150px 52px;
    align-items: center;
    min-height: 72px;
    padding: 0;
    margin: 0;
    list-style: none;
    cursor: pointer;
    position: relative;
}

.qb-masdar-row {
    cursor: default;
}

.qb-masdar-row::after {
    content: "";
    display: block;
    width: 52px;
    min-height: 72px;
    background: #ffffff;
    border-left: 1px solid #dfe8f4;
}

.qb-verb-accordion > summary::-webkit-details-marker,
.qb-verb-accordion > summary::marker {
    display: none;
    content: "";
}

.qb-verb-accordion > summary::after {
    content: "▾";
    width: 34px;
    height: 34px;
    margin: auto;
    align-self: center;
    justify-self: center;
    border-radius: 10px;
    background: #edf4fc;
    color: #3b73d1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease;
}

.qb-verb-accordion[open] > summary::after {
    transform: rotate(180deg);
    background: #dfeeff;
}

.qb-verb-accordion[open] > summary {
    border-bottom: 1px solid #dfe8f4;
}

.qb-acc-title,
.qb-acc-fr,
.qb-acc-forme,
.qb-masdar-row > span {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    box-sizing: border-box;
}

.qb-acc-title {
    justify-content: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.qb-acc-title-fr {
    text-align: left;
    border-right: 1px solid #dfe8f4;
}

.qb-acc-title-ar {
    justify-content: center;
    direction: rtl;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    border-left: 1px solid #dfe8f4;
}

.qb-acc-fr {
    color: #334b6b;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-left: 1px solid #dfe8f4;
}

.qb-acc-forme {
    color: #123f73;
    font-size: 31px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    border-left: 1px solid #dfe8f4;
}

.qb-passe > summary .qb-acc-title-fr,
.qb-passe > summary .qb-acc-title-ar {
    background: #fdf0f7;
    color: #e03b8b;
}

.qb-present > summary .qb-acc-title-fr,
.qb-present > summary .qb-acc-title-ar {
    background: #edf5ff;
    color: var(--qb-blue);
}

.qb-imperatif > summary .qb-acc-title-fr,
.qb-imperatif > summary .qb-acc-title-ar {
    background: #fff8e8;
    color: var(--qb-orange);
}

.qb-futur > summary .qb-acc-title-fr,
.qb-futur > summary .qb-acc-title-ar {
    background: #edf8f1;
    color: var(--qb-green);
}

.qb-masdar-row .qb-acc-title-fr,
.qb-masdar-row .qb-acc-title-ar {
    background: #f3f7fc;
    color: var(--qb-blue-dark);
}

.qb-acc-content {
    border-top: 1px solid #dfe8f4;
    background: #ffffff;
    padding: 0;
}

/* =========================================================
   TABLEAU INTERNE CONJUGAISON
========================================================= */

.qb-inner-conj-table {
    width: 100%;
    border-top: none;
    background: #ffffff;
}

.qb-inner-conj-header,
.qb-inner-conj-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
}

.qb-inner-conj-header > div {
    background: #f6f9fd;
    color: var(--qb-blue);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    padding: 12px 14px;
    border-bottom: 1px solid #dfe8f4;
}

.qb-inner-conj-header > div:not(:last-child),
.qb-inner-conj-row > div:not(:last-child) {
    border-right: 1px solid #dfe8f4;
}

.qb-inner-conj-row > div {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
}

.qb-inner-conj-row:last-child > div {
    border-bottom: none;
}

.qb-inner-traduction {
    color: #425a78;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.qb-inner-forme {
    color: #123f73;
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    line-height: 1.3;
}

.qb-inner-pronom {
    flex-direction: row;
    gap: 8px;
    color: #425a78;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background: #fbfcff;
}

.qb-pronom-fr {
    order: 1;
    color: #425a78;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.qb-pronom-separator {
    order: 2;
    color: #9aa9bd;
    font-size: 14px;
    font-weight: 600;
}

.qb-pronom-ar {
    order: 3;
    color: #123f73;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

/* =========================================================
   FUTUR
========================================================= */

.qb-futur-content {
    color: var(--qb-text);
    font-size: 16px;
    line-height: 1.7;
    padding: 22px 24px;
}

.qb-futur-content p {
    margin: 0 0 14px;
    color: var(--qb-muted);
    font-weight: 600;
}

.qb-futur-content strong {
    color: var(--qb-blue);
    font-weight: 900;
}

.qb-futur-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dfe8f6;
    border-radius: var(--qb-radius);
    padding: 13px 16px;
    margin: 12px 0 18px;
}

.qb-futur-line span {
    color: var(--qb-muted);
    font-weight: 800;
}

.qb-futur-line strong {
    color: var(--qb-text);
    font-size: 25px;
    text-align: right;
}

/* =========================================================
   COULEURS PÉDAGOGIQUES
   À utiliser dans les champs admin :
   - Passé     : ذَهَبْ[passe]تُ[/passe]
   - Présent   : [present]يَـ[/present]ذْهَبُ
   - Impératif : اِذْهَب[imp]ي[/imp]
   - Futur     : [futur]سَ[/futur]يَذْهَبُ
========================================================= */

.qb-colored-word {
    color: var(--qb-pink) !important;
    font-weight: 900 !important;
}

.qb-inner-forme span.qb-ending-passe,
.qb-acc-forme span.qb-ending-passe {
    display: contents !important;
    color: var(--qb-pink) !important;
    font-weight: 900 !important;
}

.qb-inner-forme span.qb-ending-present,
.qb-acc-forme span.qb-ending-present {
    display: contents !important;
    color: var(--qb-blue) !important;
    font-weight: 900 !important;
}

.qb-inner-forme span.qb-ending-imperatif,
.qb-acc-forme span.qb-ending-imperatif {
    display: contents !important;
    color: var(--qb-orange) !important;
    font-weight: 900 !important;
}

.qb-inner-forme span.qb-ending-futur,
.qb-acc-forme span.qb-ending-futur,
.qb-futur-line span.qb-ending-futur,
.qb-futur-line strong span.qb-ending-futur {
    display: contents !important;
    color: var(--qb-green) !important;
    font-weight: 900 !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .qb-verbe-card {
        max-width: 900px;
    }

    .qb-accordion-list,
    .qb-example-box,
    .qb-hero-card {
        max-width: 100%;
    }

    .qb-verb-accordion > summary,
    .qb-masdar-row {
        grid-template-columns: 150px 1fr 1fr 130px 46px;
        min-height: 64px;
    }

    .qb-masdar-row::after {
        width: 46px;
        min-height: 64px;
    }

    .qb-acc-title,
    .qb-acc-fr,
    .qb-acc-forme,
    .qb-masdar-row > span {
        min-height: 64px;
        padding: 10px 12px;
    }

    .qb-acc-title {
        font-size: 15px;
    }

    .qb-acc-title-ar {
        font-size: 21px;
    }

    .qb-acc-forme {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .qalalif-bescherelle {
        padding: 25px 14px;
    }

    .qb-hero {
        padding: 24px;
        align-items: flex-start;
        border-radius: 20px;
    }

    .qb-hero h1 {
        font-size: 30px;
    }

    .qb-card {
        grid-template-columns: 72px 1fr 20px;
        gap: 10px;
        padding: 10px;
    }

    .qb-thumb {
        width: 72px;
        height: 54px;
    }

    .qb-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .qb-card-content strong {
        font-size: 25px;
        min-width: auto;
    }

    .qb-detail-topbar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 14px;
        padding-right: 14px;
        text-align: center;
    }

    .qb-topbar-logo {
        justify-content: center;
    }

    .qb-detail-search-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .qb-topbar-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .qb-header-link,
    .qb-member-link {
        width: auto;
    }

    .qb-verbe-card {
        padding: 22px 14px 34px;
        border-radius: 0 0 18px 18px;
    }

    .qb-hero-card {
        grid-template-columns: 1fr;
    }

    .qb-hero-left {
        padding: 26px 20px;
    }

    .qb-hero-ar {
        font-size: 58px;
        text-align: center;
    }

    .qb-hero-fr {
        font-size: 22px;
        text-align: center;
        font-weight: 700;
    }

    .qb-hero-image-wrap img {
        min-height: auto;
        max-height: 240px;
        border-radius: 0;
    }

    .qb-hero-actions {
        grid-template-columns: 1fr;
    }

    .qb-hero-actions .qb-save-verbe-wide {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }

    .qb-hero-actions .qb-save-verbe-wide,
    .qb-hero-actions .qb-print-single {
        min-height: 64px;
        padding: 14px 16px;
        justify-content: flex-start;
    }

    .qb-example-box {
        grid-template-columns: 1fr;
        padding: 16px 14px;
    }

    .qb-example-ar {
        font-size: 24px;
    }

    .qb-example-fr {
        font-size: 15px;
    }
}

/* =========================================================
   HERO — BOUTONS ACTIONS PLUS COMPACTS
========================================================= */

.qb-hero-actions .qb-save-verbe-wide,
.qb-hero-actions .qb-print-single {
    min-height: 58px !important;
    padding: 10px 18px !important;
}

.qb-hero-actions .qb-save-text,
.qb-hero-actions .qb-print-single strong {
    font-size: 16px !important;
}

.qb-hero-actions .qb-print-single small {
    font-size: 12px !important;
}

.qb-bookmark-svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qb-save-verbe-wide.is-saved .qb-bookmark-svg {
    fill: currentColor;
}

.qb-hero-actions .qb-save-verbe-wide.is-saved .qb-save-icon {
    color: #ffffff !important;
}

.qb-hero-actions .qb-save-verbe-wide.is-saved .qb-bookmark-svg {
    stroke: #ffffff !important;
    fill: #ffffff !important;
}

/* =========================================================
   RECHERCHE CUSTOM PREMIUM — FINAL CLEAN
========================================================= */

.qb-detail-search-form input::-webkit-calendar-picker-indicator {
    display: none !important;
}

.qb-custom-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 99999;
    display: none;
    background: #ffffff;
    border: 1px solid #dce8f6;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(17, 67, 112, 0.16);
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.qb-custom-suggestion {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    color: var(--qb-blue-dark) !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: block !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.qb-custom-suggestion:hover {
    background: #f8fbff !important;
    color: var(--qb-blue-dark) !important;
}

.qb-sugg-line {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.qb-sugg-ar {
    display: inline-flex !important;
    color: var(--qb-blue-dark) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}

.qb-sugg-sep {
    display: inline-flex !important;
    color: #9aa9bd !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    flex: 0 0 auto !important;
}

.qb-sugg-fr {
    display: inline-flex !important;
    color: var(--qb-muted) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* =========================================================
   ENTÊTE PAGE LISTE BESCHERELLE — FULL WIDTH
========================================================= */

.qb-list-header-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--qb-blue-dark);
    box-shadow: 0 8px 22px rgba(17, 67, 112, 0.18);
}

.qb-list-header-inner {
    max-width: 1180px;
    min-height: 66px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.qb-list-header-inner .qb-topbar-logo {
    justify-content: flex-start;
}

.qb-list-header-inner .qb-topbar-actions {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .qb-list-header-inner {
        min-height: auto;
        padding: 12px 14px;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .qb-list-header-inner .qb-topbar-logo,
    .qb-list-header-inner .qb-topbar-actions {
        justify-content: center;
    }
}

/* =========================================================
   STYLE QALALIF — FLÈCHES + SÉLECTEUR LETTRES
========================================================= */

/* Flèches du carrousel : bleu Qalalif au repos */
.qb-letters-arrow,
.qb-letters-arrow:focus,
.qb-letters-arrow:active {
    background: #114370 !important;
    color: #ffffff !important;
    border-color: #114370 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Flèches : bleu légèrement plus foncé au survol */
.qb-letters-arrow:hover {
    background: #0d365c !important;
    border-color: #0d365c !important;
    color: #ffffff !important;
}

/* Sélecteur Lettre arabe / Lettre française au repos */
.qb-switch-btn {
    background: #ffffff !important;
    color: #114370 !important;
    border-color: var(--qb-border) !important;
    box-shadow: none !important;
}

/* Sélecteur au survol */
.qb-switch-btn:hover {
    background: rgba(220, 50, 144, 0.06) !important;
    color: var(--qb-pink) !important;
    border-color: rgba(220, 50, 144, 0.22) !important;
}

/* Sélecteur actif : rose Qalalif */
.qb-switch-btn.active,
.qb-switch-btn.active:focus,
.qb-switch-btn.active:active {
    background: var(--qb-pink) !important;
    border-color: var(--qb-pink) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(220, 50, 144, 0.20) !important;
}

/* =========================================================
   INFO BONUS VERBE — STYLE QALALIF
========================================================= */

.qb-info-bonus-box {
    max-width: 900px;
    width: 100%;
    min-height: 86px;
    margin: 30px auto 24px;
    padding: 16px 26px 16px 145px;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff7fc 0%, #ffffff 55%, #f8fbff 100%);
    border: 1px solid rgba(220, 50, 144, 0.28);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(17, 67, 112, 0.06);
    overflow: visible;
}



.qb-info-bonus-image {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 92px;
    height: 128px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.qb-info-bonus-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qb-info-bonus-content {
    min-width: 0;
}

.qb-info-bonus-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(220, 50, 144, 0.09);
    color: var(--qb-pink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.qb-info-bonus-content p {
    margin: 0;
    color: var(--qb-blue-dark);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .qb-info-bonus-box {
        margin-top: 58px;
        padding: 82px 18px 18px;
        text-align: center;
        justify-content: center;
    }

   

    .qb-info-bonus-image {
        left: 50%;
        top: -42px;
        transform: translateX(-50%);
        width: 92px;
        height: 118px;
    }

    .qb-info-bonus-label {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Logo Bescherelle dans les entêtes */
.qb-bescherelle-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.qb-topbar-logo .qb-bescherelle-logo,
.qb-list-header-inner .qb-bescherelle-logo,
.qb-detail-topbar .qb-bescherelle-logo {
    max-height: 82px !important;
    max-width: 340px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* =========================================================
   ICÔNES ACCORDÉONS — STYLE QALALIF STABLE
========================================================= */

.qb-acc-title-fr::before {
    content: "";
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-right: 9px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Passé : calendrier */
.qb-passe .qb-acc-title-fr::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='5' width='16' height='15' rx='3' fill='none' stroke='%23dc3290' stroke-width='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16' stroke='%23dc3290' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Présent : personne */
.qb-present .qb-acc-title-fr::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='%232f6fd6' stroke-width='2'/%3E%3Cpath d='M5 21c1.3-4.2 4-6.2 7-6.2s5.7 2 7 6.2' fill='none' stroke='%232f6fd6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Impératif : main simple */
.qb-imperatif .qb-acc-title-fr::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 12V6.5a1.5 1.5 0 0 1 3 0V11M11 11V5.5a1.5 1.5 0 0 1 3 0V11M14 11V7a1.5 1.5 0 0 1 3 0v7c0 4-2.5 6.5-6.5 6.5H10c-2.2 0-3.5-1.1-4.5-2.8L3.7 14.5a1.5 1.5 0 0 1 2.6-1.5L8 15' fill='none' stroke='%23f59a23' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Futur : horloge */
.qb-futur .qb-acc-title-fr::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%2324a862' stroke-width='2'/%3E%3Cpath d='M12 8v5l3 2' fill='none' stroke='%2324a862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Nom verbal : livre */
.qb-masdar-row .qb-acc-title-fr::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4.5h9a3 3 0 0 1 3 3V20H8a3 3 0 0 1-3-3V4.5z' fill='none' stroke='%23114370' stroke-width='2'/%3E%3Cpath d='M8 8h6M8 11h6' stroke='%23114370' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.qb-audio-svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* =========================================================
   PAGE BIBLIOTHÈQUE VERBES — MOBILE COMPACT
   Ne touche pas la version ordinateur
========================================================= */

@media (max-width: 768px) {

    /* Conteneur général : moins d'espace en haut */
    .qalalif-bescherelle {
        padding: 22px 12px 36px !important;
    }

    /* Barre de recherche moins haute */
    .qb-search-wrap {
        margin-bottom: 14px !important;
    }

    .qb-main-search-box {
        min-height: 46px !important;
        height: 46px !important;
        border-radius: 14px !important;
    }

    .qb-main-search-icon {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
    }

    .qb-main-search-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .qb-main-search-separator {
        height: 22px !important;
    }

    #qb-search {
        height: 46px !important;
        padding: 0 12px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    #qb-search::placeholder {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    /* Organisation mobile :
       1. Mes verbes enregistrés en haut
       2. Lettres arabes / françaises en dessous, centrées côte à côte */
    .qb-top-actions {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    /* Bouton Mes verbes enregistrés moins haut */
    .qb-saved-btn {
        width: 100% !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 14px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }

    .qb-saved-icon,
    .qb-saved-btn .qb-bookmark-svg {
        width: 17px !important;
        height: 17px !important;
    }

    /* Lettres arabes / Lettres françaises centrées côte à côte */
    .qb-switch {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .qb-switch-btn {
        flex: 0 1 auto !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 13px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    /* Carrousel des lettres plus compact */
    .qb-letters-carousel {
        gap: 5px !important;
        margin-bottom: 14px !important;
    }

    /* Flèches gauche/droite beaucoup plus fines */
    .qb-letters-arrow,
    .qb-letters-arrow:focus,
    .qb-letters-arrow:active {
        width: 24px !important;
        min-width: 24px !important;
        height: 38px !important;
        border-radius: 9px !important;
        font-size: 20px !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* Lettres un peu plus compactes aussi */
    .qb-letters {
        gap: 7px !important;
    }

    .qb-letter {
        min-width: 36px !important;
        height: 36px !important;
        border-radius: 11px !important;
        font-size: 20px !important;
    }

    .qb-letters-arabe .qb-letter {
        font-size: 24px !important;
    }
}

/* =========================================================
   FICHE VERBE — MOBILE / TABLETTE TABLEAU PROPRE FINAL
   Objectif : rien ne coupe, rien ne déborde, sans doublons
========================================================= */

@media (max-width: 900px) {

    .qb-verbe-card {
        padding-left: 6px !important;
        padding-right: 6px !important;
        overflow-x: hidden !important;
    }

    .qb-accordion-list {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Ligne fermée + ligne masdar */
  .qb-verb-accordion > summary,
.qb-masdar-row {
    display: grid !important;
    grid-template-columns: 1.15fr 0.95fr 1fr 0.82fr 12px !important;
    align-items: stretch !important;
    min-height: 36px !important;
    padding: 0 !important;
}

   .qb-masdar-row::after {
    display: block !important;
    content: "" !important;
    width: 12px !important;
    min-height: 36px !important;
    background: #ffffff !important;
    border-left: 1px solid #dfe8f4 !important;
}

    .qb-verb-accordion > summary::after {
    position: static !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    margin: auto !important;
    border-radius: 3px !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

   .qb-acc-title,
.qb-acc-fr,
.qb-acc-forme,
.qb-masdar-row > span {
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    line-height: 1 !important;
    border-top: none !important;
    border-right: none !important;
    border-left: 1px solid #dfe8f4 !important;
}

    .qb-acc-title:first-child,
    .qb-masdar-row > span:first-child {
        border-left: none !important;
    }

   .qb-acc-title-fr {
    justify-content: center !important;
    gap: 1px !important;
    font-size: clamp(8px, 2.7vw, 12px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

 .qb-acc-title-fr::before {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    margin-right: 1px !important;
    background-size: contain !important;
    flex: 0 0 10px !important;
}

   .qb-acc-fr {
    font-size: clamp(8px, 2.7vw, 12px) !important;
    font-weight: 900 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
    .qb-acc-forme {
    font-size: clamp(16px, 5.8vw, 24px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    direction: rtl !important;
    line-height: 1 !important;
}

    .qb-acc-title-ar {
    font-size: clamp(13px, 4.2vw, 18px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    direction: rtl !important;
    line-height: 1 !important;
}

    /* Tableau déplié : toujours 3 colonnes */
    .qb-inner-conj-header,
    .qb-inner-conj-row {
        display: grid !important;
        grid-template-columns: 0.92fr 1fr 0.9fr !important;
        align-items: stretch !important;
    }

    .qb-inner-conj-header > div {
        min-width: 0 !important;
        min-height: 28px !important;
        padding: 3px 1px !important;
        font-size: clamp(10px, 2.8vw, 13px) !important;
        font-weight: 900 !important;
        line-height: 1.02 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    .qb-inner-conj-header > div:last-child {
        font-size: clamp(10px, 2.8vw, 13px) !important;
        font-weight: 900 !important;
    }

 .qb-inner-conj-row > div {
    min-width: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    padding: 1px 1px !important;
    border-right: 1px solid #dfe8f4 !important;
    border-bottom: 1px solid #edf2f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    line-height: 1.02 !important;
}

    .qb-inner-conj-row > div:last-child {
        border-right: none !important;
    }

    .qb-inner-conj-row:nth-child(odd) > div {
        background: #ffffff !important;
    }

    .qb-inner-conj-row:nth-child(even) > div {
        background: #f8fbff !important;
    }

    .qb-inner-traduction,
    .qb-inner-forme,
    .qb-inner-pronom {
        padding: 1px 2px !important;
        margin: 0 !important;
    }

   .qb-inner-traduction {
    font-size: clamp(8px, 2.6vw, 11px) !important;
    font-weight: 800 !important;
    overflow-wrap: anywhere !important;
    padding: 0 !important;
    line-height: 1.02 !important;
}

   .qb-inner-forme {
    font-size: clamp(14px, 5.4vw, 21px) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    direction: rtl !important;
    padding: 0 !important;
    line-height: 1.02 !important;
}

   .qb-inner-pronom {
    justify-content: center !important;
    text-align: center !important;
    direction: ltr !important;
    gap: 1px !important;
    padding: 1px !important;
    white-space: normal !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    background: transparent !important;
    line-height: 1.05 !important;
}

    .qb-pronom-fr {
    font-size: clamp(6px, 1.9vw, 8px) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: center !important;
}

    .qb-pronom-separator {
        font-size: clamp(7px, 1.8vw, 9px) !important;
        margin: 0 1px !important;
        line-height: 1 !important;
        flex: 0 0 auto !important;
    }

    .qb-pronom-ar {
    font-size: clamp(12px, 4vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    text-align: center !important;
    direction: rtl !important;
}

    /* Futur déplié */
    .qb-futur-line {
        display: grid !important;
        grid-template-columns: 0.9fr 1.1fr !important;
        gap: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .qb-futur-line span,
    .qb-futur-line strong {
        min-width: 0 !important;
        overflow: hidden !important;
        text-align: center !important;
    }

    .qb-futur-line span {
        font-size: clamp(9px, 2.4vw, 13px) !important;
        padding: 6px 3px !important;
    }

    .qb-futur-line strong {
        font-size: clamp(20px, 6vw, 26px) !important;
        padding: 6px 3px !important;
        line-height: 1.25 !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        direction: rtl !important;
        unicode-bidi: isolate !important;
        color: var(--qb-text) !important;
    }
}

/* =========================================================
   FUTUR ARABE — garder سَـ collé au verbe
========================================================= */

.qb-futur-line strong span.qb-ending-futur,
.qb-futur-line span.qb-ending-futur,
.qb-futur-content p span.qb-ending-futur,
.qb-ending-futur {
    display: contents !important;
    color: var(--qb-green) !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

.qb-futur-content p strong {
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: var(--qb-green) !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
}


