@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #0679bb;
    --secondary-color: #a23fff;
    --bg-color: #f8fafc;
    --text-color: #22223b;
    --border-radius: 10px;
    --shadow: 0 4px 24px rgba(37, 100, 235, 0.192);
    --dark-grey: #22223b; /* Defined for Contact page */
    --medium-grey: #666; /* Defined for Contact page */
    --border-grey: #e0e0e0; /* Defined for Contact page */
    --primary-red: #d10000; /* Defined for Contact page */
    --blue-faq: #eef2ff; /* Defined for Contact page */
    --blue-faq-icon: #0ea5e9; /* Defined for Contact page */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #4b5563;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background 0.3s;
    overflow-x: hidden;
    line-height: 1.6; 
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-color);
}

input, textarea, select {
    font-family: inherit;
    border: 1px solid #d9e3ed;
    border-radius: var(--border-radius);
    padding: 0.7em 1em;
    margin-bottom: 1em;
    background: #fbfcff;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
}

::-webkit-scrollbar {
    width: 8px;
    background: #e0e7ef;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
}

.primary-btn {
    font-family: inherit;
    background: linear-gradient(270deg, #094de0, #094de0, var(--secondary-color));
    color: white;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6em 1.4em;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    
}

.primary-btn:hover {
    background: linear-gradient(270deg, var(--secondary-color), #0d3a9a, #0d3a9a);
    color: white;
    box-shadow: 0 6px 32px rgba(168, 85, 247, 0.12);
}

.secondary-btn {
    font-family: inherit;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.6em 1.4em;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
}

.secondary-btn:hover {
    background: linear-gradient(270deg, #2056ca, var(--primary-color));
    color: white;
    box-shadow: 0 6px 32px rgba(168, 85, 247, 0.12);
}

.card, .container {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1em;
    margin: 0 auto 1.5em auto;
    width: 100%;
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Header section -----------------------*/
/*---------------------------------------------------------------------------*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0em 2em;
    box-shadow: -1em 0 0.4em rgb(223, 223, 230);
    z-index: 1000;
    top: 0;
    width: 95%;
    position: sticky !important;
    background-color: white;
}

.logo{
    width: 15%;
    display: flex;
    gap: 2px;
    align-items: center;
}

.logo img {
    width: 80px;
    height: 80px;
    margin: auto;
}

.logo div{
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 700;
}


nav ul {
    list-style: none;
    display: flex;
    font-size: 0.9em;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #5a5a6c;
    transition: color 0.3s;

}
nav ul li{
    border-radius: 8px;
    padding: 0.5em 1em;
    transition: background-color 0.3s;
}

nav ul li:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* Header button */
.header-btn {
  margin-left: auto;
}

/* Menu toggle (hamburger) */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle img {
  width: 28px;
  height: 28px;
}

/* Overlay hidden by default */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

/* Close button */
.close-btn {
  display: none;
  font-size: 2rem;
  color: #333;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown .chevron {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}


.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  border-radius: 5px;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  text-decoration: none;
  color: #666;
  transition: background 0.3s;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover {
  color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown:hover .chevron {
  transform: rotate(180deg);
}

.active{
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 5px;
    border-radius: 2px;
    color: var(--primary-color);
    font-weight: 600;
}

#active-line {
  position: absolute;
  bottom: -2px;
  height: 3px;
  background: var(--primary-color); /* green underline */
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-header-btn{
    display: block;
}

.nav-menu-toggle{
    display: none;
    padding: 1em;
}

.nav-menu-toggle img{
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
}

.nav-menu-toggle img:hover{
    background: #f7fafc;
}

@media (max-width: 480px) {
    .logo img {
        width: 60px;
        height: 60px;
    }
    .logo div {
        font-size: 0.8em;
    }
    nav ul {
        font-size: 0.8em;
    }
}
/* -------- Responsive (sidebar mode) -------- */
@media screen and (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 20px;
    margin-top: 70px;
  }

  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 70%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 99;
  }

  nav.open {
    right: 0;
  }

  .close-btn {
    display: block;
  }

  .nav-header-btn {
    display: none;
  }

  .nav-menu-toggle {
    display: block;
  }

  nav ul li {
    width: 100%;
    text-align: left;
  }
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Hero section -----------------------*/
/*---------------------------------------------------------------------------*/

.hero{
    background: linear-gradient(to left, rgba(236, 231, 231, 0),rgba(236, 231, 231, 0),#eef2ff83, #e1e6f9);
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: var(--border-radius);
    height: 87vh;
}

.hero-stats-container{
    background: transparent;
    padding: 3% 5%;
}

.hero-stats{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    box-shadow: 0 4px 20px rgba(7, 33, 89, 0.231);
    margin: auto;
    border-radius: 10px;
    text-align: center;
}

.hero-stats h2{
    font-size: 2em;
    color: var(--secondary-color);
}

.hero-stats p{
    margin-top: -8%;
    color: var(--text-color);
}

.hero-container div {
    flex: 1;
}

.hero-container h1 {
    font-size: 3em;
    line-height: 1.2em;
    margin-bottom: 0.5em;
}

.hero-btn{
    display: flex;
    gap: 1em;
}

.hero-container p {
    font-size: 1.1em;
    margin-bottom: 2em;
    color: #4b5563;
    line-height: 1.5em;
}

.hero-content {
    flex:40%;
    padding: 2em;
    z-index: 1;
}

.hero-content h2{
    color: var(--primary-color);
    background: #f6fbfe;
    font-weight: 600;
    padding: 0.6em 1em;
    border-radius: 10px;
    font-size: 1em;
    width: fit-content;
}

.hero-image{
    flex:70%;
    display: flex;
    background: url("../assets/images/76822571.jpg") center/cover no-repeat;
    justify-content: center;
    align-content: center;
}

.hero img {
    max-width: 600px;
    width: 55%;
    height: 400px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 4px 40px rgba(24, 65, 148, 0.566);
}

.hero-image-1{
    z-index: 10;
    margin-right: -30%;
    margin-top: 5%;
    opacity: 0;
    transform: translateX(-90px);
    transition: all 0.4s ease;
}

.hero-image-1.show {
    opacity: 1;
    transform: translateX(0);
}

.hero-image-2{
    max-width: 500px;
    width: 50%;
    height: 400px;
    margin: 15% 0 0 4%;
    opacity: 0;
    transform: translateX(90px);
    transition: all 0.4s ease;
}

.hero-image-2.show {
    opacity: 1;
    transform: translateX(0);
}

/* Hero responsiveness */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        height: auto;
        padding: 2em 0;
    }
    .hero-content {
        flex: 100%;
        text-align: center;
        padding: 1em;
    }
    .hero-content h2 {
        margin: 1em auto;
    }.hero-image {
        flex: 100%;
        gap: 1px;
        height: 500px;
        margin-top: 2em;
    }
    .hero img {
        width: 45%;
        height: 40%;
        max-width: 450px;
        margin: auto;
    }
    .hero-image-1, .hero-image-2 {
        margin: auto;
        width: 30%;
        height: auto;
        max-width: 400px;
    }
    .hero-image-1 { 
        z-index: 1000;
        margin-right: -70%;
        margin-top: 5%;
        opacity: 0;
        transform: translateX(-90px);
        transition: all 0.4s ease;
    }
    .hero-image-2 {
        max-width: 500px;
        width: 50%;
        height: 400px;
        margin: 15% 0 0 40%;
        opacity: 0;
        transform: translateX(90px);
        transition: all 0.4s ease;
    }
}
@media (max-width: 768px) {
    .hero-container h1 {
        font-size: 2.2em;
    }
    .hero-container p {
        font-size: 1em;
    }
    .hero-image {
        height: 400px;
    }
    .hero img {
        width: 80%;
    }
    .hero-image-1, .hero-image-2 {
        display: none;
    }
    .hero-stats {
        flex-direction: column;
        padding: 1em;
    }
    .hero-stats > div {
        margin-bottom: 1em;
    }
}
@media (max-width: 480px) {
    .hero-container h1 {
        font-size: 1.8em;
    }
    .primary-btn{
        font-size: 0.8em;
        height: fit-content;
    }
    .secondary-btn{
        font-size: 0.8em;
        height: fit-content;
    }
    .hero-container p {
        font-size: 0.9em;
    }
    .hero-image {
        height: 300px;
    }
    .hero img {
        width: 90%;
    }
    .hero-content h2 {
        font-size: 0.9em;
    }
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Pourquoi DGC section -----------------------*/
/*---------------------------------------------------------------------------*/

    .why-dga {
        
      padding: 30px 0px;
      background: rgba(255, 255, 255, 0.475);
      color: var(--text-color);
    }

    .why-dga-container {
      max-width: 90%;
      margin: auto;
      text-align: center;
    }

    .why-dga h2 {
      font-size: 2.2rem;
      margin-bottom: 40px;
      font-weight: bold;
      color: var(--text-color);
    }

    .why-dga-features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
    }

    .feature-card {
      border-radius: 12px;
      padding: 25px 20px;
      text-align: center;
      transform: translateY(80px);
      transition: all 0.8s ease;
    }
    .feature-card.show {
      opacity: 1;
      transform: translateY(0);
    }
    .feature-card:hover {
      transform: translateY(-8px);
      color: #4b5563;
    }

    .feature-card img {
      width: 60px;
      height: 60px;

    }

    .feature-card h3 {
      font-size: 1.2rem;
      margin-bottom: 10px;
      color: var(--text-color);
    }

    .feature-card p {
      font-size: 0.95em;
      line-height: 1.5;
      color: var(--text-color);
    }


    @media (max-width: 768px) {
      .why-dga h2 {
        font-size: 1.8rem;
      }
      .why-dga-features {
          grid-template-columns: 1fr; 
          padding: 0 1em;
      }
      .feature-card {
          padding: 20px;
      }
    }
    @media (max-width: 480px) {
        .why-dga h2 {
            font-size: 1.5rem;
        }
        .feature-card h3 {
            font-size: 1.1rem;
        }
        .feature-card p {
            font-size: 0.9rem;
        }
    }


/*---------------------------------------------------------------------------*/
/*------------------------------- Focus Area section -----------------------*/
/*---------------------------------------------------------------------------*/

.focus-area{
    padding: 2% 4%;
    text-align: center;
}

.focus-area h1{
    color: var(--text-color);
      font-size: 2.2rem;
      font-weight: bold;
}

.focus-area p{
    width: 80%;
    margin: auto;
    color: var(--text-color);
}

.focus-card-container{
    padding: 4%;
    display: flex;
    gap: 2%;
    justify-content: center;
}

.focus-card{
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(24, 65, 148, 0.566);
    cursor: pointer;
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s ease;
}

.focus-card.show {
  opacity: 1;
  transform: translateX(0);
}

.focus-card img{
    height: 300px;
    width: 350px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}


.focus-card p{
    padding: 2% 4%;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
}


@media (max-width: 1024px) {
    .focus-card-container {
        flex-wrap: wrap;
        padding: 2%;
    }
    .focus-card {
        width: 45%; 
        margin-bottom: 20px;
    }
    .focus-card img {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 768px) {
    .focus-area h1 {
        font-size: 1.8rem;
    }
    .focus-area p {
        width: 90%;
    }
    .focus-card-container {
        flex-direction: column;
        align-items: center;
    }
    .focus-card {
        width: 80%; /* Single column */
        max-width: 400px;
    }
    .focus-card p {
        font-size: 1em;
    }
}
@media (max-width: 480px) {
    .focus-area h1 {
        font-size: 1.5rem;
    }
    .focus-card {
        width: 95%;
    }
    .focus-card img {
        height: 200px; /* Smaller image height */
    }
}


/*---------------------------------------------------------------------------*/
/*------------------------------- About section -----------------------*/
/*---------------------------------------------------------------------------*/


.about {
  padding: 20px ;
  background: url("../assets/images/about.jpg") center/cover no-repeat;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
}

.about-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 1200px;
  height: fit-content;
  margin: auto;
  background: rgba(244, 247, 251, 0.619);
  box-shadow: 0 4px 20px rgba(24, 65, 148, 0.566);
  padding: 2%;
  border-radius: 15px;
}

.about-text {
  flex: 1 1 600px;
  opacity: 0;
  transform: translateY(-80px);
  transition: all 1s ease;
  padding: 2%;
}

.about-text.show {
  opacity: 1;
  transform: translateX(0);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color);
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text ul li img{
  width: 60px;
  height: 60px;
  vertical-align: middle;
  margin-right: 10px;
}

.about-text ul li p{
  font-size: 1rem;
  line-height: 1.4;
  text-align: justify;
}

.about-text li {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
}

.about-image.show {
  opacity: 1;
  transform: translateY(0);
}

.about-image img {
  max-width: 100%;
  height: 80%;
  margin: auto 0;
  border-radius: 10px;
  margin-top: 10%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}


.about-text,
.about-image,
.strengths li {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}


.about-text.show,
.about-image.show,
.strengths li.show {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 1em;
  }
  .about-text, .about-image {
    transform: translateY(50px);
    opacity: 0; 
  }
  .about-text.show, .about-image.show {
      opacity: 1;
      transform: translateY(0);
  }
  .about-text h2 {
      font-size: 2rem;
  }
  .about-text p {
      font-size: 1.1rem;
  }
  .about-text ul li {
      justify-content: center;
      text-align: left;
      padding: 10px;
  }
  .about-image img {
      margin-top: 2%;
      width: 80%;
      height: auto;
      max-height: 400px; 
  }
}
@media (max-width: 576px) {
    .about-text h2 {
        font-size: 1.8rem;
    }
    .about-text p {
        font-size: 1rem;
    }
    .about-text ul li {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }
    .about-text ul li p {
        margin-top: 0.5em;
        font-size: 0.9rem;
    }
    .about-text ul li img {
        margin-right: 0;
    }
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Formations section -----------------------*/
/*---------------------------------------------------------------------------*/

.formation {
  padding: 20px ;
  background:#e5edfe51;
  position: relative;
}

.formation-container {
  padding: 2%;
}

.formation-text {
 text-align: alight;
 display: flex;
 flex-direction: column;
 justify-content: center;
 color: var(--text-color);
 padding: 4%;
  opacity: 0;
  transform: translateY(90);
    transition: all 1s ease;
}

.formation-text h2{
    font-size: 2.2em;
    flex:30%;
    margin-bottom: -1%;
}


.formation-text p{
    flex:70%;
    text-align: justify;
}

.formation-text.show {
  opacity: 1;
  transform: translateY(0);
}

.formation-card-container{
    display: flex;
    flex-wrap: wrap;
    gap:1%;
    justify-content: center;
}

.f-btn{
    margin-top: 6% ;
    margin-bottom: 6% ;
    width: 100%;
}

.formation-card {
    background: rgba(255, 255, 255, 0.272);
    border: 1px solid #c1d2f7;
    text-align: left;
    padding: 15px;
    border-radius: 10px;
    width: 30%;
    margin-top: 2%;
    box-shadow: 0 6px 20px rgba(113, 113, 113, 0.274);
    opacity: 0;
    transform: translateY(90px);
    transition: all 1s ease;
}

.formation-card.show {
    opacity: 1;
    transform: translateY(0);
}

.formation-card:hover {
    transform: translateY(-8px);
    color: #4b5563;
}


.formation-card .finance{
    font-size: 0.8em;
    color: var(--primary-color);
}

.formation-card h2,h3{
    color: var(--text-color);
}

.formation h3{
    margin-bottom: -4%;
}

.formation-card a{
    margin: 20% 0%;
}

.formation-card img{    
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

.formation-card ul{
    list-style: none;
    text-align: left;
}

@media (max-width: 1024px) {
    .formation-text h2 {
        font-size: 1.8em;
    }
    .formation-card-container {
        gap: 3%;
        padding: 0;
        margin: 0;
    }
    .formation-card {
        width: 40%; 
    }
    .formation-card img {
        height: 180px;
    }
}
@media (max-width: 768px) {
    .formation-text {
        padding: 2%;
        text-align: center;
    }
    .formation-text h2 {
        font-size: 1.5em;
        margin-bottom: 1em;
    }
    .formation-text p {
        width: 90%;
        margin: auto;
    }
    .formation-card-container {
        flex-direction: column;
        align-items: center;
    }
    .formation-card {
        width: 80%; /* Single column */
        max-width: 400px;
        margin-top: 1em;
    }
    .formation-card img {
        height: 150px;
    }
}
@media (max-width: 480px) {
    .formation-text h2 {
        font-size: 1.3em;
    }
    .formation-card {
        width: 95%;
        padding: 10px;
    }

    .formation-card p{
        font-size: 0.8em;
    }
    
    .formation-card h3 {
        font-size: 1.1em;
    }
    .formation-card ul li {
        font-size: 0.9em;
    }
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Testimonials section -----------------------*/
/*---------------------------------------------------------------------------*/

.testimonial{
  padding: 60px 20px;
  text-align: center;
    color: var(--text-color);
}

.testimonial h1{
    font-size: 2rem;
}

.testimonial p{
    width: 80%;
    margin: auto;
}

.wrapper {
  width: 80%;
  margin: auto;
  max-width: 41em;
  min-height: 25em;
  display: flex;
}


.testimonial-container {
  width: 85%;
  height: 100%;
  position: relative;
  margin: auto;
  padding: 1.8em 1.2em;
}

.testimonial-item {
  animation: fadeIn 0.8s ease-in-out;
}


.testimonial-item p .img{
    width: 15px;
    height: 15px;
}
 
.testimonial-item .star{
    display: flex;
    color: yellow;
    margin: auto;
    align-items: center;
    justify-content: center;
    align-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(90px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wrapper button {
  font-size: 1.8em;
  height: 2em;
  width: 2em;
  background-color: #ffffff;
  margin: auto;
  z-index: 100;
  border: none;
  color: var(--primary-color);
  box-shadow: 0 0 1em rgba(160, 160, 160, 0.306);
  cursor: pointer;
  border-radius: 50%;
}


button#next {
  margin-right: -1.1em;
}
button#prev {
  margin-left: -1.1em;
}

.testimonial-container p {
  color: #4b5563;
  text-align: center;
  font-size: 0.9em;
  line-height: 2em;
  letter-spacing: 0.05em;
}

.testimonial-container img {
  display: block;
  margin: 1.8em auto 1.25em auto;
  border-radius: 50%;
  width: 4.4em;
  height: 4.4em;
  
}
.testimonial-container h3 {
  color: #2d3d67;
  margin-bottom: -6% ;
  font-size: 1em;
  text-align: center;
}
.testimonial-container h6 {
  color: #787c86;
  font-size: 0.9em;
  margin-bottom: 2% ;
  letter-spacing: 0.03em;
  font-weight: 400;
  text-align: center;
}
@media screen and (max-width: 650px) {
  .wrapper {
    font-size: 14px;
  }
} 

/*---------------------------------------------------------------------------*/
/*------------------------------- Partners section -----------------------*/  
/*---------------------------------------------------------------------------*/


.partners {
  padding: 60px 20px;
  background: linear-gradient(to bottom, rgba(236, 231, 231, 0),#021d5841,#021d58a9, #021d58); 
  text-align: center;
}

.partners > h1{
    font-size: 3rem;
    padding-bottom: 60px;
}
.partners-slider {
  display: flex;
  gap: 40px;
  overflow: hidden;
  max-width: 1500px;
  margin: auto;
}

.partner img {
  height: 80px;
  object-fit: contain;
  filter: contrast(100%);
  transition: filter 0.3s;
}

.partner img:hover {
  filter: grayscale(0%);
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Footer section -----------------------*/  
/*---------------------------------------------------------------------------*/

footer {
background: #021d58;
color: white;
padding: 40px 20px 20px;
}


.footer-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 40px;
max-width: 1200px;
margin: auto;
border-bottom: 1px solid #4a6297 ;
}

.footer-container img{
    width: 150px;
    height: 150px;
} 

.footer-container .text{
    font-size: 0.9rem;
    color: white;
    font-weight: 400;
}

.footer-col h4 {
font-size: 16px;
margin-bottom: 15px;
color: var(--secondary-color);
}


.footer-col ul {
list-style: none;
padding: 0;
}


.footer-col ul li {
margin-bottom: 10px;
}


.footer-col ul li a {
text-decoration: none;
color: var(--text-light);
font-size: 14px;
transition: color 0.3s;
}


.footer-col ul li a:hover {
color: var(--secondary-color);
}

.footer-bottom{
    text-align: center;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .social-media{
        padding-bottom: 5%;
    }   
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Inscription page -----------------------*/  
/*---------------------------------------------------------------------------*/

.form-container{
    display: flex;
    justify-content: space-between;
    height: 640px;
}

.left-form-section{
    flex:50%;
    background: var(--primary-color);
    text-align: center;
    color: white;
}

.left-form-section img{   
    height: 50%;
    width: 80%;
}

.left-form-section h2{
    font-size: 1.2rem;
    margin-top: 4%;
}

.left-form-section .reason{
    display: flex;
    justify-content: space-around;
    padding:  0 15%;
    font-size: 0.80rem;
    margin-top: 5%;
}

.left-form-section .small-text {
    font-size: 0.90rem;
    text-align: left; 
    width: 80%;
    color: white;
    margin: auto;
    line-height: 1.5rem;

}

.right-form-section{
    flex:50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center ;
    padding: 1% 4%;
    color: #2d3d67;
}
.right-form-section p{
  margin-top: -1%;
  font-size: 0.9em;
}

.right-form-section h1{
  margin: -1% 0;
}

.right-form-section .text{
  font-size: 0.8em;
  color: #4b5563;
}

.right-form-section > form > div > h1, p{
  text-align: center;
}

.form-fields{
  display: flex;
  flex-direction: column;
  gap: 8px; 
}

.form-fields select{
  color: var(--medium-grey);
}

.form-btn{
  text-align: center;
}

.form-btn button{
  border: none;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  width: 100%;
  padding: 2%;
  font-size: 1em;
  cursor: pointer;
  box-shadow: var(--shadow);
}


.form-btn button:hover{
  background-color: #1f91d3;
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
        height: auto;
    }
    .left-form-section{
      display: none;
    }
    .right-form-section {
        flex: 100%;
        padding: 2em 1em;
    }
    .left-form-section img {
        width: 60%;
        height: auto;
    }
    .left-form-section .reason {
        flex-direction: column;
        gap: 10px;
        padding: 0 5%;
    }
    .right-form-section form {
        width: 100%;
    }
    .form-btn button {
        padding: 3%;
        width: 100%;
        font-size: 0.9em;
    }
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Realisation section -----------------------*/  
/*---------------------------------------------------------------------------*/


section.realisations {
      padding: 3rem 2rem;
      background: url("../assets/images/bg.jpg") center/cover no-repeat;
      position: relative;
    }

    section.realisations h2 {
      text-align: center;
      font-size: 2.2rem;
      color: var(--primary-color);
      margin-bottom: 3rem;
      position: relative;
    }

    section.realisations h2::after {
      content: "";
      display: block;
      width: 80px;
      height: 4px;
      background: #2444fa;
      margin: 10px auto 0;
      border-radius: 4px;
    }

    .realisation {
      display: flex;
      margin-bottom: 3rem;
        align-items: center;
      gap: 2rem;
      opacity: 0;
      transform: translateY(-100px);
      transition: all 0.6s ease-out;
      background: #ffffffec;
      padding: 20px;
      border-radius: 10px;
      box-shadow: var(--shadow);
    }

    .realisation.show {
      opacity: 1;
      transform: translateY(0);
    }

    .realisation img {
      flex: 1;
      height: 300px;
      max-width: 400px;
      border-radius: 12px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }

    .realisation-content {
      flex: 2;
    }

    .realisation-content h3 {
      color: var(--primary-color);
      margin-bottom: 0.6rem;
      font-size: 1.5rem;
    }

    .realisation-content p {
      color: #555;
      font-size: 1rem;
      line-height: 1.9;
    }

    /* Alternance gauche-droite */
    .realisation:nth-child(even) {
      flex-direction: row-reverse;
    }

    @media(max-width: 768px) {
      .realisation {
        flex-direction: column !important;
        text-align: center;
      }

      .realisation img {
        max-width: 100%;
      }
    }




/*---------------------------------------------------------------------------*/
/*------------------------------- Formation page -----------------------*/  
/*---------------------------------------------------------------------------*/

    .formations-header {
      background: url("../assets/images/bg4.jpg") center/cover no-repeat;
      background-attachment: fixed;
      color: white;
      padding: 2rem;
      text-align: center;
      align-items: center ;
      height: 150px;
    }


    .formations-header h1 {
      margin: 0;
      font-size: 2.5rem;
      color: white;
    }
    .formations-container h2 {
      margin: 3% 0%;
      color: var(--text-color);
    }

    .formations-header p {
      font-size: 1.1rem;
      margin:auto;
      width: 70%;
      color: #c5d3e7;
    }

    .formations-container {
      width: 95%;
      max-width: 1200px;
      margin: auto;
      padding: 2rem 0;
    }


    .table-wrapper {
      overflow-x: auto;
      border-radius: 12px;
      background: white;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
      padding: 1rem;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
    }

    th, td {
      padding: 12px 16px;
      text-align: left;
    }

    th {
      background: #f0f7ff;
      color: rgb(104, 113, 129);
      font-weight: bold;
      border-bottom: 2px solid #c8dbe6;
    }

    tr:nth-child(even) {
      background: #f9f9f9;
    }

    tr:hover {
      background: #ffffff;
    }

    .enroll-procedure {
      background: #e8f5e9;
      padding: 2rem;
      border-radius: 12px;
      margin-top: 3rem;
    }

    .enroll-procedure h2 {
      margin-bottom: 1rem;
      text-align: center;
    }

    .enroll-procedure ol {
      margin: 0 auto;
      max-width: 700px;
      font-size: 1rem;
      line-height: 1.6;
    }

    .certificates-list {
      display: flex;
      gap: 2rem;
      margin-top: 1rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .certificates-list div {
      flex: 1 1 250px;
      background: #e6edff;
      padding: 1.5rem;
      text-align: center;
      border-radius: 10px;
      transition: transform 0.3s ease;
    }

    .certificates-list div:hover {
      transform: translateY(-5px);
      background: #eef2ff;
    }

  
/*---------------------------------------------------------------------------*/
/*------------------------------- Article page -----------------------*/  
/*---------------------------------------------------------------------------*/

.articles-header{
  background: url("../assets/images/news.jpg") center/cover no-repeat;
  height: 150px;
  text-align: center;
  padding: 5%;
  color: rgb(236, 235, 235);
  font-size: 1.5rem;
}

.articles-header h1{
  padding-top: 2%;
  font-size: 2.5rem;
  margin: 0;
  color: rgb(236, 235, 235);
}

.articles-main{
  display: flex;
  background: #f0f3f4;
  padding: 15px;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  max-width: 1200px;
  padding: 25px;
}

.article-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  height: fit-content;
  justify-content: space-between;
  flex-direction: column;
    opacity: 0;
    transform: translateY(90px);
    transition: all 1s ease;
}

.article-card.show {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card h2{
  color: var(--text-color);
  margin: -1% 0;
}

            .single-article-container { max-width: 800px; margin: 40px auto; padding: 20px; }
            .single-article-header img { width: 100%; height: auto; margin-bottom: 20px; }
            .article-section { margin-bottom: 40px; }
            .article-section h3 { font-size: 1.8em; margin-bottom: 15px; }
            .article-section p { line-height: 1.7; font-size: 1.1em; }
            .article-section img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 8px; }
            .article-section pre { background-color: #2d2d2d; color: #f8f8f2; padding: 20px; border-radius: 5px; overflow-x: auto; }
            .article-section pre code { font-family: 'Courier New', Courier, monospace; }

.tag{
  color: var(--primary-color);
  font-size: 0.7em;
  background: #edf6fa;
  width: fit-content;
  padding: 2px 8px;
  border-radius: var(--border-radius);
}

.article-image {
  position: relative;
}
.article-image img {
  flex: 40%;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.category-badge {
  position: absolute;
  bottom: 5px;
  left: 0;
  background: var(--secondary-color);
  color: #fff;
  font-size: 14px;
  padding: 5px 12px;
}

.article-content {
  flex: 50%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.article-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.article-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #111;
}
.article-excerpt {
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
}
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.read-more:hover {
  color: #0284c7;
}


#articles-container {
  flex: 70%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 15px;
}


.article-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0.5rem 0;
}

.article-actions {
  flex: 10%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4%;
  border-top: 2px solid #eee;
  gap: 15px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.article-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  color: #666;
  align-items: center;
  gap: 5px;
}

.share-options {
  display: none;
  background: white;
  border: 1px solid #ddd;
  padding: 0.5rem;
  position: absolute;
  right: 5px;
  bottom: 60px;
  border-radius: 5px;
  margin-top: 8%;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  gap: 8px;
}

.share-options a,
.share-options button {
  background: #f1f1f1;
  padding: 6px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  color: #000b2e;
  cursor: pointer;
}

.share-options a:hover,
.share-options button:hover {
  background: #ddd;
}


/* A class to toggle visibility with JavaScript */
.share-visible {
    display: flex !important;
}


/* A class to toggle visibility with JavaScript */
.share-post-visible {
    display: block;
}

.comment-visible {
    display: block !important;
}

/* Style for a button that has already been liked */
.like-btn.liked {
    color: var(--secondary-color) ;
    cursor: not-allowed;
    border-color: #ddd;
}

.like-btn.liked .fa-heart {
    color: var(--secondary-color) !important; /* Make the heart red when liked */
}

.article-sidebar {
  padding: 2%;
  flex: 30%;
  max-width: 300px;
}
.widget {
  background: #ffffff6b;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(90px);
    transition: all 1s ease;
}

.widget.show {
    opacity: 1;
    transform: translateY(0);
}

.widget h3 {
  font-size: 18px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
}
.widget ul {
  list-style: none;
  padding: 0;
}

.categories ul li {
  margin-bottom: 10px;
  background: #e1e5fb;
  padding: 4px 10px;
  border-radius: 5px;
  display: flex;
  gap: 10px;
  width: fit-content;
  align-items: center;
}

.categories ul li:hover > a {
  color: #0ea5e9;
}

.widget ul li {
  margin-bottom: 10px;
}
.widget ul li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
}
.widget ul li:hover {
  color: #0ea5e9;
}

.tags{
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tags li {
  background: #e1e5fb;
  padding: 4px 10px;
  border-radius: 5px;
}


/* Messages (Success/Error) */
.message-container {
    position: fixed;
    background: rgb(237, 237, 237);
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

  .comments-section{
    border-top: 1px solid #ddd;
    display: none;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
  }

  .comments-section h3{
    margin-top: -10px;
    color: var(--text-color);
  }

  .comments-section textarea{
    width: 80%;
  }

  .comment-form{
    display: block;
    flex-direction: row;
    gap: 1%;
  }
  

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #badbcc;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@media screen and (max-width: 768px) {
  .articles-header{
    height: fit-content;
  }

  #articles-container{
    display: block;
  }
  .article-list{
    display: block;
  }
  .articles-main {
    padding: 2px;
    flex-direction: column;
  }
  #articles-container, .sidebar {
    flex: 100%;
    max-width: 100%;
  }
  .article-card {
    width: 100%;
    flex-direction: column;
  }
  .article-image img {
    height: 260px;
  }
  .category-badge {
    font-size: 12px;
    padding: 4px 8px;
  }
  .article-meta {
    font-size: 11px;
  }
  .article-content h2 {
    font-size: 16px;
  }
  .article-content .main-content{
    font-size: 14px;
    text-align: justify;
  }
  .article-actions a,button {
    font-size: 0.8em;
  }
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Article page -----------------------*/  
/*---------------------------------------------------------------------------*/

.article-detail-main{
  color: var(--text-color);
  display: flex;
  background: #f3f3f3;
}

.article-detail-main > #article-detail{
  flex: 70%;
  width: 70%;
  padding: 2% 3%;
  color: #6e6e6e;
}

.article-detail-heading{
  color: var(--text-color);
  margin: -1% 0;
}

.aside-container{
  flex: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-detail-header{
  margin-top: -2%;
}

.article-detail-header .overlay{
  background: rgba(19, 0, 43, 0.742);
  height: 100%; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  color: white; 
}

.article-detail-header h1{
  font-size: 3rem;
  color: white;
}

.article-detail img{
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1% 0;
}

.comment-input{
  display: flex;
  gap: 4px;
}

.comment-input textarea{
  width: 75%;
  height: fit-content;
  resize: vertical;
}


@media screen and (max-width: 768px) {
  .article-detail-main{
    flex-direction: column;
    text-align: justify;
  }
  .article-detail-main > #article-detail{
    flex: 100%;
    width: 100%;
    padding: 4%;
    text-align: justify;
  }
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Contact page -----------------------*/  
/*---------------------------------------------------------------------------*/


.contact-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-header {
    background: var(--primary-color);
    text-align: left;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
}

.contact-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1em;
    color: #f0f0f0;
    max-width: 700px;
}


.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-form-section,
.contact-info-section {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-grey);
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-grey);
    text-transform: uppercase;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.send-message-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    width: fit-content;
}

.send-message-btn:hover {
    background-color: var(--primary-color);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0; 
    background-color: transparent; 
    box-shadow: none; 
}

.contact-details-card,
.business-hours-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px; 
    text-align: center;
}

.contact-item h3 {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    color: var(--dark-grey);
}

.contact-item p {
    font-size: 0.95em;
    margin: 0;
    color: var(--medium-grey);
}

.business-hours-card .hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.business-hours-card .hours-grid h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-grey);
}

.business-hours-card .hours-grid p {
    font-size: 0.95em;
    margin: 0;
    color: var(--medium-grey);
}


.map-section {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.map-section h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-grey);
    text-align: left;
}

