:root {
  --primary-color: #003c85;
  --secondary-color: #f4f4f4;
  --medle-color: #3498db;
  --danger-color: #ff0000;
  --accent-color: #ffd700;
  --text-color: #333;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.5;
}

a {
  text-decoration: none;
}


.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 700px) {
  .container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

}

#header-container {
  margin: 0;
  width: 100%;
}

header {
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1400;
  user-select: none;
}

.top-header {
  display: flex;
  width: 100%;
  background-color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  gap: 15px;
}

.info-item {
  color: #333;
  font-size: 0.9em;
}

.info-item ul {
  display: flex;
  gap: 30px;
  margin: 0;

}

.info-item ul li {
  list-style: none;

}

.info-item ul li i {
  padding-right: 10px;
}

@media (max-width: 1230px) {
  .top-header {
    justify-content: space-between;
  }

  .info-item {
    display: none;
  }

  .search-container {
    margin-right: 0;
  }
}

.link-visa {
  background: #ff0000;
  padding: 5px;
  margin-left: 20px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 550;
}

@media (max-width: 600px) {
  .top-header {
    justify-content: center;
  }

  .link-visa {
    display: none;
  }
}

.top-header a {
  text-decoration: none;
  color: #fff;
}

.lang-switcher select {
  background-color: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 3px;
  padding: 8px;

}

/* Barre de recherche */

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

#searchInput {
  width: 100%;
  padding: 0.3rem 2.5rem 0.3rem 1rem;
  font-size: 0.8em;
  border-radius: 25px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
  outline: none;
}

#searchInput:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-icon {
  position: absolute;
  background-color: #3498db;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 50px;
  right: 0%;
}



.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px 20px;
  }

  #logo-descript {
    font-size: 12px;
  }

}

#logo-link {
  text-decoration: none;
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 4.5em;
}

#logo-descript {
  display: flex;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 16px;
  align-items: center;
  border-left: solid 2px #fff;
  padding-left: 5px;
  height: 60px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent-color);
}


.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: 0.4s;
}

#burger-inside span {
  border-radius: 3px;
  height: 4px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);

}

@media (max-width: 1230px) {
  .burger {
    display: flex;
    z-index: 999;
  }

  nav {
    position: relative;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--primary-color);
    padding: 80px 20px 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .burger {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .overlay {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9;
  }

  .overlay.active {
    display: block;
  }
}

/* Bande Annonce */
.news-ticker-container {
  display: flex;
  align-items: center;
  background: #1a2a6c;
  color: white;
  overflow: hidden;
  font-weight: 510;
  font-size: 0.8em;
  height: 26px;
  position: relative;
}

.flash-block {
  background: #ff0000;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 710;
  font-size: 1em;
  letter-spacing: 2px;
  flex-shrink: 0;
  height: 100%;
}

.news-ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  padding-left: 20px;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
}

.news-ticker__wrapper {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-slide 120s linear infinite; /* Vitesse réduite */
}

.news-ticker__content span {
  display: inline-block;
  margin-right: 60px;
}

/* Animation */
@keyframes ticker-slide {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes ticker-slide-arabic {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}


/* Responsive */
@media (max-width: 600px) {
  .news-ticker-container {
    font-size: 0.75em;
  }
  .flash-block {
    font-size: 0.9em;
    padding: 0 10px;
  }
}




/* Hero carousel */
.hero-carousel {
  background: url('img/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: 75vh;
  margin-top: 0;
  overflow: hidden;

}

.hero-sous {
  background: url('img/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: 50vh;
  margin-top: 0;
  overflow: hidden;
}

.fitre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75vh;
  background: rgba(0, 54, 105, 0.719);

}

.filtre-sous {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background: rgba(0, 54, 105, 0.719);
}


.slides {
  display: flex;
  transition: transform 1s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  height: 75vh;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-sous {
  min-width: 100%;
  display: flex;
  height: 50vh;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.slide-sous.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.slide-image, .slide-image-mob {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}



.slide-image2 {
  flex: 1;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  background-size: cover;
  background-position: center;
  padding-top: 15px;
}

.slide-image img, .slide-image-mob img {
  display: block;
  height: 50vh;
  box-shadow: 15px 15px 0 #f1c40f;
}

.slide-image2 img {
  display: block;
  /* height: 50vh; */
  width: 80%;
  box-shadow: 15px 15px 0 #f1c40f;
}


.slide-text {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  animation: fadeIn 1.2s ease forwards;
}

.slide-text-sous {
  flex: 1;
  padding:  30px;
  display: flex;
  height: 50vh;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeIn 1.2s ease forwards;
}

.slide-text h1 {
  color: #ffd700;
}

#slide-mob {
  display: none;
}

#hero_text_mob {
  display: none;
}

#titre-sous-page {
  font-size: 30px;
}

@media (max-width: 768px) {
  #hero_text_mob {
    display: flex;
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  #titre-sous-page {
    font-size: 2rem;
  }

  #titre-sous-page-descript {
    font-size: 12px;
  }

  #slide_home {
    display: none;
  }

  #slide-mob {
    display: flex;
  }

  .slide-text {
    padding: 0;
  } 

  .slide-image-mob {
   padding-bottom: 20px;
  }

  .slide-image-mob img {
    width: 80%;
    height: 40vh;
   }

   #hero_titre_mob {
    padding: 40px 30px 0 30px;
    color: #fff;
    font-size: 1.4rem;

   }
  
}

