/* ============================================
   ZALYBOOK - CSS Principal
   Design moderne aux couleurs guinéennes
   ============================================ */

:root {
    /* Couleurs de la Guinée */
    --rouge-guinee: #CE1126;
    --rouge-fonce: #A30E1F;
    --jaune-guinee: #FCD116;
    --jaune-fonce: #E5BC0F;
    --vert-guinee: #009460;
    --vert-fonce: #007A4F;
    
    /* Couleurs principales */
    --primary: #CE1126;
    --primary-dark: #A30E1F;
    --secondary: #FCD116;
    --accent: #009460;
    
    /* Neutres */
    --dark: #1a1a2e;
    --dark-2: #2c2c44;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;
    --cream: #faf7f2;
    
    /* Sémantique */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Typographie */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Espacements */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--cream);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--gray-300);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar i {
    color: var(--jaune-guinee);
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--rouge-guinee), var(--jaune-guinee), var(--vert-guinee)) 1;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.logo-icon span {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--jaune-guinee);
    z-index: 1;
}

.logo-text h1 {
    font-size: 26px;
    margin: 0;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 11px;
    color: var(--gray-600);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Search bar */
.search-bar {
    flex: 1;
    max-width: 550px;
    display: flex;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-bar:focus-within {
    background: var(--white);
    border-color: var(--rouge-guinee);
    box-shadow: 0 0 0 4px rgba(206, 17, 38, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    background: transparent;
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
    font-family: var(--font-body);
}

.search-bar input::placeholder {
    color: var(--gray-500);
}

.search-bar button {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    border: none;
    color: var(--white);
    padding: 0 28px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--rouge-fonce), #7a0815);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.action-btn:hover {
    background: var(--rouge-guinee);
    color: var(--white);
    transform: translateY(-2px);
}

.action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--jaune-guinee);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* User menu */
.user-menu {
    position: relative;
}

.user-btn {
    width: auto !important;
    padding: 0 16px;
    border-radius: 50px !important;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.user-name {
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-800);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--rouge-guinee);
}

.dropdown-menu a.text-danger {
    color: var(--danger);
}

.dropdown-menu a.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-menu i {
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-body);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.4);
}

.btn-secondary {
    background: var(--jaune-guinee);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.3);
}

.btn-secondary:hover {
    background: var(--jaune-fonce);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--vert-guinee), var(--vert-fonce));
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--rouge-guinee);
    border-color: var(--rouge-guinee);
}

.btn-outline:hover {
    background: var(--rouge-guinee);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    background: var(--dark);
    color: var(--white);
}

.nav-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list > li > a:hover {
    color: var(--jaune-guinee);
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--jaune-guinee);
    transition: var(--transition);
}

.nav-list > li > a:hover::after {
    width: 60%;
}

.nav-list .small {
    font-size: 10px;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 999;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray-800);
    font-size: 14px;
}

.dropdown a:hover {
    background: var(--gray-100);
    color: var(--rouge-guinee);
}

.dropdown i {
    width: 20px;
    text-align: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(206, 17, 38, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(252, 209, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(0, 148, 96, 0.15) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--rouge-guinee), var(--jaune-guinee), var(--vert-guinee));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content h1 .accent {
    background: linear-gradient(135deg, var(--jaune-guinee), #ffd84d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(252, 209, 22, 0.15);
    border: 1px solid rgba(252, 209, 22, 0.3);
    color: var(--jaune-guinee);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-300);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    border-left: 3px solid var(--jaune-guinee);
    padding-left: 16px;
}

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.hero-stat .label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero books display */
.hero-books {
    position: relative;
    height: 480px;
    perspective: 1000px;
}

.hero-book {
    position: absolute;
    width: 200px;
    height: 290px;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset -3px 0 5px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 18px;
    color: var(--white);
    overflow: hidden;
}

.hero-book::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

.hero-book-1 {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    top: 30px;
    left: 40px;
    transform: rotate(-8deg);
    z-index: 1;
}

.hero-book-2 {
    background: linear-gradient(135deg, var(--vert-guinee), var(--vert-fonce));
    top: 80px;
    left: 180px;
    transform: rotate(4deg);
    z-index: 2;
}

.hero-book-3 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    top: 20px;
    left: 320px;
    transform: rotate(10deg);
    z-index: 1;
}

.hero-book .book-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-book .book-author {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
}

