/* ============================================
   READING - Styles de lecture et novel
   ============================================ */

/* ============================================
   NOVEL - EN-TÊTE HERO
   ============================================ */

   .novel-hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    background-color: #2c1810;
    width: 100%;
    padding: 0;
}

.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* Colonne couverture */
.hero-cover-column {
    display: flex;
    justify-content: center;
}

.novel-cover-hero {
    position: relative;
    width: 220px;
    height: 320px;
}

.novel-cover-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #d4a574;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.novel-cover-shadow {
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: rgba(212, 165, 116, 0.2);
    border-radius: 8px;
    filter: blur(15px);
    z-index: 1;
}

/* Colonne informations */
.hero-info-column {
    padding-top: 0.5rem;
}

.novel-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.novel-hero-author {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    color: #d4a574;
    margin-bottom: 1rem;
    font-style: italic;
}

.novel-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stat-item i {
    color: #d4a574;
    font-size: 1rem;
}

.novel-hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-genre-badge {
    font-family: 'Crimson Text', serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border: 1px solid #d4a574;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.hero-genre-badge:hover {
    background: #d4a574;
    color: #2c1810;
}

.novel-hero-description {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #d4a574;
    border-radius: 4px;
}

.novel-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Crimson Text', serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-meta-item {
    display: flex;
    align-items: center;
}

