/*
 * Les Éditions Artiges - Feuille de style principale
 * Maison d'édition sénégalaise - Site Web Officiel
 * Version: 2025
 */

/* Global Styles */
:root {
    --primary-color: #8B4513; /* Brown color for book theme */
    --secondary-color: #F5F5DC; /* Beige/cream color */
    --accent-color: #4A2511; /* Darker brown for accents */
    --text-color: #1a1a1a; /* Texte plus foncé pour meilleur contraste */
    --light-text: #F8F8F8;
    --light-bg: #F8F5F0; /* Light cream background */
    --border-color: #DDD6C9;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Améliorations générales pour la fluidité */
* {
    transition: var(--transition);
}

/* Smooth scrolling amélioré */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Amélioration des hover effects */
button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.bg-light {
    background-color: var(--light-bg);
}

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

/* Header Styles */
#header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 8px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-mini {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    transition: var(--transition);
}

.logo-mini:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1,
.logo-text h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--accent-color);
    line-height: 1.1;
    font-weight: 600;
}

.slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Cart Icon Styles */
.cart-icon-wrapper {
    position: relative;
}

.cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.cart-icon-btn:hover {
    background-color: var(--light-bg);
    color: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
}

.cart-badge:empty {
    display: none;
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-dropdown.active {
    transform: translateX(0);
}

.cart-dropdown-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
}

.close-cart-btn:hover {
    color: var(--accent-color);
}