#map {
    width: 100%;
    height: 450px;
    background-color: #e0e0e0; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#map iframe {
    border-radius: 8px;
}


/*---------------------------------------------------------------------------*/
/*------------------------------- FAQ Section -----------------------*/  
/*---------------------------------------------------------------------------*/


.faq-section {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
    padding: 0 2%;
}

.faq-section h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-grey);
}

.faq-section > p { 
    font-size: 1em;
    color: var(--medium-grey);
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.faq-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-grey);
    opacity: 0;
    transform: translateX(-90px);
    transition: all 1s ease;
}

.faq-item.show {
    opacity: 1;
    transform: translateX(0);
}


.faq-item .faq-icon {
    width: 45px;
    height: 45px;
    background-color: var(--blue-faq);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.faq-item .faq-icon i {
    font-size: 1.2em;
    color: var(--blue-faq-icon);
}

.faq-item h3 {
    font-size: 1.15em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-grey);
}

.faq-item p {
    font-size: 0.9em;
    color: var(--medium-grey);
    margin: 0;
}



@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    .contact-form-section,
    .contact-info-section {
        min-width: unset;
        width: 100%;
    }
    .contact-form {
        flex-direction: column;
    }
    .form-group {
        flex: 1 1 100%;
    }
    .contact-info-section {
        flex-direction: column; 
    }
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2em;
    }
    .contact-form-section h2,
    .contact-info-section h2,
    .map-section h2,
    .faq-section h2 {
        font-size: 1.3em;
    }
    .contact-item i {
        font-size: 1.3em;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/*---------------------------------------------------------------------------*/
/*------------------------------- admin section -----------------------*/    
/*---------------------------------------------------------------------------*/
.top-bar {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3em 2em;
    font-size: 0.9em;
}

.dashboard-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}


