@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('../font/Atkinson_Hyperlegible_Next/AtkinsonHyperlegibleNext-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bleu-1: #01113B;
    --bleu-2: #D9E7FF;
    --orange-1: #B83400;
    --orange-2: #FFB99D;
    --vert-1: #233807;
    --vert-2: #e7ffde;
    --green-1: #233807;
    --green-2: #e7ffde;
    --yellow-1: #8B7500;
    --yellow-2: #FFF9D9;
    --purple-1: #4B0082;
    --purple-2: #E6D9FF;
    --pink-1: #8B0066;
    --pink-2: #FFD9F0;
    --noir: #202020;
    --gris: #F6F6F6;
    --fs-h1: clamp(3rem, 0.65rem + 4vw, 7rem);
    --fs-h2: clamp(2.75rem, 0.6rem + 3.5vw, 6.5rem);
    --fs-h3: clamp(2.5rem, 0.55rem + 2.5vw, 5.5rem);
    --fs-h4: clamp(2.25rem, 0.6rem + 2.0vw, 5rem);
    --fs-subtitle-lg: clamp(1.5rem, 0.6rem + 0.83vw, 2rem);
    --fs-subtitle-md: clamp(1.375rem, 0.55rem + 0.73vw, 1.875rem);
    --fs-subtitle-sm: clamp(1.25rem, 0.5rem + 0.63vw, 1.75rem);
    --fs-subtitle-xs: clamp(0.9rem, 0.4rem + 0.5vw, 1.25rem);
    --fs-body: clamp(1.5rem, 0.78rem + 0.89vw, 1.75rem);
    color-scheme: light;
    font-family: 'Atkinson Hyperlegible Next';
}

* {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body.docs-body {
    margin: 0;
    background: var(--gris);
    color: var(--noir);
    line-height: 1.2;
    min-height: 100vh;
    display: block;
    width: 100%;
    max-width: 100vw;
    font-family: 'Atkinson Hyperlegible Next';
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    height: 100vh;
    background-color: var(--gris);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* pas de scroll interne */
}

.nav-scroll {
    overflow: hidden;
}

.content-area {
    margin-left: 280px;
    background: var(--gris);
    flex: 1;
    min-height: 100vh;
}

.sidebar-toggle {
    position: fixed !important;
    left: 280px;
    top: 50%;
    transform: translateY(-50%) !important;
    width: 30px;
    height: 50px;
    background-color: var(--gris);
    border: 1px solid var(--bleu-2);
    border-left: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001 !important;
    transition: left 0.3s ease;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background-color: var(--bleu-2);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.sidebar-toggle i {
    color: var(--bleu-1);
    font-size: var(--fs-subtitle-xs);
    transition: transform 0.3s ease;
}

body.sidebar-collapsed .sidebar {
    width: 50px;
}

body.sidebar-collapsed .sidebar .nav-link span,
body.sidebar-collapsed .sidebar .section-title,
body.sidebar-collapsed .sidebar .user-title,
body.sidebar-collapsed .sidebar .user-details,
body.sidebar-collapsed .sidebar .promo-box,
body.sidebar-collapsed .sidebar .promo-box * {
    display: none;
}

body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding: 12px;
}

body.sidebar-collapsed .sidebar .user-title-container {
    justify-content: center;
    margin-bottom: 16px;
}

body.sidebar-collapsed .sidebar .admin-icon {
    margin-right: 0;
}

body.sidebar-collapsed .sidebar .user-info {
    justify-content: center;
    padding: 0 0 16px 0;
}

body.sidebar-collapsed .sidebar .user-avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    max-width: 35px;
    max-height: 35px;
    flex-shrink: 0;
}

body.sidebar-collapsed .sidebar .logo-section {
    padding: 10px 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

body.sidebar-collapsed .sidebar .logo-section .logo {
    padding: 0 10px;
    width: 50px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

body.sidebar-collapsed .sidebar .logo-section .logo img {
    height: 40px;
    width: auto;
    max-width: none;
    clip-path: polygon(0 0, 30px 0, 30px 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 30px 0, 30px 100%, 0 100%);
}

body.sidebar-collapsed .content-area {
    margin-left: 50px;
}

body.sidebar-collapsed .docs-topbar {
    left: 50px;
}

body.sidebar-collapsed .sidebar-toggle {
    left: 50px !important;
    transform: translateY(-50%) !important;
}

body.sidebar-collapsed .sidebar-toggle i {
    transform: rotate(180deg) !important;
}

.logo-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bleu-2);
    text-align: center;
    height: 88.8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section .logo img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    clip-path: inset(6px 0 6px 0); /* crop pour ajuster la hauteur visible */
}

.logo h1 {
    font-size: var(--fs-subtitle-sm);
    font-weight: 600;
    color: var(--noir);
    letter-spacing: -0.5px;
    margin: 0;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* Masquer la scrollbar tout en gardant le scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    flex-shrink: 1;
    min-height: 0;
}

.user-section .nav-list {
    margin-bottom: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--noir);
    text-decoration: none;
    font-size: var(--fs-subtitle-xs);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: var(--bleu-2);
    color: var(--bleu-1);
}

.nav-item.active .nav-link {
    background-color: var(--bleu-2);
    color: var(--bleu-1);
    border-left: 3px solid var(--bleu-1);
    font-weight: 600;
}

.nav-item.active .nav-link i {
    color: var(--bleu-1);
}

.nav-link i {
    width: 16px;
    text-align: center;
    font-size: var(--fs-subtitle-xs);
}

.nav-link:active {
    transform: scale(0.98);
}

/* Sous-onglets de navigation (pour les pages avec sections) */
.nav-item-parent {
    position: relative;
}

.nav-link-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link-toggle:hover {
    background-color: var(--bleu-2);
}

.nav-item.active .nav-link-toggle {
    background-color: var(--bleu-2);
    border-left: 3px solid var(--bleu-1);
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: var(--noir);
    text-decoration: none;
    font-size: var(--fs-subtitle-xs);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 12px 20px;
}

.nav-link-content:hover {
    color: var(--bleu-1);
}

.nav-item.active .nav-link-content {
    color: var(--bleu-1);
    font-weight: 600;
}

.nav-item.active .nav-link-content i {
    color: var(--bleu-1);
}

.nav-chevron {
    margin-left: auto;
    margin-right: 20px;
    font-size: 11px;
    transition: transform 0.2s ease;
    color: #6d6d6d;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transform: rotate(0deg); /* Par défaut, pointe vers la droite */
}

.nav-chevron:hover {
    color: var(--bleu-1);
}

/* Rotation du chevron quand la liste est déroulée */
.nav-item-parent:has(.nav-sublist-expanded) .nav-chevron {
    transform: rotate(90deg); /* Pointe vers le bas */
}

/* Masquer la flèche quand la sidebar est pliée */
body.sidebar-collapsed .nav-chevron {
    display: none;
}

.nav-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 4px;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}

.nav-sublist-expanded {
    max-height: 500px;
    opacity: 1;
}

.nav-subitem {
    margin: 0;
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 48px;
    color: var(--noir);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    border-left: 2px solid transparent;
}

.nav-sublink:hover {
    background-color: var(--bleu-2);
    color: var(--bleu-1);
}

.nav-subitem.active .nav-sublink {
    background-color: var(--bleu-2);
    color: var(--bleu-1);
    border-left-color: var(--bleu-1);
    font-weight: 500;
}

.nav-sublink span {
    display: block;
}

/* Masquer les sous-onglets quand la sidebar est pliée */
body.sidebar-collapsed .nav-sublist {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
}

/* Titre générique de section - réutilisable pour tous les titres */
/* Style avec ligne horizontale à droite comme dans l'image */
.section-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: #6d6d6d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
    min-width: 0;
}

/* Section sans titre - utilisez cette classe si vous ne voulez pas de titre */
.nav-section.no-title {
    padding-top: 0;
}

.user-section {
    padding: 20px 0  0;
    border-top: 1px solid var(--bleu-2);
    background: white;
    margin-top: auto;
    margin-bottom: 0;
}

.user-title-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.user-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: #6d6d6d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 20px;
}

