/* AuraPDF - Global Stylesheet (V4.6 - Master Edition)
    Architecture : Responsive 6-Column Grid | Premium Forms | Navigation Lock
    Design : Digital & Spiritual Premium (Dark/Gold Theme)
    Update : Product Mobile Badges & Animations
*/

/* --- 1. CONFIGURATION & VARIABLES --- */
:root {
    --bg-dark: #0f172a;        
    --bg-light: #f8fafc;      
    --gold: #d4af37;           
    --gold-hover: #f1d279;
    --white: #ffffff;
    --slate-text: #475569;    
    --slate-dark: #1e293b;    
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { width: 92%; max-width: 1400px; margin: 0 auto; }

/* --- 3. HEADER & NAVIGATION --- */
.main-header {
    background: var(--bg-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 3px solid var(--gold);
}
.flex-header { display: flex; justify-content: space-between; align-items: center; }

.logo { text-decoration: none !important; font-size: 1.8rem; display: flex; align-items: center; transition: var(--transition); }
.logo .aura { color: var(--white) !important; font-weight: 800; letter-spacing: 1px; }
.logo .pdf { color: var(--gold) !important; margin-left: 2px; font-weight: 400; }

.nav-list { display: flex; list-style: none !important; gap: 1.8rem; align-items: center; margin: 0; padding: 0; }

.nav-link, 
.nav-link:visited,
.dropdown-menu li a,
.dropdown-menu li a:visited { 
    color: var(--white) !important; 
    text-decoration: none !important; 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: var(--transition); 
}

.nav-link:hover, 
.dropdown-menu li a:hover { 
    color: var(--gold) !important; 
}

.nav-btn { 
    border: 1.5px solid var(--gold); 
    padding: 0.6rem 1.4rem; 
    border-radius: 6px; 
    color: var(--gold) !important; 
    font-weight: 700; 
    transition: var(--transition); 
    text-decoration: none !important; 
}
.nav-btn:hover { background: var(--gold); color: var(--bg-dark) !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: var(--bg-dark);
    border: 1px solid var(--gold); 
    display: none; 
    min-width: 240px; 
    padding: 0.5rem 0;
    margin: 0;
    list-style: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 0.8rem 1.5rem; font-size: 0.85rem; }
.dropdown-menu li a:hover { background: rgba(212, 175, 55, 0.1); padding-left: 1.8rem; }

/* --- 4. HERO & GRILLE --- */
.hero, .category-hero { 
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1e293b 100%); 
    color: var(--white); 
    padding: 35px 0 65px; 
    text-align: center; 
}
.hero h1, .category-hero h1 { 
    font-family: 'Cinzel', serif; 
    font-size: clamp(2rem, 4vw, 3rem); 
    margin-bottom: 5px; 
    font-display: swap;
}
.highlight { color: var(--gold); }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 1.2rem; 
    margin-top: 2rem; 
    padding-bottom: 2rem; 
}

.product-card { 
    background: var(--white); border-radius: 8px; overflow: hidden; 
    box-shadow: var(--shadow); transition: var(--transition); 
    display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.05); 
    position: relative;
    will-change: transform, box-shadow;
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
}

.card-image { aspect-ratio: 2/3; height: auto; overflow: hidden; background: #e2e8f0; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.product-card:hover .card-image img { transform: scale(1.08); }

.card-content-compact { padding: 0.8rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.title-compact { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--bg-dark); 
    line-height: 1.3; 
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-compact { display: flex; flex-direction: column; gap: 6px; }
.price-compact { font-weight: 800; font-size: 0.95rem; color: var(--bg-dark); text-align: center; }

.btn-compact { 
    background: var(--bg-dark); color: var(--gold); text-decoration: none; 
    padding: 0.5rem; border-radius: 5px; font-size: 0.65rem; 
    font-weight: 800; border: 1.5px solid var(--gold); text-align: center;
    transition: var(--transition);
}
.btn-compact:hover { background: var(--gold); color: var(--bg-dark); }

/* --- 5. PAGINATION PREMIUM --- */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 0.8rem; margin: 3rem 0; padding-bottom: 2rem;
}
.page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: 8px;
    background: var(--white); color: var(--bg-dark); text-decoration: none;
    font-weight: 700; border: 2px solid #e2e8f0; transition: var(--transition);
}
.page-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.page-link.active { background: var(--bg-dark); color: var(--gold); border-color: var(--gold); pointer-events: none; }

/* --- 6. FORMULAIRES EXPERTS --- */
.form-card { 
    background: var(--white); max-width: 700px; margin: 3rem auto; padding: 3rem; 
    border-radius: 20px; box-shadow: var(--shadow-hover); border: 1px solid rgba(212,175,55,0.1);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    display: block; font-weight: 700; font-size: 0.85rem; 
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.6rem; color: var(--slate-dark); 
}