.admin-sidebar {
  padding: 1rem;
  text-align: left;
  height: calc(100vh - 3rem);
  position: sticky;
  color: white;
  background: var(--primary-color);
  overflow: auto;
  box-shadow: 0 4px 24px rgba(3, 10, 26, 0.68);
}

.admin-sidebar .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-sidebar .menu li {
  border-radius: 8px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
}

.admin-sidebar ul li a {
    text-decoration: none;
    transition: background-color 0.3s, padding-left 0.3s;
    color: white;
    padding: 25px;
    display: block;
}

.admin-sidebar ul li a i{
  padding-right: 10px;
}

.admin-sidebar ul li a:hover {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.384);
    padding: 25px;
    border-radius: 10px;
}

.admin-sidebar .menu li.actives {
  background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(162,63,255,0.06));
  color: var(--primary-color);
  font-weight: 600;
}

/* Dans admin/assets/admin_style.css */

.avatar-table {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle; /* Aligne l'image avec le texte */
}

/* Styles pour les statuts */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-active {
    background-color: #e2f0d9;
    color: #548235;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.kpi {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), #fff);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
}


.kpi .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.table-card {
  overflow: auto;
}

/* table styling tweak */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f4fb;
  text-align: left;
}
.table th {
  background: #fbfdff;
  color: #223;
}