@media (max-width: 992px) {
  .hero-carousel {
    height: 75vh;
  }

  .hero-sous {
    height: 50vh;
  }
  
  .fitre {
    height: 75vh;
  }

  .filtre-sous {
    height: 50vh;
  }

  .slides {
    display: grid;
    transition: transform 1s ease;
  }

  .slide {
    height: 75vh;
  }

  .slide-sous {
    height: 50vh;
  }
  
  .slide-image {
    display: none;
  }

  .slide-text {
    justify-content: center;
    text-align: center;
    background: rgba(26, 42, 108, 0.741);
  } 

}


.section {
  padding: 30px 0;
  background-color: white;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section h2 {
  text-transform: uppercase;
  text-align: center;
  padding: 0;
}

.section .enc-title-ligne {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -15px;
  margin-bottom: 40px;
}


.section .title-ligne {
  width: 150px;
  height: 2px;
  background-color: #ff0000;
  border-radius: 5px;
}

.section:nth-child(even) {
  background-color: #f9f9f9;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

ul {
  padding-left: 20px;
}

.video-placeholder {
  width: 100%;
  height: 300px;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
}

#historique {
  padding: 2rem 5rem;
}

#amba-plus {
  text-decoration: none;
  background: #ff0000;
  color: #fff;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
}

#amba-plus:hover {
  font-size: 1em;
  font-weight: 600;
}

#historique p {
  margin-bottom: 15px;
  text-align: justify;
}

@media (max-width: 600px) {
  #historique {
    padding: 1rem 2rem;
  }
}


/* L'Ambassadeur */
.ambassadeur h2 {
  margin-bottom: 20px;
}

#ambassadeur p {
  text-align: justify;
  padding: 5px;
}


#ambassadeur-text {
  padding-right: 20px;
  text-align: justify;
}


@media (max-width: 600px) {
  #ambassadeur {
    padding-top: 20px;
  }

  #ambassadeur h3 {
    text-align: center;
  }

  #ambassadeur p {
    padding: 20px;
  }

  #ambassadeur-text {
    padding: 0 20px;
  }

  #ambassadeur-name {
    text-align: center;
  }

}

.ambassadeur-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 5rem;
  gap: 20px;
  margin-top: 20px;
}


.ambassadeur-card-content {
  height: 450px;
  padding: 0;
  padding-right: 20px;
}

.ambassadeur-card-content p {
  text-align: justify;
}

@media (max-width: 700px) {
  .ambassadeur-card-content ul {
    margin-left: 10px;
  }

  .ambassadeur-lien {
    font-size: 12px;
  }
} 

#ambassadeur-card-all {
  padding: 0;
}

.ambassadeur-card-content h3 {
  padding: 0 10px;
  color: #003c85;
}


#ambassadeur-name {
  padding: 0;
  margin-bottom: 2px;
  line-height: 24px;
}

.ambassadeur-card-image img {
  /* display: block; */
  /* height: 50vh; */
  margin: 10px 20px;
  width: 85%;
  box-shadow: 15px 15px 0 #f1c40f;
}

.ambassadeur-card-content ul {
  display: flex;
  gap: 50px;
  list-style: none;
  padding-left: 5px;
  margin-top: 0.2rem;
}@media (max-width: 700px) {
  .ambassadeur-card-content ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding-left: 20px;
  }
}