.hero-book .book-ornament {
    width: 40px;
    height: 3px;
    background: var(--jaune-guinee);
    margin: 12px 0;
}

.hero-book:hover {
    transform: rotate(0) translateY(-10px) scale(1.05);
    z-index: 10;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    position: relative;
}

.section-title .label {
    display: inline-block;
    color: var(--rouge-guinee);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 12px;
}

.section-title h2 .accent {
    color: var(--rouge-guinee);
    font-style: italic;
}

.section-title p {
    color: var(--gray-600);
    max-width: 600px;
}

.see-all {
    color: var(--rouge-guinee);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all:hover {
    gap: 12px;
}

/* ============================================
   CATÉGORIES
   ============================================ */
.categories-section {
    background: var(--white);
}

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

.category-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--couleur-cat, var(--rouge-guinee));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--couleur-cat, var(--rouge-guinee));
    box-shadow: var(--shadow-lg);
}

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

.category-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--couleur-cat, var(--rouge-guinee));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.category-card:hover .icon {
    background: var(--couleur-cat, var(--rouge-guinee));
    color: var(--white);
}

.category-card h3 {
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.category-card .count {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================
   GRILLE DE LIVRES
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.book-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--gray-100);
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-image .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jaune-guinee);
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 900;
}

.book-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rouge-guinee);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.book-badge.promo {
    background: var(--jaune-guinee);
    color: var(--dark);
}

.book-badge.new {
    background: var(--vert-guinee);
}

.book-actions-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.book-card:hover .book-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.book-action-btn {
    width: 38px;
    height: 38px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 14px;
}

.book-action-btn:hover {
    background: var(--rouge-guinee);
    color: var(--white);
}

.book-action-btn.active {
    background: var(--rouge-guinee);
    color: var(--white);
}

.book-info {
    padding: 18px;
}

.book-category {
    color: var(--rouge-guinee);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.book-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}

.book-rating .stars {
    color: var(--jaune-guinee);
}

.book-rating .count {
    color: var(--gray-500);
    font-size: 12px;
    margin-left: 4px;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

.book-price {
    display: flex;
    flex-direction: column;
}

.book-price .current {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--rouge-guinee);
}

.book-price .old {
    font-size: 12px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.book-add-cart {
    width: 38px;
    height: 38px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-add-cart:hover {
    background: var(--rouge-guinee);
    transform: scale(1.1);
}

/* ============================================
   BANNIÈRE PROMOTIONNELLE
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--rouge-guinee) 0%, var(--rouge-fonce) 100%);
    color: var(--white);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252, 209, 22, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-banner .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.promo-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--white);
    margin-bottom: 16px;
}

.promo-content h2 .accent {
    color: var(--jaune-guinee);
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.promo-code {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 2px dashed var(--jaune-guinee);
    color: var(--jaune-guinee);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.promo-visual {
    text-align: center;
    font-size: 8rem;
    color: var(--jaune-guinee);
    opacity: 0.9;
}

/* ============================================
   FEATURES (Avantages)
   ============================================ */
.features-section {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(206, 17, 38, 0.3);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--jaune-guinee), var(--jaune-fonce));
    color: var(--dark);
    box-shadow: 0 8px 20px rgba(252, 209, 22, 0.3);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--vert-guinee), var(--vert-fonce));
    box-shadow: 0 8px 20px rgba(0, 148, 96, 0.3);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    box-shadow: 0 8px 20px rgba(26, 26, 46, 0.3);
}

.feature-card h3 {
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--dark);
    color: var(--gray-400);
}

.footer-top {
    padding: 70px 0 40px;
    position: relative;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--rouge-guinee), var(--jaune-guinee), var(--vert-guinee));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 24px;
}

