.body {
  margin: 0;
    font-family: 'Lato', arial, sans-serif;
}
body, p, a, li {
    font-family: 'Lato', arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.top-bar {
  background-image: url(/img/background.jpg);
  background-size: cover;
  padding: 0;
  font-size: 14px;
  height: 200px;
}

/* ----- TOP BAR ----- */

.top-bar .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 74px;
  gap: 20px;
}

.brand-section {
  display: flex;
  gap: 18px;
  flex-direction: column;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 70px;
  width: auto;
}

.slogan {
  color: #000000;
  font-size: 16px;
  margin-left: 4px;
  white-space: nowrap;
  margin-bottom: 0;
}

.social-section {
  display: flex;
  align-items: center;
  gap: 16px;
}


.svg-inline--fa.fa-w-18 {
    width: 1.125em;
}
.svg-inline--fa {
    display: inline-block;
    font-size: inherit;
    height: 1em;
    overflow: visible;
    vertical-align: -.125em;
}
.social-icons {
  display: flex;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons li a,
.social-icons a {
  color: #222;
  font-size: 20px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-icons li a:hover,
.social-icons a:hover {
  color: #0076c8;
}

/* Menu supérieur */
.top-menu-section {
  display: flex;
  align-items: center;
  border-radius: 0 0 4px 4px;
}

.top-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-menu li {
  position: relative;
}
.table_head{
   background-image: url(/img/background.jpg);
   background-position: right; 
   background-repeat: no-repeat;
  width:100%; 
   background-size: cover;
}
.table_head thead{
  height: 10px;
}

.top-menu li a {
  text-decoration: none;
  color: #fff;
  background: transparent;
  font-weight: 500;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  transition: color 0.2s, background 0.2s;
  border-radius: 3px;
  display: inline-block;
}
.top-menu li a:hover,
.top-menu li a:focus {
  color: #000000;
  text-decoration: none;
}

.top-menu li a.active,
.top-menu li.active > a {
  background: #1d4474;
  color: #fff !important;
  border-radius: 3px;
  padding: 6px 18px;
  box-shadow: 0 1px 6px rgba(33,150,243,0.07);
}

/* ----- HEADER / NAVIGATION ----- */
.main-header {
  background: #fff;
  border-bottom: 1px solid #d9e4ef;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.main-header .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
  padding-bottom: 8px;
}

.social-lang {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-lang .social-icons {
  gap: 13px;
}

.lang-select {
  background: #fff;
  border: 1px solid #c6d4e1;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 15px;
  color: #1b395d;
  outline: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9e4ef;
  background: #fff;
  min-height: 48px;
  padding: 0 0 0 0;
  height: max-content;
  font-weight: bold;
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a,
.main-nav ul.dropdown-menu > li > a {
  display: block;
  padding: 12px 18px;
  color: #1b395d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px 2px 0 0;
  transition: background 0.2s, color 0.2s;
}

.main-nav > ul > li > a.active,
.main-nav > ul > li > a:hover {
  background: #1d4474;
  color: #fff;
      font-family: 'Lato', arial, sans-serif;
}

.main-nav ul.dropdown-menu > li > a:hover {
  background: #f5faff;
  color: #2196f3;
}

.main-nav .dropdown > a:after {
  content: ' ▼';
  font-size: 10px;
  color: #888;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 210px;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.07);
  border-radius: 0 0 4px 4px;
  border: 1px solid #e0e3ea;
  z-index: 99;
}

.main-nav .dropdown:hover > .dropdown-menu,
.main-nav .dropdown:focus-within > .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu > li {
  position: relative;
}

.main-nav .dropdown-sub > a:after {
  content: ' ▶';
  float: right;
  font-size: 10px;
  color: #888;
}

.main-nav .dropdown-sub .dropdown-menu {
  left: 100%;
  top: 0;
  margin-left: -1px;
  border-radius: 0 4px 4px 0;
  min-width: 210px;
}

.main-nav .dropdown-sub:hover > .dropdown-menu,
.main-nav .dropdown-sub:focus-within > .dropdown-menu {
  display: block;
}

.search-box {
  display: flex;
  align-items: center;
  margin-left: 30px;
}

.search-box form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #c6d4e1;
  border-radius: 18px;
  padding: 1px 7px 1px 14px;
}

.search-box input[type="search"] {
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: #1b395d;
  width: 130px;
  padding: 7px 0;
}

.search-box button {
  background: none;
  border: none;
  color: #2196f3;
  font-size: 19px;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 16px;
  transition: background 0.2s;
}

.search-box button:hover {
  background: #e6f0fa;
}

/* Responsive styles */
@media (max-width: 1000px) {
  .top-bar .container,
  .main-header .container {
    padding: 0 10px;
  }
  .brand-section {
    gap: 10px;
  }
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
    gap: 10px;
  }
  .top-menu-section {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .top-menu {
    gap: 8px;
  }
  .slogan {
    font-size: 14px;
  }
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    margin: 10px 0 0 0;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .brand-section {
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
  }
  .logo { height: 38px; }
  .slogan { font-size: 12px; }
  .top-menu {
    flex-direction: column;
    gap: 0;
  }
  .top-menu li a {
    padding: 7px 10px;
    font-size: 14px;
  }
  .top-header {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    margin: 8px 0 0 0;
  }
}
/*FLASH SECTION*/

.flash-section {
      display: flex;
      background-color: white;
      height: 40px;
      font-family: Arial, sans-serif;
      overflow: hidden;
    }

    .flash-header {
      background-color: #f5f5f5;
      color: red;
      font-weight: bold;
      font-size: 13px;
      padding: 10px;
      flex: 0 0 auto;
      white-space: nowrap;
      display: flex;
      align-items: center;
    }

    .flash-header a {
      text-decoration: none;
      color: #d32f2f;
    }

    .flash-content {
      position: relative;
      overflow: hidden;
      flex: 1;
    }

    .flash-marquee {
      display: flex;
      white-space: nowrap;
      will-change: transform;
      animation: scroll-left 100s linear infinite;
      align-items: center;
    }

    .flash-marquee:hover {
      animation-play-state: paused;
      user-select: contain;
      text-decoration: underline;
       cursor: pointer;

    }

    .flash-marquee span {
      padding: 10 3rem;
      font-size: 14px;
      color: #003366;
    }

    @keyframes scroll-left {
      0% {
        transform: translateX(0%);
      }
      100% {
        transform: translateX(-100%);
      }
    }

.app-download-section{
    display: flex;
    padding: 10%;
    height: auto;
}
.section .container .theme-list img{
    height: 300px;
    align-items: center;
    justify-content: center;
}
.senegal-en-bref {
  background-color: rgba(29, 68, 116, 0.9);
  padding: 38px 0 34px 0;
  padding-left: 5%;
}
.sn_back tr {
  background-color: #003366;
}
.section-header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    margin-top: 0;
    letter-spacing: -1px;
}

.category-buttons {
  display: flex;
  padding-left: 10%;
  margin-bottom: 36px;
}

.category-buttons table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0 0;
}

.category-buttons td {
  padding: 0;
}

.category-button {
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  border: none;
  outline: none;
  padding: 12px 28px;
  margin: 0;
  transition: background 0.18s, color 0.18s;
  border-radius: 2px 2px 0 0;
  cursor: pointer;
  position: relative;
}


.stats-carousel {
  display: none;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow: hidden;
  gap: 0;
  min-height: 180px;
  position: relative;
}

.stats-carousel.active {
  display: flex;
  animation: fadeIn 0.35s;
}

@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}

