/* ===== SAASTOSHI GLASSMORPHISM DESIGN ===== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #f7931a;
    --dark-orange: #e6830f;
    --light-orange: #ffa030;
    
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-light: #5a6c7d;
    --text-white: #ffffff;
    --text-dark: #333333;
    
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-white-strong: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-shadow-strong: rgba(0, 0, 0, 0.2);
    
    /* Nouvelle couleur pour les articles */
    --article-blue: #4EA5C2;
    --article-blue-light: rgba(78, 165, 194, 0.6);
    --article-blue-hover: rgba(78, 165, 194, 0.7);
}

body {
    font-family: 'Michroma', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #faf8f5;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 100px; /* Espace pour le header card */
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #faf8f5;
    z-index: -2;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Glass Effects */
.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.8), rgba(99, 111, 164, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: var(--article-blue-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    background: var(--article-blue-hover);
    border-color: rgba(247, 147, 26, 0.4);
}

/* Suppression des règles spécifiques articles - maintenant toutes les cards sont bleues */

.glass-button {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.5), rgba(99, 111, 164, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.6), rgba(99, 111, 164, 0.6));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(247, 147, 26, 0.5);
}

/* ===== HEADER REDESIGNÉ COMME UNE CARD ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    
    /* Fond transparent comme les autres pages */
    background: none;
    border: none;
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Card de navigation - même style que les autres cards */
.nav-card {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: var(--article-blue-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    min-height: 60px;
}

/* Effet au scroll pour la card de navigation */
.header.scrolled .nav-card {
    background: var(--article-blue-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.logo {
    font-size: 2.2rem;
    font-weight: 400;
    font-family: 'Michroma', monospace;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    /* Supprime le style glassmorphism */
    background: none;
    border: none;
    border-radius: 0;
    outline: none; /* AJOUTEZ ÇA */
}

.nav-link:hover {
    color: #f7931a;
    background: none;
    transform: none;
    box-shadow: none;
}


.nav-link.active {
    color: #ffffff;
    background: none;
    box-shadow: none;
    border-bottom: 2px solid #f7931a;
}

.nav-link.active:hover {
    color: #ffffff;
}

.nav-link:focus,
.nav-link:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Effet underline au hover pour les non-actifs */
.nav-link:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: #f7931a;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 2rem 2rem;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    margin-top: 1rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(247, 147, 26, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(247, 147, 26, 0.5);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-card {
    padding: 2rem;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.featured-card.large {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.featured-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.featured-card.large .featured-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.featured-category {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.featured-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-link:hover {
    color: var(--light-orange);
    transform: translateX(5px);
}

.coming-soon {
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.4), rgba(99, 111, 164, 0.4));
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* eBooks Section */
.ebooks-preview {
    margin-bottom: 4rem;
}

.ebooks-container {
    padding: 3rem;
    text-align: center;
    color: var(--text-white);
}

.ebooks-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ebook-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--text-white);
    position: relative;
}

.ebook-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.ebook-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.ebook-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ebook-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(247, 147, 26, 0.5);
}

.ebooks-cta {
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 3rem;
    color: var(--text-white);
    margin-bottom: 4rem;
}

.about-content h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-white);
}

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

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-shadow: 0 2px 15px rgba(247, 147, 26, 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Articles Page */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 1rem;
    padding: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-header h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.3), rgba(99, 111, 164, 0.3));
    backdrop-filter: blur(15px);
    color: var(--text-primary);
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.4), rgba(99, 111, 164, 0.4));
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(247, 147, 26, 0.5);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Search Form */
.search-form {
    padding: 2rem;
}

.search-form-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 2;
    min-width: 250px;
}

.filter-field {
    flex: 1;
    min-width: 150px;
}

.search-buttons {
    display: flex !important;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-direction: row !important;
}

.filter-section {
    margin-top: 0;
}

.category-filter {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.3), rgba(99, 111, 164, 0.3));
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
}

.category-filter:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.4), rgba(99, 111, 164, 0.4));
    border-color: rgba(247, 147, 26, 0.5);
}

.search-btn, .clear-search {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0 !important;
    white-space: nowrap;
    height: fit-content;
    display: inline-flex !important;
    align-items: center;
}

/* Search Info */
.search-info {
    padding: 1rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.search-info strong {
    color: var(--primary-orange);
}

/* Highlight in search results */
mark {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: white;
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-weight: 600;
}

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

.article-card {
    padding: 2rem;
    color: var(--text-white);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    text-decoration: none;
    color: var(--text-white);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date {
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.4), rgba(99, 111, 164, 0.4));
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-category {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--light-orange);
    transform: translateX(5px);
}

