/* =====================================================
   DINI ENTRE SŒURS - Styles CSS
   ===================================================== */

:root {
    --primary-color: #DFAAB7;
    --primary-dark: #C4919E;
    --primary-light: #F5E1E6;
    --secondary-color: #8B7B8B;
    --accent-color: #E8C4C4;
    --text-color: #4A4A4A;
    --text-light: #777777;
    --white: #FFFFFF;
    --background: #FDF8F8;
    --card-shadow: 0 4px 15px rgba(223, 170, 183, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 60px;
    flex-shrink: 0;
}

/* LOGO - CONTRAINTES STRICTES AVEC !important */
.nav-logo img,
.logo-image,
img.logo-image {
    height: 55px !important;
    width: auto !important;
    max-width: 150px !important;
    max-height: 55px !important;
    object-fit: contain !important;
    display: block !important;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

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

.btn-register:hover {
    background: var(--primary-dark);
}

.admin-link {
    background: var(--secondary-color);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(223, 170, 183, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* =====================================================
   RUBRIQUES GRID
   ===================================================== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.rubriques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.rubrique-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

.rubrique-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(223, 170, 183, 0.3);
}

.rubrique-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.rubrique-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.rubrique-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rubrique-count {
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    display: inline-block;
}

/* =====================================================
   CONTENT PAGE
   ===================================================== */
.content-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-light);
}

.content-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: -40px auto 40px;
    max-width: 900px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-radius: var(--border-radius);
    margin: 20px 0;
    line-height: 2;
    direction: rtl;
    color: var(--text-color);
}

.transliteration {
    text-align: center;
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 15px 0;
}

.translation {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 20px;
    background: var(--background);
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.content-section {
    margin-top: 30px;
}

.content-section h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.content-section h4 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.content-section p {
    margin-bottom: 12px;
}

.arabic-large {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    text-align: center;
    direction: rtl;
    padding: 15px;
    background: var(--primary-light);
    border-radius: 10px;
    margin: 15px 0;
}

.separator {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 30px 0;
}

.hadith-box {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

/* =====================================================
   PROGRESS BUTTONS
   ===================================================== */
.progress-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-progress {
    padding: 12px 25px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-progress:hover, .btn-progress.active {
    background: var(--primary-color);
    color: var(--white);
}

.btn-progress i {
    margin-right: 8px;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-container {
    max-width: 450px;
    margin: 50px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(223, 170, 183, 0.2);
}

.form-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-link {
    text-align: center;
    margin-top: 20px;
}

.form-link a {
    color: var(--primary-dark);
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.flash-message {
    padding: 15px 0;
    text-align: center;
}

.flash-success {
    background: #D4EDDA;
    color: #155724;
}

.flash-error {
    background: #F8D7DA;
    color: #721C24;
}

.flash-info {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
}

/* =====================================================
   CONTENT LIST
   ===================================================== */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 2px solid transparent;
}

.content-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.content-item-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.content-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.content-item-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-completed {
    background: #D4EDDA;
    color: #155724;
}

.status-in-progress {
    background: #FFF3CD;
    color: #856404;
}

.status-new {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--white);
    padding: 50px 0 20px;
    margin-top: auto;
    border-top: 1px solid #EEE;
}

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

.footer-section h3, .footer-section h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #EEE;
    color: var(--text-light);
}

/* Logo footer - peut être plus grand */
.footer-section img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* =====================================================
   USER ACCOUNT
   ===================================================== */
.account-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 40px 0;
    text-align: center;
}

.account-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* =====================================================
   ADMIN STYLES
   ===================================================== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--white);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.admin-sidebar h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 5px;
}

.admin-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: var(--background);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.admin-table th, .admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #EEE;
}

.admin-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--background);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

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

.btn-delete {
    background: #E74C3C;
    color: var(--white);
}

/* =====================================================
   LOCKED CONTENT
   ===================================================== */
.locked-overlay {
    position: relative;
}

.locked-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    text-align: center;
    padding: 40px;
}

.locked-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.locked-message h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.locked-message p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Logo responsive - tablette */
    .nav-logo img,
    .logo-image,
    img.logo-image {
        height: 45px !important;
        max-width: 120px !important;
        max-height: 45px !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-box {
        padding: 25px;
        margin: -20px 15px 30px;
    }
    
    .arabic-text {
        font-size: 1.6rem;
        padding: 20px;
    }
    
    .form-container {
        margin: 30px 15px;
        padding: 25px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Logo responsive - mobile */
    .nav-logo img,
    .logo-image,
    img.logo-image {
        height: 40px !important;
        max-width: 100px !important;
        max-height: 40px !important;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
