/*
Theme Name: Maison d'Enfance Solidaire
Theme URI: https://maisonenfancesolidaire.org
Author: Maison d'Enfance Solidaire
Author URI: https://maisonenfancesolidaire.org
Description: Thème WordPress pour l'association humanitaire Maison d'Enfance Solidaire
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maison-enfance
Tags: dark, orange, charity, nonprofit, humanitarian

Maison d'Enfance Solidaire - Association humanitaire pour la protection des enfants au Cameroun
*/

/* ==================== IMPORTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ==================== VARIABLES ==================== */
:root {
    --color-background: #0F172A;
    --color-background-light: #1E293B;
    --color-card: #334155;
    --color-text: #F8FAFC;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #94A3B8;
    --color-orange: #F97316;
    --color-orange-light: #FBBF24;
    --color-blue: #3B82F6;
    --color-green: #22C55E;
    --border-radius: 0.75rem;
    --transition: 0.3s ease;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.section {
    padding: 6rem 0;
}

/* ==================== HEADER / NAVBAR ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.site-logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text span:first-child {
    color: white;
}

.logo-text span:last-child {
    color: var(--color-orange);
    margin-left: 0.5rem;
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
        gap: 0.25rem;
    }
}

.main-navigation a {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.main-navigation a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.main-navigation a.current-menu-item,
.main-navigation a:active {
    color: var(--color-orange);
    background: rgba(249, 115, 22, 0.1);
}

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: block;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-orange);
    color: white;
}

.btn-primary:hover {
    background: #EA580C;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.5); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.8); }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.9) 30%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    padding: 0 1rem;
}

.hero-subtitle {
    color: var(--color-orange);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ==================== CARDS ==================== */
.card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-orange);
}

.stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: var(--color-text-muted);
}

/* ==================== GALLERY ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== GLASS EFFECT ==================== */
.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-background);
    border: 1px solid var(--color-card);
    border-radius: var(--border-radius);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--color-background);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--color-text-muted);
    max-width: 400px;
    margin-top: 1rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-contact li {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* ==================== PAGE TEMPLATES ==================== */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.page-description {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== TEAM PAGE ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background) 0%, transparent 50%);
}

.team-info {
    padding: 1.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.team-name {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--color-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ==================== DONATION PAGE ==================== */
.donation-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.donation-card {
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.donation-card:hover,
.donation-card.selected {
    border-color: var(--color-orange);
}

.donation-card.selected {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.donation-amount {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-orange);
}

/* ==================== CONTACT PAGE ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.contact-info-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-white { color: white; }
.text-orange { color: var(--color-orange); }
.text-muted { color: var(--color-text-muted); }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.bg-dark { background: var(--color-background); }
.bg-dark-light { background: rgba(30, 41, 59, 0.5); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== WORDPRESS SPECIFIC ==================== */
.wp-block-image img {
    border-radius: var(--border-radius);
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
