/* Portfolio Unique - Tous les styles consolidés */

/* Animation pour l'avertissement de construction */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
}

/* Variables et thèmes */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #f8f9fa;
    --nav-text: #333333;
    --nav-hover: #e9ecef;
    --primary-color: #0874ee;
    --border-color: #333333;
    --card-bg: #1a1a1a;
    --header-bg: #2a2a2a;
    --link-color: #00D4FF;
    --button-bg: #0874ee;
    --transition-fast: 0.3s;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f8f9fa;
    --nav-bg: #2d2d2d;
    --nav-text: #f8f9fa;
    --nav-hover: #3d3d3d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1A1A1A;
    color: #C3C4C8;
    font-family: 'Press Start 2P', cursive;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body:not(.dark-theme) {
    background-color: #ffffff;
    color: #333333;
}

/* Navigation */
.navbar {
    width: 100%;
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #1A1A1A;
    margin: 0;
}

body:not(.dark-theme) .navbar {
    background-color: #f8f9fa;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px;
    margin: 0;
}

.nav-links a {
    color: #C3C4C8;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-decoration: none;
    transition: 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

body:not(.dark-theme) .nav-links a {
    color: #333333;
}

.nav-links a:hover {
    color: #0874ee;
    background-color: #3d3d3d;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.8);
    transform: translateY(-2px);
}

body:not(.dark-theme) .nav-links a:hover {
    background-color: #e9ecef;
}

.nav-links a.active {
    color: #0874ee;
    background-color: rgba(8, 116, 238, 0.2);
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.8);
}

/* Bouton de thème */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--nav-hover);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 20px 50px;
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Accueil */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border-radius: 10px;
    border: 2px solid #0874ee;
}

body:not(.dark-theme) .hero-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.hero-section h1 {
    color: #0874ee;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(8, 116, 238, 0.8);
}

.hero-section p {
    font-size: 12px;
    line-height: 1.6;
    color: #C3C4C8;
}

body:not(.dark-theme) .hero-section p {
    color: #333333;
}

.centered-logo {
    text-align: center;
}

.logo-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: all 0.3s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 0 !important;
}

.logo-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CV Section */
.cv-container {
    background-color: #1A1A1A;
    padding: 60px 20px;
    font-family: 'Press Start 2P', cursive;
    color: #C3C4C8;
    border-radius: 10px;
    margin-bottom: 50px;
}

body:not(.dark-theme) .cv-container {
    background-color: #f8f9fa;
    color: #333333;
}

.cv-section {
    max-width: 1200px;
    margin: 0 auto;
}

