*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
  }
  
  :root {
    --background-color: #F5F7FA;
    --light-text-color: #F5F7FA;
    --title-color: #1f1130;
    --text-color: #005F73;
    --icon-color: #06c3e9;
    --button-color: #EE9B00;
    --span-color: #EE9B00;
    --shadow:#1f1130;
    --violet: #9b5de5;
    --font-poppins: "Poppins", serif;
    --font-size-h1 : clamp(20px, 2vw, 42px);
    --font-size-h2 : clamp(18px, 1.8vw, 36px);
    --font-size-h3 : clamp(16px, 1.6vw, 32px);
    --font-size-h4 : clamp(14px, 1.4vw, 28px);
    --font-size-text : clamp(12px, 1.2vw, 24px);
    --font-size-nav-link : clamp(14px, 1.4vw, 36px);
  }
  
 
  
  html {
    font-size: 62.5%;
    overflow-x: hidden;
    min-height: 100vh;
  }
  
  body {
    background: var(--background-color);
    color: var(--text-color);
  }
  

  /* All sections style */
  section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
    width: 100vw;
    overflow-x: hidden;
  
  }



 /* Icon top style   */
  .icon-top {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--background-color);
    border-radius: .8rem;
    border: .2rem solid var(--title-color);
    position: fixed;
    bottom: 12vh;
    right: 20px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 .1rem 0.5rem var(--shadow);
    outline: .2rem solid transparent;
  transition: 0.5s ease;
  }


.icon-top:hover {
  outline: .3rem solid var(--button-color);
  bottom: 12.5vh;
}
  .icon-top svg{
    width: 2.4rem;
  }
  


/* HEADER STYLE */
/* Header fixed at the top of the page */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem 3%;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
  }
  
  .header.sticky {
    background: var(--background-color);
    box-shadow: 0 .1rem 1rem var(--shadow);
  }
  
  .logo {
    width: auto;
    height: 8rem;
    cursor: default;
    margin-right: auto;
  }
  .logo img{
    width: auto;
    height: 100%;
    cursor: default;
    margin-right: auto;
  }
  
  .navbar a {
    width: 100%;
    position: relative;
    font-size: var(--font-size-text);
    color: var(--light-text-color);
    font-weight: 600;
    margin-right: 3.5rem;
    text-transform: capitalize;
  }
  .header.sticky .navbar a{
    color: var(--text-color);
  }
  .header.sticky .navbar a.active {
    stroke: var(--text-color);
  }
  .navbar a.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background: var(--light-text-color);
    bottom: -6px;
  }
  
  .header.sticky .navbar a::before{
    background-color: var(--text-color);
    opacity: .7;
  }
  
  
  #menu-icon svg{
    width: 3.6rem;
    color: var(--light-text-color);
    display: none;
  }
  
  .header.sticky #darkMode-icon svg{
    color: var(--text-color);
  }
  /* Lorsque la classe .sticky est ajoutée à .header, modifier la couleur du stroke */
  .header.sticky #menu-icon svg {
    color: var(--text-color);  /* Couleur de stroke dans le mode sticky */
  }










/* FOOTER STYLE */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--text-color);
    position: relative;
    bottom: 0;
}

.footer .footerText{
  width: 100%;
    font-size: var(--font-size-text);
    color: var(--light-text-color);
}

.footer .footerText a {
    font-size: var(--font-size-text);
    color: var(--light-text-color);
    transition: 0.5s ease;
    padding: 1rem;
}
.footer .footerText a:hover,
.footer .footerText a:focus{
    font-size: calc(var(--font-size-text) + .1rem);
    font-weight: bold;
    letter-spacing: .1rem;
}



.alert {
    position: relative;
    margin: 1rem auto;
    padding: 1rem 2.5rem 1rem 1.2rem;
    border-radius: .6rem;
    font-size: 1rem;
    max-width: 700px;
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.1);
  }
  
  .alert-success {
    background-color: #d4edda;
    color: #155724;
  }
  
  .alert-warning {
    background-color: #fff3cd;
    color: #856404;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
  }
  
  .alert-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    line-height: 1;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  








  
  /*  BREAKPOINTS */
  @media screen and (max-width: 1200px) {
      html {
          font-size: 55%;
      }
  }
  
  
  
  
  @media screen and (max-width: 1024px) {
      .header {
          padding: 2rem 5%;
      }
  
      section {
          padding: 2rem 3% 2rem;
      }
  
  }
  
  
  @media screen and (max-width: 991px) {
     
      .navbar a.active::before {
          color: var(--text-color);
      }
      
      .services,
      .portfolio {
          padding-bottom: 7rem;
  
      }
  
      .contact {
          min-height: auto;
      }
  
      .footer {
          padding: 2rem 3%;
      }
  }
  
  
  
  
  @media screen and (max-width: 801px)  {
   #menu-icon svg{
      display: block;
      margin-bottom: 0.5rem;
   }
  
   .navbar {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 3%;
      background: var(--background-color);
      border-top: .1rem solid var(--shadow);
      box-shadow: 0 .5rem 1rem var(--shadow);
      display: none;
  
  }
  
  .navbar.active {
      display: block;
  }
  .navbar a {
      display: block;
      margin: 3rem 0;
      color: var(--text-color);
  }
  
  .navbar a.active {
      color: var(--title-color);
  }
  
  .navbar a::before {
      display: none;
  }
  #menu-icon svg{
    width: 3.6rem;
    color: var(--text-color);
  }
  }
  
  
  
  
  @media screen and (max-width: 617px) {
      .portfolio .portfolio-container {
          grid-template-columns: 1fr;
      }
  }
  
  
  @media screen and (max-width: 450px) {
      html {
          font-size: 50%;
      }     
  
      .contact form .input-box input {
          width: 100%;
  
      }
  }
  
  
  
  
  @media screen and (max-width: 365px) {
     
      .footer {
          flex-direction: column-reverse;
      }
  
      .footer .footerText {
          text-align: center;
          margin-top: 2rem;
      }
  }