/**
 * Ontologie Tamazight – styles centralisés
 * Variables et composants partagés pour /ontology/ et /ontology/<categorie>/
 */
:root {
    --ontology-primary: #667eea;
    --ontology-primary-dark: #764ba2;
    --ontology-primary-hover: #5a67d8;
    --ontology-primary-active: #5568d3;
    --ontology-text: #2c3e50;
    --ontology-text-alt: #2d3748;
    --ontology-muted: #6c757d;
    --ontology-muted-light: #868e96;
    --ontology-body: #495057;
    --ontology-body-alt: #4a5568;
    --ontology-body-light: #718096;
    --ontology-bg: #f8f9fa;
    --ontology-bg-alt: #f1f3f5;
    --ontology-bg-card: #fafbfc;
    --ontology-bg-input: #e9ecef;
    --ontology-border: #dee2e6;
    --ontology-border-light: #eee;
    --ontology-border-img: #e0e0e0;
    --ontology-shadow: rgba(102, 126, 234, 0.3);
    --ontology-gradient: linear-gradient(135deg, var(--ontology-primary) 0%, var(--ontology-primary-dark) 100%);
}

/* ========== Layout ========== */
.ontology-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.ontology-container {
    display: block;
}

.ontology-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
}

.content-header {
    background: var(--ontology-gradient);
    color: white;
    padding: 0.25rem 0.5rem;
    margin: 0;
}

.content-header-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85em;
    margin: 0;
    padding: 0.15rem 0;
    line-height: 1.2;
    transition: color 0.2s;
}

.content-header-back:hover {
    color: white;
    text-decoration: underline;
}

.content-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.content-header .entry-count {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

.content-body {
    padding: 35px 40px;
}

/* ========== Page d'accueil ontologie (liens = même style que ontology/<catégorie>/) ========== */
.ontology-home-header .entry-count {
    display: none;
}

.ontology-home-title {
    margin: 0;
    text-align: center;
}

.ontology-home-title-main {
    display: block;
    font-size: 1.45em;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ontology-home-title-sub {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.92;
    margin-top: 0.25rem;
}

.ontology-home-title-sub .sep {
    opacity: 0.6;
    margin: 0 0.4em;
}

.ontology-home-title-sub .arabic {
    direction: rtl;
}

.ontology-home-body {
    padding-top: 1.5rem;
}

.ontology-home-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

a.ontology-class-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.ontology-class-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ========== Root category / explanatory ========== */
.root-category-header {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.root-illustrative-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.root-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 40px;
}

.root-category-overlay h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.root-category-overlay .entry-count {
    font-size: 1.1em;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.root-explanatory-section {
    padding: 40px;
    background: white;
}

.root-explanatory-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--ontology-text);
    margin-bottom: 30px;
}

.root-explanatory-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.root-explanatory-text p {
    margin-bottom: 20px;
}

.root-explanatory-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.root-explanatory-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.root-explanatory-images img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========== Titre multilingue ========== */
.multilingual-title {
    margin: 0;
}

.multilingual-title .tifinagh {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.multilingual-title .languages {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1em;
    opacity: 0.95;
    font-weight: 300;
}

.multilingual-title .french {
    font-weight: 500;
}

.multilingual-title .arabic {
    direction: rtl;
    font-weight: 500;
}

.multilingual-title .separator {
    opacity: 0.7;
}

/* ========== Stats / cards ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--ontology-gradient);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px var(--ontology-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.stat-card .stat-value {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-label {
    font-size: 1em;
    opacity: 0.95;
    font-weight: 300;
}

/* ========== Libellés (main_word + french/arabic) ========== */
.ontology-label-entry {
    margin-bottom: 0.5em;
}

.ontology-label-entry .ontology-label-main {
    font-size: 1em;
    font-weight: 600;
    color: inherit;
}

.ontology-label-entry .ontology-label-sub {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 0.2em;
}

.ontology-label-entry .ontology-label-sub .french { font-weight: 500; }
.ontology-label-entry .ontology-label-sub .arabic { direction: rtl; }
.ontology-label-entry.ontology-label-entry--small .ontology-label-main { font-size: 0.95em; }
.ontology-label-entry.ontology-label-entry--small .ontology-label-sub { font-size: 0.8em; }

/* ========== Sous-classes : colonne gauche (catégorie mère + liste level 0) ========== */
.ontology-subclass-left .ontology-subclass-label-link {
    display: block;
    text-decoration: none;
    color: var(--ontology-body);
    cursor: pointer;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ontology-border-light);
    font-size: 0.95em;
    text-align: center;
    transition: color 0.2s;
    font-weight: 600;
}

.ontology-subclass-left .ontology-subclass-label-link:hover {
    color: var(--ontology-primary);
}

.ontology-subclass-left .ontology-subclass-label-link.active {
    color: var(--ontology-primary);
    font-weight: 600;
}

.ontology-subclass-left .ontology-subclass-label-link.active .ontology-label-main,
.ontology-subclass-left .ontology-subclass-label-link.active .ontology-label-sub {
    color: var(--ontology-primary);
}

.ontology-subclass-left .ontology-subclass-label-link .ontology-label-main {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--ontology-text);
    margin: 0 0 0.25rem 0;
}