.row {
  display:flex;
  gap:12px;
  align-items:center;
}
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip {  background:#eef6ff; color:var(--primary-color); padding: 0 20px; border-radius:999px; font-size:0.9rem;}
.search { margin-left:auto; display:flex; gap:8px; align-items:center;}
.train-action{border: none; color: #666672; background: none; padding: 2px; cursor: pointer;}
.train-action:hover{background: #7a7afe;}
@media(max-width: 980px){
  .app { grid-template-columns: 1fr; padding: 1rem;}
  .sidebar { position: relative; height: auto;}
  .admin-sidebar{
    height: fit-content;
  }
  .admin-sidebar ul{
    display: flex;
    flex-wrap: wrap;
  }
  .dashboard-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}

.modal {
            display: none; /* Caché par défaut */
            position: fixed; /* Reste en place */
            z-index: 1000; /* Se place au-dessus de tout */
            left: 0;
            top: 0;
            width: 100%; /* Pleine largeur */
            height: 100%; /* Pleine hauteur */
            overflow: auto; /* Active le défilement si nécessaire */
            background-color: rgba(0,0,0,0.4); /* Fond semi-transparent noir */
            justify-content: center; /* Centrer horizontalement */
            align-items: center; /* Centrer verticalement */
        }

        .modal-content {
            background-color: #fefefe;
            margin: auto; /* Pour le centrage si display:block/flex */
            padding: 20px;
            border: 1px solid #888;
            width: 80%; /* Pourcentage de la largeur de l'écran */
            max-width: 500px; /* Largeur maximale */
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            position: relative;
        }

        .close-button {
            color: #aaa;
            border: none;
            background-color: transparent;
            position: absolute;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            top: 0px;
            right: 2px;
        }

        .close-button:hover,
        .close-button:focus {
            color: black;
            background: white;
            border-radius: 50px;
            text-decoration: none;
        }
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s, border-color 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #e6eefc;
    border-color: #007bff;
    color: #007bff;
}

.pagination-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* Tablettes et écrans de taille moyenne (jusqu'à 980px) */
@media(max-width: 980px){
    .dashboard-container { flex-direction: column; }
    .admin-sidebar {
        position: relative; /* La sidebar n'est plus fixée */
        width: 100%;
        height: auto;
        border-bottom: 3px solid var(--primary-color);
    }
    .admin-sidebar h2 { display: none; } /* On cache le titre pour gagner de la place */
    .admin-sidebar ul {
        display: flex;
        justify-content: center; /* Centrer les éléments */
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
        margin: 0;
    }
    .admin-sidebar .user-info { display: none; } /* On cache les infos utilisateur pour une barre plus compacte */
    .main-content {
        margin-left: 0; /* Plus de marge */
        width: 100%;
        padding: 20px;
        box-sizing: border-box; /* S'assure que le padding est inclus dans la largeur */
    }
}

/* Mobiles (jusqu'à 600px) */
@media(max-width: 600px) {
    .main-content { padding: 15px; }
    h1 { font-size: 1.5em; }
    .admin-sidebar ul li a { padding: 12px 15px; font-size: 0.9em; }
    .kpi .num { font-size: 2em; }
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Floating Video section -----------------------*/    
/*---------------------------------------------------------------------------*/

/* Video Popup Styles */
.video-popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.video-popup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust as needed */
    max-width: 900px; /* Max width for larger screens */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}


.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Optional: For a more fluid video aspect ratio */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-popup-content video {
    width: 100%;
    border-radius: 10px;
    max-height: 500vh; /* Make sure it doesn't get too tall on smaller screens */
    display: block; /* Removes extra space below the video */
    background-color: #000; /* Black background for video player */
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Floating bubble section -----------------------*/    
/*---------------------------------------------------------------------------*/

.floating-squares-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permet de cliquer à travers les carrés */
    overflow: hidden;
    z-index: -1; /* Derrière tout le contenu */
}

.floating-squares-container span {
    border-radius: 50px;
    top: 105%;
    position: absolute;
    box-shadow: 0 1vw 2vw 1vw #d3e4fe;
    animation: animate linear infinite;
}

.floating-squares-container span:nth-child(1) {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    box-shadow: 0 1vw 2vw 1vw var(--secondary-color);
    left: 5%;
    animation-duration: 9s;
}

.floating-squares-container span:nth-child(2) {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    box-shadow: 0 1vw 2vw 1vw var(--primary-color);
    left: 10%;
    animation-duration: 17s;
}

.floating-squares-container span:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 20%;
    background: var(--secondary-color);
    box-shadow: 0 1vw 2vw 1vw var(--secondary-color);
    animation-duration: 10s;
    animation-delay: 8s;
}

.floating-squares-container span:nth-child(4) {
    width: 20px;
    height: 20px;
    left: 30%;
    animation-duration: 7s;
    animation-delay: 7s;
}

.floating-squares-container span:nth-child(5) {
    width: 20px;
    height: 20px;
    left: 40%;
    background: var(--secondary-color);
    box-shadow: 0 1vw 2vw 1vw var(--secondary-color);
    animation-duration: 10s;
}

.floating-squares-container span:nth-child(6) {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    box-shadow: 0 1vw 2vw 1vw var(--primary-color);
    left: 50%;
    animation-duration: 6s;
}

.floating-squares-container span:nth-child(7) {
    width: 20px;
    height: 20px;
    left: 60%;
    animation-duration: 12s;
    animation-delay: 4.5s;
}

.floating-squares-container span:nth-child(8) {
    width: 30px;
    height: 30px;
    left: 80%;
    animation-duration: 8s;
}

.floating-squares-container span:nth-child(9) {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    box-shadow: 0 1vw 2vw 1vw var(--secondary-color);
    left: 85%;
    animation-duration: 20s;
}

.floating-squares-container span:nth-child(10) {   
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    box-shadow: 0 1vw 2vw 1vw var(--primary-color);
    left: 95%;
    animation-duration: 15s;
    animation-delay: 6s;
}



@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    80%{
        opacity: 0.7;
    }
    100%{
        transform: translateY(-800px) rotate(360deg);
        opacity: 0;
    }
}

/*---------------------------------------------------------------------------*/
/*------------------------------- Chatbot section -----------------------*/    
/*---------------------------------------------------------------------------*/

/* Floating Chatbot Button */
.floating-chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color); /* Use your primary color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Higher than other elements */
    transition: background-color 0.3s ease;
}