.ambassadeur-card-content ul a {
  color: #888;
  font-size: 1em;
}

.ambassadeur-card-content ul a:hover {
  color: #007BFF;
}


/* Tablette : 2 colonnes */
@media (max-width: 992px) {
  .ambassadeur-card {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
  .ambassadeur-card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .ambassadeur-card-content p {
    padding: 0 20px;
  }

  .ambassadeur-card-content ul {
    justify-content: center;
  }
}


/* Section Activités Principales */
.photo-album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow-x: auto;
  white-space: nowrap;
}

.photo-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-card h3 {
  position: absolute;
  bottom: 150px;
  left: 0;
  right: 0;
  padding: 6px 30px;
  background: #003c85;
  color: #fff;
  font-size: 1.2em;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover h3 {
  transform: translateY(-90px);
  background: #ff0000;
}

.photo-card img {
  height: 400px;
  width: 290px;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(80%);
}

.photo-card:hover img {
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .photo-album {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-card img {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .photo-album {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
}

/* Description */
.description {
  position: absolute;
  bottom: 150px;
  left: 0;
  right: 0;
  color: white;
  padding: 15px 30px;
  font-size: 0.95em;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  width: 290px;
}


.description p {
  line-height: 20px;
}

.photo-card:hover img {
  filter: brightness(40%);
}

.photo-card:hover .description {
  transform: translateY(0);
  opacity: 1;
}

.photo-card {
  cursor: pointer;
}

/* From Uiverse.io by karthik092726122003 */

.styled-wrapper {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  margin-left: 20px;
}

.styled-wrapper .button {
  display: block;
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0;
  overflow: hidden;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  border: 0;
  transform: scaleX(-1);
}

.styled-wrapper .button:before {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 7px;
  border: 3px solid #fff;
  /* Update dynamically for light/dark mode */
  transition:
    opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
    transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
}

.styled-wrapper .button:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 7px;
  border: 4px solid #f1c40f;
  transform: scale(1.3);
  transition:
    opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

.styled-wrapper .button:hover:before,
.styled-wrapper .button:focus:before {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.styled-wrapper .button:hover:after,
.styled-wrapper .button:focus:after {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
    transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
}

.styled-wrapper .button-box {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.styled-wrapper .button-elem {
  display: block;
  width: 30px;
  height: 30px;
  margin: 24px 18px 0 22px;
  transform: rotate(360deg);
  fill: #f0eeef;
}

.styled-wrapper .button:hover .button-box,
.styled-wrapper .button:focus .button-box {
  transition: 0.4s;
  transform: translateX(-69px);
}


/* Responsive: 4 colonnes sur tablette et ordi */


@media (max-width: 768px) {

  .photo-card .description {
    transform: translateY(100%);
    opacity: 0;
  }

  .photo-card.toggled .description {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Section service au Publique - Consulaire */
.resume-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  gap: 20px;
  margin-top: 0;
  
}

.resume-services a {
  text-decoration: none;
  color: #003c85;
}

.resume-services a:hover {
  color: #003c85;
}


.resume-serv-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  height: 150px;
  padding: 25px;
  padding-top: 50px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.resume-serv-item:hover {
  transform: translateY(-15px);
  background-color: #3498db;
  color: #fff;
  cursor: pointer;
}

.serv-icon {
  top: -1%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  border: solid 5px #fff;
  background-color: #3498db;
  color: #ffffff;
}

#serv-icon1 {
  padding: 8px 20px;
  font-size: 32px;
}

#serv-icon2 {
  padding: 5px 12px;
  font-size: 35px;
}

#serv-icon3 {
  padding: 8px 16px;
  font-size: 32px;
}

#serv-icon4 {
  padding: 18px 10px;
  display: flex;
  font-size: 28px;
}

#serv-icon5 {
  padding: 5px 18px;
  font-size: 35px;
}

#serv-icon6 {
  display: flex;
  padding: 18px 10px;
  font-size: 28px;
}

#serv-icon7 {
  padding: 5px 12px;
  font-size: 35px;
}

#serv-icon8 {
  padding: 6px 18px;
  font-size: 35px;
}

#serv-icon9 {
  padding: 6px 12px 6px 16px;
  font-size: 35px;
}


/* Responsive resume services */

