/* Style optimisé pour heuredepriere.net */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f4c3a 0%, #1a5d4a 50%, #2d7a5f 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Navigation et breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
}

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

.nav-menu {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 0;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInDown 1s ease-out;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item a:hover,
.nav-item a.active {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.site-title {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Date container */
.date-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInUp 1s ease-out 0.2s both;
}

.current-date {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffd700;
}

.hijri-date {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Prayer grid */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.prayer-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.prayer-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.prayer-card:hover::before {
    left: 100%;
}

.prayer-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prayer-time {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-prayers {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.main-prayer {
    animation-delay: calc(var(--index) * 0.1s);
}

.current-prayer {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 2px solid #ffd700 !important;
    animation: pulse 2s infinite;
}

/* Additional times */
.additional-times {
    margin-top: 40px;
}

.additional-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #ffd700;
    font-weight: 600;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Loading et error states */
.loading {
    text-align: center;
    padding: 60px;
    font-size: 1.3rem;
}

.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    animation: fadeIn 1s ease-out 1s both;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ffd700;
}

/* Utilitaires */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .site-title {
        font-size: 2.2rem;
    }
    
    .prayer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-prayers {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prayer-card {
        padding: 20px;
    }
    
    .prayer-time {
        font-size: 1.8rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-prayers {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
}