.ontology-subclass-left .ontology-subclass-label-link:hover .ontology-label-main {
    color: var(--ontology-primary);
}

.ontology-subclass-left .ontology-subclass-label-link .ontology-label-sub {
    font-size: 0.88em;
    color: var(--ontology-muted);
    margin-top: 0.15rem;
    opacity: 0.95;
}

.ontology-subclass-left .ontology-subclass-label-link .ontology-label-entry {
    margin-bottom: 0.35em;
}

.ontology-subclass-left .ontology-subclass-label-link .ontology-label-entry:last-child {
    margin-bottom: 0;
}

/* ========== Grille sous-classes (gauche | centre | pub) ========== */
.ontology-subclass-section {
    display: grid;
    grid-template-columns: 320px 1fr 240px;
    gap: 1.5rem;
    margin: 1.25rem 0;
    padding: 0.75rem 0;
    align-items: start;
    text-align: center;
}

.ontology-subclass-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.ontology-subclass-ads {
    position: sticky;
    top: 0.5rem;
}

.ontology-ads-slot {
    min-height: 250px;
}
/* Pas de bordure/ fond sur le slot AdSense pour éviter confusion avec le contenu */
.ontology-ads-slot .adsbygoogle {
    display: block;
}

.ontology-subclass-left h3,
.ontology-subclass-center h3,
.ontology-subclass-right h3 {
    font-size: 1em;
    color: var(--ontology-text);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-align: center;
}

.ontology-subclass-label-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin-bottom: 0.75rem;
    text-align: center;
}

.ontology-subclass-label-link:hover {
    color: var(--ontology-primary);
}

.ontology-subclass-label-link .ontology-label-entry .ontology-label-main,
.ontology-subclass-label-link .ontology-label-main {
    color: inherit;
}

.ontology-subclass-label-link:hover .ontology-label-main {
    color: var(--ontology-primary);
}

.ontology-subclass-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ontology-subclass-center .ontology-subclass-resultat {
    flex: 0 0 auto;
}

/* ========== Zone résultat sous-classe (une déf par ligne) ========== */
.ontology-subclass-resultat {
    margin-top: 0.5rem;
    padding: 1rem;
    min-height: 60px;
    background: var(--ontology-bg);
    border: 1px solid var(--ontology-border);
    border-radius: 8px;
    color: var(--ontology-body);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    width: 100%;
}

.ontology-subclass-resultat .ontology-result-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ontology-primary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.ontology-subclass-resultat .ontology-result-header:hover {
    text-decoration: underline;
}

.ontology-subclass-resultat .ontology-result-header .subclass-tifinagh {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--ontology-text);
}

.ontology-subclass-resultat .ontology-result-header .subclass-label {
    font-weight: 500;
    color: var(--ontology-body);
    font-size: 0.95em;
}

.ontology-subclass-resultat .ontology-result-ident {
    font-size: 0.8em;
    color: var(--ontology-muted);
    background: var(--ontology-bg-input);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.ontology-subclass-resultat .ontology-result-initial-title {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--ontology-text);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.ontology-subclass-resultat .ontology-result-initial-title .ontology-title-tifinagh {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ontology-subclass-resultat .ontology-result-initial-title .ontology-title-translations {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--ontology-body);
    opacity: 0.95;
}

.ontology-subclass-resultat .ontology-result-initial-title .ontology-title-translations .arabic {
    direction: rtl;
}

.ontology-subclass-resultat .ontology-result-samples-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.ontology-subclass-resultat .ontology-result-sample {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ontology-subclass-resultat .ontology-result-sample .ontology-result-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--ontology-border);
    width: 100%;
    justify-content: center;
    text-align: center;
}

