/* ==========================================================================
   STYLE BOUTIQUE HARMONISÉ
   ========================================================================== */
:root {
    --primary: #B77E65;
    --accent: #843431;
    --bg-light: #F9F4F2;
    --text-dark: #1A1A1A;
    --white: #ffffff;
}

.ebook-hero { background: var(--bg-light); padding: 100px 0 80px; text-align: center; }
.badge-tag { background: rgba(183, 126, 101, 0.1); color: var(--primary); padding: 8px 18px; border-radius: 50px; font-weight: 800; font-size: 12px; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.ebook-hero h1 { font-size: 52px; font-weight: 900; margin-bottom: 20px; }
.ebook-hero h1 span { color: var(--primary); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; padding: 60px 0; }

.ebook-card {
    background: var(--white); border-radius: 24px; border: 1px solid #f0f0f0;
    overflow: hidden; position: relative; transition: 0.4s ease;
    display: flex; flex-direction: column;
}
.ebook-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.badge-new { position: absolute; top: 20px; left: 20px; background: var(--text-dark); color: white; padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: bold; z-index: 5; }

.ebook-cover { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.ebook-card:hover .ebook-cover img { transform: scale(1.05); }

/* Badge de prix dynamique */
.price-tag {
    position: absolute; bottom: 20px; right: 20px;
    background: var(--white); color: var(--text-dark);
    padding: 10px 18px; border-radius: 14px;
    font-weight: 900; font-size: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 5;
}

.ebook-details { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.category { color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.ebook-details h3 { font-size: 22px; font-weight: 900; margin-bottom: 15px; line-height: 1.3; }
.ebook-details p { color: #666; font-size: 14px; margin-bottom: 20px; flex-grow: 1; }

.ebook-vignettes { display: flex; gap: 8px; margin-bottom: 20px; }
.vignette-img { width: 35px; height: 35px; border-radius: 8px; border: 2px solid #eee; object-fit: cover; }

.btn-buy {
    background: var(--text-dark); color: white;
    text-align: center; text-decoration: none;
    padding: 16px; border-radius: 14px;
    font-weight: 700; font-size: 15px;
    transition: 0.3s;
}
.btn-buy:hover { background: var(--accent); }

 .subtitle {
    display: inline-block;
    background: rgba(183, 126, 101, 0.1); /* Couleur terracotta très claire */
    color: var(--primary);                /* #B77E65 */
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* Squelette de chargement */
.skeleton-card { height: 500px; background: #f7f7f7; border-radius: 24px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }