    /**
 * Book Page Styles - Modern Glass Design
 * Styles pour la page Book avec galeries multiples et design glassmorphisme
 */

/* ===== BOOK SECTION PRINCIPALE ===== */
.book-section {
    min-height: 100vh;
    padding: 4rem 0;
    background: var(--background);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.book-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, var(--primary-alpha-10, rgba(var(--primary-rgb, 255, 25, 131), 0.1)) 0%, transparent 50%);
    pointer-events: none;
}

.book-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===== HEADER DU BOOK ===== */
.book-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.book-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #d357fe, #3a88fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #d357fe);
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: slideInGrow 0.8s ease-out 0.3s both;
}

.book-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* ===== CONTENU DU BOOK ===== */
.book-content {
    margin-top: 3rem;
}

/* ===== GALERIES ===== */
.book-gallery {
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease-out;
}

.book-gallery:nth-child(even) {
    animation-delay: 0.2s;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #d357fe);
    border-radius: 2px;
    animation: slideInGrow 0.6s ease-out 0.3s both;
}

/* ===== GRILLE DES IMAGES ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-alpha-20, rgba(var(--primary-rgb, 255, 25, 131), 0.2));
    border-color: var(--primary-alpha-30, rgba(var(--primary-rgb, 255, 25, 131), 0.3));
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100% !important;;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), var(--primary-alpha-20, rgba(var(--primary-rgb, 255, 25, 131), 0.2)));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.image-expand {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--background);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
}

.gallery-item:hover .image-expand {
    transform: scale(1);
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 30px var(--primary-alpha-40, rgba(var(--primary-rgb, 255, 25, 131), 0.4));
}

.image-expand:hover {
    transform: scale(1.1);
}

.image-expand svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ===== PLACEHOLDER SUPPRIMÉ ===== */
/* Section placeholder retirée - affichage direct des galeries */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d357fe);
    color: white;
    box-shadow: 0 4px 15px var(--primary-alpha-30, rgba(var(--primary-rgb, 255, 25, 131), 0.3));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-alpha-40, rgba(var(--primary-rgb, 255, 25, 131), 0.4));
    color: white;
    text-decoration: none;
}

/* ===== MODAL D'IMAGE ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.modal-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .book-container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .gallery-image {
        height: 100% !important;;
    }
}

@media (max-width: 768px) {
    .book-section {
        padding: 2rem 0;
    }
    
    .book-container {
        padding: 0 1rem;
    }
    
    .book-header {
        margin-bottom: 2.5rem;
    }
    
    .book-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .book-description {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .book-gallery {
        margin-bottom: 3rem;
    }
    
    .image-container {
        aspect-ratio: 3/2;
    }
    
    .gallery-image {
        height: 100%  !important;;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    #modalImage {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .book-section {
        padding: 1.5rem 0;
    }
    
    .book-container {
        padding: 0 0.75rem;
    }
    
    .book-description {
        font-size: 1rem;
    }
    
    .gallery-image {
        height: 100% !important;
    }
    
    .image-expand {
        width: 50px;
        height: 50px;
    }
    
    .image-expand svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== STATES & UTILITIES ===== */
body.modal-open {
    overflow: hidden;
}

.book-loading {
    opacity: 0.6;
    pointer-events: none;
}

.book-hidden {
    display: none;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STATES ===== */
.image-expand:focus-visible,
.modal-close:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .gallery-item {
        border-width: 2px;
    }
    
    .image-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .image-expand {
        background: white;
        color: black;
        border: 2px solid black;
    }
}