.ontology-subclass-resultat .ontology-result-sample .ontology-result-preview-list {
    width: 100%;
}

.ontology-subclass-resultat .ontology-result-block {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.ontology-subclass-resultat .ontology-result-empty {
    margin: 0;
    color: var(--ontology-muted);
    text-align: center;
}

.ontology-subclass-resultat .ontology-result-first-def {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.ontology-subclass-resultat .ontology-subclass-words-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

/* Liste : une définition par ligne, colonnes alignées (même point de départ) */
.ontology-subclass-resultat .ontology-result-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    font-size: 0.9em;
    width: 100%;
    max-width: none;
    border: 1px solid var(--ontology-border);
    border-radius: 6px;
    overflow: hidden;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-item {
    display: grid;
    grid-template-columns: 40px 7rem 1fr;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin: 0;
    min-height: 2.75rem;
    border: none;
    border-bottom: 1px solid var(--ontology-border-light);
    border-left: 3px solid var(--ontology-primary);
    background: var(--ontology-bg-card);
    border-radius: 0;
    transition: background 0.15s ease, border-left-color 0.15s ease;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-item:last-child {
    border-bottom: none;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-item:hover {
    background: #f0f2ff;
    border-left-color: var(--ontology-primary-hover);
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-thumb {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-result-preview-illustration {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-tifinagh {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--ontology-text-alt);
    min-width: 0;
    text-align: left;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-translations {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em 0.5em;
    min-width: 0;
    text-align: left;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-translations .french::before,
.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-translations .arabic::before {
    display: none;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-translations .arabic {
    direction: rtl;
}

.ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-translations .french + .arabic::before {
    content: ' — ';
    color: var(--ontology-muted-light);
    font-weight: 400;
}

.ontology-subclass-resultat .ontology-result-see-more-wrap {
    margin-top: 0.75rem;
    text-align: center;
}

.ontology-result-preview-illustration {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--ontology-border-img);
    flex-shrink: 0;
}

.ontology-result-see-more-wrap,
.ontology-entries-see-more-wrap {
    margin: 0.5rem 0 0 0;
}

.ontology-result-see-more,
.ontology-entries-see-more {
    font-size: 0.9em;
    padding: 0.35rem 0.75rem;
    color: var(--ontology-primary);
    background: transparent;
    border: 1px solid var(--ontology-primary);
    border-radius: 4px;
    cursor: pointer;
}

.ontology-result-see-more:hover:not(:disabled),
.ontology-entries-see-more:hover:not(:disabled) {
    background: var(--ontology-primary);
    color: #fff;
}

.ontology-result-see-more:disabled,
.ontology-entries-see-more:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Loader dans les boutons "Voir plus" */
.ontology-btn-loader {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ontology-spin 0.7s linear infinite;
    vertical-align: middle;
}

/* Loader modal dictionnaire (centré, sans texte) */
.ontology-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: 80px;
}
.ontology-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--ontology-border);
    border-top-color: var(--ontology-primary);
    border-radius: 50%;
    animation: ontology-spin 0.8s linear infinite;
}
@keyframes ontology-spin {
    to { transform: rotate(360deg); }
}

/* ========== Détail sous-classe / entrées initiales ========== */
.ontology-subclass-detail {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ontology-initial-entries {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem;
    box-sizing: border-box;
}

.ontology-initial-entries-block {
    width: 100%;
    border: 1px solid var(--ontology-border);
    border-radius: 6px;
    padding: 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 8rem;
    max-height: 14rem;
    overflow-y: auto;
}

.ontology-initial-entries-block.ontology-first-def-block {
    min-height: auto;
    max-height: none;
    overflow: visible;
}

.ontology-initial-entries-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ontology-initial-entries-title {
    font-size: 0.95rem;
    margin: 0;
    padding: 0.5rem 0.75rem 0.5rem;
    color: var(--ontology-text);
    font-weight: 600;
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fc 0%, var(--ontology-bg-alt) 100%);
    border: 1px solid var(--ontology-border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

/* Tifinagh proéminent */
.ontology-initial-entries-title .ontology-title-tifinagh {
    display: block;
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--ontology-text);
    line-height: 1.25;
}

/* Français / arabe en second plan */
.ontology-initial-entries-title .ontology-title-translations {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--ontology-body);
    opacity: 0.95;
}

.ontology-initial-entries-title .ontology-title-translations .french {
    font-weight: 500;
}

.ontology-initial-entries-title .ontology-title-translations .arabic {
    direction: rtl;
    font-weight: 500;
}

.ontology-initial-entries-title .ontology-title-translations .separator {
    color: var(--ontology-muted-light);
    font-weight: 400;
    margin: 0 0.15em;
}

.ontology-initial-entries-group .ontology-initial-entries-block {
    border-radius: 0 0 6px 6px;
    border-top: none;
}

.ontology-entries-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    font-size: 0.9em;
    width: 100%;
    max-width: 420px;
}

.ontology-entry-preview-item {
    display: grid;
    grid-template-columns: 48px auto 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.3rem;
    border-radius: 6px;
    border-left: 3px solid var(--ontology-primary);
    background: var(--ontology-bg-card);
    transition: background 0.15s ease, border-left-color 0.15s ease;
}

.ontology-entry-preview-thumb {
    display: block;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
}

.ontology-entry-preview-item:hover {
    background: #f0f2ff;
    border-left-color: var(--ontology-primary-hover);
}

.ontology-entry-preview-item:last-child {
    margin-bottom: 0;
}

.ontology-entry-preview-tifinagh {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--ontology-text-alt);
    letter-spacing: 0.02em;
    line-height: 1.35;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.ontology-entry-preview-tifinagh:hover {
    text-decoration: underline;
}

.ontology-entry-preview-translations {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ontology-entry-preview-translations .french::before,
.ontology-entry-preview-translations .arabic::before {
    display: none;
}

.ontology-entry-preview-item .french {
    color: var(--ontology-body-alt);
    font-size: 0.8em;
    line-height: 1.2;
}

.ontology-entry-preview-item .arabic {
    direction: rtl;
    color: var(--ontology-body-light);
    font-size: 0.8em;
    line-height: 1.2;
}

/* ========== Slots pub inline ========== */
.ontology-ad-slot-li {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    border: none;
}

.ontology-inline-ad-slot {
    min-height: 120px;
    background: var(--ontology-bg-alt);
    border: 1px dashed var(--ontology-border);
    border-radius: 6px;
    padding: 0.5rem;
    box-sizing: border-box;
}

.ontology-inline-ad-slot:empty {
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.ontology-ad-slot-li:has(.ontology-inline-ad-slot:empty) {
    margin: 0;
    padding: 0;
}

/* ========== Liste sous-classes (level 0) ========== */
.ontology-subclass-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ontology-subclass-list li {
    margin: 0;
    padding: 0;
}

.ontology-subclass-list .subclass-list-item {
    display: block;
    padding: 0.4rem 0;
    color: var(--ontology-body);
    text-decoration: none;
    border-bottom: 1px solid var(--ontology-border-light);
    font-size: 0.95em;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
}

.ontology-subclass-list .subclass-list-item:hover {
    color: var(--ontology-primary);
}

.ontology-subclass-list .subclass-list-item.active {
    color: var(--ontology-primary);
    font-weight: 600;
}

.ontology-subclass-list .subclass-list-item .subclass-tifinagh {
    font-weight: 500;
    color: #000;
}

.ontology-subclass-list .subclass-list-item .subclass-label {
    color: var(--ontology-muted);
    font-size: 0.9em;
}

.ontology-subclass-list .subclass-list-item.active .subclass-tifinagh {
    color: var(--ontology-primary);
}

.ontology-subclass-list .subclass-list-item.active .subclass-label {
    color: var(--ontology-primary);
    opacity: 0.9;
}

.ontology-subclass-list .subclass-list-item--no-entries .subclass-tifinagh {
    color: #000;
}

.ontology-subclass-list .subclass-list-item--no-entries .subclass-label {
    color: #adb5bd;
}

.ontology-subclass-list .subclass-list-item--no-entries {
    color: inherit;
}

.ontology-subclass-detail > .ontology-ident-class {
    width: 100%;
}

.ontology-subclass-arrow {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0;
}

.ontology-subclass-arrow::after {
    content: '';
    display: block;
    width: 88px;
    height: 14px;
    background: linear-gradient(180deg, var(--ontology-bg-input) 0%, var(--ontology-border) 35%, #ced4da 70%, #adb5bd 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.ontology-subclass-detail > #ontology-children-tags {
    width: 100%;
    margin-top: 0.5rem;
}

.ontology-ident-class {
    display: none;
}

.ontology-first-def {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ontology-first-def-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.ontology-first-def-main {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ontology-text);
}

.ontology-first-def-translations {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--ontology-muted);
}

.ontology-first-def-translations .french { color: var(--ontology-body); }
.ontology-first-def-translations .arabic { color: var(--ontology-muted); direction: rtl; }
.ontology-first-def-translations .separator { color: var(--ontology-muted-light); margin: 0 0.4em; }

.ontology-first-def-illustration {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--ontology-border-img);
    flex-shrink: 0;
}

.ontology-first-def-text { display: inline; }
.ontology-first-def .main-word { font-weight: 600; color: var(--ontology-text); }
.ontology-first-def .french { color: var(--ontology-body); }
.ontology-first-def .separator { color: var(--ontology-muted-light); margin: 0 0.25em; }
.ontology-first-def .arabic { direction: rtl; color: var(--ontology-muted); }

/* ========== Tags (parent / child) ========== */
.ontology-subclass-section .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.ontology-subclass-section .tag--parent {
    padding: 0.45rem 0.9rem;
    font-size: 1.05em;
    font-weight: 600;
}

.ontology-subclass-section .tag--parent .tag-tifinagh { display: inline; }
.ontology-subclass-section .tag--parent .tag-label-fr {
    display: inline;
    font-size: 0.58em;
    font-weight: normal;
    opacity: 0.9;
    margin-left: 0.35em;
}

.ontology-subclass-section .tag--child {
    padding: 0.25rem 0.55rem;
    font-size: 0.85em;
}

.ontology-subclass-section .tag--child .tag-tifinagh { display: inline; }
.ontology-subclass-section .tag--child .tag-label-fr {
    display: inline;
    font-size: 0.5em;
    font-weight: normal;
    opacity: 0.9;
    margin-left: 0.3em;
}

/* Tag "soi" = définitions de la sous-classe courante (premier de la liste, aspect distinct) */
.ontology-subclass-section .tag--self {
    padding: 0.35rem 0.75rem;
    font-size: 0.95em;
    font-weight: 600;
    border: 2px solid var(--ontology-primary);
    background: var(--ontology-bg);
}

.ontology-subclass-section .tag--self .tag-tifinagh { display: inline; }
.ontology-subclass-section .tag--self .tag-label-fr {
    display: inline;
    font-size: 0.55em;
    font-weight: 500;
    opacity: 0.95;
    margin-left: 0.35em;
}

.ontology-subclass-section .tag--self:hover,
.ontology-subclass-section .tag--self.active {
    background: var(--ontology-primary);
    color: white;
    border-color: var(--ontology-primary);
}

.ontology-subclass-section .tag--self.tag--no-entries {
    border-style: dashed;
    border-color: var(--ontology-muted-light);
    background: var(--ontology-bg-alt);
    color: var(--ontology-muted-light);
}

.ontology-subclass-section .tag--self.tag--no-entries:hover,
.ontology-subclass-section .tag--self.tag--no-entries.active {
    background: var(--ontology-bg-input);
    color: var(--ontology-body);
    border-color: var(--ontology-muted);
}

.ontology-subclass-section .tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--ontology-bg-input);
    border-radius: 6px;
    color: var(--ontology-body);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.ontology-subclass-section .tag:hover,
.ontology-subclass-section .tag.active {
    background: var(--ontology-primary);
    color: white;
}

.ontology-subclass-section .tag--no-entries {
    background: var(--ontology-bg-alt);
    color: var(--ontology-muted-light);
    border: 1px dashed #adb5bd;
}

.ontology-subclass-section .tag--no-entries:hover,
.ontology-subclass-section .tag--no-entries.active {
    background: var(--ontology-bg-input);
    color: var(--ontology-body);
    border-color: var(--ontology-muted-light);
}

/* ========== Bloc mots (sous-classe) ========== */
.ontology-subclass-words {
    padding: 0.5rem 0;
}

.ontology-subclass-words--framed {
    position: relative;
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem calc(1.5rem + 4px);
    margin: 0.5rem 0 1rem 0;
    background: var(--ontology-bg-input);
    border: 1px solid var(--ontology-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ontology-subclass-words--framed::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: var(--ontology-primary);
    pointer-events: none;
}

.ontology-subclass-words h3 {
    font-size: 1em;
    color: var(--ontology-text);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.ontology-subclass-words-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.ontology-subclass-words-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ontology-border-light);
    font-size: 0.95em;
    text-align: center;
}

.ontology-subclass-words-list li .main-word { font-weight: 600; color: var(--ontology-text); }
.ontology-subclass-words-list .ontology-def-group .def-sep { color: #adb5bd; margin: 0 0.2em; font-weight: normal; }
.ontology-subclass-words-list li .sub { font-size: 0.85em; color: var(--ontology-muted); }
.ontology-subclass-words-list li .arabic { direction: rtl; }
.ontology-subclass-words-placeholder {
    color: var(--ontology-muted);
    font-size: 0.95em;
    padding: 0.5rem 0;
    text-align: center;
}

.ontology-entries-sentinel {
    height: 20px;
    margin: 1rem 0;
    visibility: hidden;
}

/* ========== Liste d'entrées (grille / cards) ========== */
.entries-list {
    margin-top: 30px;
}

.entries-list h2 {
    font-size: 1.6em;
    color: var(--ontology-text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--ontology-primary);
}

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.entry-card {
    background: white;
    border: 1px solid var(--ontology-border-img);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.entry-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--ontology-primary);
}

.entry-card .main-word {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--ontology-text);
    margin-bottom: 10px;
}

.entry-card .transcription {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 12px;
    font-style: italic;
}

.entry-card .french {
    color: #34495e;
    margin-bottom: 8px;
    line-height: 1.5;
}

.entry-card .arabic {
    color: #95a5a6;
    direction: rtl;
    font-size: 0.95em;
    line-height: 1.5;
}

.entry-card .source {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--ontology-border-img);
    font-size: 0.85em;
    color: #7f8c8d;
}

/* ========== Nav sous-classifications (style Wikipedia) ========== */
.classification-nav-section {
    margin: 50px 0 30px 0;
    padding: 20px;
    background: var(--ontology-bg);
    border: 1px solid var(--ontology-border);
    border-radius: 4px;
}

.classification-nav-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: var(--ontology-text);
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ontology-primary);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list > li {
    margin: 8px 0;
    padding: 0;
}

.nav-list > li > a {
    color: var(--ontology-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    display: inline-block;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.nav-list > li > a:hover {
    background-color: var(--ontology-bg-input);
    text-decoration: underline;
}

.nav-list > li > a.active {
    background-color: var(--ontology-primary);
    color: white;
    font-weight: 600;
}

.nav-list > li > a.active:hover {
    background-color: var(--ontology-primary-active);
}

.nav-list ul {
    list-style: none;
    padding-left: 20px;
    margin: 5px 0 10px 0;
}

.nav-list ul li {
    margin: 4px 0;
    padding: 0;
}

.nav-list ul li a {
    color: var(--ontology-body);
    text-decoration: none;
    padding: 2px 6px;
    display: inline-block;
    border-radius: 3px;
    transition: background-color 0.2s;
    font-size: 0.95em;
}

.nav-list ul li a:hover {
    background-color: var(--ontology-bg-input);
    text-decoration: underline;
}

.nav-list ul li a.active {
    background-color: var(--ontology-primary);
    color: white;
    font-weight: 500;
}

.nav-list ul li a.active:hover {
    background-color: var(--ontology-primary-active);
}

.entry-count-badge {
    font-size: 0.85em;
    color: var(--ontology-muted);
    margin-left: 8px;
    font-weight: normal;
}

.nav-list > li > a.active .entry-count-badge,
.nav-list ul li a.active .entry-count-badge {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== Illustrations ========== */
.illustration-wrapper {
    text-align: center;
    margin: 15px 0;
}

.illustration-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--ontology-border-img);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.illustration-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--ontology-primary);
}

/* ========== Modal image (lightbox) ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: #fff;
}

/* ========== Modal dictionnaire (prévisualisation) ========== */
.ontology-dico-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ontology-dico-modal.is-open {
    display: flex !important;
}

.ontology-dico-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ontology-dico-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.ontology-dico-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ontology-border-light);
    flex-shrink: 0;
}

