/* ============================================
   GestuKay - Styles Principaux
   Identité médicale + Glassmorphism + Animations
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
    --bleu-medical: #0d6efd;
    --bleu-sombre: #0a3d91;
    --bleu-clair: #e8f0fe;
    --vert-sante: #198754;
    --vert-clair: #d1f5e4;
    --rouge-alerte: #dc3545;
    --rouge-clair: #fde8ea;
    --orange-moyen: #f59e0b;
    --orange-clair: #fef3c7;
    --fond-principal: #f0f4f8;
    --fond-carte: rgba(255, 255, 255, 0.72);
    --fond-glass: rgba(255, 255, 255, 0.45);
    --bordure-glass: rgba(255, 255, 255, 0.6);
    --ombre-douce: 0 8px 32px rgba(13, 110, 253, 0.08);
    --ombre-hover: 0 16px 48px rgba(13, 110, 253, 0.15);
    --texte-principal: #1a2332;
    --texte-secondaire: #5a6b7f;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--fond-principal);
    color: var(--texte-principal);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
}

/* --- Fond animé avec particules médicales --- */
.bg-medical {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 30%, #f0f4f8 60%, #d1f5e4 100%);
    overflow: hidden;
}

.bg-medical::before,
.bg-medical::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: floatBlob 20s ease-in-out infinite;
}

.bg-medical::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.06) 0%, transparent 70%);
    top: -10%; left: -5%;
}

.bg-medical::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(25, 135, 84, 0.06) 0%, transparent 70%);
    bottom: -10%; right: -5%;
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.02); }
}

/* --- Navbar Glassmorphism --- */
.navbar-glass {
    background: var(--fond-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bordure-glass);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-glass .navbar-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.65rem;
    color: var(--bleu-medical);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.navbar-glass .navbar-brand i {
    color: var(--vert-sante);
    margin-right: 8px;
}

.navbar-glass .nav-link {
    color: var(--texte-secondaire);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
    color: var(--bleu-medical);
    background: var(--bleu-clair);
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--texte-principal);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-section h1 span {
    background: linear-gradient(135deg, var(--bleu-medical), var(--vert-sante));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p.lead {
    font-size: 1.15rem;
    color: var(--texte-secondaire);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* --- Barre de recherche --- */
.search-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    background: var(--fond-carte);
    backdrop-filter: blur(16px);
    border: 2px solid transparent;
    border-radius: 60px;
    padding: 6px 6px 6px 28px;
    display: flex;
    align-items: center;
    box-shadow: var(--ombre-douce);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--bleu-medical);
    box-shadow: var(--ombre-hover), 0 0 0 4px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.search-box i.search-icon {
    color: var(--texte-secondaire);
    font-size: 1.2rem;
    margin-right: 12px;
    transition: var(--transition);
}

.search-box:focus-within i.search-icon {
    color: var(--bleu-medical);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--texte-principal);
    padding: 14px 0;
}

.search-box input::placeholder {
    color: #a0b0c0;
}

.btn-search {
    background: linear-gradient(135deg, var(--bleu-medical), var(--bleu-sombre));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-search:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
}

.btn-search:active {
    transform: scale(0.97);
}

/* Effet Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* --- Cartes Glassmorphism --- */
.card-glass {
    background: var(--fond-carte);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bordure-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--ombre-douce);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.card-glass:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--ombre-hover);
    border-color: rgba(13, 110, 253, 0.2);
}

.card-glass .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card-glass:hover .card-img-top {
    transform: scale(1.06);
}

.card-glass .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-glass .card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

.card-glass .card-body {
    padding: 20px 22px;
}

.card-glass .card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--texte-principal);
    margin-bottom: 10px;
}

.card-glass .card-text {
    font-size: 0.88rem;
    color: var(--texte-secondaire);
    line-height: 1.6;
}

/* --- Badges de gravité --- */
.badge-gravite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-faible {
    background: var(--vert-clair);
    color: var(--vert-sante);
}

.badge-moyenne {
    background: var(--orange-clair);
    color: #92400e;
}

.badge-grave {
    background: var(--rouge-clair);
    color: var(--rouge-alerte);
}

.badge-urgence {
    background: var(--rouge-alerte);
    color: white;
    animation: pulseUrgence 2s ease-in-out infinite;
}

@keyframes pulseUrgence {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

/* --- Page Détails --- */
.detail-header {
    background: var(--fond-carte);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bordure-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--ombre-douce);
    margin-bottom: 30px;
}

.detail-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--texte-principal);
    margin-bottom: 12px;
}