.footer-col p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--jaune-guinee);
}

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--jaune-guinee);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 10px;
    color: var(--rouge-guinee);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-info i {
    color: var(--jaune-guinee);
    margin-top: 4px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.youtube:hover { background: #ff0000; }
.social-link.whatsapp:hover { background: #25d366; }

.payment-methods {
    margin-top: 20px;
}

.payment-title {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--gray-500);
}

.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-icon {
    background: var(--white);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.payment-icon.orange {
    background: #ff6600;
    color: var(--white);
}

.payment-icon.mtn {
    background: var(--jaune-guinee);
    color: var(--dark);
}

.payment-icon.visa {
    background: #1a1f71;
    color: var(--white);
}

.footer-bottom {
    background: #0d0d1a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

/* ============================================
   ALERTES
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 14px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--info);
    color: #1e40af;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 4px;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   FORMULAIRES (Auth)
   ============================================ */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(206, 17, 38, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 148, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 45px;
    position: relative;
    z-index: 1;
}

.auth-container.wide {
    max-width: 580px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.auth-header p {
    color: var(--gray-600);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--rouge-guinee);
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--rouge-guinee);
    box-shadow: 0 0 0 4px rgba(206, 17, 38, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 14px;
}

.input-group .form-control {
    padding-left: 44px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-700);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rouge-guinee);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--rouge-guinee);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--rouge-guinee);
    font-size: 13px;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ============================================
   PAGE LIVRE DÉTAIL
   ============================================ */
.book-detail {
    padding: 50px 0;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
}

.book-cover-large {
    position: sticky;
    top: 120px;
}

.book-cover-large img,
.book-cover-large .placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.book-cover-large .placeholder {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jaune-guinee);
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
}

.book-detail-info .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.book-detail-info .breadcrumb a {
    color: var(--rouge-guinee);
}

.book-detail-info h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
    color: var(--dark);
}

.book-detail-info .author {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.book-detail-info .author a {
    color: var(--rouge-guinee);
    font-weight: 600;
}

.book-rating-large {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 16px;
}

.book-rating-large .stars {
    color: var(--jaune-guinee);
    font-size: 18px;
}

.book-rating-large .count {
    color: var(--gray-600);
}

.book-price-large {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--rouge-guinee);
}

.book-price-large .current {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rouge-guinee);
}