.ontology-dico-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ontology-text-alt);
}

.ontology-dico-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ontology-body-light);
    cursor: pointer;
    padding: 0.25rem;
}

.ontology-dico-modal-close:hover {
    color: var(--ontology-text-alt);
}

.ontology-dico-modal-body {
    overflow: auto;
    padding: 1rem;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.ontology-dico-modal-body .dico-embed { max-width: 100%; }
.ontology-dico-modal-body .dico-meta { color: #666; font-size: 12px; margin-bottom: 10px; }
.ontology-dico-modal-body .dico-entry {
    border-bottom: 1px solid var(--ontology-border-light);
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}
.ontology-dico-modal-body .dico-entry:last-child { border-bottom: none; }
.ontology-dico-modal-body .dico-entry-main { min-width: 0; flex: 1; }
.ontology-dico-modal-body .dico-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.8em;
    color: var(--ontology-primary);
    text-decoration: none;
    flex-shrink: 0;
}
.ontology-dico-modal-body .dico-entry-link:hover {
    text-decoration: underline;
    color: var(--ontology-primary-hover);
}
.ontology-dico-modal-body .dico-entry-link-arrow {
    color: var(--ontology-primary);
    font-weight: 700;
}
.ontology-dico-modal-body .dico-entry-link-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
}
.ontology-dico-modal-body .dico-entry-link .dico-entry-link-tifinagh {
    font-weight: 600;
    line-height: 1.2;
}
.ontology-dico-modal-body .dico-entry-link .dico-entry-link-langs {
    color: var(--ontology-muted);
    font-size: 0.9em;
    line-height: 1.2;
    display: block;
    text-align: center;
    width: 100%;
}
.ontology-dico-modal-body .dico-entry-link:hover .dico-entry-link-langs { color: var(--ontology-body); }
.ontology-dico-modal-body .dico-word { font-weight: 600; font-size: 1.2em; }
.ontology-dico-modal-body .dico-grammar { color: #1976d2; font-size: 0.85em; margin-top: 2px; }
.ontology-dico-modal-body .dico-def { margin-top: 6px; padding-left: 8px; border-left: 3px solid var(--ontology-border-img); }
.ontology-dico-modal-body .dico-def-ar { direction: rtl; text-align: right; }
.ontology-dico-modal-body .dico-none { color: #888; font-style: italic; }
.ontology-dico-modal-body .dico-err { color: #c00; }
.ontology-dico-modal-body .dico-verb-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 6px;
}

/* ========== Menu mobile (sous-classes à la demande) ========== */
.ontology-subclass-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .ontology-subclass-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        order: 0;
        width: 100%;
        padding: 0.6rem 1rem;
        margin: 0 0 0.25rem 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ontology-primary);
        background: var(--ontology-bg);
        border: 2px solid var(--ontology-primary);
        border-radius: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ontology-subclass-menu-toggle:hover {
        background: var(--ontology-primary);
        color: white;
    }
    .ontology-subclass-menu-toggle[aria-expanded="true"] {
        background: var(--ontology-primary);
        color: white;
    }
    .ontology-subclass-menu-toggle-icon {
        font-size: 1.1em;
    }
    .ontology-subclass-left {
        order: 1;
        width: 100%;
        display: none;
        overflow-y: auto;
        max-height: 70vh;
        margin-bottom: 0.5rem;
        padding: 0.75rem;
        background: var(--ontology-bg-alt);
        border: 1px solid var(--ontology-border);
        border-radius: 8px;
    }
    .ontology-subclass-section.is-menu-open .ontology-subclass-left {
        display: block;
    }
    .ontology-subclass-center {
        order: 2;
    }
    .ontology-subclass-ads {
        order: 3;
    }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .ontology-subclass-section {
        grid-template-columns: 320px 1fr;
    }
    .ontology-subclass-ads {
        display: none;
    }
}