/* Tablette : 3 colonnes */
@media (max-width: 992px) {
  .resume-services {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* Mobile : 2 colonne */
@media (max-width: 768px) {
  #serv-pub-consil {
    background: #f4f4f4;
  }
  .resume-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-serv-item {
    font-size: 13px;
  }

}


/* Section service au publique - chancellerie */
.serv-pub-chancell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  gap: 20px;
  margin-top: 20px;
}

.serv-pub-chancell a {
  text-decoration: none;
  color: #fff;
}

.serv-chancell-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #003c85;
  padding: 0;
  margin-bottom: 20px;
}

.serv-chancell-item:hover {
  transform: translateY(-15px);
  background-color: #007bff;
}

.serv-chancell-item img {
  width: 100%;
}

.serv-chancell-item span {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ff0000;
  color: #fff;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 10px;
  border-bottom-left-radius: 10px;
}



/* Responsive service au publique - chancellerie */

/* Tablette : 2 colonnes */
@media (max-width: 992px) {
  .serv-pub-chancell {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
  .serv-pub-chancell {
    grid-template-columns: 1fr;
  }

}



/* Section message du chef de mission */


/* Section Ambassadeurs précédents */
#ambassadeur_preced_titre {
  margin-left: 15px;
  margin-right: 15px;
}

.ambassadeur_preced_content {
  display: none;
  background: url('img/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: 75vh;
  margin-top: 0;
  overflow: hidden;
}

@media (max-width: 760px) {
  .ambassadeur_preced_content {
    display: flex;
  }
}

.ambassadeur_preced_filtre {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 75vh;
background: rgba(0, 54, 105, 0.719);
}

.ambassadeur_preced_slider {
  display: flex;
  transition: transform 1s ease;
  width: 100%;
}

.ambassadeur_preced_slide {
  min-width: 100%;
  display: flex;
  height: 75vh;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(18, 47, 165, 0.741);
}

.ambassadeur_preced_slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.ambassadeur_preced_slide_content {
  flex: 1;
  width: 100%;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  animation: fadeIn 1.2s ease forwards;
}

.ambassadeur_preced_slide_item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 60vh;
}

.ambassadeur_preced_slide_item img {
  height: 350px;
  width: 100%;
}

.amba_preced_slide_descript {
  position: absolute;
  bottom: 0;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: #fff;
  color: #000;
  text-align: center;
  font-size: 13px;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Boutons */
.carousel-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 2;
}

.carousel-controls button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
  background: #f1c40f;
}

/* Fin version mobile */





/* Section Actualité */
.news-container {
  padding: 30px 20px;
}


.category {
  margin-bottom: 40px;
}

.category-title {
  margin-bottom: 20px;
  text-transform: uppercase;
}

@media (max-width: 600px) {

  .news-container {
    padding: 20px 15px;
    
  }

  .category {
   padding: auto;
  }

  .category-title {
    text-align: center;
  }
}

.news-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.news-items a {
  text-decoration: none;
}

.news-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

#diplomat {
  margin: 20px 0 ;
}

#passport-mobil {
  display: none;
}

@media (max-width: 768px) {
  #passport-mobil {
    display: flex;
    margin-bottom: 20px;
  }
  
  
}


.news-item:hover {
  transform: translateY(-8px);
}

.news-cat {
  position: absolute;
  background-color: #ff0000;
  color: #fff;
  padding: 0 5px;
  border-bottom-right-radius: 8px;
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.news-info a {
  text-decoration: none;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.fa-calendar {
  font-size: 20px;
  color: #888;
}

.news-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a2a6c;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Bouton Toute l'actualité */
/* From Uiverse.io by Li-Deheng */
.btn-conteiner {
  display: flex;
  justify-content: center;
  --color-text: #ffffff;
  --color-background: red;
  --color-outline: #ff145b80;
  --color-shadow: #00000080;
}


.btn-content {
  display: flex;
  align-items: center;
  padding: 5px 30px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-background);
  transition: 1s;
  border-radius: 100px;
  box-shadow: 0 0 0.2em 0 var(--color-background);
}

.btn-content:hover,
.btn-content:focus {
  transition: 0.5s;
  -webkit-animation: btn-content 1s;
  animation: btn-content 1s;
  outline: 0.1em solid transparent;
  outline-offset: 0.2em;
  box-shadow: 0 0 0.4em 0 var(--color-background);
}

.btn-content .icon-arrow {
  transition: 0.5s;
  margin-right: 0px;
  transform: scale(0.6);
}

.btn-content:hover .icon-arrow {
  transition: 0.5s;
  margin-right: 25px;
}

.icon-arrow {
  width: 20px;
  margin-left: 15px;
  position: relative;
  top: 6%;
}

/* SVG */
#arrow-icon-one {
  transition: 0.4s;
  transform: translateX(-60%);
}

