/* Police Georgia - système */

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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: #fafafa;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px 0;
    color: #262626;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    color: #262626;
}

.header p {
    font-size: 1rem;
    color: #8e8e8e;
    font-weight: 400;
}

/* Menu de navigation */
.main-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #262626;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
}


.instagram-link {
    color: #e4405f !important;
    font-size: 18px;
    text-decoration: none;
}

.instagram-link:hover {
    background: #fef7f7 !important;
    color: #e4405f !important;
    text-decoration: none;
}

.commander-link {
    background: #28a745;
    color: white !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
}

.commander-link:hover {
    background: #218838 !important;
    color: white !important;
    text-decoration: underline;
    text-decoration-color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: scale(1.08);
}

.nav-link.active {
    background: #262626;
    color: white !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.nav-link.active:hover {
    background: #000 !important;
    color: white !important;
    text-decoration: underline;
    text-decoration-color: white;
}

/* Styles pour les pages de contenu */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-section h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #262626;
    text-align: center;
    font-weight: 300;
}

.content-section h2 {
    font-size: 2.2rem;
    margin: 40px 0 20px 0;
    color: #262626;
    font-weight: 400;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    color: #262626;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #444;
    padding-left: 25px;
    position: relative;
}

.content-section li:not(.support-text li):before {
    content: "✝";
    position: absolute;
    left: 0;
    top: 0;
    color: #8e8e8e;
    font-size: 1rem;
}

.content-section strong {
    color: #262626;
    font-weight: 600;
}

.content-section em {
    font-style: italic;
    color: #555;
}

/* Styles pour la page de contact */
.contact-intro {
    text-align: center;
    margin: 30px 0 50px 0;
    padding: 0 20px;
}

.contact-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 50px 0;
    padding: 0 20px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-method {
    background: #fff;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8e8e8e, #0095f6);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-method:has(.instagram-link):hover {
    background: #fff !important;
    color: #262626;
}

.contact-method:has(.instagram-link):hover h3,
.contact-method:has(.instagram-link):hover p {
    color: #262626 !important;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: linear-gradient(135deg, #0095f6, #0081d6);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 28px;
    color: #8e8e8e;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon i {
    color: white;
}

.contact-method:has(.instagram-link):hover .contact-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    transform: scale(1.1);
}

.contact-method:has(.instagram-link):hover .contact-icon i {
    color: white !important;
}

.contact-method h3 {
    color: #262626;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-method p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    width: 100%;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
}

.contact-link:hover {
    background: #0095f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
    text-decoration: none;
}

.contact-method:has(.instagram-link):hover .contact-link {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(240, 148, 51, 0.3) !important;
}

.contact-method:has(.instagram-link):hover .contact-link:hover {
    background: linear-gradient(135deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #8a3ab9 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(240, 148, 51, 0.4) !important;
    transform: translateY(-2px) !important;
}

.contact-link i {
    font-size: 16px;
}

.contact-link.instagram-link {
    border-color: #e9ecef;
    color: #8e8e8e;
}

.contact-link.instagram-link:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(240, 148, 51, 0.3);
    transform: translateY(-2px);
}

.contact-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
    border: 1px solid #e9ecef;
}

/* Variante pour la homepage (sans bords arrondis, sans espace avec footer) */
.contact-cta-homepage {
    max-width: 1000px; /* ne pas prendre toute la largeur de l'écran */
    margin: 0 auto;    /* centrer dans la page */
    padding: 0 20px;
}

.homepage-wrapper .contact-cta-homepage .contact-cta {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
    margin-top: 40px;
}

/* Réduire l'espace avant le footer sur la homepage */
body:has(.homepage-wrapper) footer,
body:has(.homepage-wrapper) .main-footer,
.homepage-wrapper ~ footer {
    margin-top: 0 !important;
}

.contact-cta h2 {
    font-size: 2.5rem;
    color: #262626;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-cta p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #0095f6, #0081d6);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 149, 246, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0081d6, #0066cc);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 149, 246, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary i, .btn-secondary i {
    font-size: 18px;
}