.admin-icon {
    color: var(--bleu-1);
    font-size: var(--fs-subtitle-xs);
    padding: 2px;
    transition: all 0.2s ease;
    opacity: 0.7;
    margin-right: 20px;
}

.admin-icon:hover {
    color: var(--bleu-1);
    background-color: var(--bleu-2);
    opacity: 1;
    transform: rotate(90deg);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 16px 20px;
    border-bottom: 1px solid var(--bleu-2);
    margin-bottom: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--bleu-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--fs-subtitle-xs);
}

.user-details h4 {
    margin: 0;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--noir);
}

.user-details p {
    margin: 0;
    font-size: var(--fs-subtitle-xs);
    color: #3a3a3a;
}

.user-section .nav-link {
    color: var(--orange-1);
    font-weight: 600;
}

.user-section .nav-link:hover {
    background-color: var(--orange-2);
    color: var(--orange-1);
}

.promo-box {
    margin: 20px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid var(--bleu-2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.highlight {
    color: var(--orange-1);
}

.promo-description {
    margin: 12px 0;
    color: #3a3a3a;
    line-height: 1.4;
    font-size: var(--fs-subtitle-xs);
}

.promo-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 16px;
    background-color: var(--orange-1);
    color: white;
    font-weight: 700;
    font-size: var(--fs-subtitle-xs);
    border: 1px solid var(--orange-1);
}

.promo-button:hover {
    filter: brightness(1.05);
}

.docs-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 48px 64px;
    gap: 32px;
}

.hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.docs-topbar {
    background: var(--gris);
    border: 1px solid var(--bleu-2);
    border-left: none;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    height: 88.8px;
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 999;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
}

.brand-mark {
    width: 34px;
    height: 34px;
    background: var(--bleu-1);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.brand-name {
    letter-spacing: -0.3px;
}

.topnav {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.topnav-link {
    padding: 10px 14px;
    color: var(--noir);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-subtitle-xs);
    border: 1px solid transparent;
}

.topnav-link:hover {
    background: var(--bleu-2);
    color: var(--bleu-1);
}

.topnav-link.active {
    border-color: var(--bleu-2);
    background: var(--bleu-2);
    color: var(--bleu-1);
}

.top-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.ghost-btn,
.primary-btn {
    display: inline-block;
    padding: 10px 16px;
    font-weight: 700;
    font-size: var(--fs-subtitle-xs);
    cursor: pointer;
    border: 1px solid var(--bleu-2);
    background: #fff;
    color: var(--noir);
    text-decoration: none;
    text-align: center;
}

.primary-btn {
    background: var(--bleu-1);
    color: #fff;
    border-color: var(--bleu-1);
}

.ghost-btn:hover {
    background: var(--bleu-2);
    color: var(--bleu-1);
}

.primary-btn:hover {
    filter: brightness(0.95);
}

.docs-main {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--bleu-2);
    padding-top: 88.8px;
}

/* Pour la page index avec hero, le contenu doit commencer après la topbar mais prendre toute la hauteur */
.content-area:has(.hero) .docs-main {
    padding-top: 88.8px; /* Hauteur de la topbar pour que le contenu ne soit pas caché */
    margin-top: 0;
}

/* Page index (getting started) - contenu exactement 100vh */
.content-area:has(.hero) {
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.docs-main:has(.hero) {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    min-height: 0;
    height: 100%;
}

.docs-main:has(.hero) > section {
    flex-shrink: 0;
}

/* Faire en sorte que la dernière section (cta) prenne l'espace restant */
.docs-main:has(.hero) > section.cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 35%, #edf4ff 100%);
    border: 1px solid var(--bleu-2);
    border-left: none;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.hero-text h1 {
    font-size: var(--fs-subtitle-sm);
    margin: 6px 0 10px;
    letter-spacing: -0.5px;
}

.hero-text .lede {
    font-size: var(--fs-subtitle-xs);
    line-height: 1.6;
    color: #30405f;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: var(--fs-subtitle-xs);
    letter-spacing: 1px;
    color: var(--bleu-1);
    font-weight: 700;
}

.hero-card {
    background: #0b1224;
    color: #e8f0ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero-card-header {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-header .dot {
    width: 10px;
    height: 10px;
    background: #556080;
}

.hero-card-body {
    padding: 16px 18px 18px;
    display: grid;
    gap: 10px;
    font-family: 'Atkinson Hyperlegible Next';
    font-size: var(--fs-subtitle-xs);
}

.code-line {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-line .key {
    color: #8ab4ff;
    font-weight: 700;
}

.search-block {
    background: #fff;
        padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--bleu-2);
    border-left: none;
}

.search-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.search-inner input {
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
}

.search-inner input::placeholder {
    color: #9ca3af;
}

.kbd {
    background: var(--gris);
    color: var(--noir);
    padding: 6px 10px;
    border: 1px solid var(--bleu-2);
    font-size: var(--fs-subtitle-xs);
}

.section-grid {
    background: #fff;
    border: 1px solid var(--bleu-2);
    border-left: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-grid.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.section-header h2 {
    font-size: var(--fs-subtitle-sm);
    margin: 4px 0;
    letter-spacing: -0.4px;
}

.section-desc {
    color: #4b5563;
    font-size: var(--fs-subtitle-xs);
}

.link-inline {
    color: var(--bleu-1);
    font-weight: 700;
    text-decoration: none;
    font-size: var(--fs-subtitle-xs);
}

.link-inline:hover {
    text-decoration: underline;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.card-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: var(--gris);
    border: 1px solid var(--bleu-2);
    padding: 16px;
    display: grid;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--bleu-1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--bleu-2);
    display: grid;
    place-items: center;
    color: var(--bleu-1);
}

.card h3 {
    margin: 0;
    font-size: var(--fs-subtitle-sm);
    letter-spacing: -0.2px;
}

.card p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
    font-size: var(--fs-subtitle-xs);
}

.pill {
    justify-self: start;
    background: #fff;
    color: var(--bleu-1);
    border: 1px solid var(--bleu-2);
    padding: 6px 10px;
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-row,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: var(--bleu-1);
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: var(--fs-subtitle-xs);
    letter-spacing: 0.2px;
}

.pill-row .pill {
    background: #fff;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.link-list a {
    color: var(--noir);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-subtitle-xs);
    padding: 6px 0;
    border-bottom: 1px solid var(--bleu-2);
}

.link-list a:hover {
    color: var(--bleu-1);
}