.cv-title {
    text-align: center;
    color: #0874ee;
    margin-bottom: 50px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.cv-card {
    background-color: #2A2A2A;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

body:not(.dark-theme) .cv-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #0874ee;
}

body:not(.dark-theme) .cv-card:hover {
    border-color: #0874ee;
    box-shadow: 0 10px 30px rgba(8, 116, 238, 0.3);
}

.cv-icon {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.cv-card h3 {
    color: #0874ee;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}

.cv-list {
    list-style: none;
    padding: 0;
}

.cv-list li {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.cv-list li:before {
    content: '→';
    color: #0874ee;
    position: absolute;
    left: 0;
}

.cv-list strong {
    color: #ffffff;
    font-weight: normal;
}

body:not(.dark-theme) .cv-list strong {
    color: #333333;
}

/* CV Display */
.cv-display {
    margin-top: 50px;
}

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

.frame {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 auto;
}

.panel {
    background-color: #1A1A1A;
    border: 2px solid #0874ee;
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
    position: relative;
}

body:not(.dark-theme) .panel {
    background-color: #ffffff;
    border-color: #0874ee;
}

.panel-title {
    position: absolute;
    top: -15px;
    left: 24px;
    background-color: #1A1A1A;
    color: #0874ee;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    border: 2px solid #0874ee;
}

body:not(.dark-theme) .panel-title {
    background-color: #ffffff;
}

.art {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: 300px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 60px !important;
}

.art img[src*="linux.gif"] {
    max-width: 90% !important;
    max-height: 280px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    position: relative !important;
    transform: translateX(0) !important;
}

/* Enlever les contours de toutes les images sauf le CV */
.section img,
.cv-container img,
.content-container img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Style spécifique pour l'image du CV dans le panel */
.panel .section img[src*="CV_Fabien_Hage final.jpg"] {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border: 2px solid #0874ee !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(8, 116, 238, 0.3) !important;
    transition: all 0.3s ease !important;
}

.panel .section img[src*="CV_Fabien_Hage final.jpg"]:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(8, 116, 238, 0.5) !important;
}

/* Conteneur du CV pour s'adapter aux dimensions */
.panel .section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    min-height: auto !important;
}

.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.cv-btn {
    display: inline-block;
    background-color: #0874ee;
    color: #1A1A1A;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.cv-btn:hover {
    background-color: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

.fullscreen-btn {
    background-color: #007ACC;
    color: #ffffff;
    border: 2px solid #007ACC;
}

.fullscreen-btn:hover {
    background-color: transparent;
    color: #007ACC;
    box-shadow: 0 0 15px rgba(0, 124, 204, 0.5);
}

.download-btn {
    background-color: #0874ee;
    color: #1A1A1A;
    border: 2px solid #0874ee;
}

.download-btn:hover {
    background-color: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.5);
}

/* Section Atelier Pro */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #0874ee;
    font-size: 28px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.project-header {
    background: var(--header-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.project-header:hover {
    background: #333333;
}

.project-title {
    color: var(--primary-color);
    font-size: 16px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-icon {
    color: var(--primary-color);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.project-content {
    padding: 20px;
    display: none;
}

.project-card:not(.collapsed) .project-content {
    display: block;
}

.project-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 12px;
    align-items: flex-start;
}

.detail-row .label {
    color: var(--primary-color);
    font-weight: bold;
    min-width: 80px;
    margin-right: 10px;
    flex-shrink: 0;
}

.project-section {
    margin-bottom: 20px;
}

.project-section h3 {
    color: var(--primary-color);
    font-size: 14px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.project-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-section li {
    font-size: 11px;
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
}

.project-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 8px;
    top: 3px;
}

/* Section Epreuves */
.tab-container {
    background-color: #1A1A1A;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #0874ee;
}

body:not(.dark-theme) .tab-container {
    background-color: #ffffff;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    color: #0874ee;
    border: 2px solid #0874ee;
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.tab-btn:hover {
    background-color: rgba(8, 116, 238, 0.1);
    color: var(--link-color);
    border-color: var(--button-bg);
    box-shadow: 0 0 15px #0874ee;
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: #0874ee;
    color: #1A1A1A;
    border-color: #0874ee;
    box-shadow: 0 0 15px #0874ee;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

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

.synthesis-table {
    overflow-x: auto;
}

.synthesis-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

body:not(.dark-theme) .synthesis-table table {
    background-color: rgba(0, 0, 0, 0.05);
}

.synthesis-table th,
.synthesis-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(8, 116, 238, 0.3);
}

.synthesis-table th {
    background-color: #0874ee;
    color: #1A1A1A;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}

.synthesis-table tr:hover {
    background-color: rgba(8, 116, 238, 0.05);
}

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

.content-container {
    background-color: #2d2d2d;
    border: 3px solid #0874ee;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    min-height: 500px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2), 0 0 20px rgba(8, 116, 238, 0.1);
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

body:not(.dark-theme) .content-container {
    background-color: #ffffff;
}

.content-container h2 {
    color: #0874ee;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Section Veille Technologique */
.security-feeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feed-card {
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border: 2px solid #0874ee;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body:not(.dark-theme) .feed-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.feed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0874ee, #00D4FF, #0874ee);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8, 116, 238, 0.3);
}

.feed-card h3 {
    color: #0874ee;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
}

.feed-card p {
    font-size: 9px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.feed-link {
    display: inline-block;
    color: #00D4FF;
    text-decoration: none;
    font-size: 9px;
    padding: 8px 15px;
    border: 1px solid #00D4FF;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.feed-link:hover {
    background-color: #00D4FF;
    color: #0A0A0A;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.honeypot-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border-radius: 10px;
    border: 2px solid #00D4FF;
}

body:not(.dark-theme) .honeypot-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.honeypot-section h2 {
    color: #00D4FF;
    font-size: 18px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.honeypot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.honeypot-item {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00D4FF;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

body:not(.dark-theme) .honeypot-item {
    background: rgba(0, 212, 255, 0.05);
}

.honeypot-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.honeypot-item h4 {
    color: #0874ee;
    font-size: 11px;
    margin-bottom: 10px;
}

.honeypot-item p {
    font-size: 8px;
    line-height: 1.4;
    color: #C3C4C8;
}

body:not(.dark-theme) .honeypot-item p {
    color: #333333;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #0874ee;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Footer */
.site-footer {
    background-color: #1A1A1A;
    color: #C3C4C8;
    padding: 30px 0 0;
    font-family: 'Press Start 2P', cursive;
    border-top: 1px solid #333;
}

body:not(.dark-theme) .site-footer {
    background-color: #f8f9fa;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #0874ee;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #C3C4C8;
    text-decoration: none;
    font-size: 10px;
    transition: color 0.3s ease;
}

body:not(.dark-theme) .footer-section a {
    color: #333333;
}

.footer-section a:hover {
    color: #0874ee;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #333;
    margin-top: 20px;
}

body:not(.dark-theme) .footer-bottom {
    border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
    font-size: 10px;
    color: #888;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
        position: sticky;
    }
    
    .nav-links {
        gap: 8px;
        padding: 6px;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links a {
        font-size: 8px;
        padding: 6px 10px;
        text-align: center;
    }
    
    .theme-toggle {
        margin-top: 10px;
    }
    
    .section {
        padding: 120px 15px 30px;
    }
    
    .hero-section h1 {
        font-size: 20px;
    }
    
    .hero-section p {
        font-size: 10px;
    }
    
    .logo-img {
        max-width: 280px;
    }
    
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cv-card {
        padding: 20px;
    }
    
    .cv-title {
        font-size: 16px;
    }
    
    .cv-card h3 {
        font-size: 14px;
    }
    
    .cv-list li {
        font-size: 10px;
    }
    
    .frame {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .panel {
        min-height: auto;
        padding: 16px;
    }
    
    .panel-title {
        font-size: 10px;
        top: -10px;
        left: 16px;
    }
    
    .cv-btn {
        font-size: 8px;
        padding: 8px 16px;
    }
    
    .projects {
        gap: 15px;
    }
    
    .project-header {
        padding: 12px 15px;
    }
    
    .project-title {
        font-size: 12px;
    }
    
    .toggle-icon {
        font-size: 10px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .detail-row {
        font-size: 9px;
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row .label {
        min-width: auto;
        margin-right: 0;
    }
    
    .project-section h3 {
        font-size: 11px;
    }
    
    .project-section li {
        font-size: 8px;
        padding-left: 10px;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        font-size: 8px;
        padding: 8px 15px;
    }
    
    .synthesis-table {
        font-size: 10px;
    }
    
    .synthesis-table th,
    .synthesis-table td {
        padding: 10px 8px;
    }
    
    .security-feeds {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feed-card {
        padding: 20px;
    }
    
    .feed-card h3 {
        font-size: 12px;
    }
    
    .feed-card p {
        font-size: 8px;
    }
    
    .honeypot-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .honeypot-item {
        padding: 15px;
    }
    
    .honeypot-item h4 {
        font-size: 10px;
    }
    
    .honeypot-item p {
        font-size: 7px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 12px;
    }
    
    .footer-section a {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px;
        padding: 6px;
    }
    
    .nav-links a {
        font-size: 7px;
        padding: 5px 8px;
    }
    
    .hero-section h1 {
        font-size: 20px;
    }
    
    .logo-img {
        max-width: 400px;
    }
    
    .cv-btn {
        font-size: 7px;
        padding: 6px 12px;
    }
    
    .panel-title {
        font-size: 8px;
    }
    
    .project-title {
        font-size: 12px;
    }
    
    .detail-row {
        font-size: 9px;
    }
    
    .project-section h3 {
        font-size: 11px;
    }
    
    .project-section li {
        font-size: 8px;
    }
}

@media (max-width: 320px) {
    .nav-links a {
        font-size: 6px;
        padding: 4px 6px;
    }
    
    .cv-btn {
        font-size: 6px;
        padding: 5px 10px;
    }
    
    .panel-title {
        font-size: 7px;
    }
    
    .logo-img {
        max-width: 300px;
    }
    
    /* Styles spécifiques pour le CV sur mobile */
    .panel .section img[src*="CV_Fabien_Hage final.jpg"] {
        max-width: 95% !important;
        height: auto !important;
        border: 1px solid #0874ee !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 10px rgba(8, 116, 238, 0.2) !important;
    }
    
    .panel .section img[src*="CV_Fabien_Hage final.jpg"]:hover {
        transform: scale(1.01) !important;
        box-shadow: 0 3px 15px rgba(8, 116, 238, 0.3) !important;
    }
}

/* Styles pour la section About Me */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.about-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #0874ee;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body:not(.dark-theme) .about-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #0874ee;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8, 116, 238, 0.3);
    border-color: #00ff43;
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.about-card h2 {
    color: #0874ee;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-card p {
    color: #C3C4C8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
    font-family: 'Press Start 2P', cursive;
}

body:not(.dark-theme) .about-card h2 {
    color: #0874ee;
}

body:not(.dark-theme) .about-card p {
    color: #333333;
}

/* Responsive pour About Me */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .about-card {
        padding: 20px;
    }
    
    .about-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .about-card h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .about-card p {
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 15px;
    }
    
    .about-icon {
        font-size: 32px;
    }
    
    .about-card h2 {
        font-size: 12px;
    }
    
    .about-card p {
        font-size: 11px;
    }
}

/* ==========================================
   BIBLIOTHÈQUE ANCIENNE - Reliures dorées
   ========================================== */

/* Étagère en bois sombre */
.ancient-library {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(180deg, 
        #3d2914 0%, 
        #4a3728 10%,
        #5c4033 30%,
        #6b4423 50%,
        #5c4033 70%,
        #4a3728 90%,
        #3d2914 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 
        inset 0 10px 30px rgba(0,0,0,0.5),
        0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    min-height: 400px;
    margin: 20px;
}

.ancient-library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.6) 0%,
        transparent 100%);
    border-radius: 10px 10px 0 0;
}

/* Livre relié - Style ancien avec dorures */
.ancient-book {
    width: 90px;
    height: 350px;
    background: linear-gradient(90deg,
        #1a1a1a 0%,
        #2d2d2d 5%,
        #1a1a1a 10%,
        #0d0d0d 90%,
        #1a1a1a 95%,
        #0d0d0d 100%);
    border-radius: 3px 8px 8px 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        -3px 0 10px rgba(0,0,0,0.5),
        3px 0 10px rgba(0,0,0,0.3),
        0 10px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 8px 20px 8px;
    transform-origin: bottom center;
}

/* Dorures décoratives en haut */
.ancient-book::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 25px;
    border: 2px solid #0874ee;
    border-radius: 2px;
    background: linear-gradient(180deg,
        transparent 40%,
        rgba(201,162,39,0.1) 100%);
}

/* Icône dorée */
.book-icon-gold {
    font-size: 32px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Titre doré sur la tranche */
.book-title-gold {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #0874ee;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.8),
        0 0 10px rgba(201,162,39,0.3);
    transform: rotate(180deg);
    margin: auto 0;
    line-height: 1.3;
    text-align: center;
}

/* Numéro romain doré en bas */
.book-roman {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #0874ee;
    margin-top: auto;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 0 15px rgba(201,162,39,0.4);
    position: relative;
}

.book-roman::before,
.book-roman::after {
    content: '🌿';
    position: absolute;
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.book-roman::before {
    left: -20px;
}

.book-roman::after {
    right: -20px;
}

/* Animation au survol */
.ancient-book:hover {
    transform: translateY(-25px) scale(1.02);
    box-shadow: 
        -5px 5px 20px rgba(0,0,0,0.6),
        5px 5px 20px rgba(0,0,0,0.4),
        0 0 30px rgba(201,162,39,0.2);
    z-index: 10;
}

.ancient-book:hover .book-title-gold {
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.8),
        0 0 20px rgba(201,162,39,0.6);
}

/* Petites variations d'inclinaison */
.ancient-book:nth-child(odd) {
    transform: rotate(0deg);
}

.ancient-book:nth-child(even) {
    transform: rotate(0deg);
}

.ancient-book:hover:nth-child(odd),
.ancient-book:hover:nth-child(even) {
    transform: translateY(-25px) scale(1.02) rotate(0deg);
}

/* Stats */
.biblio-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border: 2px solid #0874ee;
    border-radius: 15px;
    padding: 25px 40px;
    min-width: 150px;
    box-shadow: 0 8px 32px rgba(8, 116, 238, 0.3);
    backdrop-filter: blur(10px);
}

body:not(.dark-theme) .stat-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 8px 32px rgba(8, 116, 238, 0.15);
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: #0874ee;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 0 0 20px rgba(8, 116, 238, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(8, 116, 238, 0.6); }
    to { text-shadow: 0 0 30px rgba(8, 116, 238, 0.9), 0 0 40px rgba(0, 212, 255, 0.6); }
}

.stat-label {
    display: block;
    font-size: 9px;
    color: #C3C4C8;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body:not(.dark-theme) .stat-label {
    color: #666666;
}

/* Contrôles */
.biblio-controls {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(45, 45, 45, 0.95));
    border: 2px solid #0874ee;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(8, 116, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.biblio-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

body:not(.dark-theme) .biblio-controls {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
}

/* Barre de recherche */
.search-bar {
    margin-bottom: 35px;
}

.biblio-search-input {
    width: 100%;
    padding: 20px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background: rgba(26, 26, 26, 0.8);
    color: #C3C4C8;
    border: 2px solid #0874ee;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.biblio-search-input::placeholder {
    color: #666;
    opacity: 0.7;
}

body:not(.dark-theme) .biblio-search-input {
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
}

/* Boutons de filtre */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    color: #0874ee;
    border: 2px solid #0874ee;
    padding: 12px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: rgba(8, 116, 238, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(8, 116, 238, 0.3);
}

.filter-btn.active {
    background: #0874ee;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

/* Container de la bibliothèque */
.library-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

/* Étagère moderne - Style cyberpunk/tech */
.bookshelf {
    position: relative;
    background: linear-gradient(180deg, 
        rgba(40, 40, 45, 0.95) 0%, 
        rgba(26, 26, 26, 0.98) 50%,
        rgba(13, 17, 17, 1) 100%);
    border: 2px solid #0874ee;
    border-radius: 12px;
    padding: 40px 30px 30px;
    margin-bottom: 60px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(8, 116, 238, 0.2);
    overflow: hidden;
}

.bookshelf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0874ee, #00D4FF, #00ff43, #0874ee);
    animation: techGlow 3s ease-in-out infinite;
}

@keyframes techGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Effet de lueur pulsante sur l'étagère */
.bookshelf::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    height: 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), transparent);
    border-radius: 50%;
    filter: blur(15px);
}

/* Effet de profondeur 3D */
.bookshelf .shelf-plank {
    position: absolute;
    bottom: 30px;
    left: 15px;
    right: 15px;
    height: 12px;
    background: linear-gradient(180deg, 
        rgba(100, 100, 105, 0.8) 0%, 
        rgba(70, 70, 75, 0.9) 50%,
        rgba(50, 50, 55, 1) 100%);
    border-radius: 6px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.5),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 0 1px rgba(0,0,0,0.2);
}

body:not(.dark-theme) .bookshelf .shelf-plank {
    background: linear-gradient(180deg, 
        rgba(200, 200, 205, 0.9) 0%, 
        rgba(180, 180, 185, 1) 50%,
        rgba(160, 160, 165, 1) 100%);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        inset 0 1px 2px rgba(255,255,255,0.5),
        0 0 0 1px rgba(0,0,0,0.08);
}

/* En-tête de l'étagère - moderne */
.shelf-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.shelf-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.shelf-title {
    flex: 1;
}

.shelf-title h3 {
    font-size: 11px;
    color: #C3C4C8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3px;
    font-weight: 400;
}

body:not(.dark-theme) .shelf-title h3 {
    color: #666666;
}

.shelf-count {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

body:not(.dark-theme) .shelf-count {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

/* Rangée de livres */
.books-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    min-height: 180px;
    padding: 0 10px 30px 10px;
    position: relative;
    z-index: 2;
}

/* Livre style adapté au thème du site */
.book {
    min-height: 160px;
    max-height: 220px;
    border-radius: 2px 6px 6px 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 10px 15px 8px;
    transform-origin: bottom center;
    animation: bookAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1111 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #C3C4C8;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

/* Livres droits - suppression complète des rotations */
.book:nth-child(3n+1) { transform: none !important; }
.book:nth-child(3n+2) { transform: none !important; }
.book:nth-child(3n+3) { transform: none !important; }
.book:nth-child(5n+1) { transform: none !important; }
.book:nth-child(7n+3) { transform: none !important; }
.book:nth-child(11n+5) { transform: none !important; }
.book { transform: none !important; }

/* Animation d'apparition des livres */
@keyframes bookAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Délai d'animation progressif pour chaque livre */
.book:nth-child(1) { animation-delay: 0.05s; }
.book:nth-child(2) { animation-delay: 0.1s; }
.book:nth-child(3) { animation-delay: 0.15s; }
.book:nth-child(4) { animation-delay: 0.2s; }
.book:nth-child(5) { animation-delay: 0.25s; }
.book:nth-child(6) { animation-delay: 0.3s; }
.book:nth-child(7) { animation-delay: 0.35s; }
.book:nth-child(8) { animation-delay: 0.4s; }
.book:nth-child(9) { animation-delay: 0.45s; }
.book:nth-child(10) { animation-delay: 0.5s; }
.book:nth-child(n+11) { animation-delay: 0.55s; }

/* Tranche supérieure du livre (pages en haut) */
.book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    right: 6px;
    height: 4px;
    background: repeating-linear-gradient(
        0deg,
        #f0f0f0 0px,
        #f0f0f0 1px,
        #d0d0d0 1px,
        #d0d0d0 2px
    );
    border-radius: 2px 6px 0 0;
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.1);
}

/* Tranche inférieure du livre (pages en bas) */
.book .book-bottom {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 6px;
    height: 4px;
    background: repeating-linear-gradient(
        0deg,
        #f0f0f0 0px,
        #f0f0f0 1px,
        #d0d0d0 1px,
        #d0d0d0 2px
    );
    border-radius: 0 0 6px 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Lumière et ombre sur la tranche */
.book-spine-title::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.5) 0%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.4) 100%);
    border-radius: 2px 0 0 2px;
}

/* Lisière de la couverture */
.book::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0) 10%,
        rgba(0,0,0,0) 70%,
        rgba(0,0,0,0.15) 73%,
        rgba(0,0,0,0) 75%,
        rgba(0,0,0,0.3) 100%);
    border-radius: 3px 8px 8px 3px;
    pointer-events: none;
}

/* Effet de brillance au survol - utilise .book-shimmer */
.book .book-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.book:hover .book-shimmer {
    opacity: 0.3;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Animation spectaculaire au survol - style cyberpunk */
.book:hover {
    transform: translateY(-35px) scale(1.15) rotate(-3deg);
    z-index: 100;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(8, 116, 238, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.7);
    border-color: #00D4FF;
    color: #00ff43;
    text-shadow: 0 0 10px rgba(0, 255, 67, 0.6);
}

/* Animation de flottement subtile */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.book:hover {
    animation: bookHover 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               float 3s ease-in-out infinite 0.5s;
    transform: translateY(-35px) scale(1.15) !important;
    box-shadow: 
        -2px 0 8px rgba(0, 212, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes bookHover {
    to {
        transform: translateY(-35px) scale(1.15) !important;
    }
}

/* Tranche du livre avec couleur - recouvre les pages sur la gauche */
.book.spine-reseau { 
    background-image: 
        /* Couverture/spine */
        linear-gradient(90deg, #0874ee 0%, #00D4FF 75%, transparent 75%),
        /* Pages */
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, #1a1a1a 1px, #1a1a1a 2px) !important;
    background-size: 100% 100%, 12px 100% !important;
    background-position: 0 0, right 6px center !important;
    background-repeat: no-repeat, no-repeat !important;
    width: 52px;
    transform: none !important;
}
.book.spine-cyber { 
    background-image: 
        linear-gradient(90deg, #ff0040 0%, #ff6b6b 75%, transparent 75%),
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, #1a1a1a 1px, #1a1a1a 2px) !important;
    background-size: 100% 100%, 12px 100% !important;
    background-position: 0 0, right 6px center !important;
    background-repeat: no-repeat, no-repeat !important;
    width: 54px;
    transform: none !important;
}
.book.spine-docker { 
    background-image: 
        linear-gradient(90deg, #00D4FF 0%, #0874ee 75%, transparent 75%),
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, #1a1a1a 1px, #1a1a1a 2px) !important;
    background-size: 100% 100%, 12px 100% !important;
    background-position: 0 0, right 6px center !important;
    background-repeat: no-repeat, no-repeat !important;
    width: 48px;
    transform: none !important;
}
.book.spine-linux { 
    background-image: 
        linear-gradient(90deg, #00ff43 0%, #00D4FF 75%, transparent 75%),
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, #1a1a1a 1px, #1a1a1a 2px) !important;
    background-size: 100% 100%, 12px 100% !important;
    background-position: 0 0, right 6px center !important;
    width: 50px;
    transform: none !important;
}
.book.spine-powershell { 
    background-image: 
        linear-gradient(90deg, #0874ee 0%, #00D4FF 75%, transparent 75%),
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, #1a1a1a 1px, #1a1a1a 2px) !important;
    background-size: 100% 100%, 12px 100% !important;
    background-position: 0 0, right 6px center !important;
    width: 58px;
    transform: none !important;
}
.book.spine-bts { 
    background-image: 
        linear-gradient(90deg, #00ff43 0%, #0874ee 75%, transparent 75%),
        repeating-linear-gradient(90deg, #2a2a2a 0px, #2a2a2a 1px, #1a1a1a 1px, #1a1a1a 2px) !important;
    background-size: 100% 100%, 12px 100% !important;
    background-position: 0 0, right 6px center !important;
    width: 46px;
    transform: none !important;
}

/* Couleurs de texte adaptées au thème du site */
.book.spine-reseau .book-spine-title,
.book.spine-cyber .book-spine-title,
.book.spine-docker .book-spine-title,
.book.spine-powershell .book-spine-title,
.book.spine-windows .book-spine-title,
.book.spine-linux .book-spine-title,
.book.spine-bts .book-spine-title,
.book.spine-supervision .book-spine-title {
    color: #C3C4C8;
    text-shadow: 0 1px 2px rgba(0, 212, 255, 0.3);
}

.book-spine-title {
    color: #C3C4C8 !important;
    text-shadow: 0 1px 2px rgba(0, 212, 255, 0.3);
}

.book.spine-windows .book-spine-title,
.book.spine-linux .book-spine-title,
.book.spine-supervision .book-spine-title,
.book.spine-bts .book-spine-title {
    color: #2D2D2D;
    text-shadow: none;
}

/* Titre sur la tranche - typographie éditoriale élégante */
.book-spine-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    max-height: 140px;
    overflow: hidden;
    line-height: 1.2;
    transform: rotate(180deg);
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    color: #C3C4C8;
    text-transform: uppercase;
    padding: 0 4px;
}

/* Styles de typographie variés */
.book:nth-child(4n+1) .book-spine-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 10px;
}

.book:nth-child(4n+2) .book-spine-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 9px;
    text-transform: none;
}

.book:nth-child(4n+3) .book-spine-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 11px;
    text-transform: none;
}

.book:nth-child(4n+4) .book-spine-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 8px;
}

/* Icône sur la tranche */
.book-spine-icon {
    font-size: 16px;
    margin-bottom: 8px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Hauteurs variables pour effet naturel */
.book:nth-child(5n+1) { height: 165px; }
.book:nth-child(5n+2) { height: 140px; }
.book:nth-child(5n+3) { height: 155px; }
.book:nth-child(5n+4) { height: 175px; }
.book:nth-child(5n+5) { height: 145px; }

/* Largeurs variables supplémentaires */
.book:nth-child(3n+1) { width: 46px; }
.book:nth-child(3n+2) { width: 52px; }
.book:nth-child(3n+3) { width: 44px; }
.book:nth-child(7n+2) { width: 56px; }
.book:nth-child(11n+5) { width: 40px; }

/* Effet de reliure */
.book-spine-title::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255,255,255,0.2);
    transform: translateX(-50%);
}

/* Modal Livre - Animations spectaculaires */
.book-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: modalBackdropAppear 0.4s ease;
}

@keyframes modalBackdropAppear {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.book-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border: 3px solid #0874ee;
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(8, 116, 238, 0.5),
        0 0 60px rgba(8, 116, 238, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: modalContentAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform-style: preserve-3d;
}

@keyframes modalContentAppear {
    0% { 
        opacity: 0;
        transform: translateY(100px) rotateX(-20deg) scale(0.8);
    }
    40% {
        transform: translateY(-20px) rotateX(10deg) scale(1.05);
    }
    70% {
        transform: translateY(10px) rotateX(-5deg) scale(0.98);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

/* Effet de lueur animée sur le modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        #0874ee, #00D4FF, #0874ee, #00D4FF);
    border-radius: 23px;
    z-index: -1;
    opacity: 0.5;
    animation: modalBorderGlow 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes modalBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body:not(.dark-theme) .modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #0874ee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #00D4FF;
    transform: scale(1.3) rotate(180deg);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* Icône du modal avec animation */
.modal-book-icon {
    font-size: 80px;
    margin-bottom: 25px;
    filter: drop-shadow(0 15px 30px rgba(8, 116, 238, 0.4));
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards,
               iconPulse 2s ease-in-out infinite 1s;
    display: inline-block;
}

@keyframes iconBounce {
    0% { 
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 15px 30px rgba(8, 116, 238, 0.4));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 20px 40px rgba(8, 116, 238, 0.6));
    }
}

/* Titre avec effet de brillance */
.modal-content h3 {
    font-size: 14px;
    color: #0874ee;
    margin-bottom: 20px;
    line-height: 1.6;
    animation: titleSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
    text-shadow: 0 0 30px rgba(8, 116, 238, 0.3);
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body:not(.dark-theme) .modal-content h3 {
    color: #0874ee;
}

/* Description avec fade in */
.modal-content p {
    font-size: 11px;
    color: #C3C4C8;
    line-height: 1.8;
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease 0.5s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body:not(.dark-theme) .modal-content p {
    color: #555555;
}

/* Métadonnées avec animation */
.modal-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease 0.6s backwards;
}

.modal-meta span {
    font-size: 9px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(8, 116, 238, 0.15);
    color: #0874ee;
    border: 1px solid rgba(8, 116, 238, 0.3);
    transition: all 0.3s ease;
}

.modal-meta span:hover {
    background: rgba(8, 116, 238, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 116, 238, 0.2);
}

/* Boutons avec animations avancées */
.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.5s ease 0.7s backwards;
}

.modal-btn {
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Press Start 2P', cursive;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: left 0.5s ease;
}

.modal-btn:hover::before {
    left: 100%;
}

.view-btn-modal {
    background: #0874ee;
    border-color: #0874ee;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(8, 116, 238, 0.3);
}

.view-btn-modal:hover {
    background: transparent;
    color: #0874ee;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(8, 116, 238, 0.5);
}

.download-btn-modal {
    background: transparent;
    border-color: #00D4FF;
    color: #00D4FF;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.download-btn-modal:hover {
    background: #00D4FF;
    color: #1A1A1A;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border: 3px dashed #0874ee;
    border-radius: 20px;
    margin-top: 30px;
}

body:not(.dark-theme) .no-results {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.no-results p {
    font-size: 14px;
    color: #C3C4C8;
}

body:not(.dark-theme) .no-results p {
    color: #666666;
}

/* ==========================================
   LIVRE OUVERT - Pages et Navigation
   ========================================== */

.open-book {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1111 100%);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #0874ee;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(8, 116, 238, 0.3),
        inset 0 1px 0 rgba(0, 212, 255, 0.2);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.open-book::before {
    content: '📚 BIBLIOTHÈQUE - BTS SIO SISR';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #0874ee;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
    z-index: 10;
}

.book-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    background: #f5f0e6;
    border-radius: 8px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 0 100px rgba(139,69,19,0.1);
    overflow: hidden;
    min-height: 500px;
}

/* Pages du livre */
.book-page {
    flex: 1;
    background: linear-gradient(90deg, 
        #f5f0e6 0%,
        #faf8f3 5%,
        #f5f0e6 10%,
        #f9f6f0 90%,
        #e8e0d0 95%,
        #d0c8b8 100%);
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.left-page {
    border-right: 2px solid #0874ee;
    box-shadow: inset -10px 0 30px rgba(0,0,0,0.1);
}

.right-page {
    border-left: 2px solid #0874ee;
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.1);
}

/* Numéro de page */
.page-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #0874ee;
    padding-bottom: 10px;
}

.page-number {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 12px;
    color: #8b4513;
    font-style: italic;
}

/* Contenu de la page */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Carte document - style cyberpunk/tech */
.document-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(13, 17, 17, 0.98));
    border: 2px solid #0874ee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(8, 116, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
    animation: scan 3s linear infinite;
}

.document-card .doc-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(8, 116, 238, 0.4));
    color: #00D4FF;
}

.document-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #0874ee;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
}

.document-card .doc-desc {
    font-size: 10px;
    color: #C3C4C8;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Press Start 2P', cursive;
}

.document-card .doc-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 8px;
    color: #00D4FF;
    font-style: italic;
    font-family: 'Press Start 2P', cursive;
}

.document-card .doc-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.doc-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0874ee 0%, #b8941f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(201,162,39,0.3);
}