.stat-item {
  min-width: 170px;
  max-width: 210px;
  margin: 0 18px 0 0;
  padding: 0 8px;
  color: #fff;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-title {
  font-size: 1.03rem;
  font-weight: 500;
  margin-bottom: 7px;
  white-space: normal;
}

.stat-year {
  font-style: italic;
  color: #b1c6e2;
  font-size: 0.97rem;
  margin-bottom: 7px;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0;
}

.stat-value a {
  color: #fff;
  text-decoration: none;
  transition: color 0.17s;
}
.stat-value a:hover {
  color: #3db6ff;
}

.carousel-nav {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.carousel-btn {
  background: #224c74;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  border-radius: 3px;
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.17s, color 0.17s;
}

.carousel-btn:hover {
  background: #3db6ff;
  color: #224c74;
}

@media (max-width: 1100px) {
  .stat-item {
    min-width: 130px;
    max-width: 170px;
    font-size: 0.97rem;
  }
  .section-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 700px) {
  .section-header h1 {
    font-size: 1.25rem;
  }
  .category-button {
    font-size: 0.99rem;
    padding: 9px 11px;
  }
  .stat-item {
    min-width: 100px;
    max-width: 120px;
    padding: 0 3px;
  }
}

/* Hide scrollbar for carousel */
.stats-carousel::-webkit-scrollbar {
  display: none;
}
.stats-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .stat-item {
    min-width: 80%;
  }
}
.app-download-section {
  background: #fff;
  padding: 38px 0 48px 0;
}