.cta {
    background: linear-gradient(135deg, var(--bleu-1), #02205a);
    color: #fff;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.cta h2 {
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.cta p {
    margin: 0;
    color: #d9e7ff;
}

.cta-actions {
    display: flex;
    gap: 10px;
}

.cta .ghost-btn {
    border-color: #d9e7ff;
    color: #fff;
    background: transparent;
}

.cta .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
    .layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        transform: translateX(0);
        width: 260px;
    }

    .sidebar-toggle {
        left: 260px;
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .content-area {
        margin-left: 0;
    }

    .content-area {
        margin-left: 0;
        padding: 20px;
    }

    .docs-topbar {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
    }

    .topnav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .top-actions {
        width: 100%;
    }

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

    .cta {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTENT PAGES (Introduction, etc.) - Style AlphaEdge
   ============================================ */

/* Pages de contenu avec style AlphaEdge */
.docs-content-page {
    background: var(--gris);
    color: var(--noir);
    min-height: calc(100vh - 88.8px);
    padding: 40px 60px;
    padding-top: calc(88.8px + 40px); /* Topbar height + padding */
    margin: 0 auto 0 auto;
    width: 80%;
}

/* Ajuster le background du main quand il contient une page de contenu */
.docs-main .docs-content-page {
    border-left: none;
}

/* Ajuster le padding-top du main pour les pages de contenu */
.docs-main:has(.docs-content-page) {
    padding-top: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-subtitle-xs);
    color: #6d6d6d;
    margin-bottom: 32px;
}

.breadcrumbs a {
    color: #6d6d6d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--bleu-1);
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: var(--noir);
    font-weight: 500;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 40px;
}

.content-title {
    font-size: var(--fs-subtitle-lg);
    font-weight: 700;
    color: var(--noir);
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.header-cards {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.header-card {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.header-card i {
    font-size: var(--fs-subtitle-sm);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Éclair - Jaune vif pour la vitesse */
.header-card.card-blue i.fa-bolt {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.4);
}

.header-card.card-blue:hover i.fa-bolt {
    color: #FFA500;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.8)) drop-shadow(0 0 16px rgba(255, 215, 0, 0.6));
}

/* Feuille - Vert vif pour la frugalité */
.header-card.card-orange i.fa-leaf {
    color: #00C853;
    text-shadow: 0 0 10px rgba(0, 200, 83, 0.6), 0 0 20px rgba(76, 175, 80, 0.4);
}

.header-card.card-orange:hover i.fa-leaf {
    color: #00E676;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.8)) drop-shadow(0 0 16px rgba(0, 200, 83, 0.6));
}

/* Bouclier - Bleu vif pour la souveraineté */
.header-card.card-yellow i.fa-shield-alt {
    color: #2196F3;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.6), 0 0 20px rgba(25, 118, 210, 0.4);
}

.header-card.card-yellow:hover i.fa-shield-alt {
    color: #42A5F5;
    filter: drop-shadow(0 0 8px rgba(66, 165, 245, 0.8)) drop-shadow(0 0 16px rgba(33, 150, 243, 0.6));
}

.header-card:hover i {
    transform: scale(1.15);
}

/* Particules pour l'éclair (vitesse) - étincelles désordonnées et colorées */
.header-card.card-blue::before,
.header-card.card-blue::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    z-index: 1;
}

.header-card.card-blue::before {
    top: 12%;
    left: 18%;
    background: var(--orange-1);
    box-shadow: 0 0 6px var(--orange-1), 0 0 12px var(--orange-2);
    animation: sparkle-chaos-1 1.8s ease-in-out infinite;
}

.header-card.card-blue::after {
    bottom: 15%;
    right: 12%;
    background: var(--orange-2);
    box-shadow: 0 0 6px var(--orange-2), 0 0 12px var(--orange-1);
    animation: sparkle-chaos-2 2.3s ease-in-out infinite;
}

@keyframes sparkle-chaos-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: translate(12px, -10px) scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(8px, -15px) scale(0.8) rotate(180deg);
    }
    75% {
        opacity: 1;
        transform: translate(-5px, -8px) scale(1.1) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(360deg);
    }
}

@keyframes sparkle-chaos-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(-10px, 12px) scale(1.3) rotate(-90deg);
    }
    60% {
        opacity: 0.7;
        transform: translate(-15px, 8px) scale(0.9) rotate(-180deg);
    }
    80% {
        opacity: 1;
        transform: translate(-8px, -5px) scale(1.1) rotate(-270deg);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(-360deg);
    }
}

/* Particules pour la feuille (frugalité) - flottement désordonné et coloré */
.header-card.card-orange::before,
.header-card.card-orange::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    z-index: 1;
}

.header-card.card-orange::before {
    top: 20%;
    right: 15%;
    background: var(--vert-1);
    box-shadow: 0 0 6px var(--vert-1), 0 0 12px var(--vert-2);
    animation: float-chaos-1 3.2s ease-in-out infinite;
}

.header-card.card-orange::after {
    bottom: 22%;
    left: 18%;
    background: var(--vert-2);
    box-shadow: 0 0 6px var(--vert-2), 0 0 12px var(--vert-1);
    animation: float-chaos-2 3.7s ease-in-out infinite;
}

@keyframes float-chaos-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    20% {
        opacity: 0.8;
        transform: translate(8px, -12px) rotate(45deg) scale(1.1);
    }
    40% {
        opacity: 0.6;
        transform: translate(12px, -8px) rotate(90deg) scale(0.9);
    }
    60% {
        opacity: 0.9;
        transform: translate(5px, -15px) rotate(135deg) scale(1.2);
    }
    80% {
        opacity: 0.5;
        transform: translate(-3px, -10px) rotate(180deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(225deg) scale(0);
    }
}

@keyframes float-chaos-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    25% {
        opacity: 0.7;
        transform: translate(-10px, 15px) rotate(-60deg) scale(1.3);
    }
    50% {
        opacity: 0.9;
        transform: translate(-15px, 10px) rotate(-120deg) scale(1);
    }
    70% {
        opacity: 0.6;
        transform: translate(-8px, 18px) rotate(-180deg) scale(1.1);
    }
    90% {
        opacity: 0.8;
        transform: translate(2px, 12px) rotate(-240deg) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(-300deg) scale(0);
    }
}

/* Particules pour le bouclier (souveraineté) - orbite désordonnée et colorée */
.header-card.card-yellow::before,
.header-card.card-yellow::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    z-index: 1;
}

.header-card.card-yellow::before {
    top: 50%;
    left: 50%;
    margin-left: -1.5px;
    margin-top: -20px;
    background: var(--bleu-1);
    box-shadow: 0 0 6px var(--bleu-1), 0 0 12px var(--bleu-2);
    animation: orbit-chaos-1 4.5s ease-in-out infinite;
}

.header-card.card-yellow::after {
    top: 50%;
    left: 50%;
    margin-left: -1.5px;
    margin-top: -20px;
    background: var(--bleu-2);
    box-shadow: 0 0 6px var(--bleu-2), 0 0 12px var(--bleu-1);
    animation: orbit-chaos-2 5s ease-in-out infinite;
}

@keyframes orbit-chaos-1 {
    0% {
        transform: rotate(0deg) translateX(18px) translateY(0px) rotate(0deg) scale(0.8);
        opacity: 0.4;
    }
    25% {
        transform: rotate(90deg) translateX(20px) translateY(-5px) rotate(-90deg) scale(1.2);
        opacity: 0.9;
    }
    50% {
        transform: rotate(180deg) translateX(15px) translateY(5px) rotate(-180deg) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: rotate(270deg) translateX(22px) translateY(-3px) rotate(-270deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) translateX(18px) translateY(0px) rotate(-360deg) scale(0.8);
        opacity: 0.4;
    }
}

@keyframes orbit-chaos-2 {
    0% {
        transform: rotate(180deg) translateX(16px) translateY(0px) rotate(-180deg) scale(1);
        opacity: 0.5;
    }
    30% {
        transform: rotate(270deg) translateX(19px) translateY(6px) rotate(-270deg) scale(1.3);
        opacity: 0.9;
    }
    60% {
        transform: rotate(360deg) translateX(14px) translateY(-4px) rotate(-360deg) scale(0.7);
        opacity: 0.6;
    }
    80% {
        transform: rotate(450deg) translateX(21px) translateY(3px) rotate(-450deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(540deg) translateX(16px) translateY(0px) rotate(-540deg) scale(1);
        opacity: 0.5;
    }
}

/* Particules supplémentaires pour plus de vie */
.header-card .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Particules supplémentaires pour l'éclair - désordonnées et colorées */
.header-card.card-blue .particle-1 {
    top: 8%;
    right: 22%;
    background: var(--orange-1);
    box-shadow: 0 0 4px var(--orange-1);
    animation: sparkle-extra-chaos-1 2.1s ease-in-out infinite;
}

.header-card.card-blue .particle-2 {
    bottom: 12%;
    left: 28%;
    background: var(--orange-2);
    box-shadow: 0 0 4px var(--orange-2);
    animation: sparkle-extra-chaos-2 2.9s ease-in-out infinite;
}

@keyframes sparkle-extra-chaos-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(-8px, 10px) scale(1.3) rotate(120deg);
    }
    60% {
        opacity: 0.7;
        transform: translate(-12px, 6px) scale(0.8) rotate(240deg);
    }
    100% {
        opacity: 0;
        transform: translate(-5px, 8px) scale(0) rotate(360deg);
    }
}

@keyframes sparkle-extra-chaos-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }
    40% {
        opacity: 1;
        transform: translate(10px, -8px) scale(1.4) rotate(-150deg);
    }
    70% {
        opacity: 0.6;
        transform: translate(7px, -12px) scale(0.9) rotate(-300deg);
    }
    100% {
        opacity: 0;
        transform: translate(9px, -10px) scale(0) rotate(-450deg);
    }
}

