/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #C0C0C0;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: cadetblue;
}

.navbar {
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: rebeccapurple;;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 3px 3px 3px 3px rgba(0,0,0,0.3);
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rebeccapurple;
    color: #c36;
}


#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#main-menu {
    height: 59%;
}

#main-menu ul {
    height: 100%;
}

#main-menu ul li {
  height: 33%;
  border-bottom: 1px solid #d9d9d9;
}

#main-menu ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: flex;
    height: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#main-menu ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#main-menu ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

#sidebar-header {
    height: 20%;
    border-bottom: 1px solid #d9d9d9;
}

#sidebar-footer {
    height: 20%;
}

#mCSB_1_container {
    height: 99%;
}

.footer {
    color: aliceblue;
    text-align: center;
    font-size: 0.6em;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.footer ul {
    
    padding: 0;
}

.footer ul li {
    
    list-style-type: none;
}

.footer ul li a {
    padding: 0 !important; 
    font-size: 0.8rem !important;
    display: inline !important;
}

.footer ul li a:hover {
    color:cadetblue;
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: calc(100% - 250px);
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url("../img/background-min.jpg");
    background-blend-mode: darken;
    background-color: rgba(0,0,0,0.9);
    background-attachment: fixed;
    color: white;
}

#content.active {
    width: 100%;
}

  form > .row {
    padding-bottom: 10px;
  }

  textarea {
    height: 120px;
    width: 100%;
    resize: none;
  }

  .custom-bg {
    background-image: url("../img/background-min.jpg");
    background-blend-mode: darken;
    background-color: rgba(0,0,0,0.8);
    color: white;	
}


/*li:before { content: '\1F95E'; margin-left: -20px; margin-right: 10px; } */

#main-list ul li:before { content: '\2705'; margin-left: -20px; margin-right: 10px; } 

.button-wrapper {
	width: fit-content;
	background-color: #c36;
	border: 0;
	outline: 0;
	padding: 0.8rem 1.4rem;
	font-size: 2rem;
	font-family: monospace;
	box-shadow: 0px 5px 10px #0057ab;
	transition: all 0.3s;
	cursor: pointer;
	border-radius: 5px;
	border-bottom: 4px solid #d9d9d9;
	margin: auto;
    color: #fff;
    text-align: center;
  }

  .button-wrapper:hover {
	box-shadow: 0px 15px 25px -5px #0057ab;
	transform: scale(1.03);
  }
  .button-wrapper:active {
	box-shadow: 0px 4px 8px #0065c8;
	transform: scale(0.98);
  }

  .content > h3 {
      color: black;
  }

.vecteezy {
    font-size: 0.5rem;
    text-align: center;
}

.sidebar-open {
    justify-content: flex-end !important;
}

select[name="object"] {
    width: 100%;
}

.item {
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    justify-self: center;
    border-radius: 10px;
}

.btn-overlay {
    top: 0;
    left: 0;
    position: absolute;

}


/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    /*
    #content.active {
        width: calc(100% - 250px);
    }
    */
    #sidebarCollapse span {
        display: none;
    }
}



@media (min-width: 769px) {
    .navbar {
        display: none;
    }
}


/* ---------------------------------------------------
    Page d'accueil
----------------------------------------------------- */
/* Animation au survol des cartes */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.container h2 {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.card h5 {
  font-weight: 500;
  color: #333333;
}
/* ---------------------------------------------------
    A Propos Page
----------------------------------------------------- */
.timeline {
  list-style: none;
  padding-left: 0;
  border-left: 3px solid #ccc;
}

.timeline li {
  margin-bottom: 2rem;
  padding-left: 1rem;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 5px;
  width: 15px;
  height: 15px;
  background: #007bff;
  border-radius: 50%;
}

.hero {
  background: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
  color: white;
}

.card i {
  font-size: 2rem;
}

.card-title {
  font-size: 1.2rem;
}

ul.list-unstyled i {
  font-size: 1.1rem;
}

/* ---------------------------------------------------
    Contact Page
----------------------------------------------------- */

form input, form textarea, form select {
  border-radius: 0.4rem;
}

form label {
  font-weight: 600;
  color: #000000;
}

form .btn {
  padding: 0.75rem;
  font-size: 1.1rem;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.shadow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------
    Portfolio Page
----------------------------------------------------- */
@keyframes bounce-scale {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  60% {
    transform: scale(0.98);
  }
  80% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1.02);
  }
}

.portfolio-item {
    background-color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 10px;
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.portfolio-item > img { 
    height: 300px;
    width: 300px;
    object-fit: fill;
    border-radius: 10px;
}

.overlay {
    position: absolute; /* Sit on top of the page content */
    max-width: 300px; /* Full width (cover the whole page) */
    max-height: 300px; /* Full height (cover the whole page) */
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    justify-self: center;
    transition: all 0.7s;
    border-radius: 10px;
  }

  .overlay:hover {
    background-color: rgba(0,0,0,0.9); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    border-radius: 10px;
  }

  .overlay > h3 {
      visibility: hidden;
  }

  .overlay > p {
      visibility: hidden;
  }

  .overlay > a {
      visibility: hidden;
      color: #c36;
  }

  .overlay:hover > h3 {
      visibility: visible;
  }

  .overlay:hover > p {
     visibility: visible;
}

    .overlay:hover > a {
      visibility: visible;
    }

.overlay > a.btn.cta-button {
  background-color: #c36;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Affichage progressif du bouton au survol */
.overlay:hover > a.btn.cta-button {
  opacity: 1;
  transform: translateY(0);
}

/* Hover visuel */
.overlay > a.btn.cta-button:hover {
  background-color: #a02a50;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px; /* espace entre badges */
  z-index: 10;
  flex-wrap: wrap;
}

.badge-category {
  background-color: #007bff; /* bleu bootstrap */
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px; /* espace entre icône et texte */
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  user-select: none;
}

/* Couleurs spécifiques */
.badge-category.web { background-color: #3498db; }
.badge-category.mobile { background-color: #2ecc71; }
.badge-category.cross { background-color: #f39c12; }
.badge-category.game { background-color: #e74c3c; }

.badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;          /* badges en ligne */
  gap: 8px;               /* espace entre les badges */
  z-index: 10;
  flex-wrap: wrap;        /* pour que ça aille à la ligne si besoin */
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: none;
  background-color: #ddd;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #c36;
  color: white;
}

.filter-btn.active {
  color: white !important;
  background-color: #007bff;
  border-color: #007bff;
}