*{
    font-family: 'montserrat', sans-serif;
}

/* Style de base pour la section hero */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/bg.jpg') center/cover no-repeat; /* Image d'arrière-plan */
    background-position:center;
    background-size: cover;
    height: 100vh; /* Hauteur de la section */
    width: 100%;
    text-align: center;
}

/* Superposition pour l'effet d'opacité */
#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Couleur noire semi-transparente */
    opacity:0.6;
    z-index: 1; /* Place l'overlay sous le contenu */
}

/* Contenu dans la section hero */
.hero-content {
    position: absolute;
    z-index: 2; /* Place le contenu au-dessus de l'overlay */
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero-content .logo {
    height: 150px; /* Ajustez la taille selon vos préférences */
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 10px 0;
    color: #000755
}

.hero-content p {
    font-size: 1.7em;
    max-width: 80%;
    color: #282828;
    text-align: justify;

}

.light-text{
    font-weight: 700;
    font-size: 2rem;
}

/* Style de base pour le texte */
.hero-title {
    opacity: 0;
    color: #000; /* Couleur noire du texte */
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease forwards;
}

/* Effet d’apparition du texte */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Animation en fondu pour le paragraphe */
.hero-text {
    opacity: 0;
    animation: fadeInText 2s ease 2.5s forwards;
    margin-bottom: 20px;
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ligne tricolore */
.tricolor-line {
    display: flex;
    width: 40%; /* Ajustez la largeur selon vos besoins */
    height: 4px; /* Épaisseur de la ligne */
    margin: 10px auto; /* Espace autour de la ligne */
    overflow: hidden;
    border-radius: 4px; /* Coins arrondis pour un look plus soigné */
}

.color-block {
    flex: 1;
}

.blue {
    background-color: #286fff; /* Bleu foncé */
}

.yellow {
    background-color: #FFD700; /* Jaune foncé */
}

.red {
    background-color: #CE1126; /* Rouge */
}


/* Style de base pour la section mission */
#mission {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin:0;

}

/* Style pour les colonnes */
.column {
    flex: 1;
    padding: 30px;
    padding-top: 80px;
    padding-bottom: 50px;
    box-sizing: border-box;
    align-content: center;
}

/* Colonne Mission */
.mission {
    background-color: #002366; /* Bleu foncé */
    color: #fff; /* Texte blanc */
}

/* Colonne Mandat */
.mandate {
    background-color: #fff; /* Fond blanc */
    color: #002366; /* Texte bleu foncé */
    border-left: 4px solid #002366; /* Bordure bleue entre les colonnes */
}


/* Titre des colonnes */
.column h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* Texte dans les colonnes */
.column p {
    font-size: 1em;
    line-height: 1.5;
    text-align: justify;
}


/* Style de base pour la section slogan */
#slogan {
    position: relative; /* Nécessaire pour positionner l'overlay */
    background: url('../images/mission.png') center/cover no-repeat; /* Image d'arrière-plan */ /* Redimensionne l'image à la taille du conteneur */
    background-attachment:fixed  ; /* Centre l'image horizontalement et verticalement */
    background-size: cover;
    background-position: top center;
    height: 150px; /* Hauteur de la section, ajustez selon vos besoins */
    text-align: center; /* Centre le texte */
    padding: 40px 20px; /* Espace autour du texte */
    overflow: hidden; /* Cache les débordements éventuels */
    align-content: center;
}

/* Superposition pour l'opacité */
.slogan-overlay {
    position: absolute; /* Positionnement absolu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 7, 85, 0.63); /* Couleur noire avec opacité 0.7 */
    z-index: 1; /* Positionne l'overlay au-dessus de l'image d'arrière-plan */
}

/* Style pour le titre */
/* Styles d'animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Commence invisible */
        transform: translateY(20px); /* Déplace le texte vers le bas */
    }
    to {
        opacity: 1; /* Finit visible */
        transform: translateY(0); /* Retourne à la position d'origine */
    }
}

#slogan h2 {
    position: relative; /* Position relative pour le texte */
    z-index: 2; /* Place le texte au-dessus de l'overlay */
    font-size: 2em; /* Taille du texte */
    margin: 0; /* Supprime les marges par défaut */
    opacity: 0; /* Commence invisible */
    animation: fadeIn 1s forwards; /* Applique l'animation */
    animation-delay: 0.5s; /* Délai avant que l'animation ne commence */
    color: #ffc107;
}


/* Style de base pour la section projects */
#projects {
    background-color: #f9f9f9; /* Fond gris clair */
    padding: 40px 20px; /* Espace autour de la section */
    text-align: center; /* Centre le texte */
}

/* Titre de la section */
#projects h2 {
    font-size: 1.5em; /* Taille du texte du titre */
    margin-bottom: 50px; /* Espace en bas du titre */
    color: #000755; /* Couleur du titre */
}