/* Particules supplémentaires pour la feuille - désordonnées et colorées */
.header-card.card-orange .particle-3 {
    top: 18%;
    left: 12%;
    background: var(--vert-1);
    box-shadow: 0 0 4px var(--vert-1);
    animation: float-extra-chaos-1 3.3s ease-in-out infinite;
}

.header-card.card-orange .particle-4 {
    bottom: 18%;
    right: 12%;
    background: var(--vert-2);
    box-shadow: 0 0 4px var(--vert-2);
    animation: float-extra-chaos-2 3.9s ease-in-out infinite;
}

@keyframes float-extra-chaos-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    25% {
        opacity: 0.9;
        transform: translate(10px, -14px) rotate(60deg) scale(1.2);
    }
    50% {
        opacity: 0.5;
        transform: translate(14px, -10px) rotate(120deg) scale(0.9);
    }
    75% {
        opacity: 0.8;
        transform: translate(6px, -16px) rotate(180deg) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(8px, -12px) rotate(240deg) scale(0);
    }
}

@keyframes float-extra-chaos-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    35% {
        opacity: 0.8;
        transform: translate(-12px, 16px) rotate(-80deg) scale(1.3);
    }
    65% {
        opacity: 0.6;
        transform: translate(-16px, 12px) rotate(-160deg) scale(1);
    }
    85% {
        opacity: 0.9;
        transform: translate(-9px, 18px) rotate(-240deg) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-11px, 14px) rotate(-320deg) scale(0);
    }
}

/* Particules supplémentaires pour le bouclier - désordonnées et colorées */
.header-card.card-yellow .particle-5 {
    top: 50%;
    left: 50%;
    margin-left: -1px;
    margin-top: -20px;
    background: var(--bleu-1);
    box-shadow: 0 0 4px var(--bleu-1);
    animation: orbit-extra-chaos-1 5.2s ease-in-out infinite;
}

.header-card.card-yellow .particle-6 {
    top: 50%;
    left: 50%;
    margin-left: -1px;
    margin-top: -20px;
    background: var(--bleu-2);
    box-shadow: 0 0 4px var(--bleu-2);
    animation: orbit-extra-chaos-2 5.8s ease-in-out infinite;
}

@keyframes orbit-extra-chaos-1 {
    0% {
        transform: rotate(90deg) translateX(14px) translateY(2px) rotate(-90deg) scale(0.9);
        opacity: 0.4;
    }
    30% {
        transform: rotate(180deg) translateX(16px) translateY(-4px) rotate(-180deg) scale(1.3);
        opacity: 0.9;
    }
    60% {
        transform: rotate(270deg) translateX(13px) translateY(3px) rotate(-270deg) scale(0.8);
        opacity: 0.5;
    }
    90% {
        transform: rotate(360deg) translateX(17px) translateY(-2px) rotate(-360deg) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: rotate(450deg) translateX(14px) translateY(2px) rotate(-450deg) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes orbit-extra-chaos-2 {
    0% {
        transform: rotate(270deg) translateX(13px) translateY(-2px) rotate(-270deg) scale(1.1);
        opacity: 0.5;
    }
    35% {
        transform: rotate(360deg) translateX(15px) translateY(5px) rotate(-360deg) scale(1.4);
        opacity: 0.9;
    }
    70% {
        transform: rotate(450deg) translateX(12px) translateY(-3px) rotate(-450deg) scale(0.7);
        opacity: 0.4;
    }
    100% {
        transform: rotate(630deg) translateX(14px) translateY(1px) rotate(-630deg) scale(1.2);
        opacity: 0.6;
    }
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

/* Quickstart Page Styles */
.content-subtitle {
    font-size: 1rem;
    color: #6d6d6d;
    margin-top: 12px;
    line-height: 1.6;
}

/* ============================================
   QUICKSTART PAGES - STYLE DE BASE
   ============================================ */

.quickstart-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

/* Section Content */
.section-content {
    line-height: 1.7;
    color: var(--noir);
}

.section-content p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--noir);
}

.section-content a.text-link {
    color: var(--orange-1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.section-content a.text-link:hover {
    color: var(--orange-2);
    text-decoration: underline;
}

/* Titres de section */
.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bleu-2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading i {
    color: var(--orange-1);
    font-size: 1.2em;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--noir);
    margin: 48px 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subsection-title i {
    color: var(--bleu-1);
    font-size: 1.1em;
}

.subsubsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--noir);
    margin: 32px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsubsection-title i {
    color: var(--orange-1);
    font-size: 0.9em;
}

/* Info Cards - Style de base */
.quickstart-info-card {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 16px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quickstart-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}

.quickstart-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bleu-2);
}

.quickstart-info-card-header i {
    color: var(--orange-1);
    font-size: 1.2em;
}

.quickstart-info-card-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quickstart-info-card-content {
    color: var(--noir);
    line-height: 1.7;
    font-size: 0.95rem;
}

.quickstart-info-card-content p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Code Blocks - Style de base */
.code-block {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    margin: 24px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.code-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bleu-2);
    border-bottom: 1px solid var(--bleu-2);
}

.code-lang {
    font-size: 12px;
    font-weight: 600;
    color: var(--bleu-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-lang i {
    font-size: 14px;
}

.btn-copy-code {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    color: var(--noir);
    cursor: pointer;
    padding: 10px 16px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Atkinson Hyperlegible Next';
}

.btn-copy-code:hover {
    background: var(--bleu-2);
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background: #ffffff;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    color: var(--noir);
    white-space: pre;
}

/* Configuration Table - Style de base */
.config-table {
    margin: 32px 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.config-table table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--bleu-2);
}

.config-table thead {
    background: var(--bleu-1);
}

.config-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bleu-2);
}

.config-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--noir);
    border-bottom: 1px solid var(--bleu-2);
    vertical-align: top;
}

.config-table tbody tr {
    transition: background-color 0.2s ease;
}

.config-table tbody tr:hover {
    background-color: var(--bleu-2);
}

.config-table tbody tr:last-child td {
    border-bottom: none;
}

.config-table code {
    background: var(--bleu-2);
    padding: 4px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--orange-1);
    font-weight: 500;
}

/* Error Cards - Style de base */
.error-card {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    border-left: 4px solid var(--orange-1);
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.error-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}

.error-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.error-card-code {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange-1);
    font-family: 'Courier New', Courier, monospace;
}

.error-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0;
}

.error-card-content {
    color: var(--noir);
    line-height: 1.7;
    margin-top: 12px;
    font-size: 0.95rem;
}

.error-card-content p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.error-card-content strong {
    color: var(--bleu-1);
    font-weight: 600;
}

/* Pricing Cards - Style de base */
.pricing-card {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}

.pricing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bleu-2);
}

.pricing-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange-1);
}

/* Step List */
.step-list {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
}

.step-list li {
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
    color: var(--noir);
    line-height: 1.7;
    font-size: 0.95rem;
}

.step-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--orange-1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-list {
    counter-reset: step-counter;
}

.step-list li strong {
    color: var(--bleu-1);
    font-weight: 600;
}

/* Code Tabs - Style similaire aux model-tabs */
.code-tabs-section {
    margin: 32px 0;
}

.code-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--bleu-2);
    margin-bottom: 24px;
}

.code-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--noir);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Atkinson Hyperlegible Next';
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-tab:hover {
    opacity: 0.8;
}

.code-tab.active {
    opacity: 1;
    border-bottom-color: var(--orange-1);
    color: var(--orange-1);
}

.code-tab-content {
    display: none;
}

.code-tab-content.active {
    display: block;
}

.content-section-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--orange-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--bleu-2);
    min-width: 0;
}