.doc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201,162,39,0.5);
    background: linear-gradient(135deg, #d4af37 0%, #0874ee 100%);
}

/* Section Mémo */
.memo-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d0 100%);
    border: 1px dashed #0874ee;
    border-radius: 8px;
    padding: 15px;
    margin-top: auto;
}

/* Page vide */
.empty-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    color: #a09080;
    font-style: italic;
}

/* ==========================================
   SOMMAIRE DU LIVRE
   ========================================== */

.sommaire-title {
    text-align: center;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sommaire-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.sommaire-title h2 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c1810;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.sommaire-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0874ee, transparent);
    margin: 15px 0;
}

.sommaire-memo {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 14px;
    color: #5a4a3a;
    font-style: italic;
    line-height: 1.6;
    max-width: 280px;
    text-align: center;
}

.sommaire-count {
    margin-top: 20px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #0874ee 0%, #b8941f 100%);
    color: #1a1a1a;
    border-radius: 20px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(201,162,39,0.3);
}

/* Liste du sommaire */
.sommaire-header {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #C3C4C8;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #0874ee;
    margin-bottom: 20px;
}

.sommaire-docs-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.sommaire-docs-list::-webkit-scrollbar {
    width: 4px;
}

.sommaire-docs-list::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
}

.sommaire-docs-list::-webkit-scrollbar-thumb {
    background: #0874ee;
    border-radius: 2px;
}