input[type="text"], input[type="email"], input[type="number"], select, textarea { 
    width: 100%; padding: 0.9rem 1.2rem; border: 2px solid #e2e8f0; 
    border-radius: 10px; font-size: 1rem; font-family: inherit;
    transition: var(--transition); background: #f8fafc; color: var(--bg-dark); outline: none;
}
input:focus, select:focus, textarea:focus { 
    border-color: var(--gold); background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 1.1rem; background: var(--bg-dark); color: var(--gold);
    border: 2px solid var(--gold); border-radius: 10px; font-size: 1rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--gold); color: var(--bg-dark); transform: translateY(-3px); }

/* --- 7. FOOTER PREMIUM --- */
.main-footer {
    background-color: var(--bg-dark); color: #94a3b8; padding: 4rem 0 2rem;
    border-top: 4px solid var(--gold); text-align: center;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
.footer-links a { color: #cbd5e1 !important; text-decoration: none !important; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; transition: var(--transition); }
.footer-links a:hover { color: var(--gold) !important; }

/* --- 7.5 PRODUCT MOBILE ENHANCEMENTS (Analyse 11) --- */
.mobile-price-badge { display: none; pointer-events: none; }

@media (max-width: 1100px) {
    .mobile-price-badge {
        display: block;
        position: absolute;
        top: calc(45% + 40px);
        left: 15px;
        background: rgba(15, 23, 42, 0.92);
        color: var(--white);
        padding: 8px 15px;
        border-radius: 10px;
        font-weight: 800;
        font-size: 1.1rem;
        z-index: 10;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        border: 1px solid rgba(212, 175, 55, 0.5);
        animation: slideInLeft 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .mobile-price-badge small { 
        display: block; 
        font-size: 0.65rem; 
        color: var(--gold); 
        line-height: 1.2; 
        margin-top: 2px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- 8. RESPONSIVE --- */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; z-index: 2001; }
.menu-toggle .bar { display: block; width: 100%; height: 3px; background-color: var(--gold); border-radius: 3px; transition: var(--transition); }

@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-dark); padding: 6rem 2rem; transition: 0.4s ease-in-out; z-index: 1999; }
    .main-nav.active { right: 0; }
    .nav-list { flex-direction: column; gap: 2.5rem; }
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 600px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; 
        margin-top: 1rem; 
    }
    .container { width: 94%; }
    .hero { padding: 20px 0 40px; }
    .hero h1 { font-size: 1.7rem; }
    .title-compact { font-size: 0.65rem; height: 32px; }
    .price-compact { font-size: 0.85rem; }
    .form-card { padding: 2rem 1.2rem; margin: 1.5rem auto; }
}

/* --- 12. ADMIN TABLE STYLES --- */
.admin-table-container {
    background: var(--white); border-radius: 15px; box-shadow: var(--shadow);
    overflow-x: auto; border: 1px solid #e2e8f0; margin-top: 1rem;
}
.admin-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 800px; }
.admin-table thead { background: var(--bg-dark); color: var(--white); }
.admin-table th { padding: 1.2rem; font-size: 0.85rem; text-transform: uppercase; }
.admin-table td { padding: 1rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table tr:hover { background-color: #f8fafc; }

/* --- 10. LOGIN --- */
.login-body { background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(12px); padding: 3rem 2.5rem; border-radius: 24px; border: 1px solid rgba(212, 175, 55, 0.3); width: 90%; max-width: 420px; text-align: center; }

/* --- 13. RESPONSIVE ADMIN (EXPERT ADDITION) --- */
@media (max-width: 768px) {
    .responsive-table table, 
    .responsive-table thead, 
    .responsive-table tbody, 
    .responsive-table th, 
    .responsive-table td, 
    .responsive-table tr { 
        display: block; 
    }

    .responsive-table thead tr { 
        position: absolute; 
        top: -9999px; 
        left: -9999px; 
    }

    .responsive-table tr { 
        background: #fff; 
        border: 1px solid #e2e8f0; 
        border-radius: 12px; 
        margin-bottom: 15px; 
        padding: 10px; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    }

    .responsive-table td { 
        border: none; 
        position: relative; 
        padding-left: 45% !important; 
        text-align: right !important; 
        font-size: 0.85rem; 
        border-bottom: 1px solid #f8fafc; 
        min-height: 40px; 
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .responsive-table td:last-child { border-bottom: none; }

    .responsive-table td:before { 
        content: attr(data-label); 
        position: absolute; 
        left: 10px; 
        width: 40%; 
        text-align: left; 
        font-weight: 800; 
        text-transform: uppercase; 
        font-size: 0.7rem; 
        color: #94a3b8; 
    }

    .btn-mail, .btn-action { 
        width: 100%; 
        margin-top: 5px; 
        justify-content: center; 
        padding: 12px !important;
    }
}