/* Featured Models Grid */
.featured-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.model-card {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.model-card.card-featured {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.model-card.card-featured .model-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.model-card.card-latest {
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-card.card-featured .model-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 48px;
}


.model-card.card-featured.card-orange .model-icon-wrapper {
    background: var(--orange-2);
}

.model-card.card-featured.card-blue .model-icon-wrapper {
    background: var(--bleu-2);
}

.model-card.card-featured.card-orange .model-icon-wrapper {
    background: var(--orange-2);
}

.model-card.card-featured.card-yellow .model-icon-wrapper {
    background: var(--yellow-2);
}

.model-card.card-featured.card-purple .model-icon-wrapper {
    background: var(--purple-2);
}

.model-card.card-featured.card-green .model-icon-wrapper {
    background: var(--vert-2);
}

.model-card.card-featured.card-pink .model-icon-wrapper {
    background: var(--pink-2);
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}


.model-card.card-featured.card-orange {
    background: var(--orange-2);
    border: 1px solid var(--orange-1);
}

.model-card.card-featured.card-blue {
    background: var(--bleu-2);
    border: 1px solid var(--bleu-1);
}

.model-card.card-featured.card-orange {
    background: var(--orange-2);
    border: 1px solid var(--orange-1);
}

.model-card.card-featured.card-yellow {
    background: var(--yellow-2);
    border: 1px solid var(--yellow-1);
}

.model-card.card-featured.card-purple {
    background: var(--purple-2);
    border: 1px solid var(--purple-1);
}

.model-card.card-featured.card-green {
    background: var(--vert-2);
    border: 1px solid var(--vert-1);
}

.model-card.card-featured.card-pink {
    background: var(--pink-2);
    border: 1px solid var(--pink-1);
}

.model-card.card-purple {
    background: var(--purple-2);
    border-color: var(--purple-1);
}

.model-card.card-orange {
    background: var(--orange-2);
    border-color: var(--orange-1);
}

.model-card.card-yellow {
    background: var(--yellow-2);
    border-color: var(--yellow-1);
}

.model-card.card-blue {
    background: var(--bleu-2);
    border-color: var(--bleu-1);
}

.model-card.card-purple {
    background: var(--purple-2);
    border-color: var(--purple-1);
}

.model-card.card-green {
    background: var(--vert-2);
    border-color: var(--vert-1);
}

.model-card.card-purple {
    background: var(--purple-2);
    border-color: var(--purple-1);
}

.model-card.card-yellow {
    background: var(--yellow-2);
    border-color: var(--yellow-1);
}

.model-card.card-pink {
    background: var(--pink-2);
    border-color: var(--pink-1);
}

.model-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card.card-blue .model-icon-wrapper {
    background: var(--bleu-2);
    border-color: var(--bleu-1);
}

.model-card.card-purple .model-icon-wrapper {
    background: var(--purple-2);
    border-color: var(--purple-1);
}

.model-card.card-green .model-icon-wrapper {
    background: var(--vert-2);
    border-color: var(--vert-1);
}

.model-card.card-orange .model-icon-wrapper {
    background: var(--orange-2);
    border-color: var(--orange-1);
}

.model-card.card-purple .model-icon-wrapper {
    background: var(--purple-2);
    border-color: var(--purple-1);
}

.model-card.card-yellow .model-icon-wrapper {
    background: var(--yellow-2);
    border-color: var(--yellow-1);
}

.model-card.card-pink .model-icon-wrapper {
    background: var(--pink-2);
    border-color: var(--pink-1);
}

.model-icon {
    font-size: var(--fs-subtitle-sm);
    display: block;
}

.model-icon-wrapper i {
    font-size: var(--fs-subtitle-sm);
    color: var(--noir);
}

.model-card.card-featured .model-icon-wrapper i {
    font-size: var(--fs-subtitle-md);
    color: var(--noir);
}

.model-card.card-latest .model-icon-wrapper i {
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
}

.model-card.card-featured .model-content {
    width: 100%;
}

.model-card.card-featured .model-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--noir);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.model-card.card-featured .model-description {
    font-size: calc(var(--fs-subtitle-xs) * 0.85);
    line-height: 1.4;
    color: var(--noir);
    margin: 0;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.model-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--noir);
    margin: 0;
    line-height: 1.2;
}