.detail-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.detail-section {
    background: var(--fond-carte);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bordure-glass);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    margin-bottom: 20px;
    box-shadow: var(--ombre-douce);
}

.detail-section h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--bleu-medical);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h3 i {
    font-size: 1.1rem;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bleu-clair);
    color: var(--bleu-medical);
}

.detail-section p,
.detail-section ul {
    color: var(--texte-secondaire);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- Disclaimer --- */
.disclaimer {
    background: linear-gradient(135deg, #fff3cd, #fef3c7);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 18px 24px;
    font-size: 0.88rem;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 30px 0;
}

.disclaimer i {
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- Boutons --- */
.btn-gestukay {
    background: linear-gradient(135deg, var(--bleu-medical), var(--bleu-sombre));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gestukay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
    color: white;
}

.btn-gestukay-vert {
    background: linear-gradient(135deg, var(--vert-sante), #0f5132);
}

.btn-gestukay-vert:hover {
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.3);
}

.btn-gestukay-rouge {
    background: linear-gradient(135deg, var(--rouge-alerte), #9b1c2a);
}

.btn-gestukay-pdf {
    background: linear-gradient(135deg, #dc3545, #9b1c2a);
}

.btn-gestukay-pdf:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    color: white;
}

/* --- Loader --- */
.loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(240, 244, 248, 0.85);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-pulse {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--bleu-medical);
    position: relative;
}

.loader-pulse::before,
.loader-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bleu-medical);
    animation: pulse 2s ease-out infinite;
}

.loader-pulse::after {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.loader-pulse i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.loader-text {
    margin-top: 24px;
    font-weight: 600;
    color: var(--bleu-medical);
    font-size: 0.95rem;
}

/* --- Animations scroll (fade-in) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* --- Stats rapides --- */
.stat-card {
    background: var(--fond-carte);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bordure-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--ombre-douce);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-hover);
}

.stat-card .stat-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--texte-principal);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--texte-secondaire);
    margin-top: 6px;
    font-weight: 500;
}

/* --- Footer --- */
.footer-glass {
    background: var(--fond-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--bordure-glass);
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--texte-secondaire);
    font-size: 0.88rem;
}

.footer-glass a {
    color: var(--bleu-medical);
    text-decoration: none;
    font-weight: 600;
}

/* --- No results --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 4rem;
    color: #d1d9e0;
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--texte-secondaire);
    margin-bottom: 10px;
}

/* --- Skeleton loading --- */
.skeleton {
    background: linear-gradient(90deg, #e8ecf1 25%, #f0f4f8 50%, #e8ecf1 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- API Source tag --- */
.source-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--bleu-clair);
    color: var(--bleu-medical);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section { padding: 70px 0 40px; }
    .search-box { padding: 4px 4px 4px 18px; }
    .btn-search { padding: 12px 20px; font-size: 0.85rem; }
    .detail-header { padding: 24px; }
    .detail-section { padding: 22px; }
    .card-glass .card-img-top { height: 160px; }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
    }
    .search-box input { width: 100%; padding: 10px; text-align: center; }
    .btn-search { width: 100%; justify-content: center; border-radius: var(--radius-md); }
}

/* --- Scrollbar custom --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--fond-principal); }
::-webkit-scrollbar-thumb { background: #c4d0dc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0b0c0; }

/* ============================================
   RESULTAT PAGE v2 — Liste compacte + Filtres
   ============================================ */
.gk-results-page {
    padding-top: 100px;
    min-height: 80vh;
    padding-bottom: 40px;
}

.gk-search-wrap {
    margin-bottom: 28px;
}

.gk-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.gk-results-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--texte-principal);
    margin: 0;
    line-height: 1.2;
}

.gk-results-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bleu-medical);
    display: block;
    margin-bottom: 4px;
}

.gk-results-meta {
    font-size: 0.88rem;
    color: var(--texte-secondaire);
    margin: 6px 0 0;
}

.gk-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bleu-medical);
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    min-width: 28px;
    height: 22px;
    border-radius: 11px;
    padding: 0 8px;
}