/* Item de document dans le sommaire */
.sommaire-document-item {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sommaire-document-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #0874ee;
    transform: translateX(5px);
    box-shadow: 0 3px 12px rgba(0, 212, 255, 0.2);
}

.sommaire-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.sommaire-doc-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sommaire-doc-page {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 11px;
    color: #0874ee;
    font-weight: 600;
    background: rgba(0, 212, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sommaire-doc-content {
    padding: 15px;
}

.sommaire-doc-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #C3C4C8;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sommaire-doc-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #C3C4C8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sommaire-doc-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
}

.sommaire-doc-type {
    font-family: 'Crimson Text', Georgia, serif;
    color: #C3C4C8;
    font-style: italic;
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

.sommaire-doc-category {
    font-family: 'Inter', sans-serif;
    color: #C3C4C8;
    font-weight: 500;
}

.sommaire-doc-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #0874ee;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sommaire-document-item:hover .sommaire-doc-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

/* Footer du sommaire */
.sommaire-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.sommaire-stats {
    display: flex;
    gap: 15px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 12px;
    color: #C3C4C8;
}

.start-reading-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0874ee 0%, #00D4FF 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

.start-reading-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

.start-reading-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Styles pour compatibilité */
.sommaire-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sommaire-item:hover {
    background: rgba(201,162,39,0.1);
    border-color: #0874ee;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sommaire-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sommaire-item-title {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #2c1810;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sommaire-item-page {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 11px;
    color: #8b4513;
    font-style: italic;
    flex-shrink: 0;
}

.memo-section h4 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 13px;
    color: #8b4513;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.memo-text {
    font-size: 11px;
    color: #C3C4C8;
    font-style: italic;
    line-height: 1.5;
}

/* Reliure centrale */
.book-spine-center {
    width: 40px;
    background: linear-gradient(90deg,
        #1a1a1a 0%,
        #0874ee 20%,
        #00D4FF 40%,
        #0874ee 60%,
        #1a1a1a 80%,
        #0d1111 100%);
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 0 10px rgba(0, 212, 255, 0.3);
}

.spine-shadow {
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 212, 255, 0.3) 50%,
        transparent 100%);
    transform: translateX(-50%);
}