/* Conteneur des projets */
.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Grille responsive */
    gap: 20px; /* Espacement entre les éléments */
    max-width: 1200px;
    margin: auto;
}

/* Style des projets */
.project {
    background-color: #ffffff; /* Fond blanc */
    border: 1px solid #ddd; /* Bordure légère */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    overflow: hidden; /* Évite le débordement */
    transition: transform 0.3s; /* Transition pour l'effet d'animation */
    text-align: justify;
}

/* Effet de survol sur les projets */
.project:hover {
    transform: translateY(-5px); /* Légère translation vers le haut */
}

/* Image du projet */
.project-image {
    width: 100%; /* Largeur pleine */
    height: auto; /* Hauteur automatique pour garder le ratio */
}

/* Titre du projet */
.project-title {
    font-size: 1em; /* Taille du texte du titre du projet */
    color: #000755; /* Couleur du titre du projet */
    text-align: center;
}

/* Description du projet */
.project-description {
    font-size: 15px; /* Taille du texte de la description */
    color: #666; /* Couleur du texte de la description */
    padding: 0px 15px; /* Espacement horizontal */
    margin-bottom: 15px; /* Espace en bas de la description */
}

#call-to-action {
    background: url('../images/bgrec.jpg') center/cover no-repeat; /* Image d'arrière-plan */
    background-attachment: fixed;
    background-position: top center;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#call-to-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 7, 85, 0.65); /* Superposition pour rendre le texte plus lisible */
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.cta-content h3 {
    font-size: 1.5em;
    color: #ffa600;;
}

.cta-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ffd700; /* Couleur jaune pour attirer l’attention */
    color: #000755;
    padding: 10px 20px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ffc107; /* Teinte plus foncée au survol */
    transform: scale(1.05); /* Légère augmentation de taille au survol */
}


#results {
    display: flex;
    justify-content: center;
    padding: 20px 20px;
    background-color: #f9f9f9; /* Fond clair pour toute la section */
}

.results-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
}

.results-image img {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.results-stats {
    flex: 1;
    background-color: #000755;
    padding: 30px;
    color: #f0ca09;
    border-radius: 12px;
    align-self: flex-start; /* Aligner à l'extrême droite */

}

.results-stats h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f0ca09;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de même largeur */
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0ca09;
}

.stat p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
}

/* Responsivité */
@media (max-width: 768px) {
    .results-container {
        flex-direction: column;
        align-items: center;
    }

    .results-image, .results-stats {
        width: 100%;
        text-align: center;
    }

    .results-image img{
        height: 250px;
    }

    .results-stats h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat p {
        font-size: 1rem;
    }
}

#partners {
    padding: 20px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

#partners h2 {
    font-size: 2rem;
    color: #000755;
    font-weight: 600;
    margin-bottom: 40px;
}

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

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    justify-items: center;
}

.partner-logo img {
    height: 150px;
    transition: transform 0.4s ease;
    opacity: 0.9;
}

.partner-logo img:hover {
    transform: scale(1.15); /* Effet de zoom au survol */
    opacity: 1;
}

/* Responsivité */
@media (max-width: 768px) {
    .partners-grid {
        gap: 20px;
    }
    
    #hero{
        top:50px;
    }
    
    .hero-content .logo {
    height: 100px /* Ajustez la taille selon vos préférences */
}


    .partner-logo img {

    }
}


#message {
    text-align: center;
    background-color: #f9f9f9;
}


.message-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.message-header p {
    font-size: 1.7rem;
    color: #ffffff;
}

.message-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.message-image {
    position: relative;
    width: 100%;
    height: 400px;
}

.message-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.6; /* Réduction de l'opacité */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 7, 85, 0.63); /* Couche de superposition */
    border-radius: 12px;
}

.message-header {
    position: absolute;
    align-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 12px;

}

.message-form {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 400px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000755;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #000755;
    color: #f0ca09;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #333399;
}

/* Responsivité */
@media (max-width: 768px) {
    .message-container {
        grid-template-columns: 1fr;
    }

    .message-header h2 {
        font-size: 1.8rem;
    }

    .message-form {
        padding: 20px;
    }

    button[type="submit"] {
        font-size: 0.9rem;
    }
}




/* Styles Responsives */
@media (max-width: 768px) {
    #hero {
        height: 80vh; /* Ajustement de la hauteur pour les petits écrans */
    }
    .hero-content h1 {
        font-size: 25px; /* Réduction du texte */
    }
    .hero-content p {
        font-size: 1em;
    }

    .tricolor-line{
        width: 75%; /* Réduction de la largeur pour les petits écrans */
    }

    #slogan{
        height: 100px;
        background-attachment: scroll;
    }

    #slogan h2 {
        font-size: 1.2em;
    }

    #mission {
        flex-direction: column;
    }

    .mandate {
        border-left: none; /* Supprime la bordure bleue entre les colonnes */
        border-top: 4px solid #002366; /* Ajoute une bordure bleue au-dessus de la colonne Mandat */
    }

    .project-container{
        grid-template-columns: repeat(1, 1fr); /* Grille responsive */
    }
}