.app-download-section .container {
  max-width: 1240px;
  margin: 0 auto;
}

.app-download-section .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.app-download-section .col-lg-6,
.app-download-section .col-md-6,
.app-download-section .col-sm-12 {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
}

@media (max-width: 900px) {
  .app-download-section .col-lg-6,
  .app-download-section .col-md-6,
  .app-download-section .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
}

.app-brand,
.eninea-link {
  align-items: center;
  padding: 24px 10px 24px 10px;
}

@media (max-width: 500px) {
  .app-brand,
  .eninea-link {
    width: 98vw;
    min-width: 0;
    min-height: 330px;
    padding: 15px 0 15px 0;
  }
}

.app-brand .brand-logo,
.eninea-link .eninea-logo {
  display: block;
  margin: 0 auto 18px auto;
  max-height: 250px;
  max-width: 95%;
  box-shadow: none;
  background: none;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.store-button {
  transition: transform 0.18s;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(33,150,243,0.10);
  background: #fff;
}

.store-button:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 22px rgba(33,150,243,0.16);
}

.eninea-link a {
  display: block;
}

@media (max-width: 900px) {
  .app-download-section .row {
    flex-direction: column;
    align-items: center;
  }
}
.section {
  background: #fff;
  padding: 36px 0 0 0;
}


.row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.col {
  flex: 1 1 100%;
  max-width: 100%;
}

.publication-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 340px; /* Responsive columns, min 340px per column, 3 max */
  column-gap: 32px;
}

.publication-item {
  break-inside: avoid;
  margin-bottom: 5px;
  margin-top: 0;
}

.publication-item a {
  color: #22539d;
  font-size: 1.08rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
  display: block;
  line-height: 1.22;
}

.publication-item a:hover,
.publication-item a:focus {
  text-decoration: underline;
  color: #1976d2;
}

.date {
  color: #757575;
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: block;
  margin-left: 2px;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 0 0;
  gap: 12px;
}

.prev-btn,
.next-btn {
  background: #e0e7ef;
  border: none;
  color: #1b395d;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s;
  margin: 0 2px;
}

.prev-btn:hover,
.next-btn:hover {
  background: #22539d;
  color: #fff;
}

/* Pagination style imitation (image4) */
.nav-buttons:before {
  content: '';
  display: inline-block;
  width: 30px;
}

.nav-buttons:after {
  content: '';
  display: inline-block;
  width: 30px;
}

/* Dots pagination imitation */
.section .publication-list + .nav-buttons {
  margin-top: 28px;
  position: relative;
}

.section .publication-list + .nav-buttons::before,
.section .publication-list + .nav-buttons::after {
  display: none !important;
}

.section .nav-buttons {
  justify-content: flex-start;
  position: relative;
}

.section .nav-buttons::before {
  content: '';
  display: none;
}

.section .dots-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0 0;
}

.section .dot {
  width: 13px;
  height: 13px;
  background: #d2d4d7;
  border-radius: 50%;
  display: inline-block;
}

.section .dot.active {
  background: #565d6a;
}

.section .all-themes-btn {
  background: #5a7ebf;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 3px;
  padding: 7px 17px;
  border: none;
  position: absolute;
  right: 0;
  top: 8px;
  cursor: pointer;
  transition: background 0.16s;
}

.section .all-themes-btn:hover {
  background: #22539d;
}

@media (max-width: 1100px) {
  .publication-list {
    columns: 2 260px;
    column-gap: 20px;
  }
}