/* Navigation */
.book-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50px;
}

.nav-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #0874ee 0%, #00D4FF 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 25px;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 14px;
    color: #0874ee;
    letter-spacing: 1px;
    min-width: 120px;
    text-align: center;
}

/* Bouton fermer */
.close-book-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #0874ee;
    border-radius: 20px;
    color: #0874ee;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-book-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* Responsive Bibliothèque Ancienne */
@media (max-width: 1200px) {
    .ancient-library {
        gap: 2px;
        padding: 30px 15px 15px 15px;
    }
    
    .ancient-book {
        width: 70px;
        height: 280px;
        padding: 25px 6px 15px 6px;
    }
    
    .book-icon-gold {
        font-size: 24px;
    }
    
    .book-title-gold {
        font-size: 10px;
    }
    
    .book-roman {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .ancient-library {
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px 10px 10px 10px;
        min-height: 300px;
    }
    
    .ancient-book {
        width: 55px;
        height: 220px;
        padding: 20px 4px 12px 4px;
    }
    
    .book-icon-gold {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .book-title-gold {
        font-size: 8px;
        letter-spacing: 1px;
    }
    
    .book-roman {
        font-size: 16px;
    }
    
    .ancient-book::before {
        height: 18px;
        top: 10px;
    }
    
    /* Livre ouvert responsive */
    .open-book {
        padding: 20px;
    }
    
    .open-book::before {
        font-size: 10px;
        top: 5px;
    }
    
    .book-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .book-page {
        min-height: 300px;
    }
    
    .book-spine-center {
        width: 100%;
        height: 30px;
    }
    
    .spine-shadow {
        left: 10%;
        right: 10%;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
    }
    
    .book-navigation {
        flex-direction: column;
        gap: 15px;
        border-radius: 15px;
    }
    
    .close-book-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 15px;
    }
    
    .biblio-controls {
        padding: 25px;
    }
    
    .filter-btn {
        font-size: 8px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 28px;
    }
    
    .ancient-library {
        gap: 4px;
        padding: 15px 8px 8px 8px;
    }
    
    .ancient-book {
        width: 45px;
        height: 180px;
        padding: 15px 3px 10px 3px;
    }
    
    .book-icon-gold {
        font-size: 14px;
    }
    
    .book-title-gold {
        font-size: 7px;
    }
    
    .book-roman {
        font-size: 14px;
    }
    
    .book-roman::before,
    .book-roman::after {
        display: none;
    }
    
    .book-page {
        padding: 25px 15px;
        min-height: 250px;
    }
    
    .document-card {
        padding: 15px;
    }
    
    .document-card .doc-icon {
        font-size: 32px;
    }
    
    .document-card h3 {
        font-size: 14px;
    }
    
    .doc-btn {
        padding: 8px 15px;
        font-size: 10px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   STYLES BIBLIOTHÈQUE - Importés depuis bibliotheque-standalone.html
   ========================================== */

/* Styles pour thème clair */
body:not(.dark-theme) .hero-section h1 {
    color: #0874ee;
    text-shadow: 0 0 20px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .hero-section p {
    color: #333333;
}

body:not(.dark-theme) .stat-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 8px 32px rgba(8, 116, 238, 0.15);
}

body:not(.dark-theme) .stat-number {
    color: #0874ee;
}

body:not(.dark-theme) .stat-label {
    color: #666666;
}

body:not(.dark-theme) .ancient-library {
    background: linear-gradient(180deg, 
        #f5f5f5 0%, 
        #e8e8e8 10%,
        #dcdcdc 30%,
        #d0d0d0 50%,
        #dcdcdc 70%,
        #e8e8e8 90%,
        #f5f5f5 100%);
    box-shadow: 
        inset 0 10px 30px rgba(0,0,0,0.1),
        0 20px 60px rgba(0,0,0,0.1);
}

body:not(.dark-theme) .ancient-book {
    background: linear-gradient(90deg,
        #ffffff 0%,
        #f8f9fa 5%,
        #ffffff 10%,
        #e9ecef 90%,
        #f8f9fa 95%,
        #e9ecef 100%);
    box-shadow: 
        -3px 0 10px rgba(0,0,0,0.1),
        3px 0 10px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.1);
}

body:not(.dark-theme) .ancient-book::before {
    border-color: #0874ee;
    background: linear-gradient(180deg,
        transparent 40%,
        rgba(8, 116, 238, 0.1) 100%);
}

body:not(.dark-theme) .book-title-gold {
    color: #0874ee;
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.3),
        0 0 10px rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .book-roman {
    color: #0874ee;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        0 0 15px rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .ancient-book:hover {
    box-shadow: 
        -5px 5px 20px rgba(0,0,0,0.2),
        5px 5px 20px rgba(0,0,0,0.1),
        0 0 30px rgba(8, 116, 238, 0.2);
}

body:not(.dark-theme) .ancient-book:hover .book-title-gold {
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.3),
        0 0 20px rgba(8, 116, 238, 0.5);
}

body:not(.dark-theme) .open-book {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(8, 116, 238, 0.2),
        inset 0 1px 0 rgba(8, 116, 238, 0.1);
}

body:not(.dark-theme) .book-container {
    background: #ffffff;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.05),
        0 10px 40px rgba(0,0,0,0.1);
}

body:not(.dark-theme) .book-page {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
    border-color: rgba(8, 116, 238, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

body:not(.dark-theme) .document-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
    border-color: #0874ee;
    box-shadow: 0 4px 15px rgba(8, 116, 238, 0.15);
}

body:not(.dark-theme) .document-card h3 {
    color: #0874ee;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .document-card .doc-desc {
    color: #333333;
}

body:not(.dark-theme) .document-card .doc-meta {
    color: #0874ee;
}

body:not(.dark-theme) .doc-btn {
    background-color: #0874ee;
    color: #ffffff;
}

body:not(.dark-theme) .doc-btn:hover {
    background-color: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .book-navigation {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .nav-btn {
    background: #0874ee;
    color: #ffffff;
}

body:not(.dark-theme) .nav-btn:hover:not(:disabled) {
    background: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .page-indicator {
    color: #0874ee;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .close-book-btn {
    background: #0874ee;
    color: #ffffff;
}

body:not(.dark-theme) .close-book-btn:hover {
    background: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .page-number {
    color: #0874ee;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .memo-section h4 {
    color: #0874ee;
}

body:not(.dark-theme) .memo-text {
    color: #333333;
}

body:not(.dark-theme) .sommaire-title h2 {
    color: #0874ee;
    text-shadow: 0 0 15px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .sommaire-memo {
    color: #333333;
}

body:not(.dark-theme) .sommaire-header {
    color: #0874ee;
    text-shadow: 0 0 15px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .sommaire-document-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .sommaire-document-item:hover {
    background: rgba(8, 116, 238, 0.1);
}

body:not(.dark-theme) .sommaire-doc-title {
    color: #0874ee;
}

body:not(.dark-theme) .sommaire-doc-desc {
    color: #333333;
}

body:not(.dark-theme) .sommaire-doc-meta {
    color: #0874ee;
}

body:not(.dark-theme) .sommaire-doc-arrow {
    color: #0874ee;
}

body:not(.dark-theme) .sommaire-stats {
    color: #333333;
}

body:not(.dark-theme) .start-reading-btn {
    background: #0874ee;
    color: #ffffff;
}

body:not(.dark-theme) .start-reading-btn:hover:not(:disabled) {
    background: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.4);
}

body:not(.dark-theme) .empty-page {
    color: #999;
}

body:not(.dark-theme) .no-results p {
    color: #666666;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border-radius: 10px;
    border: 2px solid #0874ee;
}

body:not(.dark-theme) .hero-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.hero-section h1 {
    color: #0874ee;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(8, 116, 238, 0.8);
}

.hero-section p {
    font-size: 12px;
    line-height: 1.6;
    color: #C3C4C8;
}

/* ==========================================
   BIBLIOTHÈQUE ANCIENNE - Reliures dorées
   ========================================== */

/* Étagère moderne - Style portfolio-unique */
.ancient-library {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    padding: 40px 20px 35px 20px;
    background: #1A1A1A;
    border: 2px solid #0874ee;
    border-radius: 10px 10px 0 0;
    box-shadow: 
        inset 0 10px 30px rgba(0,0,0,0.5),
        0 20px 60px rgba(0,0,0,0.4),
        0 0 40px rgba(8, 116, 238, 0.2);
    position: relative;
    min-height: 400px;
    margin: 20px;
}

.ancient-library::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0874ee, #00D4FF, #00ff43, #0874ee);
    animation: techGlow 3s ease-in-out infinite;
    border-radius: 10px 10px 0 0;
}

@keyframes techGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Livre relié - Style portfolio-unique */
.ancient-book {
    width: 90px;
    height: 350px;
    background: #2A2A2A;
    border-radius: 3px 8px 8px 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        -3px 0 10px rgba(0,0,0,0.5),
        3px 0 10px rgba(0,0,0,0.3),
        0 10px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 8px 20px 8px;
    transform-origin: bottom center;
    transform: rotate(0deg);
}

/* Icône dorée */
.book-icon-gold {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Titre technologique sur la tranche */
.book-title-gold {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    font-weight: 700;
    color: #0874ee;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.8),
        0 0 10px rgba(8, 116, 238, 0.6);
    transform: rotate(180deg);
    margin: auto 0;
    line-height: 1.3;
    text-align: center;
}

/* Numéro romain technologique en bas */
.book-roman {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    font-weight: 700;
    color: #0874ee;
    margin-top: auto;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 0 15px rgba(8, 116, 238, 0.6);
    position: relative;
}

/* Animation au survol - style cyberpunk */
.ancient-book:hover {
    transform: translateY(-25px) scale(1.02);
    box-shadow: 
        -5px 5px 20px rgba(0,0,0,0.6),
        5px 5px 20px rgba(0,0,0,0.4),
        0 0 30px rgba(8, 116, 238, 0.4);
    z-index: 10;
}

.ancient-book:hover .book-title-gold {
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.8),
        0 0 20px rgba(8, 116, 238, 0.8);
}

/* Stats */
.biblio-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
    border: 2px solid #0874ee;
    border-radius: 15px;
    padding: 25px 40px;
    min-width: 150px;
    box-shadow: 0 8px 32px rgba(8, 116, 238, 0.3);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: #0874ee;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 0 0 20px rgba(8, 116, 238, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(8, 116, 238, 0.6); }
    to { text-shadow: 0 0 30px rgba(8, 116, 238, 0.9), 0 0 40px rgba(0, 212, 255, 0.6); }
}

.stat-label {
    display: block;
    font-size: 9px;
    color: #C3C4C8;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   LIVRE OUVERT - Pages et Navigation
   ========================================== */

.open-book {
    background: #1A1A1A;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #0874ee;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(8, 116, 238, 0.3),
        inset 0 1px 0 rgba(0, 212, 255, 0.2);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.open-book::before {
    content: '📚 BIBLIOTHÈQUE - BTS SIO SISR';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #0874ee;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
    z-index: 10;
}

/* Container du livre */
.book-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    background: #f5f0e6;
    border-radius: 8px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.1),
        0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    min-height: 500px;
}

/* Pages du livre */
.book-page {
    flex: 1;
    background: #1A1A1A;
    border: 1px solid rgba(8, 116, 238, 0.3);
    padding: 20px;
    min-height: 400px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.book-page.left-page {
    border-radius: 8px 0 0 8px;
    border-right: 2px solid #0874ee;
}

.book-page.right-page {
    border-radius: 0 8px 8px 0;
    border-left: 2px solid #0874ee;
}

/* Contenu de la page */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Carte document - style portfolio-unique */
.document-card {
    background: #1A1A1A;
    border: 2px solid #0874ee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(8, 116, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
    animation: scan 3s linear infinite;
}

.document-card .doc-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(8, 116, 238, 0.4));
    color: #00D4FF;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.document-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #0874ee;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
}

.document-card .doc-desc {
    font-size: 10px;
    color: #C3C4C8;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Press Start 2P', cursive;
}

.document-card .doc-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 8px;
    color: #00D4FF;
    font-style: italic;
    font-family: 'Press Start 2P', cursive;
}

.document-card .doc-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.doc-btn {
    display: inline-block;
    background-color: #0874ee;
    color: #1A1A1A;
    padding: 8px 12px;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.doc-btn:hover {
    background-color: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

/* Navigation du livre */
.book-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(8, 116, 238, 0.3);
}

.nav-btn {
    background: #0874ee;
    color: #1A1A1A;
    border: none;
    padding: 12px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-btn:hover:not(:disabled) {
    background: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #0874ee;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
}

.close-book-btn {
    display: block;
    margin: 20px auto 0;
    background: #0874ee;
    color: #1A1A1A;
    border: none;
    padding: 12px 24px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.close-book-btn:hover {
    background: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

/* En-tête de page */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(8, 116, 238, 0.3);
}

.page-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #0874ee;
    text-shadow: 0 0 5px rgba(8, 116, 238, 0.6);
}

/* Section mémo */
.memo-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(8, 116, 238, 0.3);
}

.memo-section h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #0874ee;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.memo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 7px;
    color: #C3C4C8;
    line-height: 1.4;
}

/* Sommaire */
.sommaire-title {
    text-align: center;
    padding: 30px 20px;
}

.sommaire-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(8, 116, 238, 0.4));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sommaire-title h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #0874ee;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(8, 116, 238, 0.6);
}

.sommaire-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0874ee, transparent);
    margin: 20px auto;
}

.sommaire-memo {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #C3C4C8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sommaire-count {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: #00ff43;
    text-shadow: 0 0 10px rgba(0, 255, 67, 0.6);
}

.sommaire-header {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #0874ee;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(8, 116, 238, 0.6);
}

.sommaire-docs-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.sommaire-document-item {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(8, 116, 238, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sommaire-document-item:hover {
    background: rgba(8, 116, 238, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 116, 238, 0.3);
}

.sommaire-doc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.sommaire-doc-icon {
    font-size: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sommaire-doc-page {
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    color: #00D4FF;
}

.sommaire-doc-content {
    flex: 1;
}

.sommaire-doc-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #0874ee;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sommaire-doc-desc {
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    color: #C3C4C8;
    line-height: 1.4;
    margin-bottom: 8px;
}

.sommaire-doc-meta {
    display: flex;
    gap: 10px;
    font-size: 6px;
    color: #00D4FF;
}

.sommaire-doc-arrow {
    font-size: 12px;
    color: #0874ee;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sommaire-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(8, 116, 238, 0.3);
}

.sommaire-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #C3C4C8;
}

.start-reading-btn {
    background: #0874ee;
    color: #1A1A1A;
    border: none;
    padding: 12px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.start-reading-btn:hover:not(:disabled) {
    background: transparent;
    color: #0874ee;
    box-shadow: 0 0 15px rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

.start-reading-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.empty-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 40px;
    color: #C3C4C8;
}

.no-results p {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

/* Styles pour la section Atelier Professionnel moderne */
.atelier-hero {
    text-align: center;
    padding: 60px 0 40px;
    background: rgba(8, 116, 238, 0.1);
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid rgba(8, 116, 238, 0.2);
}

.atelier-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: #0874ee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 36px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.atelier-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #C3C4C8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stats-bar .stat-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(8, 116, 238, 0.1);
    border: 1px solid rgba(8, 116, 238, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stats-bar .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(8, 116, 238, 0.15);
}

.stat-number {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #0874ee;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #C3C4C8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grille de projets moderne */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card.modern {
    background: #2a2a2a;
    border: 1px solid rgba(8, 116, 238, 0.2);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.project-card.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0874ee;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card.modern:hover::before {
    transform: scaleX(1);
}

.project-card.modern:hover {
    transform: translateY(-10px);
    border-color: rgba(8, 116, 238, 0.5);
}

.project-visual {
    background: rgba(8, 116, 238, 0.1);
    padding: 30px;
    text-align: center;
    position: relative;
}

.project-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.project-category {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #0874ee;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.project-body {
    padding: 25px;
}

.project-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #0874ee;
    margin-bottom: 10px;
}

.project-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #C3C4C8;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(8, 116, 238, 0.2);
    color: #0874ee;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(8, 116, 238, 0.3);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(8, 116, 238, 0.3);
    transform: scale(1.05);
}

.skills-list {
    margin-bottom: 25px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #C3C4C8;
}

.skill-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.action-btn.primary {
    background: #0874ee;
    color: white;
    border: 1px solid rgba(8, 116, 238, 0.5);
}

.action-btn.primary:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: transparent;
    color: #0874ee;
    border: 1px solid rgba(8, 116, 238, 0.5);
}

.action-btn.secondary:hover {
    background: rgba(8, 116, 238, 0.1);
    transform: translateY(-2px);
}

/* Barre de filtres */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    color: #C3C4C8;
    border: 1px solid rgba(8, 116, 238, 0.3);
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(8, 116, 238, 0.2);
    color: #0874ee;
    border-color: rgba(8, 116, 238, 0.5);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #0874ee;
    color: white;
    border-color: #0874ee;
}

/* Animations d'apparition */
.project-card.modern {
    animation: fadeInUp 0.6s ease-out;
}

.project-card.modern:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card.modern:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles mode clair pour la section Atelier Professionnel */
body:not(.dark-theme) .atelier-hero {
    background: rgba(8, 116, 238, 0.05);
    border-color: rgba(8, 116, 238, 0.1);
}

body:not(.dark-theme) .atelier-title {
    color: #0874ee;
}

body:not(.dark-theme) .atelier-subtitle {
    color: #666666;
}

body:not(.dark-theme) .stats-bar .stat-item {
    background: rgba(8, 116, 238, 0.05);
    border-color: rgba(8, 116, 238, 0.15);
}

body:not(.dark-theme) .stats-bar .stat-item:hover {
    background: rgba(8, 116, 238, 0.1);
}

body:not(.dark-theme) .stat-number {
    color: #0874ee;
}

body:not(.dark-theme) .stat-label {
    color: #666666;
}

body:not(.dark-theme) .project-card.modern {
    background: #ffffff;
    border-color: rgba(8, 116, 238, 0.2);
    color: #333333;
}

body:not(.dark-theme) .project-visual {
    background: rgba(8, 116, 238, 0.05);
}

body:not(.dark-theme) .project-title {
    color: #0874ee;
}

body:not(.dark-theme) .project-description {
    color: #666666;
}

body:not(.dark-theme) .tech-tag {
    background: rgba(8, 116, 238, 0.1);
    color: #0874ee;
    border-color: rgba(8, 116, 238, 0.2);
}

body:not(.dark-theme) .tech-tag:hover {
    background: rgba(8, 116, 238, 0.15);
}

body:not(.dark-theme) .skill-item {
    color: #333333;
}

body:not(.dark-theme) .action-btn.primary {
    background: #0874ee;
    color: white;
    border-color: rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .action-btn.primary:hover {
    background: #0066cc;
}

body:not(.dark-theme) .action-btn.secondary {
    color: #0874ee;
    border-color: rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .action-btn.secondary:hover {
    background: rgba(8, 116, 238, 0.05);
}

body:not(.dark-theme) .filter-btn {
    background: transparent;
    color: #666666;
    border-color: rgba(8, 116, 238, 0.2);
}

body:not(.dark-theme) .filter-btn:hover,
body:not(.dark-theme) .filter-btn.active {
    background: rgba(8, 116, 238, 0.1);
    color: #0874ee;
    border-color: rgba(8, 116, 238, 0.3);
}

body:not(.dark-theme) .filter-btn.active {
    background: #0874ee;
    color: white;
    border-color: #0874ee;
}

/* Responsive pour la section Atelier */
@media (max-width: 768px) {
    .atelier-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .title-icon {
        font-size: 28px;
    }
    
    .atelier-subtitle {
        font-size: 16px;
    }
    
    .stats-bar {
        gap: 20px;
    }
    
    .stats-bar .stat-item {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-icon {
        font-size: 36px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
    
    .filter-bar {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Responsive pour la bibliothèque */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 24px;
    }
    
    .biblio-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px 30px;
        min-width: 120px;
    }
    
    .book-container {
        flex-direction: column;
    }
    
    .book-page {
        border-radius: 8px;
        border: 1px solid rgba(8, 116, 238, 0.3);
    }
    
    .book-page.left-page {
        margin-bottom: 10px;
    }
}