#arrow-icon-two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.btn-content:hover #arrow-icon-three {
  animation: color_anim 1s infinite 0.2s;
}

.btn-content:hover #arrow-icon-one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.btn-content:hover #arrow-icon-two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */
@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: var(--color-background);
  }

  100% {
    fill: white;
  }
}

/* Button animations */
@-webkit-keyframes btn-content {
  0% {
    outline: 0.2em solid var(--color-background);
    outline-offset: 0;
  }
}

@keyframes btn-content {
  0% {
    outline: 0.2em solid var(--color-background);
    outline-offset: 0;
  }
}



/* ============ PAGE TOUTE L'ACTUALITE ============ */
#page-all-actu {
  width: 70%;
}

@media (max-width: 1075px) {
  #page-all-actu {
    width: 100%;
  }
}

#cont-actu {
  position: relative;
 }

.link-repertoire {
  position: absolute;
  background-color: #FFFFF0;
  width: 350px;
  top: 20px;
  right: 0%;
  padding: 30px 20px;
  
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.226);
}

.link-repertoire h3 {
  font-size: 1em;
  text-transform: uppercase;
  margin-left: 10px;
  color: #666;
}

@media (max-width: 1075px) {
  .link-repertoire {
    display: none;
  }
}

.scrollable-list {
  width: 320px;
  height: 400px;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.scrollable-list a {
  text-decoration: none;
}

.scrollable-list ul {
  padding-left: 0;
}

.scrollable-list li {
  list-style: none;
}

/* Montre le scroll uniquement au hover */
.scrollable-list:hover {
  overflow-y: auto;
}

/* Customisation pour cacher la scrollbar sauf au hover - version Webkit (Chrome, Edge, Safari) */
.scrollable-list::-webkit-scrollbar {
  width: 6px;
  background-color: transparent;
}

/* Scrollbar visible au hover */
.scrollable-list:hover::-webkit-scrollbar {
  background-color: rgba(0, 0, 0, 0.1);
}

.scrollable-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
}

#home-link {
  font-weight: 600;
  padding: 10px 0;
  margin-top: 10px;
  border-bottom: 2px Solid #007bff;
  width: 260px;

}

#home-link a {
  color: #007bff;
}

.menu {
  width: 260px;
}

.menu-item {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid 1px #ddd;
  padding: 10px;
  margin-top: 10px;
  color: #666;
  font-weight: 600;

}

.menu-item:hover {
  background-color: #3498db;
  color: #fff;
}

.menu-solo {
  cursor: pointer;
  padding: 10px;
  margin-top: 10px;
  border-bottom: 1px solid #ddd;
  width: 260px;
  color: #666;
  font-weight: 600;
}

.menu-solo:hover {
  background-color: #3498db;
  color: #fff;
}

.submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  margin-top: 5px;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #007bff;
  font-weight: 500;
  margin-bottom: 10px;
}

.submenu a {
  padding: 5px 0;
  text-decoration: none;
  color: #333;
}

.submenu a:hover {
  color: #007bff;
}

.chevron {
  transition: transform 0.3s;
}

.rotate {
  transform: rotate(180deg);
}

/* ============ FIN PAGE TOUTE L'ACTUALITE ============ */


/* ============ PAGE CONTACT --- HORIRE DE SERVICE ============ */
.horaire-ambassade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
  padding-top: 15px;
}

@media (max-width: 768px) {
  .horaire-ambassade {
    grid-template-columns: 1fr;
    
  }
}

.horaire-ambassade-item {
  padding: 20px;
  background: #fff1d5;  
  border-radius: 10px;
  border-left: solid 4px #003c85;

}

.horaire-ambassade-item:hover {
  transform: translateY(-10px);
  transition: 0.5s ease;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contact-titre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-titre i {
  font-size: 30px;
  color: #dd0000;
}

.contact-titre h3 {
  color: #003c85;
}

.horaire-ambassade-item p {
  margin-bottom: 15px;
}

#horaire-titre {
  margin-top: 20px;
}



