/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PT Serif', serif;
}

body {
    background-color: #f8f9fa;
    font-size: 15px;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Styles de la barre de navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Styles des conteneurs */
.wrapper {
    width: 360px;
    padding: 20px;
    margin: 0 auto;
    margin-top: 50px;
}

.container {
    flex: 1;
}

/* Styles des formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Styles des boutons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Styles des cartes et conteneurs */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.terms-container,
.privacy-container,
.subscription-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Styles des en-têtes */
.terms-header,
.privacy-header,
.subscription-header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #343a40;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

/* Styles des sections */
.terms-section,
.privacy-section {
    margin-bottom: 30px;
}

.terms-section h2,
.privacy-section h2 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.terms-section p,
.privacy-section p {
    color: #495057;
    margin-bottom: 15px;
}

.terms-section ul,
.privacy-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-section li,
.privacy-section li {
    margin-bottom: 10px;
    color: #495057;
}

/* Styles du footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 50px;
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
}

.footer a {
    text-decoration: none;
    color: white;
}

.footer a:hover {
    text-decoration: underline;
}

/* Styles des messages d'alerte */
.alert {
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Styles des plans d'abonnement */
.plan-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.plan-card.selected {
    border: 2px solid #007bff;
    background-color: #f8f9fa;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #343a40;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.plan-features {
    margin-bottom: 20px;
}

.plan-features li {
    margin-bottom: 8px;
    color: #495057;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .wrapper {
        width: 100%;
        padding: 15px;
    }
    
    .terms-container,
    .privacy-container,
    .subscription-container {
        padding: 20px;
    }
    
    .plan-card {
        margin-bottom: 15px;
    }
}

/* Styles de la bibliothèque */
body, html {
    width: 100%;
    margin: 0;
    padding: 0;
}

.book-card {
    margin-bottom: 20px;
    transition: transform 0.2s;
    height: 100%;
}

.book-card:hover {
    transform: scale(1.02);
}

.book-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #fff;
}

.book-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-author {
    color: #6c757d;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.book-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #6c757d;
    font-size: 1.5rem;
    height: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}
.badge-primary {
    font-size: 0.8rem;
    background-color: #1e2123;
    color: #c3ad70;
    border-color: #c3ad70;
}
.btn-read {
    background-color: #1e2123;
    color: #c3ad70;
    border-color: #c3ad70;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    width: 100%;
    display: block;
}

.btn-read:hover {
    background-color: #c3ad70;
    color: #1e2123;
    border-color: #c3ad70;
    color: white;
}

.btn-buy {
    background-color: transparent;
    color: #c3ad70;
    border-color: #c3ad70;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    width: 100%;
    display: block;
}

.btn-buy:hover {
    background-color: #c3ad70;
    color: white;
    text-decoration: none;
}

.btn-outline-secondary {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    width: 100%;
    display: block;
}

.card-body {
    padding: 0.75rem;
}

.container-fluid {
    padding-left: 30px;
    padding-right: 30px;
}

.subscription-alert {
    margin-top: 20px;
    margin-bottom: 20px;
}

.subscription-button {
    margin-top: 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.search-input {
    border-radius: 20px;
    padding-left: 15px;
    padding-right: 15px;
    height: 40px;
    border: 1px solid #ced4da;
    width: 350px;
    transition: all 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
    outline: none;
}

.search-icon {
    margin-left: -30px;
    color: #6c757d;
}

.hidden {
    display: none;
}

/* Styles de la page d'abonnement */
.subscription-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.plan-button {
    width: 100%;
    padding: 10px;
    font-weight: 600;
}

.subscription-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
}

.subscription-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscription-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.subscription-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Styles du lecteur EPUB */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#bibi-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.reader-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.reader-content {
    padding-top: 56px; /* Hauteur de la navbar */
    height: 100%;
}

.shop-link {
    color: #c3ad70;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.shop-link:hover {
    color: #a8935c;
    text-decoration: underline;
} 