.gk-back-link {
    color: var(--texte-secondaire);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.gk-back-link:hover {
    background: var(--bleu-clair);
    color: var(--bleu-medical);
}

/* Filters */
.gk-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.gk-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--texte-secondaire);
    background: white;
    border: 1.5px solid #e2e8f0;
    transition: var(--transition);
    white-space: nowrap;
}
.gk-filter-pill:hover { border-color: var(--bleu-medical); color: var(--bleu-medical); transform: translateY(-1px); }
.gk-filter-pill.active { background: var(--bleu-medical); color: white; border-color: var(--bleu-medical); }
.gk-filter-pill.active .gk-pill-count { background: rgba(255,255,255,0.3); color: white; }
.gk-pill-faible.active { background: var(--vert-sante); border-color: var(--vert-sante); }
.gk-pill-moyenne.active { background: #d97706; border-color: #d97706; }
.gk-pill-grave.active { background: var(--rouge-alerte); border-color: var(--rouge-alerte); }
.gk-pill-urgence.active { background: #7c3aed; border-color: #7c3aed; }

.gk-pill-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: #f0f4f8;
    color: var(--texte-secondaire);
    padding: 1px 7px;
    border-radius: 50px;
}

/* List items */
.gk-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gk-list-item {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}
.gk-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--accent);
    color: inherit;
}

.gk-list-indicator {
    width: 4px;
    min-height: 100%;
    background: var(--accent);
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
    opacity: 0.7;
    transition: var(--transition);
}
.gk-list-item:hover .gk-list-indicator { opacity: 1; width: 5px; }

.gk-list-thumb {
    width: 60px; height: 60px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
    margin: 14px 0 14px 14px; background: #f0f4f8;
}
.gk-list-thumb img {
    width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) saturate(1.1);
    transition: transform .4s ease;
}
.gk-list-item:hover .gk-list-thumb img { transform: scale(1.15); }

.gk-list-body {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
}

.gk-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.gk-list-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--texte-principal);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gk-list-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.gk-list-def {
    font-size: 0.84rem;
    color: var(--texte-secondaire);
    margin: 0 0 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gk-list-symp {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gk-list-symp i { margin-right: 4px; color: var(--accent); }

.gk-list-arrow {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #cbd5e1;
    font-size: 1rem;
    transition: var(--transition);
}
.gk-list-item:hover .gk-list-arrow { color: var(--accent); transform: translateX(3px); }

/* Empty state */
.gk-empty {
    text-align: center;
    padding: 80px 20px;
}
.gk-empty-icon { font-size: 4rem; color: #e2e8f0; margin-bottom: 16px; }
.gk-empty h3 { font-family: 'DM Serif Display', serif; color: var(--texte-secondaire); }
.gk-empty p { color: #94a3b8; margin-bottom: 20px; }

/* Pagination v2 */
.gk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.gk-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bleu-medical);
    background: var(--bleu-clair);
    transition: var(--transition);
}
.gk-page-btn:hover { background: var(--bleu-medical); color: white; }

.gk-page-numbers { display: flex; gap: 4px; align-items: center; }

.gk-page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--texte-secondaire);
    transition: var(--transition);
}
.gk-page-num:hover { background: #f0f4f8; color: var(--bleu-medical); }
.gk-page-num.active { background: var(--bleu-medical); color: white; }
.gk-page-dots { color: #cbd5e1; font-size: 0.9rem; }

/* ============================================
   DETAILS PAGE v2 — Hero immersif + sections
   ============================================ */
.gk-detail-page {
    padding-bottom: 40px;
}

.gk-detail-hero {
    position: relative;
    padding: 120px 0 50px;
    overflow: hidden;
    margin-bottom: 0;
}

.gk-detail-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    opacity: 0.08;
    z-index: 0;
}
.gk-detail-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--fond-principal));
}

.gk-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--texte-secondaire);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition);
}
.gk-detail-back:hover { background: rgba(0,0,0,0.04); color: var(--texte-principal); }

.gk-detail-hero-content { max-width: 700px; }

.gk-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    background: white;
    color: var(--texte-principal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    letter-spacing: 0.3px;
}
.gk-hero-badge-urgence { background: var(--rouge-alerte); color: white; animation: pulseUrgence 2s ease-in-out infinite; }
.gk-hero-badge-source { background: var(--bleu-clair); color: var(--bleu-medical); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; }

.gk-detail-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--texte-principal);
    margin: 0 0 16px;
    line-height: 1.15;
}

.gk-detail-lead {
    font-size: 1.05rem;
    color: var(--texte-secondaire);
    line-height: 1.7;
    margin: 0;
}

/* Quick nav */
.gk-detail-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 20px 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.gk-detail-nav::-webkit-scrollbar { display: none; }

.gk-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--texte-secondaire);
    background: white;
    border: 1.5px solid #e2e8f0;
    white-space: nowrap;
    transition: var(--transition);
}
.gk-nav-item:hover {
    border-color: var(--nav-color);
    color: var(--nav-color);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.gk-nav-item i { color: var(--nav-color); }

/* Sections */
.gk-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    border-left: 4px solid var(--section-color);
    transition: var(--transition);
}
.gk-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.gk-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.gk-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--section-color);
    background: color-mix(in srgb, var(--section-color) 10%, white);
    flex-shrink: 0;
}

