/* ========================================
   IKIEMI.COM - STYLES PRINCIPAUX
   ======================================== */

:root {
    --primary: #1D9E75;
    --primary-dark: #0e5e45;
    --primary-light: #4abf96;
    --secondary: #2c3e50;
    --text-dark: #1a1a2e;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-light: #f7f9fc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
}

.dot {
    color: var(--primary);
}

.slogan {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: -4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.user-icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.user-icon-btn:hover {
    background: #f0fdf4;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Search */
.search-wrapper {
    position: relative;
}

.search-toggle-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.search-toggle-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.search-compact {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 420px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.search-compact.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-compact-container {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.search-compact-icon {
    color: var(--text-light);
    margin-right: 12px;
}

.search-compact-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
}

.search-compact-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.search-compact-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.result-name {
    font-weight: 600;
    color: var(--text-dark);
}

.result-lab {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.result-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('../images/bennier-ikiemi.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-outline-small:hover {
    background: var(--primary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
}

/* About Section */
.about-section {
    padding: 70px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.about-stat {
    text-align: center;
}

.about-stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.about-stat .label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.about-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    color: white;
}

.about-image i {
    font-size: 80px;
    margin-bottom: 20px;
}

/* Health Tips */
.health-tips {
    padding: 70px 0;
    background: #f8fafc;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.tip-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tip-icon i {
    font-size: 30px;
    color: white;
}

.tip-card h3 {
    margin-bottom: 12px;
}

.tip-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Featured */
.featured {
    padding: 60px 0;
}

/* Med Grid */
.med-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.med-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.med-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.med-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px;
    color: white;
}

.med-card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.med-card-header .dci {
    font-size: 0.8rem;
    opacity: 0.9;
}

.med-card-body {
    padding: 20px;
}

.med-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.med-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.med-info-item .label {
    color: var(--text-light);
}

.med-info-item .value {
    font-weight: 500;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}

.prescription-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prescription-oui {
    background: #fee2e2;
    color: #dc2626;
}

.prescription-non {
    background: #dcfce7;
    color: #16a34a;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section h4 {
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-section i {
    margin-right: 8px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .search-compact {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        width: auto;
    }
    .hero {
        padding: 50px 0;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .med-grid {
        grid-template-columns: 1fr;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
}