/* ============ SECTION PIEDS DES PAGES DU SITE ============ */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  gap: 20px;
}

.footer-section {
  flex: 1 1 250px;
  margin: 20px 0;
}

.footer-section h3 {
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 550;
  font-size: 1em;
}

.footer-section .logo {
  margin-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-icons a {
  width: 24px;
  color: #fff;
  font-size: 24px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
  transform: scale(1.2);
}


#social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding-top: 10px;
}


.footer-bottom {
  text-align: center;
  border-top: 1px solid #3498db;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #bdc3c7;
}

/* ============ FIN SECTION PIEDS DES PAGES DU SITE ============ */


.coordon {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
}

.home-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .coordon {
    padding: 0 20px;
  }

  .call-to-action {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
  }

  .call-to-action a {
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .call-to-action {
    display: flex;
    width: 100%;
    gap: 50px;
    align-items: center;
    margin-bottom: 20px;
  }
}


.call-to-action a {
  background: #003c85;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
}

.home-contact a {
  background: #003c85;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
}

.call-to-action a:hover {
  background: #007bff;
}

.home-contact a:hover {
  background: #007bff;
}



/* ============ Basculement Arabe ============ */

html[dir="rtl"] body {
  text-align: right;
}

/* html[dir="rtl"] .header-container {
  flex-direction: row-reverse;
} */

html[dir="rtl"] .info-item {
  margin-right: 2%;
}

html[dir="rtl"] .search-container {
  margin-left: 2%;
}

html[dir="rtl"] #logo-descript {
  border-right: solid 2px #fff;
  border-left: none;
  padding-right: 8px;
}

html[dir="rtl"] .nav-links li {
  margin-left: 0;
  margin-right: 20px;
}

html[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 20px;
}

html[dir="rtl"] .burger {
  right: 20px;
  left: auto;
}

html[dir="rtl"] .burger-menu {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

html[dir="rtl"] .burger-menu.open {
  transform: translateX(0);
}

html[dir="rtl"] .burger-menu ul {
  text-align: right;
}

html[dir="rtl"] .burger-menu .burger-close {
  left: 20px;
  right: auto;
}

@media (max-width: 768px) {
  html[dir="rtl"] #burger-inside {
    display: none;
  }

  html[dir="rtl"] .ambassadeur-card-content, .ambassadeur-card-content {
    padding: 0;
  }

  html[dir="rtl"] .ambassadeur-card-content p, .ambassadeur-card-content p {
    margin: 0 10px;
  }

  html[dir="rtl"] .ambassadeur-card-content ul {
      padding-right: 20px;
    }
  
    html[dir="rtl"] .ambassadeur-lien {
      font-size: 15px;
    }

}

html[dir="rtl"] .carousel-controls {
  display: flex;
  flex-direction: row-reverse;
}

html[dir="rtl"] .carousel-controls .prev {
  transform: scaleX(-1);
}

html[dir="rtl"] .carousel-controls .next {
  transform: scaleX(-1);
}

html[dir="rtl"] .carousel-dots {
  display: flex;
  flex-direction: row-reverse;
}

html[dir="rtl"] .marquee {
  display: flex;
  flex-direction: row-reverse;
}

html[dir="rtl"] .marquee:hover {
  animation-play-state: paused;
}


html[dir="rtl"] .news-ticker__wrapper {
  animation: ticker-slide-arabic 120s linear infinite; /* Vitesse réduite */
}

html[dir="rtl"] .ambassadeur-card-image {
  padding-right: 20px;
}

html[dir="rtl"] .ambassadeur-card-content ul {
  margin-right: 10px;
}

html[dir="rtl"] .styled-wrapper .button {
  margin-right: 25px;
}


/* ============ Basculement Arabe ============ */

.boutton-arondi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: #003c85;
  padding: 8px 12px;
  color: #fff;
  border-radius: 50px;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.boutton-arondi .descript {
  font-size: 14px;
  font-weight: 550;
}

.boutton-arondi .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 2px #fff;
  border-radius: 50%;
  padding: 6px;
}

.boutton-arondi .icon i {
  font-size: 10px;
}

