/* ========================================
   IKIEMI.COM - STYLES PRINCIPAUX
   Couleur principale: #1D9E75
   Version optimisée avec structure propre
   ======================================== */

/* Reset & Variables */
:root {
    --primary: #1D9E75;
    --primary-dark: #17835f;
    --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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --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-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.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;
    font-family: 'Poppins', sans-serif;
    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);
    font-weight: 400;
    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 ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   MENU UTILISATEUR
   ======================================== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 40px;
}

.user-info i {
    font-size: 20px;
    color: var(--primary);
}

.logout-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 13px;
    margin-left: 10px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login-nav, .btn-register-nav {
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login-nav {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-login-nav:hover {
    background: var(--primary);
    color: white;
}

.btn-register-nav {
    background: var(--primary);
    color: white;
}

.btn-register-nav:hover {
    background: var(--primary-dark);
}

/* ========================================
   RECHERCHE COMPACTE
   ======================================== */
.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%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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 ease;
    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);
    font-size: 1rem;
    margin-right: 12px;
}

.search-compact-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
}

.search-compact-container input::placeholder {
    color: var(--text-light);
}

.search-compact-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-compact-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-compact-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-compact-results .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-compact-results .search-result-item:hover {
    background: var(--bg-light);
}

.search-compact-results .result-name {
    font-weight: 600;
    color: var(--text-dark);
}

.search-compact-results .result-lab {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.search-compact-results .result-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.search-compact-results .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 ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

/* ========================================
   PAGE HEADER AVEC IMAGE
   ======================================== */
.page-header {
    position: relative;
    color: white;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    background-image: url('../images/bennier-ikiemi.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    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) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .highlight {
    color: var(--primary);
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.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;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    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 ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS COMMUNES
   ======================================== */
.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);
}

.featured,
.partners-home,
.categories-preview {
    padding: 60px 0;
}

.text-center {
    text-align: center;
    margin-top: 32px;
}

/* ========================================
   CARTES MÉDICAMENTS
   ======================================== */
.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 ease, box-shadow 0.3s ease;
    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) 0%, var(--primary-dark) 100%);
    padding: 20px;
    color: white;
}

.med-card-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.dci {
    font-size: 0.85rem;
    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.9rem;
}

.med-info-item .label {
    color: var(--text-light);
}

.med-info-item .value {
    font-weight: 500;
    color: var(--text-dark);
}

.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;
}

.disponibility-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-align: center;
}

.disponibility-badge.all-pharmacies {
    background: #e8f5e9;
    color: #2e7d32;
}

.disponibility-badge.some-pharmacies {
    background: #fff3e0;
    color: #e65100;
}

/* ========================================
   CARTES LABORATOIRES
   ======================================== */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.lab-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.lab-card:hover {
    transform: translateY(-4px);
}

.lab-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.lab-card h3 {
    margin-bottom: 8px;
}

.lab-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========================================
   CARTES CATÉGORIES
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-item {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.category-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.category-item i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

/* ========================================
   PAGE MÉDICAMENTS (FILTRES)
   ======================================== */
.medicaments-page {
    padding: 40px 0;
}

.medicaments-page .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.filters-sidebar {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.clear-filters {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.price-range {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.price-range input {
    flex: 1;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-bar {
    background: white;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.search-bar i {
    color: var(--text-light);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
}

#resultCount {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:hover:not(.active) {
    background: var(--bg-light);
}

/* ========================================
   PAGE DÉTAIL MÉDICAMENT
   ======================================== */
.medicament-detail-page {
    padding: 40px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-info-col {
    padding: 40px 0 40px 40px;
}

.detail-header {
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
}

.detail-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.detail-dci {
    display: inline-block;
    background: rgba(29, 158, 117, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.detail-item {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.detail-value.price {
    font-size: 1.3rem;
    color: var(--primary);
}

.prescription-badge-large {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.prescription-oui-large {
    background: #fee2e2;
    color: #dc2626;
}

.prescription-non-large {
    background: #dcfce7;
    color: #16a34a;
}

.detail-image-col {
    background: linear-gradient(135deg, rgba(29, 158, 117, 0.03), rgba(29, 158, 117, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.med-image-container {
    text-align: center;
    width: 100%;
}

.med-image-placeholder {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.med-image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.detail-bottom {
    margin-top: 32px;
    background: white;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}

.detail-description-section,
.detail-pharmacies-section {
    padding: 32px;
}

.detail-description-section {
    background: white;
}

.detail-pharmacies-section {
    background: linear-gradient(135deg, rgba(29, 158, 117, 0.02), rgba(29, 158, 117, 0.05));
}

.detail-description-section h3,
.detail-pharmacies-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-description-section h3 i,
.detail-pharmacies-section h3 i {
    color: var(--primary);
}

.detail-description-section p {
    line-height: 1.7;
    color: var(--text-gray);
}

.pharmacies-all {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    color: #166534;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.pharmacies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pharmacy-item {
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pharmacy-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.pharmacy-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.pharmacy-info {
    flex: 1;
}

.pharmacy-name {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

.pharmacy-city {
    font-size: 0.8rem;
    color: var(--text-light);
}

.back-link {
    margin-top: 32px;
    text-align: center;
}

/* ========================================
   PAGE CATÉGORIES
   ======================================== */
.categories-page {
    padding: 40px 0;
}

.categories-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
    text-align: center;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-card h3 {
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   PAGE LABORATOIRES
   ======================================== */
.laboratoires-page {
    padding: 40px 0;
}

.labs-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.lab-detailed-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lab-detailed-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 24px;
    color: white;
    text-align: center;
}

.lab-detailed-header i {
    font-size: 3rem;
    margin-bottom: 12px;
}

.lab-detailed-body {
    padding: 24px;
}

.lab-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.lab-products h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.lab-products ul {
    list-style: none;
}

.lab-products li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.2s;
}

.lab-products li:hover {
    color: var(--primary);
}

/* ========================================
   PAGE PARTENAIRES
   ======================================== */
.partenaires-page {
    padding: 40px 0;
}

.partners-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border: none;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.partner-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: var(--shadow);
}

.partner-card:hover {
    transform: translateY(-4px);
}

.partner-logo {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.partner-card h3 {
    margin-bottom: 8px;
}

.partner-type {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.partner-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.partner-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   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;
    font-size: 1.1rem;
}

.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) {
    .search-compact {
        width: 380px;
        right: -60px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .detail-info-col {
        padding: 32px;
    }
    
    .detail-image-col {
        padding: 32px;
        order: -1;
    }
    
    .detail-bottom {
        grid-template-columns: 1fr;
    }
    
    .medicaments-page .container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: var(--shadow);
        padding: 20px;
        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;
        max-width: none;
    }
    
    .hero {
        padding: 50px 0;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .med-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-header h1 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .user-menu {
        margin-top: 10px;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-center {
    text-align: center;
    margin-top: 32px;
}

.hidden {
    display: none;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(29, 158, 117, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}