:root {
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #1e293b;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #f0e7ff 100%);
}

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

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin: 2rem 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-content .subtitle {
    font-size: 1rem;
    opacity: 0.85;
    font-style: italic;
}

/* Cantiques Section */
.cantiques-section {
    margin: 60px 0;
}

.cantiques-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.filters-container {
    margin-bottom: 2rem;
    text-align: center;
}

.search-box {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.results-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.cantiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.canticle-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.canticle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header div:first-child {
    flex: 1;
}

.card-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.year {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.canticle-card .artist {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.canticle-card p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.canticle-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f1f5f9;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.canticle-card .links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.canticle-card a {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.link-download {
    background: var(--primary);
    color: white;
}

.link-download:hover {
    background: #7c3aed;
}

.link-external {
    background: var(--accent);
    color: white;
}

.link-external:hover {
    background: #0891b2;
}

/* About Section */
.about-section {
    margin: 60px 0;
}

.about-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.about-box p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-box ul {
    list-style: none;
    margin-top: 1rem;
}

.about-box li {
    color: #64748b;
    padding: 0.5rem 0;
    line-height: 1.6;
}

.about-box strong {
    color: var(--primary);
}

/* Participate Section */
.participate-section {
    margin: 60px 0;
}

.participate-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.participate-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.participate-card h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.participate-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.7;
}

.submit-criteria {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

.submit-criteria li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-criteria li:last-child {
    border-bottom: none;
}

.submit-criteria strong {
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Licence Section */
.licence-section {
    margin: 60px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0e7ff 100%);
    padding: 3rem;
    border-radius: 20px;
}

.licence-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.licence-content > p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.licence-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.licence-content ul {
    list-style: none;
    margin: 1rem 0;
}

.licence-content li {
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--text);
}

.licence-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.licence-content a:hover {
    text-decoration: underline;
}

.licence-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2rem 0;
}

.charter-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-top: 1.5rem;
}

.charter-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.charter-note {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem 20px;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .cantiques-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
    }

    .year {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group .btn {
        width: 100%;
    }

    .participate-card {
        padding: 2rem 1rem;
    }

    .submit-criteria {
        padding: 1rem;
    }
}