body {
  background-color: #f5f5f5;
  color: #4e4e4e;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* Prend tout l'espace disponible entre le header et le footer */
}
  
  .table-cell {
    display: table-cell;
    vertical-align: middle;
    background-color: #0e0c2f;
  }
  
  .sect-pt4 {
    padding-top: 8rem;
  }
  
  .title-box {
    margin-bottom: 4rem;
  }
  
  .title-a {
    text-decoration: none;
    color: #2c2c2c;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .subtitle-a {
    text-decoration: none;
    color: #4e4e4e;
  }
  
  .line-mf {
    width: 40px;
    height: 5px;
    background-color: #0e0c2f;
    margin: 0 auto;
  }
  

  /*--------------------------------------------------------------
  # Header
  --------------------------------------------------------------*/
  #header {
    transition: all 0.5s;
    z-index: 997;
    padding: 20px 0;
    background-color: #0e0c2f;
  }
  
  #header .logo {
    font-size: 10px;
    margin: 0;
    padding: 0;
    font-weight: 500;
    letter-spacing: 1px;
  }
  
  #header .logo a {
    color: #fff;
  }
  
  #header .logo img {
    max-height: 35px;
  }

  
  /*--------------------------------------------------------------
  # Navigation Menu
  --------------------------------------------------------------*/
  .navbar {
    padding: 0;
  }
  
  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  
  .navbar li {
    position: relative;
  }
  
  .navbar>ul>li {
    white-space: nowrap;
    padding: 10px 0 10px 30px;
  }
  
  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    white-space: nowrap;
    transition: 0.3s;
    letter-spacing: 0.4px;
    position: relative;
    text-transform: uppercase;
  }
  
  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }
  
  .navbar>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    width: 0;
    background-color: #fff;
    visibility: hidden;
    transition: all 0.3s ease-in-out 0s;
  }
  
  .navbar a:hover:before,
  .navbar li:hover>a:before,
  .navbar .active:before {
    visibility: visible;
    width: 80%;
  }
  
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover>a {
    color: #fff;
  }
  
  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: -30px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
  }
  
  .navbar .dropdown ul li {
    min-width: 200px;
  }
  
  .navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    text-decoration: none;
    color: #4e4e4e;
  }
  
  .navbar .dropdown ul a i {
    font-size: 12px;
  }
  
  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover>a {
    color: #0e0c2f;
  }
  
  .navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
  
  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
  }
  
  .navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
  
  @media (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
      left: -90%;
    }
  
    .navbar .dropdown .dropdown:hover>ul {
      left: -100%;
    }
  }

  @media (max-width: 1366px) {
    .navbar ul {
      display: none;
    }

    .img-fluid {
      display: block; 
      margin: 0 auto; 
    }

    #header .container {
      display: flex;
      flex-direction: column; 
      align-items: center; 
      justify-content: center; 
    }

    .logo {
      margin: 0; 
    }
  }

  /*--------------------------------------------------------------
  # Portfolio
  --------------------------------------------------------------*/
  
  .work-box {
    margin-bottom: 3rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 300px; /* Hauteur fixe pour les cartes */
    transition: all 1s;
  }
  
  .work-box:hover {
    transform: scale(1.05);
  }
  
  .work-img {
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden; 
    flex: 1;
    text-align: center; 
  }

  .work-img img {
      width: 50%; 
      height: auto; 
      margin: 0; 
  }

  #logo-code4u{
    width: 200%;
  }
  
  .work-content {
    padding: 2rem 3% 1rem 4%;
    background-color: #fff; 
  }
  
  .work-content .w-more {
    color: #4e4e4e;
    font-size: 0.8rem;
  }
  
  .work-content .w-more .w-ctegory {
    color: #0e0c2f;
  }
  
  .work-content .w-like {
    font-size: 2.5rem;
    color: #0e0c2f;
    float: right;
  }
  
  .work-content .w-like a {
    color: #0e0c2f;
  }
  
  .work-content .w-like .num-like {
    font-size: 0.7rem;
  }
  
  .w-title {
    font-size: 1.2rem;
  }
  
  .title-actu {
    z-index: 2;
    text-decoration: none;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
  }
  
  .subtitle-actu {
    z-index: 2;
    text-decoration: none;
    color: #b9b9b9;
  }
  
  .line-mf-actu {
    width: 40px;
    height: 5px;
    background-color: #ffffff;
    margin: 0 auto;
  }
  
  .socials {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
  }
  
  .socials ul {
    display: flex;
    justify-content: center;
    align-items: center; 
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .socials ul li {
    margin: 0 10px; 
  }
  
  .socials .ico-circle {
    height: 40px; 
    width: 40px;
    font-size: 1.5rem;
    border-radius: 50%;
    line-height: 40px; 
    color: black;
    box-shadow: 0 0 0 3px #0e0c2f;
    transition: all 500ms ease;
  }
  
  .socials .ico-circle:hover {
    background-color: #0e0c2f;
    color: #fff;
    box-shadow: 0 0 0 3px #cde1f8;
    transition: all 500ms ease;
  }
    
  
  /*------/ Ico Circle /------*/
  .ico-circle {
    height: 100px;
    width: 100px;
    font-size: 2rem;
    border-radius: 50%;
    line-height: 1.55;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 0 10px #0e0c2f;
    display: block;
  }

  /*--------------------------------------------------------------
  # Footer
  --------------------------------------------------------------*/
  footer {
    text-align: center;
    color: #fff;
    padding: 25px 0;
    background: #0e0c2f;
    bottom: 0;
}
  
  footer .copyright {
    margin-bottom: 0.3rem;
  }
  
  footer .credits {
    margin-bottom: 0;
  }
  
  footer .credits a {
    color: #fff;
  }

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
  }

  .modal-overlay.active {
    visibility: visible;
    opacity: 1;
  }

  .modal-content {
    background: #ffffff;
    padding: 20px;
    width: 98%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .modal-header h2 {
    font-size: 2rem;
    margin: 0;
  }

  .modal-header .close {
    cursor: pointer;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #333;
  }

  .modal-body {
    display: flex;
    flex: 1;
    gap: 20px;
  }

  .modal-body .left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-body .left-section img {
    max-width: 90%;
    height: auto;
    margin-bottom: 15px;
  }

  .modal-body .left-section .info {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
  }

  .modal-body .right-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .modal-body .right-section p {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
  }

  .work-content a span.bi-arrow-right-circle {
    font-size: 2.5rem;
    color: black;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .work-content {
    position: relative;
  }

  @media (max-width: 768px) {
    .modal-content {
      flex-direction: column;
    }

    .modal-body {
      flex-direction: column;
    }

    .modal-body .left-section img {
      max-width: 150px;
      margin-bottom: 10px;
    }
  }