/* Responsive pour la page de contact */
@media (max-width: 1600px) {
    .contact-info {
        max-width: 1400px;
        gap: 15px;
    }
}

@media (max-width: 1200px) {
    .contact-info {
        max-width: 1000px;
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .contact-method {
        padding: 30px 20px;
        min-height: 280px;
    }
    
    .contact-cta {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .contact-cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.livres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 0 20px 40px;
}

.livre-item {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.0975);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.livre-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.livre-item img.loading {
    opacity: 0.7;
}

.livre-item-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.livre-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.0975), 0 4px 12px rgba(0,0,0,0.15);
}

.livre-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.livre-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    z-index: 3;
}

.livre-item:hover .livre-overlay {
    opacity: 1;
}

.livre-favori-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffc107;
    font-size: 20px;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.livre-favori-indicator i {
    color: #ffc107;
}

.livre-hover-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

.livre-hover-categorie {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.livre-hover-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 100%;
}

.livre-hover-tag {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.livre-icon {
    font-size: 64px;
    opacity: 0.3;
    color: #999;
    z-index: 2;
}

.modal-info {
    background: white;
    color: #262626;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    align-items: stretch;
    flex-direction: row;
}

.modal-image {
    flex: 0 0 60%;
    background: #f8f9fa;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 60%;
    height: 100%;
    aspect-ratio: 1;
    max-width: 60%;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
    filter: none;
    background: transparent;
    border-radius: 0;
}

.modal-image img.loading {
    opacity: 0.7;
}

.modal-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.modal-image-icon {
    font-size: 120px;
    opacity: 0.3;
    color: white;
}

.modal-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
}

.modal-image-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.modal-image-nav-left {
    left: 10px;
}

.modal-image-nav-right {
    right: 10px;
}

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

.modal-image-nav-disabled:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%) scale(1);
}

.modal-image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.modal-image-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-image-indicator.active {
    background: white;
    transform: scale(1.2);
}

.modal-image-indicator:hover {
    background: rgba(255,255,255,0.8);
}

.modal-content {
    flex: 0 0 40%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    height: 100%;
    width: 40%;
    max-height: 100%;
}

.modal-category {
    color: #8e8e8e;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #262626;
    line-height: 1.2;
}

.modal-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 35px;
    color: #8e8e8e;
    white-space: pre-line;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tag {
    background: #f0f0f0;
    color: #262626;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modal-tag:hover {
    background: #e0e0e0;
}

/* Bouton d'édition dans la modal */
.modal-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0095f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    background: #0081d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-edit i {
    font-size: 16px;
}