.boutton-arondi:hover {
  background: #007BFF;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.archive-link {
  padding: 10px 20px;
  font-size: 1.1rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.archive-link:hover {
  background-color: #2980b9;
}

.archive-content {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.archive-content p {
  font-size: 1rem;
  color: #333;
}









/* Section défilement images */
        .projects-section {
            padding: 0rem 0;
            background-color: var(--light);
            position: relative;
            overflow: hidden;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--dark);
        }

        .section-title h2 {
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--accent);
        }

        .marquee-container {
          width: 100%;
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }

        @media (max-width: 760px) {
          .marquee-container {
            display: none;
        }
        }

        .marquee {
            display: flex;
            /* width: max-content; */
            animation: marquee 20s linear infinite;
        }

        .marquee:hover {
            animation-play-state: paused;
        }

        .marquee-item {
            flex: 0 0 auto;
            width: 250px;
            margin: 0 15px;
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        .marquee-item:hover {
          background: #003c85;
          color: #fff;
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .marquee-img {
            height: 180px;
            background-size: cover;
            background-position: center;
        }

        .marquee-text {
            padding: 1rem;
            text-align: center;
        }

        .marquee-text h4 {
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
         }
        
         @keyframes marquee-arabic {
          0% { transform: translateX(-50%); }
          100% { transform: translateX(0); }
       }
        
        
        
        
        /* Styles pour le carrousel affaires sociales */
    .carousel-section {
      padding: 40px 0;
      background-color: #f5f5f5;
      overflow: hidden;
    }
    
    .carousel-title {
      text-align: center;
      color: #0073CF;
      margin-bottom: 30px;
      font-size: 2rem;
    }
    
    .carousel-container {
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
      height: 300px;
    }
    
    .carousel-slide {
      display: flex;
      animation: slide 30s linear infinite;
      width: calc(250px * 12); /* Largeur totale basée sur le nombre d'images */
    }
    
    .carousel-item {
      width: 250px;
      height: 250px;
      margin: 0 15px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      flex-shrink: 0;
      transition: transform 0.3s;
    }
    
    .carousel-item:hover {
      transform: scale(1.05);
    }
    
    .carousel-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    
    /* Animations */
    @keyframes zoomInFromRight {
      0% {
        transform: scale(0.5) translateX(100%);
        opacity: 0;
      }
      100% {
        transform: scale(1) translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes drawLine {
      0% {
        width: 0;
      }
      100% {
        width: 300px;
      }
    }
    
    @keyframes slideUpFromBottom {
      0% {
        transform: translateY(100%);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
    @keyframes slide {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(calc(-250px * 6)); /* Déplace de la moitié des images */
      }
    }
    
    /* Responsive design */
    @media (max-width: 768px) {
      .ministere-title {
        font-size: 2.5rem;
      }
      
      .ministere-subtitle {
        font-size: 1.2rem;
      }
      
      .ministere-underline {
        height: 4px;
      }
      
      .carousel-item {
        width: 200px;
        height: 200px;
      }
      
      .text-content {
        padding: 30px 15px;
      }
    }
    
    @media (max-width: 480px) {
      .ministere-title {
        font-size: 2rem;
      }
      
      .ministere-subtitle {
        font-size: 1rem;
      }
      
      .ministere-underline {
        width: 200px !important;
      }
      
      .carousel-item {
        width: 180px;
        height: 180px;
      }
    }
    
    
    
   
  
        table {
            border-collapse: collapse;
            width: 100%;
            font-size: 0.9em;
        }
        th, td {
            border: 0.5px solid #e0e0e0;
            padding: 6px 8px;
            text-align: left;
        }
        th {
            background-color: #f8f8f8;
            font-weight: 500;
            color: #333;
        }
        tr:hover {
            background-color: #f5f5f5;
        }
        caption {
            font-size: 1.1em;
            margin-bottom: 8px;
            text-align: left;
        }


        #suite-mobile {
          display: none;
        }

        @media (max-width: 768px) {
          #suite-mobile {
            display: flex;
          }
        }
 
       #tenant_lieu_exe {
        padding: 0 20px;
       }

       #tenant-lieu-content {
        padding: 0 20px 20px 20px;
       }

       #tenant-lieu-content p {
        padding-bottom: 15px;
       }

       #tenant-lieu-content li {
        margin-bottom: 15px;
       }

       #legal-doc-content {
        margin: 0 20px 30px 30px;
       }

       #legal-doc-content li {
        margin-bottom: 15px;
       }
   