/*
Theme Name: SCOGO Theme
Theme URI: https://scogo.org
Author: SCOGO
Author URI: https://scogo.org
Description: Thème professionnel pour la Société Camerounaise/Centrafricaine de Gynécologie et Obstétrique (SCOGO), inspiré du site de l'ACOG. Inclut un système complet de gestion des membres, recommandations cliniques, publications, événements, et ressources patients.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scogo
Tags: medical, healthcare, organization, society, responsive, blog, news
*/

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary-color: #003865;        /* Bleu foncé professionnel */
    --primary-light: #0056a3;
    --secondary-color: #6CB33F;      /* Vert santé */
    --accent-color: #C8102E;         /* Rouge pour les CTA */
    --text-color: #2c2c2c;
    --text-light: #555;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5em;
    line-height: 1.3;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-color); }

img { max-width: 100%; height: auto; }

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a { color: white; margin-left: 15px; }
.top-bar a:hover { color: var(--secondary-color); }

.main-header {
    padding: 20px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo { display: flex; align-items: center; gap: 15px; }
.site-logo img { max-height: 60px; }
.site-title { font-size: 24px; color: var(--primary-color); font-weight: bold; }
.site-tagline { font-size: 12px; color: var(--text-light); display: block; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 5px; }
.main-nav li { position: relative; }
.main-nav a {
    color: var(--text-color);
    padding: 10px 15px;
    font-weight: 500;
    display: block;
    border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--bg-light); color: var(--primary-color); }
.main-nav .current-menu-item > a { color: var(--primary-color); }

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-md);
    min-width: 220px;
    border-radius: var(--radius-sm);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    border-top: 3px solid var(--secondary-color);
}

.main-nav li:hover > .sub-menu { display: flex; }

.main-nav .sub-menu a {
    padding: 8px 16px;
    font-size: 14px;
}

.header-actions { display: flex; gap: 10px; align-items: center; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-secondary { background: var(--secondary-color); color: white; }
.btn-secondary:hover { background: #5aa030; color: white; }
.btn-accent { background: var(--accent-color); color: white; }
.btn-accent:hover { background: #a00d24; color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: white; }

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

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
}

.hero h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

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

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 60px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.section-title p { color: var(--text-light); font-size: 16px; }

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 20px; margin-bottom: 15px; }
.feature-card p { color: var(--text-light); }

/* ============================================
   NEWS / BLOG
   ============================================ */
.news-section { background: var(--bg-light); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover { box-shadow: var(--shadow-md); }

.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    background-size: cover;
    background-position: center;
}

.news-card-content { padding: 25px; }
.news-card-category {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}
.news-card h3 { font-size: 18px; margin-bottom: 10px; }
.news-card h3 a { color: var(--primary-color); }
.news-card-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   MEMBERSHIP CTA
   ============================================ */
.membership-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4a8c2a 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.membership-cta h2 { color: white; font-size: 36px; margin-bottom: 20px; }
.membership-cta p { font-size: 18px; max-width: 700px; margin: 0 auto 30px; }

/* ============================================
   GUIDELINES / RESOURCES
   ============================================ */
.guidelines-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.guideline-item {
    background: white;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
}

.guideline-item h4 { color: var(--primary-color); margin-bottom: 10px; }
.guideline-item .guideline-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
    display: flex;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-widget h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget a { color: rgba(255,255,255,0.8); }
.footer-widget a:hover { color: var(--secondary-color); }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover { background: var(--secondary-color); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   CONTENT / SINGLE
   ============================================ */
.page-content, .post-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-content h1, .post-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 15px 20px;
    background: var(--bg-light);
    margin: 20px 0;
    font-style: italic;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,56,101,0.1);
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.sidebar .widget {
    background: var(--bg-light);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--radius-md);
}

.sidebar .widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* ============================================
   EVENTS
   ============================================ */
.event-card {
    display: flex;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day { font-size: 32px; font-weight: bold; line-height: 1; }
.event-date .month { font-size: 14px; text-transform: uppercase; }

.event-info { padding: 20px; flex: 1; }
.event-info h3 { font-size: 18px; margin-bottom: 5px; }
.event-info .location { color: var(--text-light); font-size: 14px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 20px; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav .sub-menu { position: static; box-shadow: none; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    section { padding: 40px 0; }
    .section-title h2 { font-size: 26px; }
    .top-bar .container { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.py-2 { padding: 20px 0; }

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.alert-info { background: #e3f2fd; color: #0d47a1; border-left: 4px solid #0d47a1; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #1b5e20; }
.alert-warning { background: #fff3e0; color: #e65100; border-left: 4px solid #e65100; }