/* Colonne actions et notation */
.hero-action-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-rating-box {
    background: rgba(212, 165, 116, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid #d4a574;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.hero-rating-stars {
    font-size: 1.75rem;
    color: #d4a574;
    margin-bottom: 0.5rem;
}

.hero-rating-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-rating-label {
    font-family: 'Crimson Text', serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-rating-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.hero-rating-form-title {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 0.75rem;
}

.hero-star-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.star-rating-hero {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating-hero:hover,
input[type="radio"]:checked + .star-rating-hero {
    color: #d4a574;
    transform: scale(1.1);
}

.novel-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ============================================
   SECTION PRINCIPALE - MISE EN PAGE
   ============================================ */

.section-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c1810;
    text-align: center;
    border-bottom: 3px solid #d4a574;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* ============================================
   LISTE DES CHAPITRES
   ============================================ */

.chapter-item {
    background: linear-gradient(135deg, #f5f3ed 0%, #e8e4d9 100%);
    border: 2px solid #8b7355;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chapter-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d4a574;
}

.chapter-scheduled {
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid #8b5cf6;
}

.scheduled-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.75rem;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.countdown-badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #a78bfa;
    font-weight: 500;
}

.chapter-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 0.5rem;
}

.chapter-meta {
    font-family: 'Crimson Text', serif;
    font-size: 0.8rem;
    color: #8b7355;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.chapitre-item {
    position: relative;
}

.chapitre-locked {
    opacity: 0.7;
    cursor: not-allowed;
}

.chapitre-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-free {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.status-author {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.status-owned {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #6a1b9a;
}

.status-locked {
    background: linear-gradient(135deg, #fafafa 0%, #eeeeee 100%);
    color: #616161;
    border: 1px solid #e0e0e0;
}

.status-scheduled {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #6366f1;
    color: white;
}

.coin-icon {
    font-size: 0.9rem;
}

/* ============================================
   ACHAT DE CHAPITRE
   ============================================ */

.chapter-locked-overlay {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.locked-message {
    background: #fff;
    border: 3px solid #e8dcc8;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.locked-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c1810;
    font-family: 'Crimson Text', serif;
}

.locked-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.locked-message strong {
    color: #c9a877;
    font-weight: 700;
}

.unlock-button,
.buy-coins-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 1.5rem 0.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unlock-button {
    background: linear-gradient(135deg, #c9a877 0%, #b89665 100%);
    color: white;
}

.unlock-button:hover {
    background: linear-gradient(135deg, #b89665 0%, #a68556 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 119, 0.4);
}

.buy-coins-button {
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 100%);
    color: white;
}

.buy-coins-button:hover {
    background: linear-gradient(135deg, #3d2418 0%, #4e2f20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.4);
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #2c1810;
}

/* ============================================
   COMMENTAIRES SIDEBAR
   ============================================ */

.comments-sidebar {
    background: linear-gradient(135deg, #f5f3ed 0%, #e8e4d9 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        inset 0 2px 4px rgba(139, 115, 85, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.comments-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c1810;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.comment-form-sidebar {
    background: #fff;
    border: 1px solid #8b7355;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form-title-sidebar {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-textarea-sidebar {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 2px solid #8b7355;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: #2c1810;
    background: #fafaf8;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-textarea-sidebar:focus {
    outline: none;
    border-color: #d4a574;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.comment-submit-btn-sidebar {
    width: 100%;
    background: linear-gradient(to bottom, #d4a574, #c19360);
    color: #2c1810;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #8b7355;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.comment-submit-btn-sidebar:hover {
    background: linear-gradient(to bottom, #e0b786, #d4a574);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-info-text-sidebar {
    font-family: 'Crimson Text', serif;
    font-size: 0.7rem;
    color: #8b7355;
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
}

.login-required-sidebar {
    text-align: center;
    padding: 1.5rem;
    background: #fff9e6;
    border: 2px solid #d4a574;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: #2c1810;
}

.comments-list-sidebar {
    margin-top: 1.5rem;
}

.comments-list-title {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4a574;
}

.comment-item-sidebar {
    background: #fff;
    border: 1px solid #e8e4d9;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.comment-item-sidebar:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.comment-header-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.comment-author-sidebar {
    font-family: 'Crimson Text', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c1810;
}

.comment-date-sidebar {
    font-family: 'Crimson Text', serif;
    font-size: 0.7rem;
    color: #8b7355;
}

.comment-content-sidebar {
    font-family: 'Crimson Text', serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #2c1810;
}

.no-comments-sidebar {
    text-align: center;
    padding: 2rem 1rem;
    color: #8b7355;
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
}

/* Ajustements pour les icônes gold dans les commentaires */
.comment-author-sidebar i,
.no-comments-sidebar i,
.login-required-sidebar i {
    color: #d4a574;
}

/* ============================================
   COMMENTAIRES (SECTION COMPLÈTE)
   ============================================ */

.comments-section {
    background: linear-gradient(135deg, #f5f3ed 0%, #e8e4d9 100%);
    border: 2px solid #8b7355;
    border-radius: 8px;
    box-shadow: 
        inset 0 2px 4px rgba(139, 115, 85, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c1810;
    text-align: center;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.comment-form-container {
    background: #fff;
    border: 1px solid #8b7355;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-form-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 2px solid #8b7355;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #2c1810;
    background: #fafaf8;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #d4a574;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.comment-submit-btn {
    background: linear-gradient(to bottom, #d4a574, #b8941f);
    color: #2c1810;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #8b7355;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-submit-btn:hover {
    background: linear-gradient(to bottom, #e6c14a, #d4a574);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.comment-info-text {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: #8b7355;
    margin-top: 0.5rem;
    font-style: italic;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: #fff;
    border: 1px solid #8b7355;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8e4d9;
}

.comment-author {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c1810;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author i {
    color: #d4a574;
}

.comment-date {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: #8b7355;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-content {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c1810;
    white-space: pre-wrap;
}

.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: #8b7355;
}

.no-comments-icon {
    font-size: 3rem;
    color: #d4a574;
    margin-bottom: 1rem;
}

.no-comments-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    font-style: italic;
}

.login-required-message {
    background: #fff9e6;
    border: 2px solid #d4a574;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    font-family: 'Crimson Text', serif;
}

.login-required-message p {
    margin-bottom: 1rem;
    color: #2c1810;
    font-size: 1.125rem;
}

.login-link {
    color: #d4a574;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #b8941f;
    text-decoration: underline;
}

/* ============================================
   LECTURE - CONTENU DU CHAPITRE
   ============================================ */

.chapitre-content,
.chapitre-content-library {
    font-family: 'Crimson Text', serif;
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--ink-dark);
    max-width: 100%;
    text-align: justify;
    hyphens: auto;
}

.chapitre-content-library p {
    margin-bottom: 2rem;
    text-indent: 2em;
}

.chapitre-content-library p:first-of-type {
    text-indent: 0;
}

.chapitre-content p {
    margin-bottom: 1.5rem;
}

/* Titres dans le contenu */
.chapitre-content h1,
.chapitre-content h2,
.chapitre-content h3,
.chapitre-content h4,
.chapitre-content h5,
.chapitre-content h6,
.chapitre-content-library h1,
.chapitre-content-library h2,
.chapitre-content-library h3 {
    font-family: 'Playfair Display', serif;
    color: var(--ink-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-indent: 0;
}

.chapitre-content h1,
.chapitre-content-library h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--gold-accent);
    padding-bottom: 1rem;
    letter-spacing: 2px;
}

.chapitre-content h2,
.chapitre-content-library h2 {
    font-size: 2rem;
    color: var(--gold-dark);
}

.chapitre-content-library h2::before,
.chapitre-content-library h2::after {
    content: '◆';
    color: var(--gold-accent);
    margin: 0 15px;
    font-size: 0.8em;
}

.chapitre-content h3,
.chapitre-content-library h3 {
    font-size: 1.5rem;
    font-style: italic;
}

.chapitre-content h4 {
    font-size: 1.1rem;
}

.chapitre-content h5 {
    font-size: 1rem;
}

.chapitre-content h6 {
    font-size: 0.9rem;
}

/* Citations */
.chapitre-content blockquote,
.chapitre-content-library blockquote {
    border-left: 5px solid var(--gold-accent);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    background: rgba(212, 165, 116, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    position: relative;
    text-indent: 0;
}

.chapitre-content blockquote {
    background-color: #f7fafc;
}

.chapitre-content-library blockquote::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 4rem;
    color: var(--gold-accent);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Emphases */
.chapitre-content strong,
.chapitre-content-library strong {
    color: var(--leather-brown);
    font-weight: 700;
}

.chapitre-content em,
.chapitre-content-library em {
    color: var(--ink-medium);
    font-style: italic;
}

/* Code */
.chapitre-content code {
    background-color: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.chapitre-content pre {
    background-color: #2d3748;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Listes */
.chapitre-content ul,
.chapitre-content ol,
.chapitre-content-library ul,
.chapitre-content-library ol {
    margin: 2rem 0;
    padding-left: 3rem;
    text-indent: 0;
}

.chapitre-content li,
.chapitre-content-library li {
    margin-bottom: 1rem;
    text-indent: 0;
}

.chapitre-content-library ul li::marker {
    content: '⦿ ';
    color: var(--gold-accent);
}

/* Liste de vérification */
.chapitre-content ul[data-checked="true"],
.chapitre-content ul[data-checked="false"] {
    list-style-type: none;
    padding-left: 1.5rem;
}

.chapitre-content li[data-list="checked"]::before {
    content: '☑';
    margin-right: 0.5rem;
    color: #28a745;
}

.chapitre-content li[data-list="unchecked"]::before {
    content: '☐';
    margin-right: 0.5rem;
    color: #6c757d;
}

/* Liens */
.chapitre-content a,
.chapitre-content-library a {
    color: var(--gold-dark);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold-accent);
    transition: all 0.3s ease;
}

.chapitre-content a {
    color: #ee932d;
    text-decoration: underline;
}

.chapitre-content a:hover,
.chapitre-content-library a:hover {
    color: var(--leather-brown);
    border-bottom-style: solid;
}

.chapitre-content a:hover {
    color: #111828;
}

/* Images */
.chapitre-content img,
.chapitre-content-library img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
    border: 2px solid var(--gold-accent);
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.2);
}

/* Vidéos */
.chapitre-content iframe {
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
}

/* Alignement */
.chapitre-content .ql-align-center,
.ql-align-center {
    text-align: center;
}

.chapitre-content .ql-align-right,
.ql-align-right {
    text-align: right;
}

.chapitre-content .ql-align-justify,
.ql-align-justify {
    text-align: justify;
}

/* Indentation */
.chapitre-content .ql-indent-1 { padding-left: 3em; }
.chapitre-content .ql-indent-2 { padding-left: 6em; }
.chapitre-content .ql-indent-3 { padding-left: 9em; }
.chapitre-content .ql-indent-4 { padding-left: 12em; }
.chapitre-content .ql-indent-5 { padding-left: 15em; }
.chapitre-content .ql-indent-6 { padding-left: 18em; }
.chapitre-content .ql-indent-7 { padding-left: 21em; }
.chapitre-content .ql-indent-8 { padding-left: 24em; }

/* Scripts */
.chapitre-content sub {
    vertical-align: sub;
    font-size: smaller;
}

.chapitre-content sup {
    vertical-align: super;
    font-size: smaller;
}

/* Direction du texte */
.chapitre-content .ql-direction-rtl {
    direction: rtl;
    text-align: inherit;
}

/* Statistiques */
.stats-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.stats-separator {
    width: 4px;
    height: 4px;
    background-color: #d1d5db;
    border-radius: 50%;
}

/* ============================================
   MANUSCRIT DE LECTURE
   ============================================ */

.reading-manuscript {
    background: linear-gradient(to bottom, #fefdfb 0%, #f9f6ef 100%);
    border: 3px solid var(--gold-dark);
    border-radius: 8px;
    padding: 60px;
    box-shadow: 
        0 10px 30px rgba(44, 24, 16, 0.2),
        inset 0 0 100px rgba(218, 201, 177, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    line-height: 2.2;
    font-size: 1.15rem;
}

.reading-manuscript::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--gold-accent);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.3;
}

.reading-manuscript::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #e8dcc8 transparent transparent;
    filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.2));
}

/* ============================================
   CONTRÔLES DE LECTURE
   ============================================ */

.reading-controls,
.reading-controls-library {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(145deg, rgba(244, 241, 232, 0.98), rgba(239, 233, 220, 0.98));
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-accent);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 
        0 8px 24px rgba(44, 24, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: 280px;
    animation: slideInLeft 0.5s ease-out;
}

.reading-controls:hover,
.reading-controls-library:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(44, 24, 16, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.reading-controls.dark-mode,
body.dark-reading-mode .reading-controls-library {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(42, 42, 42, 0.98));
    border-color: var(--gold-dark);
}

.control-group,
.control-group-library {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.control-group:last-child,
.control-group-library:last-child {
    margin-bottom: 0;
}

.control-label,
.control-label-library {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reading-controls.dark-mode .control-label,
body.dark-reading-mode .control-label-library {
    color: var(--gold-accent);
}

.control-buttons,
.control-buttons-library {
    display: flex;
    gap: 6px;
    align-items: center;
}

.control-btn,
.control-btn-library {
    background: linear-gradient(to bottom, #faf8f3, #efe9dc);
    border: 2px solid var(--gold-dark);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-dark);
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.15);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.control-btn i,
.control-btn-library i {
    font-size: 0.875rem;
}

.control-btn:hover,
.control-btn-library:hover {
    background: linear-gradient(to bottom, var(--gold-accent), var(--gold-dark));
    color: var(--ink-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.control-btn.active,
.control-btn-library.active {
    background: linear-gradient(to bottom, var(--leather-brown), var(--ink-dark));
    color: var(--gold-accent);
    border-color: var(--gold-accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 24, 16, 0.3);
}

.reading-controls.dark-mode .control-btn,
body.dark-reading-mode .control-btn-library {
    background: linear-gradient(to bottom, #2a2a2a, #1e1e1e);
    color: #e5e7eb;
    border-color: var(--gold-dark);
}

.reading-controls.dark-mode .control-btn:hover,
body.dark-reading-mode .control-btn-library:hover {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold-accent));
    color: var(--ink-dark);
}

.reading-controls.dark-mode .control-btn.active,
body.dark-reading-mode .control-btn-library.active {
    background: linear-gradient(to bottom, var(--gold-accent), var(--gold-dark));
    color: var(--ink-dark);
}

.control-separator {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
}

.reading-controls.dark-mode .control-separator {
    background: linear-gradient(to bottom, transparent, #4b5563, transparent);
}

/* ============================================
   MODE SOMBRE
   ============================================ */

body.dark-reading-mode {
    background: #1a1a1a;
}

body.dark-reading-mode .paper-texture {
    background: #1a1a1a;
}

body.dark-reading-mode .reading-manuscript {
    background: linear-gradient(to bottom, #1e1e1e 0%, #2a2a2a 100%);
    border-color: var(--gold-dark);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
}

body.dark-reading-mode .chapitre-content,
body.dark-reading-mode .chapitre-content-library {
    color: #e5e7eb;
    background: #1a1a1a;
}

body.dark-reading-mode .chapitre-content h1,
body.dark-reading-mode .chapitre-content h2,
body.dark-reading-mode .chapitre-content h3,
body.dark-reading-mode .chapitre-content h4,
body.dark-reading-mode .chapitre-content h5,
body.dark-reading-mode .chapitre-content h6,
body.dark-reading-mode .chapitre-content-library h1,
body.dark-reading-mode .chapitre-content-library h2,
body.dark-reading-mode .chapitre-content-library h3 {
    color: var(--gold-accent);
}

body.dark-reading-mode .chapitre-content h2 {
    color: #ee932d;
}

body.dark-reading-mode .chapitre-content strong,
body.dark-reading-mode .chapitre-content-library strong {
    color: #f3f4f6;
}

body.dark-reading-mode .chapitre-content em,
body.dark-reading-mode .chapitre-content-library em {
    color: #d1d5db;
}

body.dark-reading-mode .chapitre-content blockquote,
body.dark-reading-mode .chapitre-content-library blockquote {
    background: rgba(212, 165, 116, 0.15);
    border-left-color: var(--gold-accent);
}

body.dark-reading-mode .chapitre-content blockquote {
    background-color: #2d2d2d;
}

body.dark-reading-mode .chapitre-content code {
    background-color: #2d2d2d;
    color: var(--gold-accent);
}

body.dark-reading-mode .chapitre-content pre {
    background-color: #0d1117;
}

/* ============================================
   TAILLES DE POLICE
   ============================================ */

.chapitre-content.text-small,
.chapitre-content-library.text-small {
    font-size: 1rem;
    line-height: 2;
}

.chapitre-content.text-medium,
.chapitre-content-library.text-medium {
    font-size: 1.15rem;
    line-height: 2.2;
}

.chapitre-content.text-large,
.chapitre-content-library.text-large {
    font-size: 1.35rem;
    line-height: 2.4;
}

.chapitre-content.text-xlarge,
.chapitre-content-library.text-xlarge {
    font-size: 1.55rem;
    line-height: 2.6;
}

/* ============================================
   BARRE DE PROGRESSION
   ============================================ */

.reading-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reading-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #d4a574, #e0b786);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.reading-progress-text {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #d4a574;
    min-width: 50px;
    text-align: right;
}

/* ============================================
   NOTIFICATION MARQUE-PAGE
   ============================================ */

.bookmark-notification {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 10000;
    background: linear-gradient(135deg, #d4a574 0%, #c19360 100%);
    color: #2c1810;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.bookmark-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.bookmark-notification i {
    font-size: 1.25rem;
}

/* ============================================
   LECTEUR AUDIO
   ============================================ */

.audio-player-library,
.audio-player-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, rgba(244, 241, 232, 0.98), rgba(239, 233, 220, 0.98));
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 
        0 8px 24px rgba(44, 24, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1000;
    max-width: 280px;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

.audio-player-library:hover,
.audio-player-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(44, 24, 16, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.audio-player-content-library,
.audio-player-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-toggle-library,
.audio-toggle {
    background: linear-gradient(to bottom, var(--leather-brown), var(--ink-dark));
    color: var(--gold-accent);
    border: 2px solid var(--gold-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.audio-toggle-library:hover,
.audio-toggle:hover {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold-accent));
    color: var(--ink-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

.audio-info-library,
.audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.audio-label-library,
.audio-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--ink-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-volume-container i {
    font-size: 0.75rem;
    color: var(--leather-brown);
    flex-shrink: 0;
}

.audio-volume-library,
.audio-volume {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--gold-accent), var(--gold-dark));
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.audio-volume-library::-webkit-slider-thumb,
.audio-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--leather-brown);
    border: 2px solid var(--gold-accent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-volume-library::-webkit-slider-thumb:hover,
.audio-volume::-webkit-slider-thumb:hover {
    background: var(--gold-accent);
    transform: scale(1.2);
}

.audio-volume-library::-moz-range-thumb,
.audio-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--leather-brown);
    border: 2px solid var(--gold-accent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-volume-library::-moz-range-thumb:hover,
.audio-volume::-moz-range-thumb:hover {
    background: var(--gold-accent);
    transform: scale(1.2);
}

.audio-close-library,
.audio-close {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    color: white;
    border: 2px solid #991b1b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.audio-close-library:hover,
.audio-close:hover {
    background: linear-gradient(to bottom, #b91c1c, #991b1b);
    transform: scale(1.1);
}

body.dark-reading-mode .audio-player-library,
body.dark-reading-mode .audio-player-container {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(42, 42, 42, 0.98));
    border-color: var(--gold-dark);
}

body.dark-reading-mode .audio-label-library,
body.dark-reading-mode .audio-label {
    color: var(--gold-accent);
}

body.dark-reading-mode .audio-volume-container i {
    color: var(--gold-accent);
}

audio {
    display: none;
}

/* ============================================
   BOUTIQUE/COINS
   ============================================ */

.coins-header-card {
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(44, 24, 16, 0.3);
    text-align: center;
}

.coins-balance-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.balance-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.balance-content {
    text-align: left;
}

.balance-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f6e6d3;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.balance-label {
    font-size: 1.1rem;
    color: #d4b896;
    font-weight: 500;
    margin-top: 0.5rem;
}

.coins-description {
    color: #e8dcc8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.packages-grid,
.packages-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.package-card,
.package-card-compact {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
    border: 2px solid #e8dcc8;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover,
.package-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #c9a877;
}

.package-popular,
.package-highlighted {
    border: 3px solid #c9a877;
    background: linear-gradient(135deg, #fffef9 0%, #fdf8f0 100%);
}

.popular-badge,
.package-popular-tag {
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(135deg, #c9a877 0%, #b89665 100%);
    color: white;
    padding: 3px 35px;
    transform: rotate(35deg);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popular-badge {
    top: 15px;
    right: -35px;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
}

.package-name,
.package-name-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', serif;
}

.package-name-compact {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.package-coins,
.package-coins-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.coins-number,
.coins-number-compact {
    font-size: 3rem;
    font-weight: 700;
    color: #c9a877;
}

.coins-number-compact {
    font-size: 2.5rem;
}

.coins-text {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coins-icon-compact {
    font-size: 1.75rem;
}

.package-price,
.package-price-compact {
    text-align: center;
    margin: 1.5rem 0;
}

.package-price-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c1810;
    margin: 0.75rem 0;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2c1810;
}

.package-bonus {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.package-bonus-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.bonus-premium {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.bonus-mega {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #6a1b9a;
}

.package-details {
    border-top: 1px solid #e8dcc8;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #5a4a3a;
}

.detail-icon {
    font-size: 1.2rem;
}

.package-button,
.btn-buy-package {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-buy-package {
    padding: 0.875rem;
}

.package-button:hover,
.btn-buy-package:hover {
    background: linear-gradient(135deg, #3d2418 0%, #4e2f20 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.3);
}

.package-popular .package-button,
.package-highlighted .btn-buy-package {
    background: linear-gradient(135deg, #c9a877 0%, #b89665 100%);
}

.package-popular .package-button:hover,
.package-highlighted .btn-buy-package:hover {
    background: linear-gradient(135deg, #b89665 0%, #a68556 100%);
}

/* Transactions */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
    border: 1px solid #e8dcc8;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: #d4b896;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.transaction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
}

.transaction-description {
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.85rem;
    color: #666;
}

.transaction-amount {
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.amount-positive {
    color: #2e7d32;
}

.amount-negative {
    color: #c62828;
}

.empty-transactions {
    text-align: center;
    padding: 3rem;
}

/* ============================================
   ÉDITEUR QUILL
   ============================================ */

.ql-editor {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    min-height: 400px;
}

.ql-editor.ql-blank::before {
    font-style: italic;
    color: #a0aec0;
}

.ql-toolbar {
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border: 1px solid #d1d5db;
}

.ql-container {
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-scheduled {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.chapter-scheduled:hover {
    animation: pulse-scheduled 2s ease-in-out infinite;
}

/* Sélection de texte */
.chapitre-content-library ::selection {
    background-color: var(--gold-accent);
    color: var(--ink-dark);
}

/* Texte avec effet enluminure */
.illuminated-text::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 3.5em;
    line-height: 0.8;
    float: left;
    margin: 0.1em 0.1em 0 0;
    color: var(--gold-dark);
    font-weight: 700;
}

/* Défilement fluide */
html {
    scroll-behavior: smooth;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-cover-column {
        justify-content: center;
    }
    
    .hero-action-column {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .comments-sidebar {
        position: static;
        max-height: none;
    }
    
    .reading-controls-library,
    .reading-controls,
    .audio-player-library,
    .audio-player-container {
        left: 20px;
        bottom: 20px;
        max-width: 260px;
    }
    
    .reading-manuscript {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .novel-hero-title {
        font-size: 1.75rem;
    }
    
    .novel-hero-author {
        font-size: 1rem;
    }
    
    .section-title-main {
        font-size: 1.5rem;
    }
    
    .chapter-item {
        padding: 0.75rem;
    }
    
    .chapitre-content,
    .chapitre-content-library {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .chapitre-content h1,
    .chapitre-content-library h1 {
        font-size: 1.75rem;
    }
    
    .chapitre-content h2,
    .chapitre-content-library h2 {
        font-size: 1.25rem;
    }
    
    .chapitre-content h3,
    .chapitre-content-library h3 {
        font-size: 1.1rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stats-separator {
        display: none;
    }
    
    .reading-controls-library,
    .reading-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        max-width: calc(100% - 40px);
        padding: 12px;
    }
    
    .reading-controls-library:hover {
        transform: translateX(-50%) translateY(-3px);
    }
    
    .control-btn-library,
    .control-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .control-label-library,
    .control-label {
        font-size: 0.7rem;
    }
    
    .control-group {
        width: 100%;
    }
    
    .control-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .control-separator {
        display: none;
    }
    
    .audio-player-library,
    .audio-player-container {
        bottom: 80px;
        right: 50%;
        transform: translateX(50%);
        left: auto;
        max-width: calc(100% - 40px);
        padding: 12px;
    }
    
    .audio-player-library:hover {
        transform: translateX(50%) translateY(-3px);
    }
    
    .audio-toggle-library,
    .audio-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .audio-label-library,
    .audio-label {
        font-size: 0.7rem;
    }
    
    .audio-close-library,
    .audio-close {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .audio-volume-container i {
        font-size: 0.7rem;
    }
    
    .reading-manuscript {
        padding: 30px 20px;
    }
    
    .chapitre-content-library {
        font-size: 1.05rem;
        line-height: 2;
    }
    
    .chapitre-content-library p {
        text-indent: 1.5em;
    }
    
    .chapitre-content-library h1 {
        font-size: 1.8rem;
    }
    
    .chapitre-content-library h2 {
        font-size: 1.5rem;
    }
    
    .chapitre-content .ql-indent-1 { padding-left: 1.5em; }
    .chapitre-content .ql-indent-2 { padding-left: 3em; }
    .chapitre-content .ql-indent-3 { padding-left: 4.5em; }
    .chapitre-content .ql-indent-4 { padding-left: 6em; }
    .chapitre-content .ql-indent-5 { padding-left: 7.5em; }
    .chapitre-content .ql-indent-6 { padding-left: 9em; }
    .chapitre-content .ql-indent-7 { padding-left: 10.5em; }
    .chapitre-content .ql-indent-8 { padding-left: 12em; }
    
    .ql-editor {
        font-size: 1rem !important;
        min-height: 300px;
    }
    
    .bookmark-notification {
        right: 1rem;
        left: 1rem;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .reading-progress-text {
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .coins-balance-large {
        flex-direction: column;
    }
    
    .balance-content {
        text-align: center;
    }
    
    .balance-amount {
        font-size: 2.5rem;
    }
    
    .packages-grid,
    .packages-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-wrap: wrap;
    }
    
    .transaction-amount {
        width: 100%;
        text-align: right;
        margin-top: 0.5rem;
    }
    
    .locked-message {
        padding: 2rem 1.5rem;
    }
    
    .locked-message h2 {
        font-size: 1.5rem;
    }
    
    .unlock-button,
    .buy-coins-button {
        display: block;
        width: 100%;
        margin: 1rem 0;
    }
    
    .comments-section {
        padding: 1.5rem 1rem;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   PROFIL & FORMS - Styles pour formulaires
   ============================================ */

/* ============================================
   CONTENEUR FORMULAIRE PRINCIPAL
   ============================================ */

   .reading-parchment {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
    border: 3px solid var(--gold-dark);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 10px 40px rgba(44, 24, 16, 0.2),
        inset 0 0 80px rgba(218, 201, 177, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

.reading-parchment::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

.reading-parchment::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent #e8dcc8 transparent transparent;
    filter: drop-shadow(-3px 3px 4px rgba(0, 0, 0, 0.15));
    border-radius: 0 16px 0 0;
}

/* ============================================
   LABELS ET TITRES DE FORMULAIRES
   ============================================ */

.reading-parchment label {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.reading-parchment label i {
    color: var(--gold-accent);
    font-size: 1.1rem;
}

.reading-parchment h2,
.reading-parchment h3 {
    font-family: 'Playfair Display', serif;
    color: var(--ink-dark);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.reading-parchment h2::after,
.reading-parchment h3::after {
    content: '◆';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-accent);
    font-size: 1.5rem;
}

/* ============================================
   CHAMPS DE FORMULAIRE
   ============================================ */

.reading-parchment input[type="text"],
.reading-parchment input[type="email"],
.reading-parchment input[type="password"],
.reading-parchment input[type="file"],
.reading-parchment select,
.reading-parchment textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    color: var(--ink-dark);
    background: #fff;
    border: 3px solid #e8dcc8;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reading-parchment input[type="text"]:focus,
.reading-parchment input[type="email"]:focus,
.reading-parchment input[type="password"]:focus,
.reading-parchment select:focus,
.reading-parchment textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: #fffef9;
    box-shadow: 
        0 0 0 4px rgba(212, 165, 116, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.reading-parchment input[type="text"]:hover,
.reading-parchment input[type="email"]:hover,
.reading-parchment input[type="password"]:hover,
.reading-parchment select:hover,
.reading-parchment textarea:hover {
    border-color: var(--gold-dark);
}

/* Input file personnalisé */
.reading-parchment input[type="file"] {
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: linear-gradient(to bottom, #fff, #fdfbf7);
}

.reading-parchment input[type="file"]::file-selector-button {
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
    background: linear-gradient(to bottom, var(--leather-brown), var(--ink-dark));
    color: var(--gold-accent);
    border: 2px solid var(--gold-dark);
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reading-parchment input[type="file"]::file-selector-button:hover {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold-accent));
    color: var(--ink-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Select multiple pour les genres */
.reading-parchment select[multiple] {
    min-height: 180px;
    padding: 0.75rem;
}

.reading-parchment select[multiple] option {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    cursor: pointer;
}

.reading-parchment select[multiple] option:hover {
    background: linear-gradient(to right, rgba(212, 165, 116, 0.2), transparent);
}

.reading-parchment select[multiple] option:checked {
    background: linear-gradient(to right, var(--gold-accent), var(--gold-dark));
    color: var(--ink-dark);
    font-weight: 600;
}

/* Textarea */
.reading-parchment textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.8;
}

/* ============================================
   TEXTES D'AIDE ET COMPTEURS
   ============================================ */

.reading-parchment .text-xs {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: var(--leather-brown);
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

.reading-parchment .text-xs strong {
    color: var(--ink-dark);
    font-weight: 700;
}

/* Compteurs de caractères */
#count-court,
#count-long {
    font-weight: 700;
    color: var(--gold-dark);
}

/* ============================================
   SECTIONS SPÉCIALES
   ============================================ */

/* Section planification */
.reading-parchment .bg-purple-50 {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border: 3px solid #c084fc;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 
        0 4px 12px rgba(192, 132, 252, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.reading-parchment .bg-purple-50 label {
    text-transform: none;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-dark);
}

/* Checkboxes de jours */
.reading-parchment input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #c084fc;
    appearance: none;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.reading-parchment input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #6366f1;
}

.reading-parchment input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.reading-parchment .hover\:bg-purple-100:hover {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

/* Messages d'information */
.reading-parchment .bg-blue-50 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #60a5fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.reading-parchment .bg-red-50 {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #f87171;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* ============================================
   MESSAGES D'ERREUR
   ============================================ */

.reading-parchment .text-red-600 {
    color: #dc2626;
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid #dc2626;
    border-radius: 4px;
}

/* ============================================
   BOUTONS DE FORMULAIRE
   ============================================ */

.reading-parchment .btn-library {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 4px 12px rgba(44, 24, 16, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.reading-parchment .btn-library:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(44, 24, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.reading-parchment .btn-library:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(44, 24, 16, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   PARAMÈTRES - AFFICHAGE INFO
   ============================================ */

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold-accent);
}

.settings-info {
    background: linear-gradient(to right, rgba(212, 165, 116, 0.05), transparent);
    border-left: 4px solid var(--gold-accent);
    padding: 1.5rem;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--leather-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: var(--ink-dark);
    font-weight: 600;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.settings-actions .btn-library {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   GROUPES DE FORMULAIRE
   ============================================ */

.reading-parchment .mb-6,
.reading-parchment .mb-8 {
    position: relative;
}

.reading-parchment .mb-6::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.reading-parchment .mb-6:last-of-type::after,
.reading-parchment .mb-8:last-of-type::after {
    display: none;
}

/* ============================================
   EFFETS D'ANIMATION
   ============================================ */

@keyframes formFieldFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.reading-parchment input:focus,
.reading-parchment select:focus,
.reading-parchment textarea:focus {
    animation: formFieldFocus 0.3s ease;
}

/* Effet d'apparition progressive des champs */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reading-parchment .mb-6 {
    animation: fadeInUp 0.5s ease-out backwards;
}

.reading-parchment .mb-6:nth-child(1) { animation-delay: 0.1s; }
.reading-parchment .mb-6:nth-child(2) { animation-delay: 0.2s; }
.reading-parchment .mb-6:nth-child(3) { animation-delay: 0.3s; }
.reading-parchment .mb-6:nth-child(4) { animation-delay: 0.4s; }
.reading-parchment .mb-6:nth-child(5) { animation-delay: 0.5s; }
.reading-parchment .mb-6:nth-child(6) { animation-delay: 0.6s; }
.reading-parchment .mb-6:nth-child(7) { animation-delay: 0.7s; }
.reading-parchment .mb-6:nth-child(8) { animation-delay: 0.8s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .reading-parchment {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .reading-parchment {
        padding: 2rem 1.5rem;
        border-width: 2px;
    }
    
    .reading-parchment::after {
        border-width: 0 35px 35px 0;
    }
    
    .reading-parchment input[type="text"],
    .reading-parchment input[type="email"],
    .reading-parchment input[type="password"],
    .reading-parchment select,
    .reading-parchment textarea {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .reading-parchment label {
        font-size: 0.875rem;
    }
    
    .reading-parchment .btn-library {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn-library {
        width: 100%;
        min-width: 0;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reading-parchment select[multiple] {
        min-height: 150px;
    }
    
    .reading-parchment .bg-purple-50 {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reading-parchment {
        padding: 1.5rem 1rem;
    }
    
    .reading-parchment h2 {
        font-size: 1.75rem;
    }
    
    .reading-parchment h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   OPTGROUP STYLING (pour les sélecteurs)
   ============================================ */

.reading-parchment optgroup {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--leather-brown);
    font-size: 0.9rem;
    padding-top: 0.5rem;
}

.reading-parchment option {
    font-family: 'Crimson Text', serif;
    padding: 0.5rem;
}

/* ============================================
   AMÉLIORATION VISUELLE DES PLACEHOLDER
   ============================================ */

.reading-parchment input::placeholder,
.reading-parchment textarea::placeholder {
    color: rgba(93, 64, 55, 0.4);
    font-style: italic;
    font-family: 'Crimson Text', serif;
}

.reading-parchment input:focus::placeholder,
.reading-parchment textarea:focus::placeholder {
    opacity: 0.6;
}

/* ============================================
   CONTACT - Styles pour la page de contact
   ============================================ */

/* ============================================
   CONTENEUR FORMULAIRE DE CONTACT
   ============================================ */

   .contact-form-container {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
    border: 3px solid var(--gold-dark);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 10px 40px rgba(44, 24, 16, 0.2),
        inset 0 0 80px rgba(218, 201, 177, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent #e8dcc8 transparent transparent;
    filter: drop-shadow(-3px 3px 4px rgba(0, 0, 0, 0.15));
    border-radius: 0 16px 0 0;
}

/* ============================================
   TITRE ET SOUS-TITRE DU FORMULAIRE
   ============================================ */

.contact-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink-dark);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.contact-form-title::after {
    content: '◆';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-accent);
    font-size: 1.5rem;
}

.contact-form-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--leather-brown);
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */

.contact-form {
    margin-top: 2rem;
}

.form-row {
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out backwards;
}

.form-row:nth-child(1) { animation-delay: 0.1s; }
.form-row:nth-child(2) { animation-delay: 0.2s; }
.form-row:nth-child(3) { animation-delay: 0.3s; }
.form-row:nth-child(4) { animation-delay: 0.4s; }
.form-row:nth-child(5) { animation-delay: 0.5s; }

.form-group-contact {
    width: 100%;
}

.contact-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

/* ============================================
   CHAMPS DE SAISIE AVEC ICÔNES
   ============================================ */

.contact-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-input-icon,
.contact-textarea-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--gold-dark);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-textarea-icon {
    top: 1.25rem;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    color: var(--ink-dark);
    background: #fff;
    border: 3px solid #e8dcc8;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.8;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: #fffef9;
    box-shadow: 
        0 0 0 4px rgba(212, 165, 116, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.contact-input:focus + .contact-input-icon,
.contact-textarea:focus ~ .contact-textarea-icon {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.contact-input:hover,
.contact-textarea:hover {
    border-color: var(--gold-dark);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(93, 64, 55, 0.4);
    font-style: italic;
}

/* ============================================
   CAPTCHA
   ============================================ */

.captcha-container {
    margin-bottom: 1rem;
}

.captcha-display {
    background: linear-gradient(135deg, var(--leather-brown), var(--ink-dark));
    border: 3px solid var(--gold-dark);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.3);
}

.captcha-value {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    letter-spacing: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.captcha-info {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: var(--leather-brown);
    font-style: italic;
    margin-bottom: 0.75rem;
}

/* ============================================
   MESSAGES D'ERREUR
   ============================================ */

.contact-error {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 3px solid #dc2626;
    border-radius: 4px;
    color: #dc2626;
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   BOUTON DE SOUMISSION
   ============================================ */

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
}

.btn-contact-submit {
    padding: 1.25rem 3rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-accent);
    background: linear-gradient(to bottom, var(--leather-brown), var(--ink-dark));
    border: 3px solid var(--gold-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(44, 24, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-contact-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-contact-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contact-submit:hover {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold-accent));
    color: var(--ink-dark);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(212, 165, 116, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-contact-submit:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(44, 24, 16, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-privacy {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: var(--leather-brown);
    font-style: italic;
    text-align: center;
}

/* ============================================
   COLONNE INFORMATIONS
   ============================================ */

.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(212, 165, 116, 0.05), transparent);
    border-left: 3px solid var(--gold-accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: linear-gradient(to right, rgba(212, 165, 116, 0.1), transparent);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-accent), var(--gold-dark));
    border-radius: 50%;
    color: var(--ink-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.contact-info-content {
    flex: 1;
}

.contact-info-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: var(--leather-brown);
    line-height: 1.6;
}

/* ============================================
   RÉSEAUX SOCIAUX
   ============================================ */

.contact-social {
    text-align: center;
    margin-top: 2rem;
}

.contact-social h3 {
    font-family: 'Cinzel', serif;
    color: var(--ink-dark);
    margin-bottom: 1rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fdfbf7, #f8f4ed);
    border: 2px solid var(--gold-dark);
    border-radius: 50%;
    color: var(--leather-brown);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-social-link:hover {
    background: linear-gradient(135deg, var(--gold-accent), var(--gold-dark));
    color: var(--ink-dark);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(212, 165, 116, 0.05), transparent);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: linear-gradient(to bottom, rgba(212, 165, 116, 0.1), transparent);
    border-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.faq-answer {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: var(--leather-brown);
    line-height: 1.6;
    padding-left: 1.75rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.contact-info-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .contact-form-container {
        padding: 2.5rem;
    }
    
    .contact-form-title {
        font-size: 2rem;
    }
    
    .contact-form-subtitle {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
        border-width: 2px;
    }
    
    .contact-form-container::after {
        border-width: 0 35px 35px 0;
    }
    
    .contact-form-title {
        font-size: 1.75rem;
    }
    
    .contact-form-subtitle {
        font-size: 1rem;
        padding: 0;
    }
    
    .contact-label {
        font-size: 0.875rem;
    }
    
    .contact-input,
    .contact-textarea {
        padding: 0.875rem 1rem 0.875rem 3rem;
        font-size: 1rem;
    }
    
    .contact-input-icon,
    .contact-textarea-icon {
        left: 1rem;
        font-size: 1rem;
    }
    
    .captcha-value {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .btn-contact-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .contact-info-item {
        padding: 1rem;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-info-title {
        font-size: 0.875rem;
    }
    
    .contact-info-text {
        font-size: 0.9rem;
    }
    
    .contact-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
    
    .contact-form-subtitle {
        font-size: 0.95rem;
    }
    
    .form-row {
        margin-bottom: 1.5rem;
    }
    
    .captcha-display {
        padding: 1rem;
    }
    
    .captcha-value {
        font-size: 1.25rem;
        letter-spacing: 3px;
    }
}

/* ============================================
   EFFETS SPÉCIAUX
   ============================================ */

/* Effet de brillance sur le bouton */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-contact-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
}

.btn-contact-submit:hover::after {
    animation: shine 0.8s;
}

/* Effet de survol sur les champs */
.contact-input-wrapper:hover .contact-input-icon {
    animation: pulse 0.6s ease;
}

/* Bordure animée sur focus */
@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(212, 165, 116, 0.2);
    }
}

.contact-input:focus,
.contact-textarea:focus {
    animation: borderGlow 2s ease-in-out infinite;
}