:root {
    --bg-pastel: #f7f5f0;
    --olive-dark: #4a5d32;
    --gold-light: #dfd5c6;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(31, 38, 135, 0.04);
    --text-main: #3a3a3a;
    --success-green: #2e7d32;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f3f1eb 0%, #e8e5dc 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 { top: -100px; left: -100px; width: 400px; height: 400px; background: #e0dacb; }
.circle-2 { bottom: 100px; right: -100px; width: 500px; height: 500px; background: #d7dec9; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

html[dir="rtl"] .nav-left {
    flex-direction: row;
}

.logo {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--olive-dark);
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.burger-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
    padding: 5px;
    flex-shrink: 0;
}

.burger-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--olive-dark);
    transition: all 0.3s ease;
}

.burger-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 5px 0 30px rgba(0,0,0,0.05);
    z-index: 105;
    display: flex;
    flex-direction: column;
    padding: 90px 30px 30px 30px;
    gap: 20px;
    transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1), right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

html[dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
}

.nav-menu.open {
    left: 0;
}

html[dir="rtl"] .nav-menu.open {
    left: auto;
    right: 0;
}

.nav-link {
    font-size: 1.05rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    transition: color 0.3s, padding-left 0.3s, padding-right 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--olive-dark);
    font-weight: 600;
    padding-left: 5px;
}

html[dir="rtl"] .nav-link:hover, html[dir="rtl"] .nav-link.active {
    padding-left: 0;
    padding-right: 5px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lang-switcher button.active, .lang-switcher button:hover {
    background: var(--olive-dark);
    color: white;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 102;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.page-section {
    display: none;
    animation: pageFadeIn 0.5s ease forwards;
}

.page-section.active {
    display: block;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--olive-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #5a5a5a;
}

.section-title {
    text-align: center;
    margin: 30px 0 30px 0;
    color: var(--olive-dark);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.action-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 20px;
    padding: 30px 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.action-card h3 {
    color: var(--olive-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.action-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.action-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--olive-dark);
    text-decoration: underline;
    opacity: 0.8;
}

/* Styles optionnels pour les meta informations des articles */
.blog-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donation-section {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 650px;
    margin: 20px auto 40px auto;
    text-align: center;
}

.donation-section p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #5a5a5a;
}

.donation-alternative-text {
    font-size: 0.95rem !important;
    margin: 30px 0 0 0 !important;
    border-top: 1px dashed var(--glass-border);
    padding-top: 20px;
    color: #666 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    text-align: center !important;
    float: none !important;
    clear: both !important;
}

.donation-alternative-text a {
    color: var(--olive-dark);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.crypto-address-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed var(--olive-dark);
    padding: 12px 15px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
    transition: background 0.2s;
}

.crypto-address-box:hover {
    background: rgba(255, 255, 255, 0.9);
}

.copy-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--olive-dark);
    color: white;
    padding: 4px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
}

.trust-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #101010;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.trust-btn:hover {
    background: #252525;
}

.contact-section {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 650px;
    margin: 20px auto 50px auto;
    position: relative;
}

.form-info-text {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #5a5a5a;
    text-align: center;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--olive-dark);
    text-align: left;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--olive-dark);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--olive-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #394826;
}

.success-box {
    display: none;
    text-align: center;
    padding: 20px 10px;
    animation: fadeIn 0.4s ease forwards;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--success-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: var(--success-green);
    font-size: 2.2rem;
    font-weight: bold;
}

.success-box h3 {
    color: var(--success-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-box p {
    color: #5a5a5a;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--olive-dark);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 0.8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal-x {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--olive-dark);
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

html[dir="rtl"] .close-modal-x { left: 20px; right: auto; }
.modal-header-block { margin-bottom: 15px; padding-right: 25px; }
html[dir="rtl"] .modal-header-block { padding-right: 0; padding-left: 25px; }
.modal-content h3 { color: var(--olive-dark); font-size: 1.4rem; margin-top: 5px; }
.modal-scroll-body { overflow-y: auto; flex-grow: 1; padding-right: 5px; margin-bottom: 20px; }
html[dir="rtl"] .modal-scroll-body { padding-right: 0; padding-left: 5px; }
.modal-scroll-body p { margin-bottom: 15px; font-size: 1rem; color: #424242; text-align: justify; line-height: 1.6; }
.modal-footer-btn { background: var(--olive-dark); color: white; border: none; padding: 12px; border-radius: 12px; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: center; width: 100%; transition: background 0.2s; }
.modal-footer-btn:hover { background: #394826; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

html[dir="rtl"] { font-family: 'Amiri', 'Montserrat', sans-serif; }
html[dir="rtl"] .hero h1 { font-size: 2.6rem; }
html[dir="rtl"] .form-group label { text-align: right; }
html[dir="rtl"] .form-info-text { text-align: center; }
html[dir="rtl"] .modal-scroll-body p { text-align: right; }

html[dir="rtl"] .donation-alternative-text { 
    text-align: center !important; 
    direction: rtl !important;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    color: #7a7a7a;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.2);
    line-height: 1.8;
}

footer a { color: var(--olive-dark); text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
footer a:hover { opacity: 0.8; }

@media (max-width: 768px) {
    .navbar { padding: 15px 4%; }
    .logo { font-size: 1.25rem; letter-spacing: 1px; }
    .hero { padding: 35px 20px; margin-bottom: 30px; }
    .hero h1 { font-size: 1.8rem; }
    html[dir="rtl"] .hero h1 { font-size: 2.1rem; }
    .contact-section, .donation-section { padding: 30px 20px; }
    .modal-content { padding: 25px 20px; max-height: 90vh; }
    .lang-switcher button { padding: 6px 10px; font-size: 0.75rem; }
}


