        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Karla', sans-serif;
            background: #ffffff;
            padding: 20px;
        }
        
        .chants-container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .chants-layout {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .chants-list-col {
            flex: 0 0 250px;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .chants-detail-col {
            flex: 1;
            background: transparent;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            min-height: auto;
            overflow: visible;
            display: block;
        }
        
        .chants-detail-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #999;
            font-size: 16px;
            text-align: center;
            min-height: 300px;
        }
        
        .page-title {
            text-align: center;
            color: #6580B6;
            margin-bottom: 30px;
            font-size: 28px;
        }
        
        .alphabet-filter {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .alphabet-label {
            display: block;
            margin-bottom: 15px;
            font-weight: bold;
            color: #333;
            font-size: 14px;
        }
        
        .alphabet-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            justify-content: center;
        }
        
        .alphabet-btn {
            padding: 6px 9px;
            border: 2px solid #ddd;
            background: white;
            color: #333;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
            font-size: 11px;
            min-width: 32px;
            text-align: center;
        }
        
        .alphabet-btn:hover {
            background: #6580B6;
            color: white;
            border-color: #6580B6;
        }
        
        .alphabet-btn.active {
            background: #6580B6;
            color: white;
            border-color: #6580B6;
        }
        
        .alphabet-btn.disabled {
            color: #ccc;
            border-color: #ddd;
            cursor: not-allowed;
            opacity: 0.5;
        }
        
        .alphabet-btn.all {
            min-width: auto;
            padding: 8px 16px;
            font-weight: bold;
        }
        
        .chants-list {
            background: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .chants-title {
            color: #6580B6;
            margin-bottom: 20px;
            font-size: 18px;
            font-weight: bold;
        }
        
        /* EN-TÊTE AVEC TITRE ET PAGINATION TOP */
        .chants-title-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .chants-title-header .chants-title {
            margin-bottom: 0;
            flex: 1;
            min-width: 200px;
        }
        
        .pagination-top {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .pagination-btn-top {
            padding: 6px 10px;
            border: 2px solid #6580B6;
            background: white;
            color: #6580B6;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: bold;
            font-size: 13px;
            min-width: 32px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .pagination-btn-top:hover {
            background: #6580B6;
            color: white;
        }
        
        .pagination-btn-top.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            color: #ccc;
            border-color: #ccc;
        }
        
        .pagination-info-top {
            padding: 6px 12px;
            background: #f5f5f5;
            border-radius: 4px;
            font-size: 12px;
            color: #666;
            font-weight: 600;
            min-width: 45px;
            text-align: center;
        }
        
        /* PAGINATION EN BAS */
        .pagination-bottom {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            padding: 20px;
            margin-top: 30px;
            border-top: 2px solid #f0f0f0;
        }
        
        .pagination-btn-bottom {
            padding: 6px 10px;
            border: 2px solid #6580B6;
            background: white;
            color: #6580B6;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: bold;
            font-size: 13px;
            min-width: 32px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .pagination-btn-bottom:hover {
            background: #6580B6;
            color: white;
        }
        
        .pagination-btn-bottom.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            color: #ccc;
            border-color: #ccc;
        }
        
        .pagination-info-bottom {
            padding: 6px 12px;
            background: #f5f5f5;
            border-radius: 4px;
            font-size: 12px;
            color: #666;
            font-weight: 600;
            min-width: 45px;
            text-align: center;
        }
        
        .chant-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            margin-bottom: 10px;
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 10px;
        }
        
        .chant-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .chant-numero {
            display: inline-block;
            background: #6580B6;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            flex-shrink: 0;
        }
        
        .chant-titre {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            display: inline-block;
            flex: 1;
            min-width: 200px;
        }
        
        .chant-auteur {
            font-size: 13px;
            color: #999;
            font-style: italic;
            width: 100%;
            margin-top: -8px;
        }
        
        .chant-texte {
            width: 100%;
            padding-top: 10px;
            border-top: 1px solid #f0f0f0;
            color: #555;
            line-height: 1.6;
            white-space: pre-wrap;
            word-wrap: break-word;
            font-size: 13px;
            max-height: 200px;
            overflow-y: auto;
            background: #f9f9f9;
            padding: 10px;
            border-radius: 4px;
        }
        
        .chant-liste-item {
            padding: 6px 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .chant-liste-item:hover {
            background: #f0f0f0;
            padding-left: 20px;
        }
        
        .chant-liste-numero {
            display: inline-block;
            background: #6580B6;
            color: white;
            padding: 3px 7px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .chant-liste-titre {
            font-weight: bold;
            color: #333;
            font-size: 12px;
        }
        
        .chant-detail-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .chant-detail-content {
            background: white;
            border-radius: 8px;
            padding: 30px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }
        
        .chant-detail-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #6580B6;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
        }
        
        .chant-detail-close:hover {
            background: #4a5fa6;
        }
        
        .chant-detail-numero {
            display: inline-block;
            background: #6580B6;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.8125rem;
            font-weight: bold;
            margin-bottom: 15px;
            min-width: 60px;
            text-align: center;
            flex-shrink: 0;
        }
        
        .chant-detail-header {
            margin-bottom: 15px;
        }
        
        .chant-detail-titre {
            font-size: 1.5rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
        }
        
        .chant-detail-auteur {
            font-size: 0.875rem;
            color: #999;
            font-style: italic;
            margin-bottom: 20px;
        }
        
        .chant-detail-texte {
            color: #555;
            line-height: 1.4;
            white-space: pre-wrap;
            word-wrap: break-word;
            font-size: 0.875rem;
            margin-bottom: 20px;
        }
        
        .chant-detail-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
            border-top: 1px solid #eee;
            padding-top: 15px;
        }
        
        .chant-detail-actions button {
            background: #6580B6;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .chant-detail-actions button:hover {
            background: #4a5fa6;
        }
        
        .no-chants {
            text-align: center;
            padding: 40px;
            color: #999;
            font-size: 16px;
        }
        
        /* CARDS LAYOUT */
        .cards-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .chants-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        
        .chants-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }
        
        .card-title {
            background: linear-gradient(135deg, #6580B6 0%, #5270a0 100%);
            color: white;
            padding: 10px 12px;
            font-weight: bold;
            font-size: 12px;
            text-align: center;
        }
        
        .card-content {
            padding: 10px;
            overflow-y: auto;
            max-height: 400px;
            flex: 1;
        }
        
        .chant-card-item {
            padding: 6px 8px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .chant-card-item:last-child {
            border-bottom: none;
        }
        
        .chant-card-item:hover {
            background: #f5f5f5;
            padding-left: 12px;
        }
        
        .chant-card-numero {
            display: inline-block;
            background: #6580B6;
            color: white;
            padding: 2px 4px;
            border-radius: 3px;
            font-size: 9px;
            font-weight: bold;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        .chant-card-titre {
            font-weight: 500;
            color: #333;
            font-size: 11px;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        /* PAGINATION */
        .pagination-cards {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            padding: 20px;
            background: white;
            border-radius: 8px;
            margin-top: 20px;
        }
        
        .pagination-btn {
            padding: 8px 14px;
            border: 2px solid #6580B6;
            background: white;
            color: #6580B6;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
            font-size: 13px;
        }
        
        .pagination-btn:hover {
            background: #6580B6;
            color: white;
        }
        
        .pagination-btn:disabled,
        .pagination-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            color: #ccc;
            border-color: #ccc;
        }
        
        .pagination-info {
            padding: 8px 16px;
            background: #f5f5f5;
            border-radius: 4px;
            font-size: 13px;
            color: #666;
            font-weight: 500;
            min-width: 200px;
            text-align: center;
        }


        
        .filter-info {
            text-align: center;
            color: #666;
            margin-bottom: 20px;
            font-size: 13px;
        }
        
        @media (max-width: 768px) {
            .page-title {
                font-size: 22px;
            }
            
            .alphabet-buttons {
                justify-content: flex-start;
                gap: 6px;
            }
            
            .alphabet-btn {
                padding: 6px 10px;
                font-size: 12px;
                min-width: 32px;
            }
            
            .chant-item {
                padding: 12px;
            }
            
            .chant-titre {
                display: block;
                margin-bottom: 5px;
            }
            
            .cards-container {
                grid-template-columns: 1fr;
            }
            
            .pagination-cards {
                flex-direction: column;
            }
            
            .pagination-info {
                min-width: auto;
                width: 100%;
            }
            
            .chants-title-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .chants-title-header .chants-title {
                width: 100%;
            }
            
            .pagination-top {
                width: 100%;
                justify-content: flex-start;
                gap: 6px;
            }
            
            .pagination-btn-top {
                padding: 5px 8px;
                font-size: 12px;
                min-width: 28px;
            }
            
            .pagination-info-top {
                padding: 5px 10px;
                font-size: 11px;
            }
            
            .pagination-btn-bottom {
                padding: 5px 8px;
                font-size: 12px;
                min-width: 28px;
            }
            
            .pagination-info-bottom {
                padding: 5px 10px;
                font-size: 11px;
            }
            
            .pagination-bottom {
                margin-top: 20px;
                padding: 15px;
            }

            /* Mode mobile : masquer la liste quand un chant est sélectionné */
            .chants-layout.mobile-detail-view .chants-list-col {
                display: none !important;
            }

            .chants-layout.mobile-detail-view .chants-detail-col {
                flex: 1 !important;
                max-width: 100% !important;
                width: 100% !important;
            }

            .chants-detail-col .back-to-list-btn {
                display: block;
                margin-bottom: 15px;
                padding: 10px 15px;
                background: #667eea;
                color: white;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-size: 14px;
                font-weight: 500;
            }

            .chants-detail-col .back-to-list-btn:hover {
                background: #764ba2;
            }
        }

        /* Sur desktop, ne jamais cacher la liste */
        @media (min-width: 769px) {
            .chants-layout.mobile-detail-view .chants-list-col {
                display: block;
            }
        }
