/* Réinitialisation générale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Identité visuelle stricte : Vert, Blanc, Rouge */
:root {
    --primary-color: #687c79;     /* Vert drapeau national */
    --secondary-color: #b84b54    /* Rouge drapeau national */
    --bg-accent: #f4f9f6;         /* Blanc teinté de vert pour les arrière-plans */
    --text-dark: #111827;         /* Gris très sombre neutre */
    --text-light: #ffffff;        /* Blanc pur */
    --text-muted: #4b5563;        /* Gris de texte secondaire */
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--text-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Sélecteur de langue flottant */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--text-light);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--primary-color);
}


.reseaux-switcher {
    position: fixed;
    top: 201px;
    right: 201px;
    z-index: 1000;
    background: var(--text-light);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--primary-color);
}

/* Gestion de l'emplacement du sélecteur en mode RTL (Arabe) */
[dir="rtl"] .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-switcher button {
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
    border-radius: 4px;
}

.lang-switcher button.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Barre d'alerte */
.alert-bar {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* Barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 2%;
    background: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.navbar .logo {
    font-size: 24px;
    font-weight: 800;
}
.v-green { color: var(--primary-color); }
.v-dark { color: var(--text-dark); }
.v-red { color: var(--secondary-color); }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Boutons universels */
.btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm { padding: 6px 16px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 18px; }
.btn-block { display: block; width: 100%; }

.btn-primary { background-color: var(--primary-color); color: var(--text-light); }
.btn-secondary { background-color: transparent; border: 2px solid var(--text-light); color: var(--text-light); }
.btn-outline-nav { border: 2px solid var(--secondary-color); color: var(--secondary-color); background: transparent; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }

/* Section Hero et Diaporama Défilant */
.hero {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Calque de protection vert pour le texte */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 98, 51, 0.88), rgba(0, 48, 25, 0.92));
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 3;
}

.hero-content h1 { font-size: 48px; margin-bottom: 25px; font-weight: 800; }
.hero-content p { font-size: 18px; margin-bottom: 35px; opacity: 0.95; }
.hero-actions { display: flex; justify-content: center; gap: 20px; }

/* Section de Dons */
.donation-section { background-color: var(--bg-accent); padding: 60px 0; }
.donation-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.donation-text h2 { color: var(--primary-color); margin-bottom: 15px; font-size: 32px; }
.progress-container { background: #cbd5e1; border-radius: 20px; margin-top: 20px; overflow: hidden; }
.progress-bar { background: var(--secondary-color); color: white; padding: 5px; text-align: center; font-weight: bold; width: 75%; }

.donation-box { background: var(--text-light); padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.donation-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.amount-btn { padding: 10px; border: 2px solid var(--border-color); background: white; font-weight: bold; border-radius: 6px; cursor: pointer; }
.amount-btn.active, .amount-btn:hover { border-color: var(--primary-color); background: var(--primary-color); color: white; }

/* Section Événements */
.events-section { padding: 60p  0;  }
.event-item { background: white; padding: 25px; border-radius: 8px; border-left: 5px solid var(--primary-color); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

/* Inversion de l'indicateur visuel en mode RTL (Arabe) */ 
[dir="rtl"] .event-item { border-left: none; border-right: 5px solid var(--primary-color); }
.event-info h3 { color: var(--primary-color); margin-bottom: 5px; }

/* Footer */
.footer { background: #003019; color: rgba(255,255,255,0.7); padding: 20px 0; text-align: center; font-size: 14px; }

/* Adaptabilité Mobile (Responsive) */
@media(max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { gap: 15px; }
    .hero-content h1 { font-size: 32px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .donation-grid { grid-template-columns: 1fr; }
    .event-item { flex-direction: column; gap: 15px; text-align: center; }
}

.sidenav {
	opacity:0.9;
	height: 100%;
	width:0;
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	background-color: #111;
	overflow-x: hidden;
	padding-top: 60px;
	transition: 0.5s;
	border-radius: 20px;
	text-align: center;
} 

.sidenav a {
	padding: 8px 8px 8px 32px;
	text-decoration: none;
	font-size: 25px;
	color: #f1f1f1;
	display: block;
	transition: 0.3s;
}

.sidenav a:hover {
	color: #818181;
	background-color: white;
}