@media (max-width: 700px) {
  .section-header h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  .publication-list {
    columns: 1 90vw;
    column-gap: 0;
  }
  .section .all-themes-btn {
    position: static;
    display: block;
    margin: 12px auto 0 auto;
  }
}

/* Section globale */
.section-bg {
  padding: 60px 30px;
  background-color: #1e293b; /* Pour les navigateurs sans image de fond */
}

/* Titre principal */
.section-header h1 {
  font-size: 2.5rem;
  text-align: left;
  margin-bottom: 40px;
  color: #fff;
}

/* Grille des cartes */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 25px;
}

/* Style des cartes */
.card {
  background-color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Contenu texte à gauche */
.card-content {
  max-width: 70%;
}

.card-content h5 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.card-content a {
  text-decoration: none;
  color: #38bdf8; /* bleu clair */
  font-weight: bold;
}

.card-content a:hover {
  text-decoration: underline;
}

/* Image à droite */
.card-image {
  max-width: 80px;
  margin-left: 15px;
}

.card-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 600px) {
  .card {
    flex-direction: column;
    text-align: center;
  }

  .card-image {
    margin-left: 0;
    margin-top: 10px;
  }

  .card-content {
    max-width: 100%;
  }
}
/* Section newsletter */
.newsletter-section {
  background-color: #1e3a66; /* bleu foncé */
  color: #fff;
  padding: 40px 20px;
}

/* Conteneur global en ligne */
.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Formulaire */
.newsletter-form {
  flex: 1 1 60%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  width: 90%;
}

.form-group {
  flex: 1;
}

.form-control {
  width: 90%;
  padding: 10px 12px;
  border: 1px solid #fff;
  background-color: transparent;
  color: #000000;
  border-radius: 2px;
  font-size: 14px;
}

.form-control::placeholder {
  color: #fff;
  opacity: 0.8;
}

/* Bouton */
.btn-submit {
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #2563eb;
}

/* Image à droite */
.newsletter-image {
  flex: 1 1 35%;
  text-align: right;
}

.newsletter-image img {
  max-width: 100%;
  height: 300px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .newsletter-row {
    flex-direction: column;
    gap: 30px;
  }

  .newsletter-form,
  .newsletter-image {
    width: 100%;
    text-align: center;
  }

  .form-newsletter {
    justify-content: center;
  }
}
.footer-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  font-family: 'Inter', sans-serif;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.nav-item {
  flex: 1 1 150px;
  min-width: 150px;
}

.nav-item > a {
  font-weight: 600;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li {
  margin-bottom: 6px;
}

.submenu li a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: color 0.2s ease;
}

.submenu li a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
  }
}

  .theme-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 2em;
  }

  .theme-item {
    position: relative;
    width: 220px;
    text-align: center;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
  }

  .theme-item .icon {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .theme-item:hover .icon {
    transform: scale(1.05);
  }

  .theme-item::before {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 43, 141, 0.75); /* bleu ANSD semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
  }

  .theme-item:hover::before {
    opacity: 1;
  }

  .theme-item p {
    font-size: 0.9em;
    margin: 1em 0 0.5em;
  }

  .theme-item a {
    color: #0a2b8d;
    text-decoration: none;
    font-weight: bold;
  }

  .theme-item a:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .theme-list {
      flex-direction: column;
      align-items: center;
    }

    .theme-item {
      width: 80%;
    }
  }









/*footer */
/* Wrapper principal du footer */
.footer-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap; /* tout sur une seule ligne */
  gap: 2em;
  padding: 2em;
  background-color: #f5f5f5;
  overflow-x: auto;
}

/* Chaque bloc prend une largeur max */
.reseaux-contact,
.qrcode-licence-footer,
.licence-section,
footer.footer {
  flex: 1 1 auto;
  min-width: 250px;
      display: ruby;
}

/* Réseaux + contact alignés verticalement à l'intérieur */
.reseaux-contact {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

/* QR code + apps */
.qrcode-section .gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

/* Navigation pied de page */
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: flex-start;
  padding-left: 0;
}

/* Texte de licence */
.licence-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.liste-reseaux li a{
  text-decoration: none;
  display: block;
  list-style:none;
  color: #000;
}
.mot-directeur-section {
  padding: 2em;
  background: #f9f9f9;
}