.cart-items-dropdown {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-total-dropdown {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cart-total-dropdown p {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cart-buttons-dropdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-options-dropdown {
    margin-bottom: 20px;
}

.payment-options-dropdown h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.whatsapp-order-dropdown {
    text-align: center;
}

.whatsapp-order-dropdown h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links li a,
.nav-links li button {
    color: #2c2c2c; /* Couleur plus foncée pour meilleur contraste */
    font-weight: 500;
    padding: 8px 0;
    position: relative;
	border: none;
	background: none;
	cursor: pointer;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Books Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.book-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: auto;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.book-item:hover {
    transform: translateY(-10px);
}

.book-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.book-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.book-author {
    color: #444; /* Couleur plus foncée pour meilleur contraste */
    font-style: italic;
    margin-bottom: 12px;
}

.book-description {
    margin-bottom: 15px;
    flex-grow: 1;
    position: relative;
}

.book-description .description-content {
    line-height: 1.5;
    margin-bottom: 8px;
}

.book-description.truncated .description-content {
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.description-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    text-decoration: underline;
    border-radius: 4px;
    transition: var(--transition);
    display: block;
    margin-top: 8px;
    width: fit-content;
}

.description-toggle:hover {
    color: white;
    background-color: var(--primary-color);
    text-decoration: none;
}

.description-content {
    line-height: 1.5;
    margin-bottom: 5px;
}

.description-short,
.description-full {
    display: inline;
    line-height: inherit;
}

.description-full {
    display: none;
}

.book-description {
    margin-bottom: 15px;
    flex-grow: 1;
    position: relative;
}

.book-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Shop Section */
.shop-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: #1a1a1a; /* Texte plus foncé */
    min-width: 150px;
}

.filter-group select option {
    background-color: white;
    color: var(--text-color);
    padding: 8px 12px;
}

.search-bar {
    display: flex;
    max-width: 350px;
    width: 100%;
}

.search-bar input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: auto;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.add-to-cart {
    margin-top: 15px;
}

/* Book Actions */
.book-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.book-actions .add-to-cart {
    flex: 1;
    margin-top: 0;
}

.share-btn {
    background-color: #17a2b8;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.share-btn:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1rem;
}

/* Image Overlay */
.book-image,
.product-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    gap: 8px;
}

.book-image:hover .image-overlay,
.product-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.image-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Book Modal */
.book-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.book-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    width: 90%;
    max-width: 900px;
    max-height: 95vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.book-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.book-modal .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.book-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.book-modal-body {
    display: flex;
    padding: 30px;
    gap: 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.book-modal-image-container {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-modal-image-container img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: var(--transition);
}

.book-modal-image-container img:hover {
    transform: scale(1.02);
}

.book-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.book-modal-author {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.book-modal-category {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    align-self: flex-start;
}

.book-modal-description {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
}

.book-modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    min-height: 80px;
}

.book-modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.book-modal-actions {
    display: flex;
    gap: 15px;
}

.book-modal-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.book-modal-actions .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Shopping Cart */
.shopping-cart {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cart-items {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-price {
    font-weight: 500;
    margin: 0 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.cart-total {
    text-align: right;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.cart-total p {
    font-weight: 700;
    font-size: 1.2rem;
}

.cart-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

/* Payment Options */
.payment-options {
    margin-top: 20px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.payment-method {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 4px;
}

.payment-icon {
    height: 24px;
    margin-right: 8px;
}

.whatsapp-order {
    margin-top: 25px;
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.video-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    min-height: 100%;
    background-color: #f8f9fa;
}

.video-thumbnail img:not([src]),
.video-thumbnail img[src=""],
.video-thumbnail img[src*="default.jpg"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60'%3E%3Crect width='100' height='60' fill='%23f0f0f0'/%3E%3Ctext x='50' y='30' text-anchor='middle' dy='.3em' font-family='Arial' font-size='12' fill='%23666'%3EÃ‰ditions Artiges%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 3px; /* Centrer l'icÃ´ne play */
}

.video-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-date::before {
    content: "ðŸ“…";
    font-size: 0.8rem;
}

/* Video Modal Styles */
.video-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-content #video-container {
    margin-bottom: 20px;
}

.video-modal-content #video-info {
    padding: 20px;
    background-color: white;
}

.video-modal-content #video-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.video-modal-content #video-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Loading indicator for videos */
.loading-videos {
    text-align: center;
    padding: 40px;
    color: var(--primary-color);
    font-style: italic;
}

.loading-videos i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

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

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-excerpt {
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-link {
    align-self: flex-start;
}

/* Location Section */
.location-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.location-info {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.location-info h3 {
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.location-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.map-container {
    flex: 2;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #f8f9fa;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    display: block;
}

/* Interactive Map Styles */
.interactive-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 10;
}

.interactive-map-wrapper:hover .map-overlay {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.map-click-hint {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--primary-color);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.interactive-map-wrapper:hover .map-click-hint {
    transform: translateY(0);
}

.map-click-hint i {
    font-size: 1.1rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 40px;
}

.contact-form-container {
    flex: 2;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #FFFFFF; /* Fond blanc pur pour meilleur contraste */
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: white;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-item i {
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item a {
    color: white;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-newsletter form {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.footer-newsletter button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

#checkout-cart-summary {
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.payment-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    margin: 5px 0;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.payment-option:hover {
    background-color: #f8f9fa;
}

.payment-option input {
    margin-right: 8px;
}

.payment-option input:checked + i + span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .books-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .about-content,
    .location-content,
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .map-container {
        margin-top: 20px;
        height: 300px;
    }

    .books-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

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

    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Responsive design for book modal */
@media screen and (max-width: 992px) {
    .book-modal-body {
        flex-direction: column;
        padding: 20px;
    }

    .book-modal-image-container {
        flex: none;
        align-items: center;
        margin-bottom: 20px;
    }

    .book-modal-image-container img {
        max-width: 250px;
    }

    .book-modal-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .book-modal-author {
        text-align: center;
        font-size: 1.1rem;
    }

    .book-modal-category {
        align-self: center;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .book-actions {
        flex-direction: column;
        gap: 8px;
    }

    .book-actions .add-to-cart {
        width: 100%;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding: 10px;
    }

    .share-btn::after {
        content: ' Partager';
        font-size: 0.9rem;
    }

    /* Amélioration des grilles de livres sur mobile */
    .books-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .book-item,
    .product-item {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Amélioration des modales sur mobile */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
        padding: 15px;
    }

    /* Amélioration du panier sur mobile */
    .cart-dropdown {
        width: 100%;
        right: 0;
    }

    .shopping-cart {
        padding: 20px;
    }

    .book-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .book-modal-header {
        padding: 15px 20px;
    }

    .book-modal-header h3 {
        font-size: 1.2rem;
    }

    .book-modal-body {
        padding: 15px;
    }

    .book-modal-image-container img {
        max-width: 200px;
    }

    .book-modal-title {
        font-size: 1.4rem;
    }

    .book-modal-description {
        padding: 15px;
        font-size: 0.95rem;
    }

    .book-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        flex-shrink: 0;
        min-height: 100px;
    }

    .book-modal-price {
        font-size: 1.5rem;
    }

    .book-modal-actions {
        justify-content: center;
        width: 100%;
    }

    .book-modal-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Header responsive */
    #header {
        padding: 6px 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo-container {
        gap: 8px;
    }

    .logo-mini {
        width: 28px;
        height: 28px;
    }

    .logo h1,
    .logo-text h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .slogan {
        font-size: 0.6rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1001;
    }

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

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero section responsive */
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 200px;
    }

    /* Sections responsive */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Shop filters responsive */
    .shop-filters {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        min-width: auto;
    }

    .search-bar {
        max-width: 100%;
    }

    /* Cart responsive */
    .cart-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cart-dropdown {
        width: 100%;
        right: 0;
    }

    /* AmÃ©lioration grilles livres pour mobile */
    .books-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
    }

    .book-item,
    .product-item {
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 420px;
    }

    .book-image,
    .product-image {
        height: 180px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .book-image img,
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background-color: #f8f9fa;
    }

    .book-info,
    .product-info {
        padding: 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .book-info h3,
    .product-info h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .book-author {
        font-size: 0.85rem;
        margin-bottom: 8px;
        color: #666;
    }

    .book-description {
        margin-bottom: 8px;
        flex-grow: 1;
    }

    .book-description .description-content {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .description-toggle {
        font-size: 0.8rem;
        padding: 2px 6px;
        margin-top: 4px;
    }

    .book-price,
    .product-price {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-color);
        margin: 8px 0;
        flex-shrink: 0;
    }

    .add-to-cart {
        font-size: 0.85rem;
        padding: 8px 12px;
        margin-top: 8px;
        flex-shrink: 0;
    }

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

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

    /* Form responsive */
    .contact-form {
        padding: 20px;
    }

    .contact-info {
        padding: 20px;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-newsletter form {
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    /* Header extra small */
    .logo h1,
    .logo-text h1 {
        font-size: 1rem;
    }

    .slogan {
        font-size: 0.55rem;
    }

    /* AmÃ©liorer l'espacement des livres sur mobile */
    .book-item,
    .product-item {
        margin-bottom: 20px;
    }

    .book-info,
    .product-info {
        padding: 15px;
    }

    /* Hero extra small */
    .section {
        padding: 40px 0;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Grids extra small */
    .books-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .book-item,
    .product-item {
        max-width: 100%;
    }

    /* Video responsive */
    .video-thumbnail {
        height: 180px;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
    }

    .video-play-button i {
        font-size: 1.2rem;
    }

    .video-modal-content {
        margin: 5px;
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
    }

    /* Modal responsive */
    .modal-content {
        margin: 10px;
        padding: 20px;
        max-width: calc(100vw - 20px);
    }

    /* Forms responsive */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
    }

    /* Text sizing */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }

    /* About section */
    .about-text {
        text-align: justify;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Contact section */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 20px;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 5px;
    }

    /* Payment options */
    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }

    .payment-method {
        justify-content: center;
        padding: 15px;
    }

    /* Admin responsive */
    .admin-login {
        margin: 10px;
        padding: 30px 20px;
    }

    .admin-dashboard {
        padding: 20px;
        margin: 10px;
    }
}

@media screen and (max-width: 380px) {
    .container {
        padding: 0 3px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .logo h1,
    .logo-text h1 {
        font-size: 0.9rem;
    }

    .slogan {
        font-size: 0.5rem;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Admin Section */
.admin-section {
    background-color: var(--light-bg);
    padding: 40px 0;
    min-height: 80vh;
    transition: all 0.3s ease;
}

.admin-login {
    max-width: 400px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    text-align: center;
}

.admin-header-info {
    margin-bottom: 25px;
}

.admin-icon {
    font-size: 2rem;
    color: #666;
    margin-bottom: 15px;
}

.admin-login h3 {
    color: #333; /* Plus foncé pour meilleur contraste */
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 500;
}

.admin-login p {
    color: #555; /* Plus foncé pour meilleur contraste */
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.admin-login .form-group {
    text-align: left;
}

.admin-login label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #333; /* Plus foncé pour meilleur contraste */
    font-weight: 500; /* Plus gras pour meilleure lisibilité */
    font-size: 0.9rem;
}

.admin-login input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: white;
}

.admin-login input:focus {
    border-color: #999;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.admin-login-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 15px;
    background-color: #666;
    border: none;
    color: white;
    border-radius: 4px;
}

.admin-login-btn:hover {
    background-color: #555;
}

.admin-dashboard {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-welcome h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.admin-welcome p {
    color: #666;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-content h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-content span {
    font-size: 2.5rem;
    font-weight: bold;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    color: #666;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

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

.tab-content h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-list {
    max-height: 600px;
    overflow-y: auto;
}

.data-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.data-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.data-header h5 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    background-color: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.date-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.data-content {
    color: #333;
}

.data-row {
    margin-bottom: 10px;
    padding: 5px 0;
}

.data-row strong {
    color: var(--primary-color);
    margin-right: 5px;
}

.order-items {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.order-items ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.order-items li {
    margin-bottom: 5px;
    color: #555;
}

.message-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.message-content p {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Responsive design for admin */
@media screen and (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: 8px;
        margin-bottom: 5px;
    }

    .data-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.drive-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: var(--light-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.drive-status.connected {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.drive-btn {
    background-color: #4285f4;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.drive-btn:hover {
    background-color: #3367d6;
}

.drive-btn.connected {
    background-color: #34a853;
}

.drive-btn.connected:hover {
    background-color: #2d8f47;
}

#drive-status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 700;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

.data-list {
    max-height: 400px;
    overflow-y: auto;
}

.data-item {
    background-color: var(--light-bg);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.data-item h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.data-item p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.order-items {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.order-items ul {
    margin: 0;
    padding-left: 20px;
}

/* Google Drive Connection - Compact Version */
.drive-status-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #495057;
}

.drive-status-compact.connected {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
    color: #155724;
}

.drive-status-compact .drive-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drive-status-compact .drive-status-info i {
    font-size: 1.1rem;
    color: #4285f4;
}

.drive-status-compact.connected .drive-status-info i {
    color: #28a745;
}

.btn-compact {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-compact:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
}

.btn-compact.connected {
    background-color: #28a745;
}

.btn-compact.connected:hover {
    background-color: #218838;
}

.btn-compact i {
    font-size: 0.9rem;
}

/* Admin Controls */
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.controls-group {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #333;
    transition: var(--transition);
}

.btn-small:hover {
    background-color: #e9ecef;
}

.btn-small i {
    margin-right: 5px;
}

.data-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.data-stats span {
    color: #666;
}

.data-stats strong {
    color: var(--primary-color);
}

/* Enhanced data items */
.data-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.data-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-info, .order-details {
    margin-bottom: 15px;
}

.order-actions, .message-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.total-row {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.order-items {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.message-content p {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    line-height: 1.6;
}

/* Auto-refresh indicator */
#auto-refresh-toggle.active {
    background-color: #28a745 !important;
    color: white;
}

/* Export buttons */
.btn.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.btn.secondary-btn:hover {
    background-color: #5a6268;
}

/* Table Styles */
.data-table-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background-color: var(--primary-color);
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

/* Status Styles */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.en-cours {
    background-color: #fff3cd;
    color: #856404;
}

.status.expÃ©diÃ©e {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status.livrÃ©e {
    background-color: #d4edda;
    color: #155724;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.info-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1rem;
}

.info-section p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.articles-list {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 0;
    list-style-type: none;
}

.articles-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.articles-list li:last-child {
    border-bottom: none;
}

.message-content {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.message-content p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Button Variants */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

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

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

/* Responsive admin */
@media screen and (max-width: 768px) {
    .admin-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .controls-group {
        flex-wrap: wrap;
    }

    .data-stats {
        flex-direction: column;
        gap: 10px;
    }

    .data-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .item-actions {
        align-self: flex-end;
    }

    .order-actions, .message-actions {
        flex-wrap: wrap;
    }

    .data-table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Modal Overlay pour admin */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.info-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-section h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-section p {
    margin: 8px 0;
    line-height: 1.4;
}

.info-section strong {
    color: #333;
    font-weight: 600;
}

.articles-list {
    margin: 15px 0 0 0;
    padding: 0;
}

.articles-list li {
    background-color: white;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    list-style: none;
}

.message-content {
    margin-top: 20px;
}

.message-content p {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 15px 0 0 0;
    line-height: 1.6;
    font-style: italic;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Books Management Styles */
.books-management {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.books-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.books-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.books-filters {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.books-filters .filter-group {
    display: flex;
    gap: 15px;
    flex: 1;
}

.books-filters input,
.books-filters select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.admin-books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-book-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.admin-book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.admin-book-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.admin-book-info h5 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.3;
}

.admin-book-info .book-author {
    color: #666;
    font-style: italic;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.admin-book-info .book-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.admin-book-info .book-price {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.admin-book-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-book-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Book Form Modal */
.book-form-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    align-items: start;
}

.image-upload-group {
    position: sticky;
    top: 0;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-preview {
    width: 280px;
    height: 350px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.image-preview:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.upload-placeholder {
    text-align: center;
    color: #666;
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.upload-placeholder p {
    margin: 10px 0 5px;
    font-weight: 500;
}

.upload-placeholder small {
    opacity: 0.7;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.btn-edit {
    background-color: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background-color: #138496;
}

/* Responsive Design for Book Management */
@media screen and (max-width: 992px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-preview {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .image-upload-group {
        position: static;
    }

    .admin-books-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .books-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .books-header h4 {
        text-align: center;
        font-size: 1.2rem;
    }

    .books-filters .filter-group {
        flex-direction: column;
    }

    .books-filters input,
    .books-filters select {
        min-width: auto;
    }

    .admin-books-list {
        grid-template-columns: 1fr;
    }

    .admin-book-actions {
        flex-direction: column;
    }

    .book-form-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .modal-body {
        padding: 15px;
    }
}

/* Utility Classes */
.responsive-img {
    width: 100%;
    height: auto;
}

    /* Système de notifications amélioré */
    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 16px 24px;
        border-radius: 12px;
        color: white;
        font-weight: 500;
        transform: translateX(calc(100% + 30px));
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 10000;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 400px;
        min-width: 280px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Notifications responsive */
    @media screen and (max-width: 768px) {
        .notification {
            top: 10px;
            right: 10px;
            left: 10px;
            max-width: none;
            min-width: auto;
            width: calc(100% - 20px);
            padding: 12px 16px;
            font-size: 0.9rem;
        }
    }

    .notification::before {
        content: '';
        width: 4px;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        border-radius: 12px 0 0 12px;
        background: linear-gradient(45deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    }

    .notification-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .notification.show {
        transform: translateX(0);
    }

    .notification.info {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: rgba(102, 126, 234, 0.3);
    }

    .notification.success {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        border-color: rgba(79, 172, 254, 0.3);
    }

    .notification.error {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        border-color: rgba(250, 112, 154, 0.3);
    }

    .notification.warning {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        border-color: rgba(240, 147, 251, 0.3);
    }

    /* Mode sombre - Variables CSS */
    :root[data-theme="dark"] {
        --primary-color: #d4a574; /* Or cuivre pour le thème doré */
        --secondary-color: #2a2a2a; /* Gris très foncé */
        --accent-color: #f4d03f; /* Or brillant pour les accents */
        --text-color: #e8e6e3; /* Beige clair pour le texte */
        --light-text: #f5f5f5;
        --light-bg: #1a1a1a; /* Noir profond */
        --border-color: #3a3a3a; /* Gris foncé pour les bordures */
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        --bg-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
    }

    /* Mode sombre - Arrière-plan principal */
    [data-theme="dark"] body {
        background: var(--bg-gradient);
        color: var(--text-color);
        position: relative;
    }

    [data-theme="dark"] body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 20% 20%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(244, 208, 63, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
        pointer-events: none;
        z-index: -1;
    }

    /* Mode sombre - Header */
    [data-theme="dark"] #header {
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(212, 165, 116, 0.2);
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.8);
    }

/* Mode sombre - Menu burger */
[data-theme="dark"] .menu-toggle .bar {
    background-color: var(--text-color);
}

[data-theme="dark"] .nav-links {
    background-color: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

    /* Mode sombre - Navigation */
    [data-theme="dark"] .nav-links li a,
    [data-theme="dark"] .nav-links li button {
        color: var(--text-color);
        transition: all 0.3s ease;
    }

    [data-theme="dark"] .nav-links li a:hover,
    [data-theme="dark"] .nav-links li a.active,
    [data-theme="dark"] .nav-links li button:hover {
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
    }

    [data-theme="dark"] .nav-links li a::after {
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    }

/* Mode sombre - Bouton admin dans la navigation */
[data-theme="dark"] #admin-link {
    color: var(--text-color) !important;
    background: none !important;
    border: none !important;
}

[data-theme="dark"] #admin-link:hover {
    color: var(--accent-color) !important;
}

    /* Mode sombre - Sections */
    [data-theme="dark"] .section {
        background: transparent;
    }

    [data-theme="dark"] .bg-light {
        background: rgba(26, 26, 26, 0.7);
        backdrop-filter: blur(10px);
    }

    /* Mode sombre - Cards et éléments */
    [data-theme="dark"] .book-item,
    [data-theme="dark"] .product-item,
    [data-theme="dark"] .video-item,
    [data-theme="dark"] .news-item {
        background: rgba(42, 42, 42, 0.8);
        border: 1px solid rgba(212, 165, 116, 0.2);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    [data-theme="dark"] .book-item:hover,
    [data-theme="dark"] .product-item:hover,
    [data-theme="dark"] .video-item:hover {
        border-color: rgba(244, 208, 63, 0.4);
        box-shadow: 0 12px 48px rgba(244, 208, 63, 0.2);
        transform: translateY(-8px);
    }

    /* Mode sombre - Boutons */
    [data-theme="dark"] .primary-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: #000;
        font-weight: 600;
        text-shadow: none;
        box-shadow: 0 4px 20px rgba(244, 208, 63, 0.3);
    }

    [data-theme="dark"] .primary-btn:hover {
        background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
        box-shadow: 0 8px 32px rgba(244, 208, 63, 0.5);
        transform: translateY(-2px);
    }

    [data-theme="dark"] .secondary-btn {
        background: transparent;
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
        box-shadow: 0 0 20px rgba(244, 208, 63, 0.2);
    }

    [data-theme="dark"] .secondary-btn:hover {
        background: rgba(244, 208, 63, 0.1);
        box-shadow: 0 0 30px rgba(244, 208, 63, 0.4);
    }

    /* Mode sombre - Formulaires */
    [data-theme="dark"] .form-group input,
    [data-theme="dark"] .form-group textarea,
    [data-theme="dark"] .form-group select,
    [data-theme="dark"] .filter-group select {
        background: rgba(42, 42, 42, 0.8);
        color: var(--text-color);
        border: 1px solid rgba(212, 165, 116, 0.3);
        backdrop-filter: blur(10px);
    }

    [data-theme="dark"] .filter-group select option {
        background: rgba(42, 42, 42, 0.95);
        color: var(--text-color);
    }

    [data-theme="dark"] .form-group input:focus,
    [data-theme="dark"] .form-group textarea:focus,
    [data-theme="dark"] .form-group select:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
    }

    /* Mode sombre - Footer */
    [data-theme="dark"] .footer {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
        border-top: 1px solid rgba(212, 165, 116, 0.2);
    }

    /* Mode sombre - Modals */
    [data-theme="dark"] .modal-content,
    [data-theme="dark"] .book-modal-content {
        background: rgba(26, 26, 26, 0.95);
        border: 1px solid rgba(212, 165, 116, 0.3);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }

    [data-theme="dark"] .modal-header,
    [data-theme="dark"] .book-modal-header {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: #000;
    }

    /* Mode sombre - Amélioration des détails du livre dans la modal */
    [data-theme="dark"] .book-modal-title {
        color: var(--accent-color) !important;
        text-shadow: 0 0 15px rgba(244, 208, 63, 0.6);
        font-weight: 700;
    }

    [data-theme="dark"] .book-modal-author {
        color: var(--text-color) !important;
        font-weight: 500;
        opacity: 0.9;
    }

    [data-theme="dark"] .book-modal-description {
        background: rgba(42, 42, 42, 0.8) !important;
        color: var(--text-color) !important;
        border-left: 4px solid var(--accent-color) !important;
        padding: 25px !important;
        border-radius: 12px !important;
        line-height: 1.8 !important;
        font-size: 1.05rem !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(212, 165, 116, 0.2);
    }

    [data-theme="dark"] .book-modal-price {
        color: var(--accent-color) !important;
        text-shadow: 0 0 20px rgba(244, 208, 63, 0.5);
        font-weight: 800;
        font-size: 2rem !important;
    }

    [data-theme="dark"] .book-modal-category {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
        color: #000 !important;
        font-weight: 600;
        padding: 8px 16px !important;
        border-radius: 25px !important;
        box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
    }

    [data-theme="dark"] .book-modal-footer {
        background: rgba(42, 42, 42, 0.9) !important;
        border-top: 1px solid rgba(212, 165, 116, 0.3) !important;
        backdrop-filter: blur(15px);
    }

    [data-theme="dark"] .book-modal-image-container img {
        border: 3px solid rgba(212, 165, 116, 0.4);
        box-shadow: 0 15px 40px rgba(244, 208, 63, 0.2);
        border-radius: 15px !important;
    }

    [data-theme="dark"] .book-modal-body {
        background: transparent;
    }

    /* Mode sombre - Admin */
    [data-theme="dark"] .admin-dashboard,
    [data-theme="dark"] .admin-login {
        background: rgba(26, 26, 26, 0.9);
        border: 1px solid rgba(212, 165, 116, 0.2);
        backdrop-filter: blur(15px);
    }

[data-theme="dark"] .admin-login input {
    background: rgba(42, 42, 42, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(212, 165, 116, 0.3);
}

[data-theme="dark"] .admin-login input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
}

[data-theme="dark"] .admin-login label {
    color: var(--text-color);
}

[data-theme="dark"] .admin-login h3,
[data-theme="dark"] .admin-login p {
    color: var(--text-color);
}

[data-theme="dark"] .admin-login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
}

[data-theme="dark"] .admin-login-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

    [data-theme="dark"] .stat-card {
        background: linear-gradient(135deg, rgba(212, 165, 116, 0.8), rgba(244, 208, 63, 0.6));
        color: #000;
    }

    /* Mode sombre - Tables */
    [data-theme="dark"] .data-table {
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(10px);
    }

    [data-theme="dark"] .data-table thead {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: #000;
    }

    [data-theme="dark"] .data-table tbody tr {
        border-bottom-color: rgba(212, 165, 116, 0.2);
    }

    [data-theme="dark"] .data-table tbody tr:hover {
        background: rgba(244, 208, 63, 0.1);
    }

    /* Mode sombre - Shopping Cart */
    [data-theme="dark"] .shopping-cart {
        background: rgba(26, 26, 26, 0.9);
        border: 1px solid rgba(212, 165, 116, 0.2);
        backdrop-filter: blur(15px);
    }

    [data-theme="dark"] .cart-item {
        background: rgba(42, 42, 42, 0.8);
        border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    }

    [data-theme="dark"] .cart-total {
        border-top: 2px solid rgba(212, 165, 116, 0.3);
    }

    [data-theme="dark"] .payment-method {
        background: rgba(42, 42, 42, 0.8);
        border: 1px solid rgba(212, 165, 116, 0.2);
    }

    [data-theme="dark"] .whatsapp-btn {
        background: linear-gradient(135deg, #25D366, #128C7E);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }

    [data-theme="dark"] .whatsapp-btn:hover {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
    }

    /* Mode sombre - Contact Section */
    [data-theme="dark"] .contact-form {
        background: rgba(26, 26, 26, 0.9);
        border: 1px solid rgba(212, 165, 116, 0.2);
        backdrop-filter: blur(15px);
    }

    [data-theme="dark"] .contact-info {
        background: linear-gradient(135deg, rgba(212, 165, 116, 0.8), rgba(244, 208, 63, 0.6));
        color: #000;
    }

    [data-theme="dark"] .contact-info h3 {
        color: #000;
    }

    [data-theme="dark"] .contact-item a {
        color: #000;
        text-decoration: underline;
    }

    /* Mode sombre - Location Section */
    [data-theme="dark"] .location-info {
        background: rgba(26, 26, 26, 0.9);
        border: 1px solid rgba(212, 165, 116, 0.2);
        backdrop-filter: blur(15px);
    }

    [data-theme="dark"] .map-container {
        border: 1px solid rgba(212, 165, 116, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    [data-theme="dark"] .map-click-hint {
        background: rgba(26, 26, 26, 0.95);
        color: var(--accent-color);
        border: 1px solid rgba(212, 165, 116, 0.3);
    }

    /* Mode sombre - Video Section */
    [data-theme="dark"] .video-thumbnail {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.8));
        border: 1px solid rgba(212, 165, 116, 0.2);
    }

    [data-theme="dark"] .video-play-button {
        background: rgba(244, 208, 63, 0.9);
        color: #000;
        border: 2px solid rgba(212, 165, 116, 0.5);
    }

    [data-theme="dark"] .video-play-button:hover {
        background: var(--accent-color);
        box-shadow: 0 8px 32px rgba(244, 208, 63, 0.4);
    }

    [data-theme="dark"] .video-duration {
        background: rgba(26, 26, 26, 0.9);
        color: var(--accent-color);
        border: 1px solid rgba(212, 165, 116, 0.3);
    }

    /* Mode sombre - Quantity buttons */
    [data-theme="dark"] .quantity-btn {
        background: rgba(42, 42, 42, 0.8);
        color: var(--text-color);
        border: 1px solid rgba(212, 165, 116, 0.3);
    }

    [data-theme="dark"] .quantity-btn:hover {
        background: rgba(212, 165, 116, 0.2);
        color: var(--accent-color);
    }

    /* Mode sombre - Remove item button */
    [data-theme="dark"] .remove-item {
        background: rgba(220, 53, 69, 0.8);
        color: white;
        border: 1px solid rgba(220, 53, 69, 0.5);
    }

    [data-theme="dark"] .remove-item:hover {
        background: #dc3545;
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    }

    /* Mode sombre - Newsletter footer */
    [data-theme="dark"] .footer-newsletter input {
        background: rgba(42, 42, 42, 0.8);
        color: var(--text-color);
        border: 1px solid rgba(212, 165, 116, 0.3);
    }

    [data-theme="dark"] .footer-newsletter button {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: #000;
    }

    /* Bouton de basculement de thème - Repositionné dans le header */
    .theme-toggle {
        position: relative;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .theme-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .theme-toggle-icon {
        font-size: 1.2rem;
        color: white;
        transition: all 0.3s ease;
    }

    [data-theme="dark"] .theme-toggle {
        background: linear-gradient(135deg, #d4a574 0%, #f4d03f 100%);
        border-color: rgba(244, 208, 63, 0.3);
    }

    [data-theme="dark"] .theme-toggle:hover {
        box-shadow: 0 8px 25px rgba(244, 208, 63, 0.4);
    }

    [data-theme="dark"] .theme-toggle-icon {
        color: #000;
    }

    /* Animation de rotation pour l'icône */
    .theme-toggle.rotating .theme-toggle-icon {
        transform: rotate(360deg);
    }

    /* Mode sombre - Textes et titres */
    [data-theme="dark"] h1, 
    [data-theme="dark"] h2, 
    [data-theme="dark"] h3, 
    [data-theme="dark"] h4, 
    [data-theme="dark"] h5, 
    [data-theme="dark"] h6 {
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
    }

    [data-theme="dark"] .section-title::after {
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    }

    /* Mode sombre - Prix et éléments importants */
    [data-theme="dark"] .book-price,
    [data-theme="dark"] .product-price {
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(244, 208, 63, 0.4);
    }

    /* Mode sombre - Hero section */
    [data-theme="dark"] .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80');
        background-size: cover;
        background-position: center;
    }

    [data-theme="dark"] .hero-content h2 {
        color: var(--accent-color);
        text-shadow: 0 0 20px rgba(244, 208, 63, 0.5);
    }

    /* Responsive pour le bouton de thème dans le header */
    @media screen and (max-width: 768px) {
        .theme-toggle {
            width: 40px;
            height: 40px;
        }

        .theme-toggle-icon {
            font-size: 1rem;
        }

        .main-nav {
            gap: 15px;
        }
    }

/* Ajout de style pour l'admin link */
#admin-link {
    color: var(--text-color);
	border: none;
	background: none;
}