.floating-chatbot-button:hover {
    background-color: #0d3a9a; /* A slightly darker shade of your primary color */
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 90px; /* Adjust based on floating button height */
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    font-family: 'Poppins', Arial, sans-serif; /* Use your site's font */
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    color: white; /* Ensure header text is white */
}

.chatbot-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-input {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.chatbot-input input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 10px;
    margin-right: 10px;
}

.chatbot-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chatbot-input button:hover {
    background-color: #0d3a9a;
}

/* Chat Message Styles */
.user-message {
    align-self: flex-end;
    background-color: #e2f7cb; /* Light green for user messages */
    color: #333;
    padding: 8px 12px;
    border-radius: 15px 15px 0 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background-color: #e0e0e0; /* Light gray for bot messages */
    color: #333;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
    word-wrap: break-word;
}

/* Bot response buttons */
.bot-action-button {
    background-color: var(--primary-color); /* Green for action buttons */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    display: block; /* Make buttons stack */
    text-align: center;
    text-decoration: none; /* For redirection buttons */
    transition: background-color 0.3s ease;
}

.bot-action-button:hover {
    background-color: #0d3a9a;
}

/* Responsive adjustments for chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        width: 90%;
        height: 80vh;
        bottom: 10px;
        right: 5%;
        left: 5%;
    }
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*---------------------------------------------------------------------------*/
/*------------------------------- Floating bubble section -----------------------*/    
/*---------------------------------------------------------------------------*/