.model-description {
    font-size: calc(var(--fs-subtitle-xs) * 0.85);
    line-height: 1.3;
    color: var(--noir);
    margin: 0;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Latest Models Grid */
.latest-models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.model-card.card-latest {
    position: relative;
}

.model-card.card-latest .model-icon-wrapper {
    width: 36px;
    height: 36px;
}

.model-card.card-latest .model-icon {
    font-size: var(--fs-subtitle-xs);
}

.model-card.card-latest .model-title {
    font-size: var(--fs-subtitle-xs);
}

.model-card.card-latest .model-description {
    font-size: calc(var(--fs-subtitle-xs) * 0.85);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.model-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}


.badge-purple {
    background: var(--purple-2);
    color: var(--purple-1);
}

.badge-yellow {
    background: var(--yellow-2);
    color: var(--yellow-1);
}

.badge-purple {
    background: var(--purple-2);
    color: var(--purple-1);
}

.badge-pink {
    background: var(--pink-2);
    color: var(--pink-1);
}

.model-version {
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
    font-weight: 500;
    opacity: 0.6;
    flex-shrink: 0;
}

.view-all-btn {
    display: inline-block;
    background: var(--orange-1);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Atkinson Hyperlegible Next';
    text-decoration: none;
    margin-top: 24px;
}

.view-all-btn:hover {
    background: var(--orange-1);
    filter: brightness(1.1);
}

/* Building Grid */
.building-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.building-card {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.building-card:hover {
    transform: translateY(-2px);
    border-color: var(--bleu-1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.building-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gris);
    border: 1px solid var(--bleu-2);
}

.building-icon-wrapper i {
    font-size: var(--fs-subtitle-sm);
    color: var(--noir);
}

.building-content {
    flex: 1;
    min-width: 0;
}

.building-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--noir);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.building-description {
    font-size: var(--fs-subtitle-xs);
    line-height: 1.4;
    color: var(--noir);
    margin: 0;
    opacity: 0.8;
}

/* Useful Links Grid */
.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.useful-link-card {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.useful-link-card:hover {
    transform: translateY(-2px);
    border-color: var(--bleu-1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.useful-link-icon {
    font-size: var(--fs-subtitle-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.useful-link-icon i {
    font-size: var(--fs-subtitle-md);
    color: var(--noir);
}

.useful-link-text {
    font-size: var(--fs-subtitle-xs);
    font-weight: 500;
    color: var(--noir);
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .building-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .useful-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .docs-content-page {
        padding: 24px 20px;
        padding-top: calc(88.8px + 24px); /* Topbar height + padding */
    }
    
    .content-header {
        flex-direction: column;
    }
    
    .content-title {
        font-size: var(--fs-subtitle-sm);
    }
    
    .featured-models-grid,
    .latest-models-grid,
    .building-grid {
        grid-template-columns: 1fr;
    }
    
    .useful-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NAVIGATION PRÉCÉDENT/SUIVANT
   ============================================ */

.changelog-page .page-navigation {
    margin-top: 60px;
    padding-top: 40px;
    clear: both;
    width: 100%;
}

.nav-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 40px;
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-link-prev,
.nav-link-next {
    color: var(--orange-1);
    text-decoration: none;
    font-size: var(--fs-subtitle-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link-prev:hover,
.nav-link-next:hover {
    color: var(--orange-1);
    opacity: 0.8;
}

.nav-link-prev {
    margin-right: auto;
}

.nav-link-next {
    margin-left: auto;
    flex-direction: row-reverse;
}

.nav-link-disabled {
    visibility: hidden;
    pointer-events: none;
}

.nav-arrow {
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--orange-1);
}

.nav-text {
    font-size: var(--fs-subtitle-xs);
    color: var(--orange-1);
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .nav-link-prev,
    .nav-link-next {
        width: 100%;
    }
    
    .nav-link-next {
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* ============================================
   MODELS PAGE SPECIFIC STYLES
   ============================================ */

.models-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.models-header-content {
    width: 100%;
}

.models-subtitle {
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
    opacity: 0.8;
    margin: 16px 0 24px 0;
    line-height: 1.6;
    max-width: 800px;
}

.models-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--noir);
    color: #ffffff;
    text-decoration: none;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-discord:hover {
    background: #333333;
}

.btn-reach-out {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--orange-1);
    color: #ffffff;
    text-decoration: none;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-reach-out:hover {
    background: var(--orange-1);
    filter: brightness(1.1);
}

.model-subsection {
    margin-bottom: 48px;
}

.model-subsection-title {
    font-size: var(--fs-subtitle-sm);
    font-weight: 700;
    color: var(--noir);
    margin: 0 0 8px 0;
}

.model-subsection-desc {
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
    opacity: 0.7;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.frontier-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.model-card.card-frontier {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card.card-frontier:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}

.model-card.card-frontier .model-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--bleu-2);
    border: 1px solid var(--bleu-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-card.card-frontier .model-icon-wrapper i {
    font-size: var(--fs-subtitle-sm);
    color: var(--bleu-1);
}

/* Couleurs pour les cartes frontier */
.model-card.card-frontier.card-blue {
    border-color: var(--bleu-1);
}

.model-card.card-frontier.card-blue .model-icon-wrapper {
    background: var(--bleu-2);
    border-color: var(--bleu-1);
}

.model-card.card-frontier.card-blue .model-icon-wrapper i {
    color: var(--bleu-1);
}

.model-card.card-frontier.card-orange {
    border-color: var(--orange-1);
}

.model-card.card-frontier.card-orange .model-icon-wrapper {
    background: var(--orange-2);
    border-color: var(--orange-1);
}

.model-card.card-frontier.card-orange .model-icon-wrapper i {
    color: var(--orange-1);
}

.model-card.card-frontier.card-yellow {
    border-color: var(--yellow-1);
}

.model-card.card-frontier.card-yellow .model-icon-wrapper {
    background: var(--yellow-2);
    border-color: var(--yellow-1);
}

.model-card.card-frontier.card-yellow .model-icon-wrapper i {
    color: var(--yellow-1);
}

.model-card.card-frontier.card-green {
    border-color: var(--vert-1);
}

.model-card.card-frontier.card-green .model-icon-wrapper {
    background: var(--vert-2);
    border-color: var(--vert-1);
}

.model-card.card-frontier.card-green .model-icon-wrapper i {
    color: var(--vert-1);
}

.model-card.card-frontier.card-purple {
    border-color: var(--purple-1);
}

.model-card.card-frontier.card-purple .model-icon-wrapper {
    background: var(--purple-2);
    border-color: var(--purple-1);
}

.model-card.card-frontier.card-purple .model-icon-wrapper i {
    color: var(--purple-1);
}

.model-card.card-frontier.card-pink {
    border-color: var(--pink-1);
}

.model-card.card-frontier.card-pink .model-icon-wrapper {
    background: var(--pink-2);
    border-color: var(--pink-1);
}

.model-card.card-frontier.card-pink .model-icon-wrapper i {
    color: var(--pink-1);
}

.model-card.card-frontier.card-blue:hover {
    border-color: var(--bleu-1);
}

.model-card.card-frontier.card-orange:hover {
    border-color: var(--orange-1);
}

.model-card.card-frontier.card-yellow:hover {
    border-color: var(--yellow-1);
}

.model-card.card-frontier.card-green:hover {
    border-color: var(--vert-1);
}

.model-card.card-frontier.card-purple:hover {
    border-color: var(--purple-1);
}

.model-card.card-frontier.card-pink:hover {
    border-color: var(--pink-1);
}

.model-card.card-frontier .model-content {
    flex: 1;
    min-width: 0;
}

.model-card.card-frontier .model-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.model-card.card-frontier .model-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--noir);
    margin: 0;
    line-height: 1.2;
}

.model-card.card-frontier .model-description {
    font-size: calc(var(--fs-subtitle-xs) * 0.85);
    color: var(--noir);
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-card.card-frontier .model-version {
    font-size: calc(var(--fs-subtitle-xs) * 0.85);
    color: var(--noir);
    opacity: 0.6;
    font-weight: 500;
    margin-left: 4px;
}

.model-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}


.legacy-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

.legacy-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--bleu-2);
}

.legacy-table thead {
    background: var(--gris);
}

.legacy-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--noir);
    border-bottom: 1px solid var(--bleu-2);
}

.legacy-table td {
    padding: 12px 16px;
    font-size: var(--fs-subtitle-xs);
    color: var(--noir);
    border-bottom: 1px solid var(--bleu-2);
}

.legacy-table tbody tr:hover {
    background: var(--gris);
}

.legacy-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .models-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-discord,
    .btn-reach-out {
        width: 100%;
        justify-content: center;
    }
    
    .frontier-models-grid {
        grid-template-columns: 1fr;
    }
    
    .legacy-table-wrapper {
        overflow-x: scroll;
    }
}

/* ============================================
   MODEL DETAIL PAGE STYLES
   ============================================ */

.model-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.model-card-link:hover .model-card {
    transform: translateY(-2px);
}

.model-detail-page {
    padding-top: calc(88.8px + 40px);
}

.model-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.model-detail-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-playground {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--yellow-1);
    color: #ffffff;
    border: none;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Atkinson Hyperlegible Next';
}

.btn-playground:hover {
    background: var(--yellow-1);
    filter: brightness(1.1);
}

.model-detail-panel {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: none;
}

.model-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.model-detail-metrics-section {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
    padding-top: 24px;
    border-top: 1px solid var(--bleu-2);
    min-height: 100%;
}

.model-detail-data-column {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: stretch;
    min-height: 100%;
}

.model-chart-zone {
    flex: 1 1 auto;
    position: relative;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    min-width: 280px;
    box-sizing: border-box;
}


.model-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.model-detail-meta {
    flex: 1;
}

.model-release-date {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.6;
    display: block;
    margin-bottom: 8px;
}

.model-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.model-detail-name {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--black);
    margin: 0;
}


.model-detail-description {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.model-icon-large-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-icon-large-wrapper i {
    font-size: var(--fs-h3);
    color: var(--black);
}

.model-api-endpoint {
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
    margin-bottom: auto;
}

.api-endpoint-label {
    display: block;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.api-endpoint-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--blue-2);
    background: var(--grey);
    font-size: var(--fs-subtitle-xs);
    font-family: 'Atkinson Hyperlegible Next';
    color: var(--black);
}

.btn-copy,
.btn-add {
    padding: 10px 16px;
    border: 1px solid var(--blue-2);
    background: #ffffff;
    color: var(--black);
    font-size: var(--fs-subtitle-xs);
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Atkinson Hyperlegible Next';
}

.btn-copy:hover,
.btn-add:hover {
    background: var(--blue-2);
}

.model-metrics {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-top: 0;
    border-top: none;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    align-items: flex-start;
    margin: auto 0;
}

.model-metrics > .metric-item {
    flex: 1 1 auto;
    min-width: 0;
}

.model-metrics > .metric-item.modalities-item {
    flex: 1.5 1 auto;
    min-width: 200px;
}

@media (max-width: 768px) {
    .model-metrics {
        flex-direction: column;
    }
    
    .model-metrics > .metric-item {
        flex: 1 1 100%;
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.metric-header {
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-label {
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--black);
}

.metric-score-value {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--black);
    margin-left: auto;
}

.metric-info {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.6;
    cursor: help;
}

.metric-bars {
    display: flex;
    gap: 2px;
}

.metric-bar {
    flex: 0 0 20px;
    width: 20px;
    height: 32px;
    transition: background 0.2s ease;
}

.model-metrics > .metric-item:first-child .metric-bar.filled {
    background: var(--orange-1);
}

.model-metrics > .metric-item:first-child .metric-bar.empty {
    background: var(--orange-2);
}

.model-metrics > .metric-item:nth-child(2) .metric-bar.filled {
    background: var(--bleu-1);
}

.model-metrics > .metric-item:nth-child(2) .metric-bar.empty {
    background: var(--bleu-2);
}

/* Styles pour les graphiques de comparaison au survol */
.model-chart-zone {
    position: relative;
}

.model-chart-zone .metric-comparison-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}

/* Bordure orange pour le graphique de vitesse */
.model-chart-zone #speed-chart-container {
    border: 1px solid rgba(184, 52, 0, 0.5);
}

/* Bordure bleue pour le graphique de performance */
.model-chart-zone #performance-chart-container {
    border: 1px solid rgba(1, 17, 59, 0.5);
}

