/*
 * Feuille de style personnalisée pour le site AFY
 */

body {
    font-family: 'Inter', sans-serif;
}


/* --- Variables de Couleurs (Améliore la cohérence) --- */
:root {
    --afy-primary: #007bff; /* Bleu primaire (ex: bouton de don) */
    --afy-secondary: #6c757d; /* Gris secondaire */
    --afy-dark: #212529; /* Noir pour la barre de navigation */
    --afy-success: #28a745; /* Vert pour le don */
    --afy-background: #f8f9fa; /* Fond clair */
    --afy-text: #343a40; /* Texte principal */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--afy-text);
}


/* ------------------------------------------- */
/* --- 1. NAVBAR & HEADER (Fixe et Transparente) --- */
/* ------------------------------------------- */

.header .navbar {
    /* Utilisation de la variable dark, plus de !important */
    background-color: rgba(33, 37, 41, 0.98); 
    /* Ajout d'une ombre subtile pour le relief */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    /* Amélioration de l'effet de flou */
    backdrop-filter: blur(8px); 
}

/* Style des liens sur PC */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85); /* Liens par défaut blancs */
    transition: color 0.3s ease;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff;
    /* Soulignement subtil en hover */
    border-bottom: 2px solid var(--afy-success); 
}

/* Bouton burger */
.navbar-toggler {
    border: none;
    padding: 0;
    /* Optionnel: pour rendre l'icône blanche */
    filter: invert(1);
}


/* ------------------------------------------- */
/* --- 2. OFFCANVAS (Mobile Modernisé) --- */
/* ------------------------------------------- */

.custom-offcanvas {
    width: 85% !important; /* Rend le menu un peu plus grand */
    max-width: 400px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.offcanvas-header {
    background-color: var(--afy-dark) !important; /* Bande supérieure sombre */
    color: white;
}
.offcanvas-title {
    font-weight: 700;
    letter-spacing: 1px;
}
.btn-close-white {
    /* Ne nécessite pas de filtre complexe si l'arrière-plan est sombre */
    opacity: 1; 
}

.custom-offcanvas .offcanvas-body {
    padding: 20px 15px;
    background-color: var(--afy-background); 
}

/* Liens de navigation principaux (plus grands et lisibles) */
.custom-offcanvas .nav-item {
    margin-bottom: 0.5rem;
    border-radius: 5px;
}
.custom-offcanvas .nav-link {
    color: var(--afy-text);
    padding: 1rem 0.75rem;
    font-size: 1.15rem; /* Augmenter la taille pour le toucher */
    font-weight: 600;
}
.custom-offcanvas .nav-link i {
    color: var(--afy-primary); /* Icônes en couleur primaire */
    min-width: 25px; /* Assure un alignement propre des icônes */
}

.custom-offcanvas .nav-link:hover {
    background-color: rgba(0, 86, 179, 0.08); 
    color: var(--afy-dark);
}

/* Sous-menus (Dropdowns) */
/* Remplacement de 'display: block' par des classes Bootstrap plus stables */
.custom-offcanvas .dropdown-menu {
    border: none;
    padding: 0;
    background-color: transparent;
    margin-top: 0;
}

.custom-offcanvas .dropdown-item {
    font-size: 1rem;
    padding: 0.5rem 2rem; /* Indentation pour montrer que c'est un sous-lien */
    color: var(--afy-secondary);
}

.custom-offcanvas .dropdown-item:hover {
    background-color: transparent;
    color: var(--afy-primary);
    font-weight: 500;
}

/* Bouton de Don dans l'Offcanvas */
.custom-offcanvas .btn-lg {
    margin-top: 1.5rem;
    background-color: var(--afy-success);
    border-color: var(--afy-success);
    /* Utilisation d'un dégradé subtil pour un look premium (optionnel) */
    background-image: linear-gradient(180deg, #37b752, var(--afy-success));
}

/* ------------------------------------------- */
/* --- 3. SECTIONS GENERALES (Nettoyage des doublons) --- */
/* ------------------------------------------- */

/* Nettoyage des doublons de style Hero, Impact, Card etc. */

.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('URL_DE_VOTRE_IMAGE_IMPACTANTE') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    padding: 8rem 0;
}

.hero-section h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

section {
    padding: 6rem 0;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex; /* Utilisation de flex pour centrer verticalement/horizontalement */
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 1.5rem;
    /* Ajoutez des couleurs ici : ex. background-color: var(--afy-primary); color: white; */
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Légère réduction du mouvement */
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15)!important; /* Ombre plus douce */
}

.img-hover-zoom {
    transition: transform 0.6s ease;
    overflow: hidden; /* Important pour que le zoom ne dépasse pas la boîte */
}
.img-hover-zoom:hover {
    transform: scale(1.05);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1920x1080/454545/FFFFFF?text=Image+de+fond+impactante') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    padding: 8rem 0;
}

.hero-section h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ========== SECTIONS GENERALES ========== */
section {
    padding: 6rem 0;
}

.display-5 {
    margin-bottom: 1rem;
}

/* ========== ICON CIRCLE ========== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ========== IMPACT SECTION ========== */
.impact-section {
    background-color: #f8f9fa; /* bg-light */
}

/* ========== FOOTER ========== */
footer a:hover {
    color: #ffc107 !important; /* Bootstrap warning color */
    text-decoration: underline !important;
}

/* ========== CARD STYLING ========== */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.img-hover-zoom {
  transition: transform 0.6s ease;
}
.img-hover-zoom:hover {
  transform: scale(1.05);
}
.icon-circle {
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
}

.hero-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.page-header {
  background-attachment: fixed;
}

