/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --parchment-bg: #f4e8d0;
    --parchment-border: #8b7355;
    --parchment-shadow: rgba(139, 115, 85, 0.3);
    --text-primary: #2c2416;
    --text-secondary: #5c4f3d;
    --accent-color: #8b6f47;
    --link-color: #6b5436;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
    
    /* Library theme colors */
    --library-dark: #2d1b0e;
    --library-brown: #5c3d2e;
    --library-warm: #8b5a3c;
    --library-tan: #c9a882;
    --library-cream: #f5f1e8;
    --library-green: #4a6741;
    --library-gold: #b8860b;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page d'accueil - Parchemin */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
}

.top-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bottom-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.parchment-container {
    perspective: 1000px;
}

.parchment {
    width: 700px;
    height: 300px;
    max-height: 90vh;
    background-image: url('../images/parchemin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0;
    box-shadow: 
        0 10px 40px var(--parchment-shadow);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pseudo-éléments désactivés pour afficher l'image du parchemin */

.parchment:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px var(--parchment-shadow);
}

.parchment-content {
    z-index: 1;
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.text-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.text-group-1 {
    opacity: 1;
    animation: fadeOutGroup 1s ease-in-out 9.5s forwards;
}

.text-group-2 {
    opacity: 0;
    animation: fadeInGroup 1s ease-in-out 10.5s forwards, fadeOutGroup 1s ease-in-out 20.5s forwards;
}

.text-group-3 {
    opacity: 0;
    animation: fadeInGroup 1s ease-in-out 21.5s forwards, fadeOutGroup 1s ease-in-out 31.5s forwards;
}

.text-group-4 {
    opacity: 0;
    animation: fadeInGroup 1s ease-in-out 32.5s forwards;
}

.read-text {
    font-size: 72px;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.1;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInText 2s ease-in-out 0.5s forwards;
}

.parchment:hover .read-text {
    transform: scale(1.1);
    color: var(--accent-color);
}

.subtitle-text {
    font-size: 42px;
    font-weight: 400;
    color: var(--text-secondary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
    letter-spacing: 1px;
    margin: -5px 0 0 0;
    padding-left: 0;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInSubtitle 2s ease-in-out 2.5s forwards;
}

.subtitle-container {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin: -5px 0 0 0;
}

.subtitle-left {
    text-align: right;
    text-indent: 0;
    flex: 0 1 auto;
}

.subtitle-right {
    text-align: left;
    text-indent: 0;
    flex: 0 1 auto;
}

.parchment:hover .subtitle-text {
    color: var(--accent-color);
}

.prefix-text {
    opacity: 0;
    display: inline-block;
    margin-right: 0;
    animation: fadeInPrefix 1.5s ease-in-out 4.5s forwards;
}

.suffix-text {
    opacity: 0;
    font-weight: 700;
    animation: fadeInSuffixZoom 1.5s ease-in-out 6s forwards;
}

/* Second text animations */
.read-text-2 {
    opacity: 0;
    animation: fadeInText 2s ease-in-out 11.5s forwards;
}

.subtitle-text-2 {
    opacity: 0;
    animation: fadeInSubtitle 2s ease-in-out 13.5s forwards;
}

.prefix-text-2 {
    opacity: 0;
    animation: fadeInPrefix 1.5s ease-in-out 15.5s forwards;
}

.suffix-text-2 {
    opacity: 0;
    font-weight: 700;
    animation: fadeInSuffixZoom 1.5s ease-in-out 17s forwards;
}

/* Third text animations */
.read-text-3 {
    opacity: 0;
    animation: fadeInText 2s ease-in-out 22.5s forwards;
}

.subtitle-text-3 {
    opacity: 0;
    animation: fadeInSubtitle 2s ease-in-out 24.5s forwards;
}

.prefix-text-3 {
    opacity: 0;
    animation: fadeInPrefix 1.5s ease-in-out 26.5s forwards;
}

.suffix-text-3 {
    opacity: 0;
    font-weight: 700;
    animation: fadeInSuffixZoom 1.5s ease-in-out 28s forwards;
}

/* Fourth text animations - Final */
.read-text-4 {
    opacity: 0;
    animation: fadeInTextFinal 2s ease-in-out 33.5s forwards;
}

.subtitle-text-4 {
    opacity: 0;
    animation: fadeInSubtitle 2s ease-in-out 35.5s forwards;
}

.welcome-image {
    opacity: 0;
    max-width: 600px;
    width: 100%;
    height: auto;
    animation: fadeInImage 2s ease-in-out 37.5s forwards;
}

/* Page About */
.about-page {
    background: var(--library-cream);
}

/* ── Navigation ── */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--library-dark);
    text-decoration: none;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero-icon {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    animation: fadeIn 0.8s ease-out;
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--library-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--library-gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-item:hover {
    color: var(--library-gold);
}

.nav-item:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--library-gold);
    color: white !important;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
    margin-left: 1rem;
    white-space: nowrap;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--library-warm);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

/* Legacy */
.nav-link {
    color: var(--library-cream);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--library-gold);
}