.model-chart-zone .metric-comparison-chart[style*="opacity: 1"],
.model-chart-zone .metric-comparison-chart.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


@keyframes chartFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation pour les barres du graphique - seulement quand le graphique est visible */
.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point,
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: barGrow 0.6s ease forwards;
}

.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point:nth-child(1),
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point:nth-child(1) {
    animation-delay: 0.1s;
}

.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point:nth-child(2),
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point:nth-child(2) {
    animation-delay: 0.15s;
}

.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point:nth-child(3),
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point:nth-child(3) {
    animation-delay: 0.2s;
}

.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point:nth-child(4),
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point:nth-child(4) {
    animation-delay: 0.25s;
}

.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point:nth-child(5),
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point:nth-child(5) {
    animation-delay: 0.3s;
}

.model-chart-zone .metric-comparison-chart.show .plotly .barlayer .point:nth-child(6),
.model-chart-zone .metric-comparison-chart[style*="opacity: 1"] .plotly .barlayer .point:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes barGrow {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Ajuster la position si le graphique sort de l'écran */
@media (max-width: 1200px) {
    .metric-comparison-chart {
        left: 0;
        transform: none;
        width: calc(100vw - 40px);
        max-width: 650px;
    }
}

/* S'assurer que le conteneur Plotly s'adapte à la zone disponible */
.model-chart-zone .metric-comparison-chart {
    width: 100%;
    box-sizing: border-box;
}

.model-chart-zone .metric-comparison-chart .js-plotly-plot {
    width: 100% !important;
    height: 280px !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.model-chart-zone .metric-comparison-chart .plotly {
    width: 100% !important;
    height: 280px !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible;
}

.model-chart-zone .metric-comparison-chart .plotly .svg-container {
    width: 100% !important;
    height: 280px !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible;
}

.model-chart-zone .metric-comparison-chart .plotly .main-svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    overflow: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modalities-flow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.modalities-group {
    display: flex;
    align-items: center;
}

.modalities-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.modalities-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-triple {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-subtitle-xs);
    width: 24px;
    height: 20px;
}

.arrow-triple .arrow-first {
    color: var(--green-1);
    opacity: 0.35;
    position: absolute;
    left: 0;
    z-index: 1;
    animation: arrowProgression1 0.75s ease-in-out infinite;
}

.arrow-triple .arrow-second {
    color: var(--green-1);
    opacity: 0.75;
    position: absolute;
    left: 6px;
    z-index: 2;
    animation: arrowProgression2 0.75s ease-in-out infinite;
}

.arrow-triple .arrow-third {
    color: var(--green-1);
    opacity: 1;
    position: absolute;
    left: 12px;
    z-index: 3;
    animation: arrowProgression3 0.75s ease-in-out infinite;
}

@keyframes arrowProgression1 {
    0% {
        opacity: 0.35;
    }
    33% {
        opacity: 0.75;
    }
    66% {
        opacity: 1;
    }
    100% {
        opacity: 0.35;
    }
}

@keyframes arrowProgression2 {
    0% {
        opacity: 0.75;
    }
    33% {
        opacity: 1;
    }
    66% {
        opacity: 0.35;
    }
    100% {
        opacity: 0.75;
    }
}

@keyframes arrowProgression3 {
    0% {
        opacity: 1;
    }
    33% {
        opacity: 0.35;
    }
    66% {
        opacity: 0.75;
    }
    100% {
        opacity: 1;
    }
}

.modality-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-1);
    color: #ffffff;
    border-radius: 4px;
    cursor: help;
    transition: transform 0.2s ease, background 0.2s ease;
}

.modality-icon-wrapper:hover {
    transform: scale(1.1);
    background: var(--green-1);
    filter: brightness(1.1);
}

.modality-icon-wrapper i {
    font-size: var(--fs-subtitle-xs);
}


.model-pricing {
    padding-top: 0;
    border-top: 1px solid var(--blue-2);
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.pricing-label {
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--black);
}

.pricing-info {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.6;
    cursor: help;
}

.pricing-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-amount {
    font-size: var(--fs-subtitle-sm);
    font-weight: 700;
    color: var(--black);
}

.pricing-unit {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.7;
}

.model-tabs-section {
    margin-bottom: 40px;
}

.model-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--blue-2);
    margin-bottom: 24px;
}

.model-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: var(--fs-subtitle-xs);
    font-weight: 600;
    color: var(--black);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Atkinson Hyperlegible Next';
}

.model-tab:hover {
    opacity: 0.8;
}

.model-tab.active {
    opacity: 1;
    border-bottom-color: var(--orange-1);
    color: var(--orange-1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--blue-2);
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-2);
    color: var(--blue-1);
}

.feature-icon i {
    font-size: var(--fs-subtitle-xs);
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-name {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px 0;
}

.feature-endpoints {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-endpoint {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.7;
    font-family: 'Courier New', monospace;
    background: var(--grey);
    padding: 4px 8px;
    border: 1px solid var(--blue-2);
}

.other-models-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.other-models-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue-2);
    background: #ffffff;
    color: var(--black);
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-arrow-btn:hover {
    background: var(--blue-2);
}

.other-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.model-card.card-other {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--blue-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.model-card.card-other:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--blue-1);
}

.model-card.card-other .model-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-card.card-other .model-content {
    flex: 1;
    min-width: 0;
}

.model-card.card-other .model-title {
    font-size: var(--fs-subtitle-xs);
    font-weight: 700;
    color: var(--black);
    margin: 0 0 2px 0;
}

.model-card.card-other .model-version {
    font-size: var(--fs-subtitle-xs);
    color: var(--black);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .model-detail-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .model-detail-metrics-section {
        flex-direction: column;
    }
    
    .model-chart-zone {
        flex: 1 1 100%;
        position: relative;
        top: 0;
        order: -1;
        margin-bottom: 24px;
        max-width: 100%;
    }
    
    .model-detail-info {
        flex-direction: column;
    }
    
    .model-metrics {
        flex-direction: column;
    }
    
    .model-metrics > .metric-item {
        flex: 1 1 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .other-models-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CHANGELOG PAGE STYLES
   ============================================ */

.changelog-page {
    background: var(--gris);
    min-height: 100vh;
}

.changelog-header {
    margin-bottom: 48px;
}

.changelog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--noir);
    margin: 0 0 16px 0;
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
}

.changelog-subtitle {
    font-size: 1rem;
    color: var(--noir);
    margin: 0;
    line-height: 1.6;
    opacity: 0.8;
}

.changelog-main-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    margin-bottom: 64px;
    align-items: start;
}

.changelog-timeline-wrapper {
    margin-bottom: 0;
}

.changelog-timeline {
    position: relative;
    padding-left: 100px;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bleu-1);
}

.changelog-entries {
    position: relative;
}

.changelog-entry {
    position: relative;
    margin-bottom: 64px;
    display: flex;
    align-items: flex-start;
}

.changelog-date-marker {
    position: absolute;
    left: -100px;
    top: 0;
    width: 80px;
    text-align: right;
    padding-right: 20px;
}

.changelog-date-marker::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 2.5px;
    width: 10px;
    height: 10px;
    background: var(--bleu-1);
    border: 2px solid var(--gris);
    box-shadow: 0 0 0 1px var(--bleu-1);
}

.date-short {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bleu-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    display: block;
}

.changelog-content {
    flex: 1;
    margin-top: 32px;
    margin-left: -25px;
    padding-top: 0;
}


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

.changelog-list li {
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
    color: var(--noir);
    font-size: 0.95rem;
}

.changelog-list li > .changelog-badge {
    display: block;
    margin-bottom: 8px;
    width: fit-content;
}

.changelog-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--bleu-1);
    font-size: 0.6rem;
}

.changelog-list li code {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    color: var(--noir);
    padding: 2px 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 0;
    display: inline;
    width: auto;
    max-width: none;
}

/* Badges */
.changelog-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0;
    margin-bottom: 0;
    border-radius: 0;
    width: fit-content;
}

.badge-model {
    background: #d4edda;
    color: #155724;
}