#modal-article-sections .section-content-item,
#modal-article-images .image-item,
#modal-article-codes .code-item,
#modal-article-comments .comment-item {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

#modal-article-sections h4,
#modal-article-images h4,
#modal-article-codes h4 {
    margin-top: 0;
    color: #34495e;
    font-size: 1.2em;
}

.article-form-section {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}


/* Sections in form */
#sections-container .section-item {
    border: 1px dashed #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fdfdfd;
}
#sections-container .section-item:first-child {
    margin-top: 15px;
}
.remove-section-btn {
    background-color: rgb(255, 0, 0);
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    float: right;
    padding: 5px 10px;
    font-size: 0.8em;
}
.remove-section-btn:hover {
    background-color: #bbb;
}

.danger-btn {
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: none;

}
.danger-btn:hover {
    background-color: #c0392b;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: none;
}
.edit-btn:hover {
    background-color: #e67e22;
}


.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}


.articles-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}
.articles-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.articles-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.articles-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.articles-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.4em;
}

.articles-card p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #666;
}

.articles-card-tags span {
    display: inline-block;
    background-color: #e0e7eb;
    color: #555;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-top: 5px;
}

.articles-card-actions {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.articles-card-actions .btn {
    margin-right: 0; /* Remove right margin from buttons in actions */
}

/******************************************/
/********* View single post style ***********/
/******************************************/


.media-viewer { flex-grow: 1; display: flex; justify-content: center; align-items: center; background: #000; position: relative; }
        .post-details { flex-shrink: 0; width: 360px; background: white; height: 100vh; display: flex; flex-direction: column; }
        .details-content { flex-grow: 1; overflow-y: auto; padding: 16px; }

        /* --- Media Carousel (Left Side) --- */
        .carousel-container { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
        .slide { display: none; width: 100%; height: 100%; text-align: center; }
        .slide.active-slide { display: block; }
        .slide img, .slide video { max-width: 95%; max-height: 95vh; object-fit: contain; }
        .carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); border: none; border-radius: 50%; width: 40px; height: 40px; color: white; font-size: 1.5em; cursor: pointer; z-index: 10; }
        .carousel-arrow:hover { background: rgba(255, 255, 255, 0.4); }
        .prev { left: 15px; }
        .next { right: 15px; }

        /* --- Post Details (Right Side) --- */
        .post-header { display: flex; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #dddfe2; }
        .avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; }
        .author-info { display: flex; flex-direction: column; }
        .author-name { font-weight: 600; color: #050505; }
        .timestamp { font-size: 0.8rem; color: #65676b; }
        .description { margin: 16px 0; line-height: 1.5; }
        .comments-wrapper { border-top: 1px solid #dddfe2; padding-top: 16px; }
        .comment-form input, .comment-form textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 15px; margin-bottom: 8px; box-sizing: border-box; }
        .comment-form button { background-color: #1877f2; color: white; padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; float: right; }
        .comments-list .comment-item { margin-top: 15px; display: flex; gap: 8px; }
        .comment-item .comment-bubble { background-color: #f0f2f5; padding: 8px 12px; border-radius: 18px; }
        .comment-item .author_name { font-weight: 600; font-size: 0.9em; }
        .comment-item p { margin: 2px 0 0 0; }

        
/******************************************/
/********* View single post style ***********/
/******************************************/

.admin-info{
  display: flex;
  gap: 4px;
}