.bienvenue-bloc {
  display: flex;
  background: #412a2a;
  flex-wrap: wrap;
}

.photo img {
  max-width: 70%;
  
}
.bienvenue-bloc {
  display: flex;
}

.texte-bienvenue {
  flex: 1;
  color: #ffffff;
}

.conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.colonne {
  flex: 1;
  min-width: 300px;
  text-align: justify;
}

.texte {
  background: white;
  padding: 1.5em;
}

.signature {
  text-align: justify;
  margin-top: 2em;
  font-weight: bold;
  margin-left: 10%;
}

/*page presentation*/

.bloc-ansd {
   background: linear-gradient(90deg, #19223b, #bbcec2); /* Bleu -> Vert */
}

.conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.colonne-gauche {
  flex: 1 1 10%;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

.colonne-droite {
  flex: 1 1 35%;
  text-align: center;
}

.logo-ansd {
  max-width: 100%;
  height: auto;
}
/*CAROUSEL*/
.carousel-section {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
}

.carousel-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
}

.carousel-track {
  display: flex;
  width: 300%;
  animation: slide 40s infinite;
}

.carousel-item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.carousel-item img {
  width: 300px;
  height: auto;
  margin-right: 30px;
  object-fit: cover;
}

.carousel-text {
  max-width: 600px;
}

.carousel-text h3 {
  margin: 0;
  color: #003366;
}

.carousel-text h4 {
  margin: 5px 0 15px;
  font-weight: normal;
  color: #666;
}

.carousel-text p {
  margin: 0;
  line-height: 1.6;
  text-align: justify;
}

@keyframes slide {
  0%    { transform: translateX(0%); }
  33.33%{ transform: translateX(0%); }
  44.44%{ transform: translateX(-100%); }
  77.77%{ transform: translateX(-100%); }
  88.88%{ transform: translateX(-200%); }
  100%  { transform: translateX(-200%); }
}

@media (max-width: 768px) {
  .carousel-item {
    flex-direction: column;
    text-align: center;
    height: auto;
  }

  .carousel-item img {
    margin: 0 0 20px;
    width: 90%;
  }

  .carousel-text {
    max-width: 100%;
  }
}



.missions-section {
  height: 100vh;
  overflow: hidden;
}

.missions-container {
  display: flex;
  height: 100vh;
}

.missions-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.missions-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  
}

.image-text h2 {
  font-size: 32px;
  margin: 0;
}

.image-text h5 {
  font-size: 18px;
  margin-top: 10px;
  font-weight: normal;
}

.missions-text-scrollable {
  flex: 1.2;
  background-color: #ffffff;
  padding: 30px;
  overflow-y: auto;
}

.missions-text {
  max-width: 800px;
  margin: 0 auto;
}

.missions-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 768px) {
  .missions-container {
    flex-direction: column;
  }

  .missions-image, .missions-text-scrollable {
    flex: none;
    height: 50vh;
  }

  .missions-text-scrollable {
    height: 50vh;
    padding: 20px;
  }

  .image-text h2 {
    font-size: 22px;
  }

  .image-text h5 {
    font-size: 16px;
  }
}