.badge-api {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-update {
    background: var(--orange-2);
    color: var(--orange-1);
}

.badge-other {
    background: var(--orange-2);
    color: var(--orange-1);
}

.badge-security {
    background: #f8d7da;
    color: #721c24;
}

/* Sidebar de filtres */
.changelog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--noir);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--bleu-1);
}

.filter-label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-label .changelog-badge {
    margin: 0;
    transition: opacity 0.2s ease;
}

.filter-checkbox:not(:checked) + .filter-label .changelog-badge {
    opacity: 0.4;
}

.date-filter-btn {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--noir);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
    text-align: left;
    width: 100%;
}

.date-filter-btn:hover {
    background: var(--bleu-2);
    border-color: var(--bleu-1);
}

.date-filter-btn.active {
    background: var(--bleu-1);
    color: #ffffff;
    border-color: var(--bleu-1);
}

.changelog-entry.hidden {
    display: none;
}

/* Responsive Changelog */
@media (max-width: 1024px) {
    .changelog-main-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .changelog-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .changelog-timeline {
        padding-left: 70px;
    }

    .changelog-date-marker {
        left: -70px;
        width: 60px;
    }

    .changelog-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .changelog-title {
        font-size: 2rem;
    }
}

/* ============================================
   GLOSSARY PAGE STYLES
   ============================================ */

.glossary-terms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.glossary-term {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glossary-term:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bleu-1);
}

.glossary-term-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bleu-2);
}

.glossary-term-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0;
}

.glossary-term-content {
    color: var(--noir);
    line-height: 1.7;
    font-size: 0.95rem;
}

.glossary-term-content p {
    margin: 0;
}

.glossary-term-content code {
    background: var(--bleu-2);
    padding: 4px 8px;
    border-radius: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: var(--orange-1);
    font-weight: 500;
}

/* Filtres */
.glossary-filter-btn {
    background: #ffffff;
    border: 1px solid var(--bleu-2);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--noir);
    font-family: 'Atkinson Hyperlegible Next';
}

.glossary-filter-btn:hover {
    background: var(--bleu-2);
    border-color: var(--bleu-1);
}

.glossary-filter-btn.active {
    background: var(--bleu-1);
    color: #ffffff;
    border-color: var(--bleu-1);
}

/* Masquer les éléments filtrés */
.glossary-term.hidden,
.subsection-title.hidden,
.glossary-terms.hidden {
    display: none !important;
}

/* ============================================
   PRISM.JS SYNTAX HIGHLIGHTING THEME
   ============================================ */

/* Thème Prism personnalisé - Couleurs vives et saturées */
code[class*="language-"],
pre[class*="language-"] {
    color: #1e1e1e;
    background: #ffffff;
    text-shadow: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    tab-size: 4;
    hyphens: none;
}

/* Commentaires - Vert vif */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #008000;
    font-style: italic;
}

/* Ponctuation - Gris foncé */
.token.punctuation {
    color: #393a34;
}

/* Mots-clés - Bleu vif */
.token.keyword {
    color: #0000ff;
    font-weight: 600;
}

/* Strings - Rouge/Orange vif */
.token.string,
.token.char {
    color: #a31515;
}

/* Nombres - Bleu foncé */
.token.number {
    color: #098658;
}

/* Booléens - Bleu vif */
.token.boolean {
    color: #0000ff;
    font-weight: 600;
}

/* Fonctions - Violet/Magenta */
.token.function,
.token.function-name {
    color: #795e26;
}

/* Classes - Cyan vif */
.token.class-name {
    color: #267f99;
    font-weight: 600;
}

/* Variables - Bleu */
.token.variable {
    color: #001080;
}

/* Propriétés - Bleu */
.token.property {
    color: #0451a5;
}

/* Tags HTML/XML - Bleu vif */
.token.tag {
    color: #800000;
}

/* Attributs - Rouge */
.token.attr-name {
    color: #ff0000;
}

/* Valeurs d'attributs - Rouge/Orange */
.token.attr-value {
    color: #0451a5;
}

/* Opérateurs - Noir */
.token.operator {
    color: #000000;
}

/* Constantes - Violet */
.token.constant {
    color: #811f3f;
}

/* Symboles - Orange */
.token.symbol {
    color: #ee0000;
}

/* Regex - Rouge vif */
.token.regex {
    color: #811f3f;
}

/* Important - Rouge vif */
.token.important {
    color: #ff0000;
    font-weight: 700;
}

/* Builtin - Cyan */
.token.builtin {
    color: #267f99;
}

/* Selector - Orange */
.token.selector {
    color: #800000;
}

/* Entity - Rouge */
.token.entity {
    color: #800000;
}

/* URL - Bleu */
.token.url {
    color: #0451a5;
}

/* Atrule - Violet */
.token.atrule {
    color: #800000;
}

/* Inserted - Vert vif */
.token.inserted {
    color: #008000;
    background: rgba(0, 128, 0, 0.1);
}

/* Deleted - Rouge vif */
.token.deleted {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

/* Bold */
.token.bold {
    font-weight: 700;
}

/* Italic */
.token.italic {
    font-style: italic;
}

/* Python spécifique - Couleurs vives et complètes */
.language-python .token.keyword {
    color: #0000ff;
    font-weight: 600;
}

.language-python .token.string {
    color: #a31515;
}

.language-python .token.string.single {
    color: #a31515;
}

.language-python .token.string.double {
    color: #a31515;
}

.language-python .token.string.triple {
    color: #a31515;
}

.language-python .token.function {
    color: #795e26;
    font-weight: 600;
}

.language-python .token.function-name {
    color: #795e26;
    font-weight: 600;
}

.language-python .token.number {
    color: #098658;
    font-weight: 500;
}

.language-python .token.number.integer {
    color: #098658;
}

.language-python .token.number.float {
    color: #098658;
}

.language-python .token.operator {
    color: #000000;
    font-weight: 500;
}

.language-python .token.punctuation {
    color: #393a34;
}

.language-python .token.builtin {
    color: #267f99;
    font-weight: 600;
}

.language-python .token.class-name {
    color: #267f99;
    font-weight: 600;
}

.language-python .token.variable {
    color: #001080;
}

.language-python .token.variable.parameter {
    color: #001080;
}

.language-python .token.comment {
    color: #008000;
    font-style: italic;
}

.language-python .token.boolean {
    color: #0000ff;
    font-weight: 600;
}

.language-python .token.none {
    color: #0000ff;
    font-weight: 600;
}

.language-python .token.decorator {
    color: #267f99;
    font-weight: 600;
}

.language-python .token.property {
    color: #0451a5;
}

.language-python .token.attr-name {
    color: #ff0000;
}

.language-python .token.constant {
    color: #811f3f;
    font-weight: 600;
}

.language-python .token.regex {
    color: #811f3f;
}

.language-python .token.import {
    color: #0000ff;
    font-weight: 600;
}

.language-python .token.from {
    color: #0000ff;
    font-weight: 600;
}

/* JavaScript spécifique - Couleurs vives */
.language-javascript .token.keyword {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.string {
    color: #a31515;
}

.language-javascript .token.string.single {
    color: #a31515;
}

.language-javascript .token.string.double {
    color: #a31515;
}

.language-javascript .token.function {
    color: #795e26;
    font-weight: 600;
}

.language-javascript .token.number {
    color: #098658;
}

.language-javascript .token.operator {
    color: #000000;
}

.language-javascript .token.punctuation {
    color: #393a34;
}

.language-javascript .token.boolean {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.null {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.undefined {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.property {
    color: #0451a5;
}

.language-javascript .token.variable {
    color: #001080;
}

.language-javascript .token.comment {
    color: #008000;
    font-style: italic;
}

.language-javascript .token.regex {
    color: #811f3f;
}

.language-javascript .token.class-name {
    color: #267f99;
    font-weight: 600;
}

.language-javascript .token.constant {
    color: #811f3f;
    font-weight: 600;
}

.language-javascript .token.builtin {
    color: #267f99;
}

.language-javascript .token.this {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.console {
    color: #267f99;
}

.language-javascript .token.require {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.module {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.export {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.import {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.async {
    color: #0000ff;
    font-weight: 600;
}

.language-javascript .token.await {
    color: #0000ff;
    font-weight: 600;
}