/* Article Content */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 1rem;
    padding: 2rem;
}

.article-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-meta-full {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-read-time {
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.4), rgba(99, 111, 164, 0.4));
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-content {
    padding: 3rem;
    color: var(--text-white);
    line-height: 1.8;
    /* Même largeur que le nav-container - CORRECTION ICI */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--text-white);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-orange);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
}

.article-content strong {
    color: var(--primary-orange);
    font-weight: 600;
}

.article-content em {
    color: var(--light-orange);
    font-style: italic;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--text-white);
}

.no-results p {
    color: var(--text-secondary);
}

.no-results a {
    color: var(--primary-orange);
    text-decoration: none;
}

.no-results a:hover {
    color: var(--light-orange);
}

/* eBooks Page */
.ebooks-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.ebooks-hero h1 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ebooks-hero h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ebooks-hero p {
    font-size: 1.2rem;
    
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-white);
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.coming-soon-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.coming-soon-message p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Search Icon */
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card.large {
        flex-direction: column;
        text-align: center;
    }
    
    .ebooks-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .article-meta-full {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        padding: 0;
    }
    
    .search-form-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-field,
    .filter-field {
        min-width: auto;
        flex: none;
    }
    
    .search-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-content {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-nav .btn-primary,
    .article-nav .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 160px;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
        min-width: 70px;
    }
    
    .logo {
        font-size: 1.8rem;  /* Plus grand sur mobile aussi */
        margin-bottom: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .glass-card {
        border-radius: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.9rem 0.9rem 0.9rem 2.5rem;
    }
    
    .search-icon {
        left: 0.8rem;
        font-size: 1rem;
    }
    
    .ebooks-hero h1,
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .coming-soon-message h2 {
        font-size: 2rem;
    }
    
    .coming-soon-message p {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
}

/* ===== FALLBACKS POUR COMPATIBILITÉ ===== */

/* Fallback pour les navigateurs qui ne supportent pas backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .nav-card {
        background: rgba(78, 165, 194, 0.9);
    }
    
    .header.scrolled .nav-card {
        background: rgba(78, 165, 194, 0.95);
    }
    
    .glass-card {
        background: linear-gradient(135deg, 
            rgba(232, 203, 192, 0.85), 
            rgba(99, 111, 164, 0.85)
        );
    }
    
    /* Fallback spécifique pour toutes les cards */
    .glass-card {
        background: rgba(78, 165, 194, 0.85);
    }
    
    .glass-button,
    .nav-link {
        background: linear-gradient(135deg, 
            rgba(232, 203, 192, 0.7), 
            rgba(99, 111, 164, 0.7)
        );
    }
    
    .search-input,
    .category-filter {
        background: linear-gradient(135deg, 
            rgba(232, 203, 192, 0.5), 
            rgba(99, 111, 164, 0.5)
        );
    }
}

/* ===== ACCESSIBILITÉ ===== */

/* Focus states pour la navigation au clavier */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.search-input:focus,
.category-filter:focus,
.logo:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Amélioration des contrastes pour l'accessibilité */
.nav-link:focus-visible,
.logo:focus-visible {
    background: linear-gradient(135deg, rgba(232, 203, 192, 0.8), rgba(99, 111, 164, 0.8));
    color: var(--text-dark);
}

/* Préférence pour réduire les animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .glass-card:hover,
    .nav-link:hover,
    .logo:hover,
    .header.scrolled .nav-card {
        transform: none;
    }
}

/* Mode sombre si l'utilisateur le préfère */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e8e8e8;
        --text-secondary: #b8b8b8;
        --text-light: #888888;
    }
    
    body {
        background: #1a1a1a;
    }
    
    .background-gradient {
        background: #1a1a1a;
    }
    
    .nav-card {
        background: linear-gradient(135deg, rgba(232, 203, 192, 0.4), rgba(99, 111, 164, 0.4));
    }
    
    .header.scrolled .nav-card {
        background: linear-gradient(135deg, rgba(232, 203, 192, 0.5), rgba(99, 111, 164, 0.5));
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav-container,
    .nav-card,
    .hero-buttons,
    .search-section,
    .article-nav {
        display: none;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .article-content {
        color: black;
    }
    
    .article-content h2,
    .article-content h3 {
        color: black;
    }
    
    .page-header h1,
    .article-title {
        color: black;
    }
}