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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a2a 100%);
    color: #f0e9e1;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Motif islamique en arrière-plan */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.08"><path d="M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40 Z" fill="%23ffd700"/></svg>');
    background-size: 120px 120px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* En-tête */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease;
}

.header h1 {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    color: #ffd966;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.3rem;
    color: #cbd5e0;
    font-style: italic;
    margin-bottom: 1rem;
}

.ramadan-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd966;
    color: #ffd966;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Indicateur de jour */
.day-indicator {
    text-align: center;
    margin-bottom: 1.5rem;
}

.current-day {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd966;
    display: block;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.day-info {
    color: #a0b3d9;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

/* Carte principale du Doua */
.doua-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.doua-card {
    text-align: center;
    padding: 1.5rem 0;
}

.doua-arabic {
    font-family: 'Amiri', serif;
    font-size: 3.2rem;
    line-height: 2;
    color: #ffd966;
    margin-bottom: 1.5rem;
    direction: rtl;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    word-spacing: 0.1em;
}

.doua-phonetic {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border-left: 4px solid #ffd966;
    display: inline-block;
    max-width: 90%;
}

.doua-translation {
    font-size: 1.3rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    padding: 0 1rem;
}

.doua-benefit {
    font-size: 1.1rem;
    color: #b0c4de;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255, 215, 0, 0.3);
    max-width: 80%;
    margin: 0 auto;
}

/* Boutons de partage */
.share-buttons {
    text-align: center;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
}

.share-buttons h4 {
    color: #ffd966;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-flex {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    border: 1px solid transparent;
}

.share-whatsapp {
    background: #25D366;
}
.share-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

.share-facebook {
    background: #1877F2;
}
.share-facebook:hover {
    background: #0D5AB9;
    transform: translateY(-3px);
}

.share-copy {
    background: #6c757d;
}
.share-copy:hover {
    background: #5a6268;
    transform: translateY(-3px);
}

.copy-confirmation {
    margin-top: 1rem;
    color: #4ade80;
    font-size: 0.9rem;
    display: none;
}

.copy-confirmation.show {
    display: block;
    animation: fadeIn 0.5s;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 0;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd966;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 140px;
}

.nav-btn:hover:not(:disabled) {
    background: #ffd966;
    color: #1e2a3a;
    border-color: #ffd966;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cbd5e0;
    flex-wrap: wrap;
    justify-content: center;
}

.date-picker select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd966;
    padding: 0.6rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(5px);
}

.date-picker select option {
    background: #1e2a3a;
    color: #f0e9e1;
}

/* Titres de section */
.section-title {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: #ffd966;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd966, transparent);
}

/* Horaires de prière */
.prayer-times-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.prayer-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s ease;
}

.prayer-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.prayer-name {
    display: block;
    font-size: 0.9rem;
    color: #a0b3d9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prayer-time {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd966;
}

.prayer-note {
    text-align: center;
    color: #a0b3d9;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.prayer-note a {
    color: #ffd966;
    text-decoration: none;
    border-bottom: 1px dotted #ffd966;
}

/* Section double (verset + hadith) */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ayat-section, .hadith-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.ayat-card, .hadith-card {
    text-align: center;
}

.ayat-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: #ffd966;
    margin-bottom: 1rem;
    direction: rtl;
}

.ayat-translation, .hadith-text {
    font-size: 1rem;
    color: #cbd5e0;
    line-height: 1.6;
    font-style: italic;
}

.hadith-source {
    margin-top: 1rem;
    color: #a0b3d9;
    font-size: 0.9rem;
}

/* Checklist */
.checklist-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checklist-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.checklist-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd966;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ffd966;
}

.save-checklist {
    background: transparent;
    border: 2px solid #ffd966;
    color: #ffd966;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 1rem;
}

.save-checklist:hover {
    background: #ffd966;
    color: #1e2a3a;
    transform: translateY(-3px);
}

.checklist-progress {
    text-align: center;
    font-size: 1.1rem;
    color: #ffd966;
    font-weight: bold;
}

/* Rappel */
.reminder {
    text-align: center;
    font-size: 1.1rem;
    color: #b0c4de;
    font-style: italic;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: #a0b3d9;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-credit {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: #ffd966;
    margin: 1rem 0;
}

.footer-small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Newsletter mini */
.newsletter-mini {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.newsletter-mini p {
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.newsletter-mini form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-mini input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
}

.newsletter-mini input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-mini button {
    background: #ffd966;
    border: none;
    color: #1e2a3a;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-mini button:hover {
    background: #ffcd4d;
    transform: translateY(-2px);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .doua-arabic {
        font-size: 2.4rem;
    }
    
    .doua-phonetic {
        font-size: 1.2rem;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .date-picker {
        width: 100%;
        flex-direction: column;
    }
    
    .date-picker select {
        width: 100%;
    }
    
    .dual-section {
        grid-template-columns: 1fr;
    }
    
    .prayer-times-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .checklist {
        grid-template-columns: 1fr;
    }
    
    .newsletter-mini form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .doua-container {
        padding: 1.5rem 1rem;
    }
    
    .doua-arabic {
        font-size: 1.8rem;
    }
    
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }
    
    .share-flex {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
}