.catalogue-button {
    background: linear-gradient(135deg, var(--library-gold) 0%, var(--library-warm) 100%);
    color: var(--library-dark);
    padding: 0.65rem 1.3rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    border: 2px solid var(--library-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.catalogue-button:hover {
    background: linear-gradient(135deg, #d4a933 0%, var(--library-gold) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.5);
    color: var(--library-dark);
}

.catalogue-button:active {
    transform: translateY(-1px) scale(1.02);
}

.cta-button {
    background: var(--library-warm);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--library-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--library-brown) 0%, var(--library-dark) 100%);
    color: var(--library-cream);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(0,0,0,0.03) 100px, rgba(0,0,0,0.03) 101px),
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(0,0,0,0.03) 100px, rgba(0,0,0,0.03) 101px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
}

/* Carousel Section */
.carousel-section {
    background: linear-gradient(135deg, var(--library-brown) 0%, var(--library-dark) 100%);
    padding: 2rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    position: relative;
    background: var(--white);
    z-index: 1;
}

.gray-bg {
    background: var(--white);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--library-brown);
    text-align: center;
    font-weight: 400;
}

.section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(93, 61, 46, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--library-tan);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(93, 61, 46, 0.25);
    border-color: var(--library-warm);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--library-warm);
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: left;
}

/* Steps */
.steps {
    max-width: 800px;
    margin: 3rem auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--library-green) 0%, var(--library-brown) 100%);
    color: var(--library-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(93, 61, 46, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--library-brown);
    font-weight: 600;
    text-align: left;
}

.step-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: left;
    margin: 0;
}

/* App Access Section */
.app-access {
    background: linear-gradient(135deg, var(--library-green) 0%, var(--library-brown) 100%);
    color: var(--library-cream);
    position: relative;
}

.app-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0,0,0,0.05) 80px, rgba(0,0,0,0.05) 81px),
        repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0,0,0,0.05) 80px, rgba(0,0,0,0.05) 81px);
    opacity: 0.2;
    pointer-events: none;
}

.app-access h2 {
    color: var(--library-cream);
    position: relative;
    z-index: 1;
}

.access-description {
    color: var(--library-cream) !important;
    opacity: 0.95;
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
    position: relative;
    z-index: 1;
}

.library-entrance {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem 0;
    position: relative;
    z-index: 1;
}

.entrance-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.entrance-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.button {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-button {
    background: var(--library-cream);
    color: var(--library-brown);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: var(--white);
}

.secondary-button {
    background: transparent;
    color: var(--library-cream);
    border: 2px solid var(--library-cream);
}

.secondary-button:hover {
    background: var(--library-cream);
    color: var(--library-brown);
}

.compatibility-note {
    color: var(--library-cream) !important;
    opacity: 0.85;
    font-size: 0.9rem !important;
    margin-top: 2rem !important;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--library-dark);
    color: var(--library-cream);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--library-tan);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--library-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 499;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-item {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
    }

    .nav-item::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
        display: block;
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }

    .parchment {
        width: 90vw;
        max-width: 600px;
        height: 700px;
    }

    .read-text {
        font-size: 54px;
    }

    .subtitle-text {
        font-size: 30px;
        margin: -5px 0 0 0;
        padding-left: 0;
        text-indent: 25px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

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

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-content h3,
    .step-content p {
        text-align: center;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }

    .entrance-image {
        max-width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInTextFinal {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes fadeInSubtitle {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInPrefix {
    0% {
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInSuffix {
    0% {
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInSuffixZoom {
    0% {
        opacity: 0;
        transform: translateX(-10px) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateX(0) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1.15);
    }
}

@keyframes fadeOutGroup {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

@keyframes fadeInGroup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section {
    animation: fadeIn 0.8s ease-out;
}

/* ── Dropdown "Outils" ── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Pont transparent entre le bouton et le menu pour maintenir le :hover */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px; /* couvre le gap de 8px + marge */
    pointer-events: auto;
}

.dropdown-toggle {
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-toggle:hover {
    color: var(--library-gold);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.dropdown-menu a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: rgba(184, 134, 11, 0.1);
    color: var(--library-gold);
}

@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        display: block;
        border-radius: 10px;
        box-shadow: none;
        background: rgba(184, 134, 11, 0.05);
        border: 1px solid rgba(184, 134, 11, 0.15);
        margin-top: 0.5rem;
        min-width: 0;
        white-space: normal;
        padding: 0.25rem;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}