/* Bouton Commander dans la modal */
.btn-commander {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.btn-commander:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.btn-commander i {
    font-size: 16px;
}

.hidden {
    display: none !important;
}

.modal-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-navigation:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.modal-nav-left {
    left: 20px;
}

.modal-nav-right {
    right: 20px;
}

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

/* Masquer les flèches de navigation sur mobile */
@media (max-width: 768px) {
    .modal-navigation {
        display: none !important;
    }
}

.modal-nav-disabled:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.loading {
    text-align: center;
    color: #8e8e8e;
    font-size: 1.2rem;
}

.error {
    text-align: center;
    color: #ed4956;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.0975);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-wrapper {
    max-width: 95%;
    max-height: 95%;
    width: 1200px;
    height: 800px;
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal img {
    max-width: 100%;
    max-height: 100%;

}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .livres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px 40px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo {
        max-height: 60px;
        max-width: 150px;
    }
    
    .main-nav {
        gap: 20px;
        margin-top: 20px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .modal-wrapper {
        max-width: 95vw;
        max-height: 95vh;
        width: 95vw;
        height: 95vh;
        border-radius: 15px;
    }

    .modal-info {
        flex-direction: column !important;
        max-width: 100%;
        width: 100%;
        max-height: 100%;
        height: 100%;
        overflow-y: auto;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0px !important;
    }

    .modal-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .modal-image-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .modal-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
        max-height: 60vh;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .modal-image-icon {
        font-size: 80px;
    }

    .modal-image-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .modal-image-indicators {
        bottom: 10px;
    }

    .modal-image-indicator {
        width: 6px;
        height: 6px;
    }

    .modal-content {
        flex: 1 !important;
        width: 100% !important;
        padding: 20px !important;
        overflow-y: auto;
    }
    
    .btn-edit {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-commander {
        padding: 10px 16px;
        font-size: 13px;
        margin-right: 8px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 20px;
    }

    .modal-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-navigation {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .livres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 5px 40px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        max-height: 50px;
        max-width: 120px;
    }
    
    .main-nav {
        gap: 15px;
        margin-top: 15px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }

    .modal-wrapper {
        max-width: 98vw;
        max-height: 98vh;
        width: 98vw;
        height: 98vh;
        border-radius: 10px;
    }

    .modal-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .modal-image-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .modal-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
        max-height: 50vh;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .modal-image-icon {
        font-size: 60px;
    }

    .modal-image-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .modal-image-indicators {
        bottom: 8px;
    }

    .modal-image-indicator {
        width: 5px;
        height: 5px;
    }

    .modal-content {
        flex: 1 !important;
        width: 100% !important;
        padding: 15px !important;
        overflow-y: auto;
    }
    
    .btn-edit {
        padding: 8px 12px;
        font-size: 12px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-description {
        font-size: 13px;
    }

    .modal-navigation {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .modal-nav-left {
        left: 5px;
    }

    .modal-nav-right {
        right: 5px;
    }
}

/* Barre de recherche moderne */
.search-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input-container .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e8e;
    font-size: 16px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    color: #262626;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #0095f6;
    box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.1);
}

.search-input::placeholder {
    color: #8e8e8e;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.search-clear:hover {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.search-clear:active {
    transform: translateY(-50%) scale(0.95);
}

.search-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #0095f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    color: #262626;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 180px;
}

.filter-select:focus {
    border-color: #0095f6;
    box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.1);
}

.search-results {
    text-align: center;
    margin-top: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.search-results i {
    color: #0095f6;
    margin-right: 8px;
}

/* Animation pour les résultats de recherche */
.search-results {
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive pour la barre de recherche */
@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input-container {
        min-width: 100%;
    }
    
    .search-filters {
        width: 100%;
        justify-content: center;
    }
    
    .filter-select {
        min-width: 150px;
        flex: 1;
    }
}

/* Styles pour la section "Nous soutenir" */
.support-section {
    background: linear-gradient(135deg, #fff8e1, #f3e5ab);
    padding: 50px 40px;
    border-radius: 20px;
    margin: 50px 0;
    border: 1px solid #ffd54f;
    text-align: center;
}

.support-section h2 {
    font-size: 2.2rem;
    color: #262626;
    margin-bottom: 20px;
    font-weight: 400;
}

.support-section > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.support-content {
    margin-bottom: 40px;
}

.support-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.support-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: 600;
}

.support-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-text li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #555;
    padding-left: 0;
}

.support-action {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles pour le bouton Buy Me a Coffee */
.support-action a {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.support-action a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.support-action a img {
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.support-action a:hover img {
    transform: scale(1.05);
}

/* Classe pour centrer le texte */
.text-center {
    text-align: center;
}

/* Responsive pour la section support */
@media (max-width: 768px) {
    .support-section {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .support-section h2 {
        font-size: 1.8rem;
    }
    
    .support-text ul {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .support-action a img {
        height: 50px !important;
        width: 180px !important;
    }
}

/* HR élégant avant la section avis */
.avis-clients-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef 20%, #e9ecef 80%, transparent);
    margin: 60px 40px 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Encart Avis Clients */
.avis-clients-container {
    margin: 0 20px 60px;
    padding: 40px 20px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.avis-clients-header {
    text-align: center;
    margin-bottom: 40px;
}

.avis-clients-title {
    font-size: 2rem;
    font-weight: 400;
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avis-clients-title i {
    color: #ffc107;
    font-size: 1.8rem;
}

.avis-clients-subtitle {
    text-align: center;
    color: #8e8e8e;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Wrapper pour centrer le contenu même avec moins de 3 éléments */
.avis-clients-grid-3cols-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Grille à 3 colonnes fixes, centrée - utilise flexbox pour centrer automatiquement */
.avis-clients-grid-3cols {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1200px;
    width: 100%;
}

/* Chaque carte prend une largeur fixe et max */
.avis-clients-grid-3cols > * {
    flex: 0 1 300px;
    min-width: 250px;
    max-width: 300px;
    box-sizing: border-box;
}

/* Carte sans contour */
.avis-card-no-border {
    display: flex;
    flex-direction: column;
    background: none;
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    align-items: center;
    text-align: center;
}

/* Section des moyennes globales (une seule fois en haut) */
.avis-moyennes-globales {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 24px;
    gap: 32px;
    flex-wrap: wrap;
}

/* Conteneur pour les 3 notes côte à côte (ancien, gardé pour compatibilité) */
.avis-notes-individual {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
    gap: 16px;
}

.avis-note-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.avis-note-label {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2b2f33;
    text-align: center;
}

.avis-note-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap; /* permet de passer la note à la ligne suivante */
}

.avis-note-stars i {
    font-size: 18px; /* étoiles plus visibles */
}

.avis-note-stars i.star-filled {
    color: #ffc107;
}

.avis-note-stars i.star-empty {
    color: #dee2e6;
}

.avis-note-value {
    display: block;
    flex-basis: 100%;     /* force la note sur une nouvelle ligne */
    text-align: center;
    margin-top: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #343a40;
}

/* Section commentaire/témoignage centrée */
.avis-commentaire-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Note individuelle après le quote */
.avis-note-individuelle {
    margin-bottom: 12px;
    width: 100%;
}

.avis-note-stars-individuelle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.avis-note-stars-individuelle i {
    font-size: 18px;
}

.avis-note-stars-individuelle i.star-filled {
    color: #ffc107;
}

.avis-note-stars-individuelle i.star-empty {
    color: #dee2e6;
}

.avis-note-value-individuelle {
    display: inline-block;
    margin-left: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
}

.avis-commentaire-centered i.fa-quote-left {
    font-size: 1.5rem;
    color: #ced4da;
    margin-bottom: 8px;
}

.avis-commentaire-centered .avis-commentaire-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    white-space: pre-line;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.avis-citation-author {
    font-weight: 600;
    color: #262626;
    font-size: 0.95rem;
    font-style: normal;
    margin-top: 12px;
}

.avis-citation-date {
    font-size: 0.85rem;
    color: #8e8e8e;
    margin-top: 6px;
}

/* Conserver l'ancienne classe pour compatibilité */
.avis-card-column {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 300px;
}

/* Anciens styles conservés pour compatibilité */
.avis-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.avis-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.avis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.avis-nom {
    font-weight: 600;
    font-size: 1.1rem;
    color: #262626;
}

.avis-note {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.avis-note i {
    font-size: 18px;
}

.avis-note i.star-filled {
    color: #ffc107;
}

.avis-note i.star-empty {
    color: #dee2e6;
}

.avis-note-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.avis-commentaire {
    position: relative;
    padding: 16px 0;
}

.avis-commentaire i.fa-quote-left {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    color: #e9ecef;
    opacity: 0.5;
}

.avis-commentaire p,
.avis-commentaire-text {
    margin: 0;
    padding-left: 32px;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    white-space: pre-line;
}

.avis-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #8e8e8e;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.avis-date i {
    font-size: 12px;
}

/* Styles pour le footer */
.main-footer,
footer.main-footer {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 60px;
}

/* Réduire l'espace avant le footer sur la homepage uniquement */
body:has(.homepage-wrapper) .main-footer,
body:has(.homepage-wrapper) footer {
    margin-top: 0 !important;
}

/* Responsive pour les avis */
@media (max-width: 968px) {
    .avis-clients-grid-3cols-wrapper {
        display: block;
        padding: 0 10px;
    }
    
    .avis-clients-grid-3cols {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        max-width: 100%;
        padding: 0;
        width: 100%;
    }
    
    .avis-clients-grid-3cols > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .avis-moyennes-globales {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 20px 15px;
        max-width: 100%;
        justify-content: center;
    }
    
    .avis-notes-individual {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .avis-note-item {
        width: 100%;
    }
    
    .avis-clients-grid-3cols-wrapper {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .avis-clients-hr {
        margin: 40px 15px 30px;
        max-width: calc(100% - 30px);
    }
    
    .avis-clients-container {
        margin: 0 10px 40px;
        padding: 30px 15px;
        max-width: 100%;
    }
    
    .avis-clients-title {
        font-size: 1.6rem;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .avis-clients-title i {
        font-size: 1.4rem;
    }
    
    .avis-clients-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .avis-clients-grid-3cols-wrapper {
        padding: 0 5px;
        display: block;
    }
    
    .avis-clients-grid-3cols {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .avis-clients-grid-3cols > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .avis-card-no-border {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .avis-commentaire-text {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .avis-note-stars-individuelle {
        gap: 4px;
    }
    
    .avis-note-stars-individuelle i {
        font-size: 16px;
    }
    
    .avis-note-value-individuelle {
        font-size: 0.95rem;
        margin-left: 6px;
    }
    
    .avis-moyennes-globales {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 10px;
        max-width: 100%;
        justify-content: center;
    }
    
    .avis-note-label {
        font-size: 1rem;
    }
    
    .avis-note-stars {
        gap: 4px;
    }
    
    .avis-note-stars i {
        font-size: 16px;
    }
    
    .avis-notes-individual {
        flex-direction: column;
        gap: 16px;
    }
    
    .avis-card-column {
        padding: 24px 20px;
        min-height: auto;
    }
    
    /* Ancien style grid */
    .avis-clients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .avis-card {
        padding: 20px;
    }
    
    .avis-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .avis-clients-hr {
        margin: 30px 10px 20px;
        max-width: calc(100% - 20px);
    }
    
    .avis-clients-container {
        margin: 0 5px 30px;
        padding: 20px 10px;
    }
    
    .avis-clients-title {
        font-size: 1.4rem;
        gap: 6px;
    }
    
    .avis-clients-title i {
        font-size: 1.2rem;
    }
    
    .avis-clients-subtitle {
        font-size: 0.8rem;
        padding: 0 5px;
    }
    
    .avis-clients-header {
        margin-bottom: 30px;
    }
    
    .avis-clients-grid-3cols-wrapper {
        padding: 0;
        display: block;
    }
    
    .avis-clients-grid-3cols {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .avis-clients-grid-3cols > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .avis-card-no-border {
        padding: 16px 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .avis-commentaire-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .avis-commentaire-centered i.fa-quote-left {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .avis-note-individuelle {
        margin-bottom: 10px;
    }
    
    .avis-note-stars-individuelle {
        gap: 3px;
    }
    
    .avis-note-stars-individuelle i {
        font-size: 14px;
    }
    
    .avis-note-value-individuelle {
        font-size: 0.9rem;
        margin-left: 4px;
    }
    
    .avis-moyennes-globales {
        padding: 16px 8px;
        gap: 16px;
    }
    
    .avis-note-label {
        font-size: 0.95rem;
    }
    
    .avis-note-stars i {
        font-size: 14px;
    }
    
    .avis-note-value {
        font-size: 0.95rem;
    }
    
    .avis-citation-author {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .avis-citation-date {
        font-size: 0.8rem;
        margin-top: 4px;
    }
}