.gk-section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--texte-principal);
    margin: 0;
}

.gk-section-content p {
    color: var(--texte-secondaire);
    font-size: 0.94rem;
    line-height: 1.8;
    margin: 0;
}

/* Tag-style symptom list */
.gk-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gk-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--texte-principal);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.gk-tag:hover { border-color: var(--section-color); background: color-mix(in srgb, var(--section-color) 6%, white); }

/* API tags */
.gk-api-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}
.gk-api-tag-blue { background: var(--bleu-clair); color: var(--bleu-sombre); }
.gk-api-tag-green { background: var(--vert-clair); color: var(--vert-sante); }

.gk-api-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--vert-clair);
    color: var(--vert-sante);
    padding: 2px 10px;
    border-radius: 50px;
    margin-left: 8px;
}

/* Similar diseases */
.gk-similar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
}
.gk-similar h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--texte-secondaire);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gk-similar-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-similar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--texte-principal);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.gk-similar-item:hover { background: var(--bleu-clair); border-color: var(--bleu-medical); color: var(--bleu-medical); }

/* Action buttons */
.gk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 40px;
    justify-content: center;
}

.gk-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
}
.gk-action-btn:hover { transform: translateY(-2px); }

.gk-action-pdf { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.gk-action-pdf:hover { background: #dc2626; color: white; border-color: #dc2626; }
.gk-action-print { background: #f0f4f8; color: var(--texte-secondaire); border-color: #e2e8f0; }
.gk-action-print:hover { background: var(--texte-principal); color: white; border-color: var(--texte-principal); }
.gk-action-list { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.gk-action-list:hover { background: #059669; color: white; border-color: #059669; }
.gk-action-api { background: #eef2ff; color: #6366f1; border-color: #c7d2fe; }
.gk-action-api:hover { background: #6366f1; color: white; border-color: #6366f1; }

/* Responsive */
@media (max-width: 768px) {
    .gk-list-top { flex-direction: column; align-items: flex-start; gap: 6px; }
    .gk-list-badges { align-self: flex-start; }
    .gk-list-arrow { display: none; }
    .gk-detail-hero { padding: 90px 0 40px; }
    .gk-detail-title { font-size: 1.8rem; }
    .gk-section { padding: 20px 18px; }
    .gk-actions { justify-content: stretch; }
    .gk-action-btn { flex: 1; justify-content: center; min-width: 120px; }
    .gk-detail-nav { padding: 14px 0 18px; gap: 4px; }
    .gk-nav-item { padding: 6px 12px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .gk-filters { gap: 6px; }
    .gk-filter-pill { padding: 5px 12px; font-size: 0.78rem; }
}

/* Print */
@media print {
    .gk-detail-hero-bg, .gk-detail-nav, .gk-actions, .gk-similar, #api-section, .navbar-glass, .footer-glass, .bg-medical, .loader-overlay { display: none !important; }
    .gk-detail-hero { padding-top: 20px; }
    .gk-section { break-inside: avoid; border: 1px solid #ddd; box-shadow: none; }
}

/* ============================== */
/* GLASSMORPHISM & 3D EFFECTS v3 */
/* ============================== */

/* Enhanced navbar glass */
.navbar-glass {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Card glassmorphism */
.detail-section,
.gk-list-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 3D hover on cards */
.detail-section {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    perspective: 600px;
}
.detail-section:hover {
    transform: translateY(-6px) rotateX(1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Gradient accent borders */
.gk-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, var(--bleu-medical)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.gk-list-item:hover::before {
    opacity: 0.5;
}

/* Hero gradient text */
.gk-hero-title-gradient {
    background: linear-gradient(135deg, var(--bleu-medical) 0%, #6366f1 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ripple effect */
.btn-gestukay {
    position: relative;
    overflow: hidden;
}
.btn-gestukay::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-gestukay:hover::after {
    left: 100%;
}

/* Stagger animations */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeSlideUp 0.6s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Floating gradient background blobs */
.bg-medical::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: floatBlob 20s ease-in-out infinite;
    pointer-events: none;
}
.bg-medical::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatBlob 25s ease-in-out infinite reverse;
    pointer-events: none;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Glow badge urgence */
.badge-urgence {
    animation: urgGlow 2s ease-in-out infinite;
}
@keyframes urgGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Scroll reveal enhancement */
.gk-list-item {
    position: relative;
    overflow: hidden;
}