.book-price-large .old {
    font-size: 18px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.book-price-large .save {
    background: var(--vert-guinee);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.book-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.book-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.book-meta-item {
    text-align: center;
}

.book-meta-item .icon {
    color: var(--rouge-guinee);
    font-size: 20px;
    margin-bottom: 6px;
}

.book-meta-item .label {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-meta-item .value {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.book-description {
    margin-bottom: 40px;
}

.book-description h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--jaune-guinee);
    display: inline-block;
}

.book-description p {
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 16px;
}

/* ============================================
   DASHBOARD UTILISATEUR
   ============================================ */
.dashboard-page {
    padding: 50px 0;
    background: var(--gray-100);
    min-height: calc(100vh - 200px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
    box-shadow: var(--shadow-sm);
}

.dashboard-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.dashboard-user h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.dashboard-user p {
    font-size: 13px;
    color: var(--gray-600);
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li {
    margin-bottom: 4px;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dashboard-menu a:hover {
    background: var(--gray-100);
    color: var(--rouge-guinee);
}

.dashboard-menu a.active {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

.dashboard-menu i {
    width: 18px;
    text-align: center;
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.dashboard-content > h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

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

.stat-card {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.stat-card .icon.red { background: rgba(206, 17, 38, 0.1); color: var(--rouge-guinee); }
.stat-card .icon.yellow { background: rgba(252, 209, 22, 0.15); color: var(--jaune-fonce); }
.stat-card .icon.green { background: rgba(0, 148, 96, 0.1); color: var(--vert-guinee); }
.stat-card .icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--info); }

.stat-card .number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-card .label {
    color: var(--gray-600);
    font-size: 14px;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.data-table tr:hover {
    background: var(--gray-100);
}

.data-table .book-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-table .book-mini img,
.data-table .book-mini .placeholder-mini {
    width: 50px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.data-table .book-mini .placeholder-mini {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jaune-guinee);
    font-weight: 700;
    font-size: 24px;
    font-family: var(--font-display);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paye { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-en_attente { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-echec { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-actif { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-suspendu { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.btn-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    color: var(--gray-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 4px;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--rouge-guinee);
    color: var(--white);
}

.btn-icon.edit:hover { background: var(--info); }
.btn-icon.delete:hover { background: var(--danger); }
.btn-icon.view:hover { background: var(--vert-guinee); }

/* ============================================
   PANIER & CHECKOUT
   ============================================ */
.cart-page {
    padding: 50px 0;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image img,
.cart-item-image .placeholder-mini {
    width: 100px;
    height: 140px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-image .placeholder-mini {
    background: linear-gradient(135deg, var(--rouge-guinee), var(--rouge-fonce));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jaune-guinee);
    font-weight: 700;
    font-size: 30px;
    font-family: var(--font-display);
}

.cart-item-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.cart-item-info .author {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 10px;
}

.cart-item-info .price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--rouge-guinee);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 120px;
    box-shadow: var(--shadow-sm);
}

.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-700);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid var(--gray-200);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.summary-total .amount {
    color: var(--rouge-guinee);
    font-family: var(--font-display);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 80px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.empty-state p {
    margin-bottom: 24px;
}

/* ============================================
   PAIEMENT
   ============================================ */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.payment-method-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.payment-method-card:hover {
    border-color: var(--rouge-guinee);
    transform: translateY(-3px);
}

.payment-method-card.active {
    border-color: var(--rouge-guinee);
    background: rgba(206, 17, 38, 0.05);
}

.payment-method-card.active::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--rouge-guinee);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.payment-method-card .logo {
    height: 50px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.payment-method-card .logo.orange { color: #ff6600; }
.payment-method-card .logo.mtn { color: var(--jaune-fonce); }
.payment-method-card .logo.visa { color: #1a1f71; }
.payment-method-card .logo.paypal { color: #003087; }

.payment-method-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.payment-method-card p {
    font-size: 12px;
    color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-books {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .book-detail-grid {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .header-actions .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list > li > a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropdown {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        padding-left: 20px;
    }
    
    .dropdown a {
        color: var(--gray-400);
    }
    
    .promo-banner .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .promo-visual {
        font-size: 5rem;
    }
    
    .book-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .book-cover-large {
        max-width: 280px;
        margin: 0 auto;
        position: relative;
        top: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 50px 0 70px;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .book-info {
        padding: 12px;
    }
    
    .book-title {
        font-size: 14px;
    }
    
    .book-price .current {
        font-size: 16px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text span {
        font-size: 10px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    padding: 0 14px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--rouge-guinee);
    color: var(--white);
    border-color: var(--rouge-guinee);
}

.pagination .active {
    background: var(--rouge-guinee);
    color: var(--white);
    border-color: var(--rouge-guinee);
}

/* Filtres */
.filters-bar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.filter-group select {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-body);
}

.results-count {
    margin-left: auto;
    color: var(--gray-600);
    font-size: 14px;
}

/* Loader */
.loader {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--rouge-guinee);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* Animation des cartes au chargement */
.book-card {
    animation: fadeInUp 0.5s ease backwards;
}

.book-card:nth-child(1) { animation-delay: 0.05s; }
.book-card:nth-child(2) { animation-delay: 0.1s; }
.book-card:nth-child(3) { animation-delay: 0.15s; }
.book-card:nth-child(4) { animation-delay: 0.2s; }
.book-card:nth-child(5) { animation-delay: 0.25s; }
.book-card:nth-child(6) { animation-delay: 0.3s; }

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

/* ==================== PAGES NOUVELLES ==================== */

/* PAGE HEADER */
.page-header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.page-header.center { text-align: center; }
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}
.page-header h1 i { color: var(--couleur-rouge); margin-right: 10px; }
.page-header p { color: #6b7280; font-size: 1.05rem; }

.page-section {
    padding: 60px 0;
    min-height: 60vh;
}

.container-narrow { max-width: 800px; margin: 0 auto; }

/* CART */
.cart-section { padding: 50px 0; min-height: 60vh; }
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.cart-items { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 80px; height: 110px; }
.cart-item-image img,
.cart-item-image .cover-placeholder {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 1.5rem;
}
.cart-item-title {
    font-weight: 700; color: #1f2937; text-decoration: none;
    font-size: 1.05rem; display: block; margin-bottom: 4px;
}
.cart-item-author { color: #6b7280; font-size: 0.9rem; margin-bottom: 8px; }
.cart-item-price .prix-promo { color: var(--couleur-rouge); font-weight: 600; }
.cart-item-price .prix-barre { text-decoration: line-through; color: #9ca3af; font-size: 0.85rem; margin-left: 6px; }
.cart-item-subtotal {
    font-size: 1.2rem; font-weight: 700; color: var(--couleur-rouge);
    margin-bottom: 10px; text-align: right;
}
.btn-remove {
    background: none; border: none; color: #ef4444;
    cursor: pointer; font-size: 0.85rem; display: inline-flex;
    align-items: center; gap: 5px;
}
.btn-remove:hover { text-decoration: underline; }

.cart-actions {
    display: flex; justify-content: space-between;
    padding-top: 20px; margin-top: 10px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap; gap: 10px;
}

.cart-summary {
    background: white; border-radius: 12px; padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky; top: 100px;
    height: fit-content;
}
.cart-summary h3 {
    font-size: 1.2rem; margin-bottom: 20px;
    padding-bottom: 15px; border-bottom: 1px solid #e5e7eb;
}
.summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 12px;
}
.summary-divider {
    height: 1px; background: #e5e7eb; margin: 15px 0;
}
.summary-total {
    font-size: 1.15rem; font-weight: 700;
    color: #1f2937;
}
.prix-total { color: var(--couleur-rouge); font-size: 1.4rem; }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

.btn-block { width: 100%; justify-content: center; }
.btn-large { padding: 14px 24px; font-size: 1rem; }
.btn-text {
    background: none; border: none; color: #6b7280;
    cursor: pointer; padding: 8px 12px;
}
.btn-text:hover { color: var(--couleur-rouge); }

.payment-icons {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.payment-icons p { font-size: 0.85rem; color: #6b7280; margin-bottom: 10px; }
.payment-logos {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.payment-logo {
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 600;
    color: white;
}
.payment-logo.orange { background: #ff6600; }
.payment-logo.mtn { background: #ffcb05; color: #333; }
.payment-logo.visa { background: #1a1f71; }
.payment-logo.mc { background: #eb001b; }
.payment-logo.paypal { background: #003087; }

.security-badge {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 15px; padding: 10px;
    background: #f0fdf4; color: #166534;
    border-radius: 8px; font-size: 0.85rem;
}

/* CHECKOUT */
.checkout-section { padding: 40px 0; }
.checkout-steps {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 40px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e5e7eb; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.step.active .step-number {
    background: var(--couleur-rouge); color: white;
}
.step.completed .step-number {
    background: var(--couleur-vert); color: white;
}
.step-label { font-size: 0.85rem; color: #6b7280; }
.step-line {
    height: 2px; width: 80px;
    background: #e5e7eb;
    margin: 0 12px; margin-bottom: 28px;
}
.step-line.completed { background: var(--couleur-vert); }

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-block {
    background: white; border-radius: 12px; padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.checkout-block h3 {
    font-size: 1.1rem; margin-bottom: 20px;
    color: #1f2937;
}
.checkout-block h3 i { color: var(--couleur-rouge); margin-right: 8px; }

.client-info p { margin-bottom: 6px; color: #4b5563; }
.client-info i { color: var(--couleur-rouge); margin-right: 6px; width: 16px; }

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.payment-method-card {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s;
    position: relative;
    display: block;
}
.payment-method-card:hover { border-color: var(--couleur-rouge); }
.payment-method-card input[type="radio"] { display: none; }
.payment-method-card.selected {
    border-color: var(--couleur-rouge);
    background: #fef2f2;
}
.payment-method-content {
    display: flex; align-items: center; gap: 12px;
}
.payment-icon {
    width: 60px; height: 40px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.7rem;
    flex-direction: column; line-height: 1;
    flex-shrink: 0;
}
.payment-icon.orange { background: linear-gradient(135deg, #ff6600, #ff8533); }
.payment-icon.mtn { background: linear-gradient(135deg, #ffcb05, #ffd633); color: #333; }
.payment-icon.visa { background: linear-gradient(135deg, #1a1f71, #2c3a9c); }
.payment-icon.mc { background: linear-gradient(135deg, #eb001b, #f79e1b); }
.payment-icon.paypal { background: linear-gradient(135deg, #003087, #009cde); }
.payment-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.payment-info p { font-size: 0.78rem; color: #6b7280; }
.check-icon {
    position: absolute; top: 10px; right: 10px;
    color: var(--couleur-rouge); opacity: 0;
    transition: opacity 0.2s;
}
.payment-method-card.selected .check-icon { opacity: 1; }

.payment-details {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}
.payment-fields .form-group { margin-bottom: 15px; }
.payment-fields label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.payment-fields input {
    width: 100%; padding: 10px 14px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 0.95rem;
}
.payment-fields small { color: #6b7280; font-size: 0.8rem; display: block; margin-top: 4px; }

.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}

.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}
.checkbox-label a { color: var(--couleur-rouge); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

.checkout-summary {
    background: white; border-radius: 12px; padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky; top: 100px;
    height: fit-content;
}
.checkout-summary h3 { font-size: 1.2rem; margin-bottom: 20px; }
.summary-items { margin-bottom: 20px; }
.summary-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px; align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.summary-item:last-child { border-bottom: none; }
.summary-item-image img,
.summary-item-image .cover-placeholder {
    width: 50px; height: 70px; object-fit: cover; border-radius: 4px;
    background: #f3f4f6; display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
}
.summary-item-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.summary-item-author { font-size: 0.75rem; color: #6b7280; }
.summary-item-price { font-weight: 600; font-size: 0.9rem; }

.security-info { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.security-item {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px; font-size: 0.85rem; color: #4b5563;
}
.security-item i { color: var(--couleur-vert); }

/* CONFIRMATION */
.confirmation-section { padding: 60px 0; }
.confirmation-card {
    max-width: 700px; margin: 0 auto;
    background: white; border-radius: 16px; padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}
.confirmation-icon {
    width: 100px; height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
}
.confirmation-card.success .confirmation-icon {
    background: #dcfce7; color: #16a34a;
}
.confirmation-card.error .confirmation-icon {
    background: #fee2e2; color: #ef4444;
}
.confirmation-card h1 { font-size: 2rem; margin-bottom: 12px; color: #1f2937; }
.confirmation-card .lead { color: #6b7280; font-size: 1.05rem; margin-bottom: 30px; }
.confirmation-details {
    background: #f9fafb; border-radius: 12px;
    padding: 20px; margin: 30px 0;
    text-align: left;
}
.detail-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #e5e7eb;
}
.detail-row:last-child { border-bottom: none; }
.detail-row.total { padding-top: 15px; border-top: 2px solid #e5e7eb; margin-top: 10px; }

.confirmation-books {
    text-align: left; margin: 20px 0;
}
.confirmation-book {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px; align-items: center;
    padding: 12px; background: #f9fafb;
    border-radius: 10px; margin-bottom: 10px;
}
.conf-book-image { width: 60px; height: 80px; }
.conf-book-image img,
.conf-book-image .cover-placeholder {
    width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
    background: #e5e7eb; display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
}
.conf-book-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.conf-book-info p { color: #6b7280; font-size: 0.85rem; }
.confirmation-actions {
    display: flex; gap: 12px; justify-content: center; margin-top: 30px;
    flex-wrap: wrap;
}

/* DASHBOARD USER */
.dashboard-section { padding: 40px 0; min-height: 70vh; }
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.user-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar-user {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding-bottom: 20px; border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
}
.sidebar-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--couleur-rouge), var(--couleur-vert));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
    overflow: hidden; margin-bottom: 12px;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info h4 { font-size: 1rem; margin-bottom: 3px; }
.sidebar-user-info p { font-size: 0.8rem; color: #6b7280; }

.sidebar-nav {
    display: flex; flex-direction: column; gap: 4px;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.93rem;
    transition: all 0.2s;
}
.sidebar-nav a:hover {
    background: #f9fafb;
    color: var(--couleur-rouge);
}
.sidebar-nav a.active {
    background: var(--couleur-rouge);
    color: white;
}
.sidebar-nav a i {
    width: 18px; text-align: center;
}
.sidebar-nav a.text-danger:hover { color: #ef4444; }
.sidebar-divider { height: 1px; background: #e5e7eb; margin: 12px 0; }

.dashboard-content { min-width: 0; }
.dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.dashboard-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.dashboard-header p { color: #6b7280; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid var(--couleur-rouge);
}
.stat-card.stat-blue { border-left-color: #3b82f6; }
.stat-card.stat-green { border-left-color: var(--couleur-vert); }
.stat-card.stat-yellow { border-left-color: var(--couleur-jaune); }
.stat-card.stat-red { border-left-color: var(--couleur-rouge); }
.stat-icon {
    width: 50px; height: 50px; border-radius: 10px;
    background: linear-gradient(135deg, var(--couleur-rouge), #b80f22);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.stat-blue .stat-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-green .stat-icon { background: linear-gradient(135deg, var(--couleur-vert), #007a4f); }
.stat-yellow .stat-icon { background: linear-gradient(135deg, var(--couleur-jaune), #e0b800); color: #333; }
.stat-info h3 { font-size: 1.3rem; margin: 0; color: #1f2937; }
.stat-info p { font-size: 0.85rem; color: #6b7280; margin: 2px 0 0; }

.dashboard-block {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.block-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.block-header h2 { font-size: 1.2rem; margin: 0; }
.btn-link {
    color: var(--couleur-rouge);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
}

.empty-state {
    text-align: center; padding: 60px 30px;
    background: white; border-radius: 12px;
}
.empty-state i {
    font-size: 4rem; color: #d1d5db; margin-bottom: 20px;
}
.empty-state h2 { margin-bottom: 10px; color: #1f2937; }
.empty-state p { color: #6b7280; margin-bottom: 25px; }
.empty-state-small {
    text-align: center; padding: 40px 20px;
}
.empty-state-small i { font-size: 2.5rem; color: #d1d5db; margin-bottom: 12px; }
.empty-state-small p { color: #6b7280; margin-bottom: 15px; }

.dashboard-books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.dash-book {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.dash-book-cover {
    width: 100%; aspect-ratio: 2/3;
    margin-bottom: 10px;
    border-radius: 6px; overflow: hidden;
}
.dash-book-cover img,
.dash-book-cover .cover-placeholder {
    width: 100%; height: 100%; object-fit: cover;
}
.dash-book-info h4 { font-size: 0.9rem; margin-bottom: 4px; line-height: 1.3; }
.dash-book-info p { font-size: 0.78rem; color: #6b7280; margin-bottom: 10px; }

.table-responsive { overflow-x: auto; }
.data-table {
    width: 100%; border-collapse: collapse;
}
.data-table th, .data-table td {
    text-align: left; padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.92rem;
}
.data-table th {
    background: #f9fafb;
    font-weight: 600; color: #6b7280;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* LIBRARY GRID */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.library-item { position: relative; }
.library-cover {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.library-cover img,
.library-cover .cover-placeholder {
    width: 100%; height: 100%; object-fit: cover;
}
.library-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    opacity: 0; transition: opacity 0.3s;
}
.library-item:hover .library-overlay { opacity: 1; }
.library-info h4 { font-size: 0.92rem; margin-bottom: 3px; line-height: 1.3; }
.library-info p { font-size: 0.8rem; color: #6b7280; margin-bottom: 4px; }
.library-info small { font-size: 0.72rem; color: #9ca3af; }
.library-category {
    display: inline-block;
    font-size: 0.7rem; color: var(--couleur-rouge);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* ORDERS */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
    background: white; border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}
.order-header {
    padding: 18px 22px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f3f4f6;
}
.order-header h3 { font-size: 1rem; margin-bottom: 3px; }
.order-header p { font-size: 0.85rem; color: #6b7280; }
.order-body { padding: 18px 22px; }
.order-items { display: flex; flex-direction: column; gap: 12px; }
.order-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px; align-items: center;
}
.order-item img,
.order-item .cover-placeholder {
    width: 50px; height: 70px; object-fit: cover; border-radius: 4px;
    background: #f3f4f6; display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
}
.cover-placeholder.small { width: 50px; height: 70px; font-size: 1rem; }
.order-item-info h5 { font-size: 0.92rem; margin-bottom: 3px; }
.order-item-info p { font-size: 0.85rem; color: var(--couleur-rouge); font-weight: 600; }
.order-footer {
    padding: 14px 22px;
    background: #f9fafb;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.order-meta { display: flex; gap: 16px; font-size: 0.85rem; color: #6b7280; }
.order-meta i { color: var(--couleur-rouge); margin-right: 4px; }
.order-total { font-size: 0.95rem; }
.order-total strong { color: var(--couleur-rouge); font-size: 1.15rem; }

/* SEARCH FORM */
.search-form { margin-bottom: 25px; }
.search-input-wrapper {
    position: relative;
    display: flex; gap: 10px;
    background: white;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-items: center;
}
.search-input-wrapper i { color: #9ca3af; }
.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 0.95rem;
}

/* PROFILE */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.profile-photo {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.profile-photo-current {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--couleur-rouge), var(--couleur-vert));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700;
    overflow: hidden;
}
.profile-photo-current img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo small {
    display: block; color: #6b7280; font-size: 0.78rem;
    margin-top: 6px;
}

/* AUTEURS */
.auteurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.auteur-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.auteur-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.auteur-photo {
    width: 90px; height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--couleur-rouge), var(--couleur-vert));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
    overflow: hidden;
}
.auteur-photo img { width: 100%; height: 100%; object-fit: cover; }
.auteur-card h3 { font-size: 1rem; margin-bottom: 8px; }
.auteur-nationalite { font-size: 0.82rem; color: #6b7280; margin-bottom: 8px; }
.auteur-livres {
    font-size: 0.82rem;
    color: var(--couleur-rouge); font-weight: 600;
}

/* DÉTAIL AUTEUR */
.auteur-detail-section { padding: 50px 0; }
.auteur-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.auteur-photo-large {
    width: 200px; height: 200px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--couleur-rouge), var(--couleur-vert));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; font-weight: 700;
    overflow: hidden;
}
.auteur-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.auteur-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; margin-bottom: 10px;
}
.auteur-meta { color: #6b7280; margin-bottom: 6px; }
.auteur-meta i { color: var(--couleur-rouge); margin-right: 6px; }
.auteur-stats { margin: 15px 0; font-size: 1.05rem; }
.auteur-stats strong { color: var(--couleur-rouge); }
.auteur-bio { margin-top: 25px; }
.auteur-bio h3 { font-size: 1.15rem; margin-bottom: 12px; }
.auteur-bio p { color: #4b5563; line-height: 1.7; }

/* CONTACT */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.contact-info { background: white; padding: 30px; border-radius: 12px; }
.contact-info h2 { font-size: 1.3rem; margin-bottom: 25px; }
.contact-item {
    display: flex; gap: 15px;
    margin-bottom: 20px;
}
.contact-item > i {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--couleur-rouge), var(--couleur-vert));
    color: white;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-item h4 { font-size: 0.92rem; margin-bottom: 3px; }
.contact-item p { font-size: 0.88rem; color: #6b7280; line-height: 1.5; }
.contact-social { margin-top: 25px; padding-top: 25px; border-top: 1px solid #e5e7eb; }
.contact-social h4 { margin-bottom: 12px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.social-links a:hover {
    background: var(--couleur-rouge); color: white;
    transform: translateY(-2px);
}

.contact-form-wrapper { background: white; padding: 30px; border-radius: 12px; }
.contact-form-wrapper h2 { margin-bottom: 20px; font-size: 1.3rem; }
.contact-form .form-group { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-item summary {
    padding: 18px 25px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600;
    color: #1f2937;
    user-select: none;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { transition: transform 0.3s; color: var(--couleur-rouge); }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-answer { padding: 0 25px 20px; color: #4b5563; line-height: 1.7; }

.faq-cta {
    text-align: center; padding: 40px;
    margin-top: 40px;
    background: linear-gradient(135deg, var(--couleur-rouge), var(--couleur-vert));
    border-radius: 12px;
    color: white;
}
.faq-cta h3 { font-size: 1.5rem; margin-bottom: 10px; }
.faq-cta p { margin-bottom: 20px; opacity: 0.95; }
.faq-cta .btn { background: white; color: var(--couleur-rouge); }

/* LEGAL */
.legal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    line-height: 1.7;
}
.legal-content h2 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--couleur-rouge);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content ul { color: #4b5563; margin-bottom: 12px; }
.legal-content ul { padding-left: 25px; }
.legal-content li { margin-bottom: 6px; }

/* WISHLIST BUTTON */
.btn-wishlist-remove {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #ef4444;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.btn-wishlist-remove:hover { background: #ef4444; color: white; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cart-layout, .checkout-layout, .contact-layout, .profile-grid {
        grid-template-columns: 1fr;
    }
    .auteur-header { grid-template-columns: 1fr; text-align: center; }
    .auteur-photo-large { margin: 0 auto; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .user-sidebar { position: static; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-methods-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .step-line { width: 40px; }
    .page-header h1 { font-size: 1.8rem; }
    .cart-item { grid-template-columns: 60px 1fr; }
    .cart-item-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
    .cart-item-subtotal { margin-bottom: 0; }
    .confirmation-card { padding: 30px 20px; }
    .legal-content { padding: 25px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-books { grid-template-columns: repeat(2, 1fr); }
    .library-grid { grid-template-columns: repeat(2, 1fr); }
}