@media (max-width: 968px) {
    .entries-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .content-header {
        padding: 0.25rem 0.5rem;
    }
    .content-body {
        padding: 25px 30px;
    }
}

@media (max-width: 768px) {
    .ontology-subclass-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0.75rem 0;
        padding: 0.5rem 0;
    }
    .ontology-subclass-left {
        order: 1;
        width: 100%;
    }
    .ontology-subclass-center {
        order: 2;
    }
    .ontology-subclass-ads {
        order: 3;
    }
    .ontology-wrapper {
        padding: 12px;
    }
    .content-body {
        padding: 20px 16px;
    }
    .root-category-overlay {
        padding: 24px 20px;
    }
    .root-category-overlay h1 {
        font-size: 1.75em;
    }
    .root-explanatory-section {
        padding: 24px 20px;
    }
    .classification-nav-section {
        margin: 30px 0 20px 0;
        padding: 16px;
    }
    .classification-nav-section h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 600px) {
    .ontology-entry-preview-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        gap: 0.35rem 0.75rem;
        padding: 0.5rem;
    }
    .ontology-entry-preview-thumb,
    .ontology-result-preview-illustration {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        grid-row: 1 / -1;
        align-self: center;
    }
    .ontology-entry-preview-tifinagh {
        grid-column: 2;
        grid-row: 1;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .ontology-entry-preview-translations {
        grid-column: 2;
        grid-row: 2;
    }
    .ontology-first-def-illustration {
        width: 56px;
        height: 56px;
    }
    .ontology-first-def-main {
        font-size: 1.5em;
    }
    .ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-item {
        padding: 0.5rem 0.6rem;
        min-height: 2.5rem;
        grid-template-columns: 40px 6rem 1fr;
    }
    .ontology-subclass-resultat .ontology-result-preview-list .ontology-entry-preview-tifinagh {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .ontology-initial-entries-block {
        min-height: 6rem;
        max-height: 12rem;
    }
    .ontology-initial-entries-title {
        font-size: 0.9rem;
        padding: 0.4rem 0.5rem 0.4rem;
        gap: 0.15rem;
    }
    .ontology-initial-entries-title .ontology-title-tifinagh {
        font-size: 1.2em;
    }
    .ontology-initial-entries-title .ontology-title-translations {
        font-size: 0.78em;
    }
    .ontology-subclass-list .subclass-list-item {
        padding: 0.5rem 0.4rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ontology-subclass-left .ontology-subclass-label-link {
        padding: 0.5rem 0.25rem;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .ontology-dico-modal-panel {
        max-width: 100%;
        max-height: 90vh;
        margin: 0.5rem;
    }
    .ontology-dico-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .ontology-result-see-more,
    .ontology-entries-see-more {
        min-height: 44px;
        padding: 0.4rem 0.9rem;
    }
}

@media (max-width: 480px) {
    .ontology-wrapper {
        padding: 8px;
    }
    .content-body {
        padding: 16px 12px;
    }
    .content-header-back {
        font-size: 0.9em;
        padding: 0.35rem 0;
    }
    .root-category-overlay {
        padding: 16px 12px;
    }
    .root-category-overlay h1 {
        font-size: 1.5em;
    }
    .root-explanatory-section {
        padding: 16px 12px;
    }
    .root-explanatory-text {
        font-size: 1em;
    }
    .root-explanatory-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .classification-nav-section {
        margin: 24px 0 16px 0;
        padding: 12px;
    }
    .classification-nav-section h3 {
        font-size: 1em;
    }
    .nav-list > li > a,
    .nav-list ul li a {
        padding: 0.4rem 0.5rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .entry-count-badge {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    .ontology-subclass-words--framed {
        padding: 1rem 1rem 1rem calc(1rem + 4px);
    }
    .ontology-entries-preview-list,
    .ontology-subclass-resultat .ontology-result-preview-list {
        max-width: 100%;
    }
}

/* Éviter le scroll horizontal sur tout le wrapper en mobile */
@media (max-width: 768px) {
    .ontology-wrapper {
        overflow-x: hidden;
    }
}