/* Style général */
.organigramme-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.team-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.team-section h3 {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Grille des membres */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Carte membre */
.team-member {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

/* Conteneur photo avec taille fixe */
.member-photo {
    width: 100%;
    height: 250px; /* Hauteur fixe */
    overflow: hidden;
    position: relative;
}

/* Style des images pour qu'elles remplissent le conteneur */
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garantit que l'image couvre tout l'espace */
    object-position: center top; /* Alignement sur le haut du visage */
    display: block;
}

/* Style pour le membre sans photo */
.placeholder-photo {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.member-info {
    padding: 15px;
    min-height: 120px; /* Hauteur minimale pour uniformiser */
}

.member-info h4 {
    margin: 0 0 5px 0;
    color: #0056b3;
    font-size: 1.2em;
}

.member-info .position {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.member-info .email {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .member-photo {
        height: 200px;
    }
}




/* Style le phare */
.bulletin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* En-tête */
.bulletin-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 20px;
}

.bulletin-header h1 {
    color: #0056b3;
    margin-bottom: 5px;
    font-size: 2.2em;
}

.numero-date {
    font-weight: bold;
    color: #666;
    font-size: 1.1em;
}

/* Contenu principal */
.bulletin-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-content {
    flex: 1;
    min-width: 300px;
}

.edito-title {
    color: #0056b3;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.intro {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #444;
}

.signature {
    margin-top: 30px;
    font-style: italic;
    text-align: right;
}

/* Barre latérale avec image */
.sidebar {
    width: 350px;
    min-width: 300px;
}

.sidebar-image {
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.sidebar-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 90vh;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 900px) {
    .bulletin-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
        margin-bottom: 30px;
    }
    
    .sidebar-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .bulletin-header h1 {
        font-size: 1.8em;
    }
    
    .edito-title {
        font-size: 1.5em;
    }
}


.boxtext{
  display: flex;
  padding: 10%;
}
.box-table td tr{
background-color: #0056b3;
}


.ressources-section {
  background: white;
  padding: 10px;
  border-radius: 8px;
  width: 80%;
  margin: auto;
}

.filtre-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filtre-form label {
  font-weight: bold;
}

.filtre-form select,
.filtre-form button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.filtre-form button {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.filtre-form button:hover {
  background: #0056b3;
}

.ressource-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.ressource-item {
  padding: 15px;
  border: 1px solid #ddd;
  background: rgba(230, 12, 200, 0.144);
  border-radius: 4px;
  width: 100%;
}

.ressource-item h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: #333;
}

.ressource-item a {
  text-decoration: none;
  color: #7bade2;
  font-weight: bold;
}

.ressource-item a:hover {
  text-decoration: underline;
}
.stats-region {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

.stats-region-title {
  text-align: center;
  margin-bottom: 20px;
  color: #003366;
}

.stats-region-table-container {
  overflow-x: auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.stats-region-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.stats-region-table thead {
  background-color: #003366;
  color: white;
}

.stats-region-table th,
.stats-region-table td {
  padding: 12px 15px;
  text-align: left;
}

.stats-region-table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

.stats-region-table tbody tr:hover {
  background-color: #e0f7fa;
}

.stats-region-table td:last-child,
.stats-region-table th:last-child {
  white-space: nowrap;
}

/* Conteneurs généraux */
.conteneur,
.conteneur-principal {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.ligne {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.colonne,
.colonne-principale,
.colonne-texte {
  flex: 1 1 100%;
  padding: 0 15px;
}

/* En-tête pour impression */
.impression-header {
  display: none;
}

@media print {
  .impression-header {
    display: block;
    margin: 30px 0;
  }

  .logo-impression {
    width: 200px;
  }
}

/* Section bandeau avec image */
.en-tete-recensement {
  margin-top: 40px;
}

.bandeau-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 80px 20px;
  color: white;
  text-align: center;
  position: relative;
  width: 100%; height: 90%; 
}

.bandeau-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 90%; 
  z-index: 1;
  background-image: url(/img/hero-bg_0.jpg);
  background-size: cover;

}

.contenu-plein {
  position: relative;
  z-index: 2;
  width: 100%; height: 90%; 
}

/* Bloc titre principal */
.bloc-texte h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bloc-texte h1 {
  font-size: 32px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}
.bloc-texte{
  height: 20%;
  justify-content: center;
}

/* Texte RGPH */
.bloc-nom .texte {
width: 20%; 
  font-size: 20px;
  font-weight: 500;
  margin-top: 10px;
  background-color: #003366;
  border-radius: 30px;
height: 10%;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .bandeau-image {
    padding: 60px 10px;
  }

  .bloc-texte h2 {
    font-size: 32px;
  }

  .bloc-texte h1 {
    font-size: 24px;
  }

  .bloc-nom .texte {
    font-size: 18px;
  }
}
.recensements{
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    flex-direction: row;
}
.p_recensement{
  height: 10px;
}




/*Mademba*/
.mademba_content img{
  height: 90px;
  padding-top: 5%;
}
.texte_flash{
  display: flex;
  gap: 20px;
  justify-content: center;
  align-content: center;
}
.table_mademba{
  background-color: #aad3ff5e;
  width: 60%;
 
   
}
.table_mademba td{
 gap: 20px;

}
.social-icons a {
  color: #0056b3;
}
 .social-icons {
      text-align: center;
    }
    .social-icons a {
      color: #333;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    .social-icons a:hover {
      color: #007bff;
    }
    .t65{
      color: white;
    }
    .informations{
      padding-left: 10%;
      gap: 30px;

      background-color: #e5f2ff8c;
    }
.table_pub{
  background-color: #aad3ff5e;
  width: 60%;
 height: 100%;
 width: 100%; 
 padding: auto;
}

.table_pub_container a{
  text-decoration: none;
  color: #0c4a88;
}
.table_pub_container a:hover{
  text-decoration: underline;
  color: #1c87f1;
}
/* Conteneur principal */
.section-enquetes {
  background: #f9f9f9;
  padding: 40px 0;
  font-family: Arial, sans-serif;
}



/* Formulaire de filtre */
.filter-form {
  text-align: center;
  margin-bottom: 30px;
}

.filter-form fieldset {
  border: none;
  display: inline-flex;
  gap: 15px;
  margin-bottom: 10px;
}

.filter-form label {
  font-size: 16px;
  color: #444;
}

.btn.btn-primary {
  background-color: #007bff;
  border: none;
  padding: 8px 20px;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.enquetes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Carte de chaque enquête */
.etude-item {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.col-md-6 {
  width: 48%;
}

/* Titres */
.etude-item h3 {
  font-size: 18px;
  color: #0a2c49;
  margin-bottom: 10px;
}

.etude-item h3 a {
  color: #0a2c49;
  text-decoration: none;
}

/* Année */
.year {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

/* Lien "en savoir plus" */
.voir-plus {
  color: #1ba7c5;
  text-decoration: none;
  font-weight: 500;
}

/* Liens de données */
.lien-access-data {
  margin-top: auto;
  font-size: 14px;
}

.lien-access-data a {
  color: #007bff;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
}

/* Pied de section */
.section-footer {
  text-align: center;
  margin-top: 30px;
}

.section-footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}
/* Table d'en-tête responsive */
@media (max-width: 900px) {
  .table_head,
  .table_head thead,
  .table_head tr,
  .table_head td {
    display: block;
    width: 100%;
    text-align: center;
  }
  .table_head td {
    padding: 8px 0;
  }
  .top-menu-section {
    padding-left: 0 !important;
    justify-content: center;
  }
  .top-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

/* Section "Le Sénégal en bref" et carrousels */
@media (max-width: 900px) {
  .senegal-en-bref {
    padding-left: 2%;
    padding-right: 2%;
  }
  .category-buttons {
    padding-left: 0;
    justify-content: center;
  }
  .category-buttons table {
    width: 100%;
  }
  .stats-carousel {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .stat-item {
    min-width: 140px;
    max-width: 180px;
    font-size: 0.95rem;
    align-items: center;
  }
}

/* Publication-list responsive */
@media (max-width: 900px) {
  .publication-list {
    columns: 1 100vw;
    column-gap: 0;
  }
  .row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Section thèmes responsive */
@media (max-width: 900px) {
  .theme-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }
  .theme-item {
    width: 95vw;
    max-width: 350px;
  }
}

/* Section cartes (bases de données) responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .card-image {
    margin-left: 0;
    margin-top: 10px;
    max-width: 100%;
  }
}

/* Newsletter responsive */
@media (max-width: 900px) {
  .newsletter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .newsletter-form,
  .newsletter-image {
    width: 100%;
    text-align: center;
  }
  .newsletter-image img {
    height: auto;
    max-width: 100%;
  }
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5em;
    padding: 1em;
  }
  .reseaux-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  .qrcode-section .gallery-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
  }
  .licence-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Section enquêtes responsive */
@media (max-width: 900px) {
  .enquetes-list {
    flex-direction: column;
    gap: 16px;
  }
  .col-md-6 {
    width: 100%;
  }
}

/* Correction padding général mobile */
@media (max-width: 600px) {
  .section,
  .section-bg,
  .section-header,
  .app-download-section,
  .newsletter-section,
  .footer-section {
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  .section-header h1 {
    font-size: 1.2rem !important;
  }
}

/* Correction pour éviter le débordement horizontal */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}