/* ============================
   VARIABLES & RESET
   ============================ */
:root {
    --primary: #0a2463;
    --primary-light: #1e3a8a;
    --primary-dark: #061539;
    --secondary: #c8a951;
    --secondary-light: #e0c76a;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-xl: 0 35px 60px -15px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   TOP BAR
   ============================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--gray-400);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--secondary);
}

.top-bar-right {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--gray-400);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
}

/* ============================
   HEADER / NAVBAR
   ============================ */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-ministry {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--gray-100);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: var(--secondary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 169, 81, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ============================
   SECTION STYLES
   ============================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 36, 99, 0.08);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-badge i {
    color: var(--secondary);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.bg-light {
    background: var(--gray-100);
}

.bg-dark {
    background: var(--primary);
    color: var(--white);
}

/* ============================
   STATS SECTION
   ============================ */
.stats-section {
    background: var(--white);
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.stat-item {
    padding: 40px 30px;
    text-align: center;
    border-right: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--primary);
    color: var(--white);
}

.stat-item:hover .stat-number {
    color: var(--secondary);
}

.stat-item:hover .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(10, 36, 99, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: rgba(255,255,255,0.15);
    color: var(--secondary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    transition: var(--transition);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
}

/* ============================
   CARDS GRID
   ============================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.card-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.card-body {
    padding: 28px;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-body p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover {
    color: var(--secondary);
    gap: 10px;
}

.card-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
}

.about-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--white);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ============================
   DOCUMENTS
   ============================ */
.docs-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    background: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    color: var(--gray-700);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.docs-search {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.docs-search input {
    width: 100%;
    padding: 16px 24px 16px 50px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.docs-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 36, 99, 0.1);
}

.docs-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.doc-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    margin-bottom: 16px;
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 36, 99, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.doc-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.doc-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-download {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-download:hover {
    background: var(--primary-light);
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--gray-100);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 36, 99, 0.08);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid var(--gray-200);
}

.contact-info-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-info-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-map {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* ============================
   PARTNERS
   ============================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.partner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.partner-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.partner-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.partner-type {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(10, 36, 99, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.partner-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.partner-link:hover {
    color: var(--secondary);
}

/* ============================
   PAGE HEADER
   ============================ */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
    position: relative;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    position: relative;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================
   FOOTER
   ============================ */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--secondary);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.newsletter-form button:hover {
    background: var(--secondary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-version {
    color: var(--gray-600);
}

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================
   LOADING / TOAST
   ============================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--white);
    padding: 16px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 999;
        gap: 4px;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================
   GALLERY STYLES
   ============================ */
.gallery-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 99, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close, .lightbox-nav {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover, .lightbox-nav:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#lightboxImg {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--white);
}

.lightbox-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.lightbox-caption p {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .lightbox-nav { font-size: 1.4rem; padding: 8px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-caption h3 { font-size: 1.2rem; }
}



/* ============================
   NAVBAR — CORRECTION COMPLÈTE
   ============================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto; /* Pousse les liens vers la droite */
}

.nav-links a {
    padding: 8px 14px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap; /* ← EMPÊCHE la coupure de texte */
    line-height: 1.3;
    text-align: center;
    min-width: max-content;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--gray-100);
}

/* Indicateur actif corrigé */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Responsive — tablette */
@media (max-width: 1200px) {
    .nav-links a {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* Responsive — mobile : menu hamburger */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 999;
        gap: 4px;
        margin-left: 0;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        white-space: normal;
    }
}