.read-more {
    display: inline-block;
    margin: 10px;
    color: #f0ca09;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: .8em;
}

.read-more:hover {
    color: #000755;
}

#footer {
    background-color: #000755;
    color: #fff;
    padding: 20px 20px;
    text-align: left;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 150px;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #f0ca09;
    font-weight: bold;
}

.footer-links,
.footer-social,
.footer-contact {
    padding-left: 20px;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: #f0ca09;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-links ul,
.footer-social ul,
.footer-contact ul {
    list-style-type: none;
    padding: 0;
}

.footer-links li,
.footer-social li,
.footer-contact li {

}

.footer-links a,
.footer-social a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #f0ca09;
}

.footer-social i {
    margin-right: 20px;
}

.footer-contact li {
    font-size: 1rem;
}

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

    .footer-logo {
        grid-column: span 2;
        text-align: center;
    }

    .footer-links,
    .footer-social,
    .footer-contact {
        padding-left: 0;
    }
}

/* Footer bottom section */
.footer-bottom {
    background-color: #000000; /* Fond noir */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #000755;
    color: white;
    cursor: pointer;
}

th:hover {
    background-color: #00052d;
}

tr:hover {
    background-color: #f1f1f1;
}

td {
    color: #555;
}

/* Responsive Table */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        font-size: 0.9rem;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        color: #000755;
        flex-basis: 50%;
    }
}

.donation-info {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.1em;
}

.donation-info h4 {
    color: #000755;
}

.donation-info ul {
    list-style-type: none;
    padding-left: 0;
}

.donation-info li {
    margin-top: 10px;
}

.donation-info strong {
    color: #333;
}

.custom-file-upload {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    background-color: #e1e1e1;
    color: #000755;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #000755;
}

.file-name {
    margin-left: 10px;
    color: #666;
    font-style: italic;
}


.card-title i {
    color: #000007; /* Couleur de l'icône */
    margin-right: 8px; /* Espace entre l'icône et le titre */
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Effet de soulèvement */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    text-align: center;
}

/* Responsive */
@media (max-width: 576px) {
    .card-title {
        font-size: 1.1rem;
    }
}

/* Style pour la section CTA */
.cta-section {
    position: relative;
    color: #fff;
    padding: 60px 0;
    background-color: #ffffff;
}

.cta-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 7, 85, 0.88); /* Sombre le fond */
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }
}

/* Style pour la section des Actions Réalisées */
.stat-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e8b202;
    margin-top: 10px;
}

.stat-title {
    font-size: 1.1rem;
    color: #333;
}


#new-posts {
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px;
  text-align: center;
}

#new-posts h2 {
  font-size: 28px;
  color: #7b0000;
  margin-bottom: 0px;
}

/* Container des cartes */
.posts-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Style des cartes de post */
.post-card {
  background-color: #f9f9f9;
  width: calc(33.333% - 20px); /* Trois cartes par ligne */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px); /* Effet de soulèvement au survol */
}

.post-image {
  width: 100%;
  height: 180px;
    max-height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 10px;
}

.contents{
    font-size: 12px;
    text-align: justify;
}

.post-date {
  font-size: 10px;
  color: #999;
  margin-bottom: 5px;
}

.post-excerpt {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

.read-more {
  color: #7b0000;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  display: inline-block;
  margin-top: 5px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Responsivité */
@media (max-width: 768px) {
  .post-card {
    width: 100%; /* Une seule carte par ligne sur petit écran */
  }
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 90%;
  padding: 10px;
  animation: fadeIn 1s ease-in-out;
    margin: auto;
}

.org-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.box {
  padding: 10px 15px;
  background-color: #fff;
  color: #333;
  border: 1px solid #d1d1d6;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  font-size: 12px; /* Taille de police réduite */
  min-width: 180px;
  max-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s forwards;
}

.box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.line-vertical {
  width: 2px;
  height: 20px;
  background-color: #d1d1d6;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.line-horizontal {
  width: calc(100% - 60px);
  height: 2px;
  background-color: #d1d1d6;
  margin-top: 10px;
}

.org-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 1000px;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsiveness */
@media (max-width: 768px) {
  .box {
    min-width: 150px;
    max-width: 180px;
  }

  .line-horizontal {
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .org-chart {
    gap: 15px;
  }
  .org-row {
    flex-direction: column;
    align-items: center;
  }
  .box {
    width: 100%;
    max-width: 250px;
  }
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.myrow {
    margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mycolumn {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section {
  text-align: center;
}

.section h2 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section h2 i {
  color: #7b0000; /* Couleur principale pour l'icône */
  font-size: 1.2em;
}

.section p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
    text-align: justify;
}

@media (min-width: 768px) {
  .myrow {
    flex-direction: row;
  }
  .mycolumn {
    flex: 1;
    padding: 10px;
  }
}

