  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Lato', sans-serif;
    }

    #main-nav {
      background-color: #091822;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      margin-left: -53rem;
    }
    .logo-img {
      max-height: 9rem;
    }

    .nav-links {
      list-style: none;
      display: flex;
      gap: 2rem;
    }

    .nav-links li a {
      color: white;
      text-decoration: none;
      font-size: 1rem;
    }

    .threeLines {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }

    .threeLines .line {
      width: 25px;
      height: 3px;
      background-color: white;
    }

    @media screen and (max-width: 768px) {
       .logo {
     font-size: 1.3rem;
      margin-left: -2.5rem;
    }
      .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0c2641;
        flex-direction: column;
        display: none;
        gap: 1rem;
        padding: 1rem 2rem;
      }

      .nav-links.open {
        display: flex;
      }

      .threeLines {
        display: flex;
      }
    }

    .sticky {
      position: fixed;
      top: 0;
      width: 100%;
    }
    /* Section Hero */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      min-height: 100vh;
      background-color: rgba(9, 24, 34, 1);
      color: white;
      padding: 2rem;
      padding-top: 5rem;
      text-align: center;
    }
    
    .hero-content {
      max-width: 90%;
      margin-bottom: 2rem;
    }
    
    .hero h1 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
    }
    
    .hero p {
      font-size: 1.2rem;
      line-height: 1.8;
      text-align: justify;
    }
    
    .hero-image img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 0.5rem;
    }
    
    /* Styles Responsives */
    @media (min-width: 768px) {
      .hero {
        flex-direction: row-reverse;
        text-align: left;
        padding: 4rem;
      }
    
      .hero-content {
        flex: 1;
        max-width: 60%;
      }
    
      .hero h1 {
        font-size: 2.8rem;
      }
    
      .hero p {
        font-size: 1.3rem;
      }
    
      .hero-image {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    
      .hero-image img {
        max-width: 35rem;
        height: auto;
        max-height: 90vh;
        object-fit: contain;
      }
    }
    @media (max-width:768px) {
      .hero {
        margin-top: 8rem;
      }
      .hero p {
        text-align: center;
      }
    }
    
    /* Paragraphe multilingue caché en mobile */
    .languages {
      text-align: justify;
      margin-top: 1.5rem;
    }
    
  

    /* Section Mes Compétences*/
    .skills-section {
      padding: 2rem;
      background: rgba(9, 24, 34, 1);
      color: white;
      text-align: center;
    }
    
    .skills-section h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
      border-bottom: 2px solid #586b18;
      display: inline-block;
      padding-bottom: 0.5rem;
    }
    
    .skills-tags {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
    }
    
    .skills-tags span {
      background-color: #1b4560;
      padding: 0.5rem 1rem;
      border-radius: 9999px;
      font-size: 0.85rem;
      white-space: nowrap;
      color: white;
      transition: background-color 0.3s;
    }
    
    /* Responsive : à partir de tablette */
    @media (min-width: 768px) {
      .skills-section h2 {
        font-size: 2.5rem;
      }
    
      .skills-tags span {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
      }
    }
    
    /*Sectionn Services */
    .services-section {
      padding: 4rem;
      background-color: rgba(9, 24, 34, 1);
      color: white;
      text-align: center;
    }
    
    .services-section h2 {
      font-size: 2.5rem;
      margin-bottom: 3rem;
      border-bottom: 2px solid #586b18;
      display: inline-block;
      padding-bottom: 0.5rem;
    }
    
    .services-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    /* Style des services */
    .service {
      background-color: #0d2331;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .service h3 {
      font-size: 1.75rem;
      color: white;
      margin-bottom: 1rem;
    }
    
    .service p {
      font-size: 1.1rem;
      line-height: 1.6;
    }
.service-text {
  max-height: 4.8em; /* ~3 lignes */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-text.expanded {
  max-height: 1000px;
}

.toggle-btn {
  margin-top: 1rem;
  background: none;
  border: none;
  color: #39ff14;
  font-weight: bold;
  cursor: pointer;
}

    @media (min-width: 1024px) {
  .service-text {
    max-height: none;
    overflow: visible;
  }

  .toggle-btn {
    display: none;
  }
}

    
    /* Responsive : à partir de tablette */
    @media (min-width: 768px) {
      .services-container {
        grid-template-columns: 1fr 1fr;
      }
    }
    
    /* Responsive : à partir de bureau */
    @media (min-width: 1024px) {
      .services-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
      }
    
      .service {
        padding: 3rem;
      }
    
      .service h3 {
        font-size: 2rem;
      }
    
      .service p {
        font-size: 1.25rem;
      }
    }

     /* Section Présentation*/
  .presentation-section {
    background-color: rgba(9, 24, 34, 1);
    color: white;
    padding: 4rem;
    text-align: center;
    
}

.presentation-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.presentation-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #586b18;
    width: 100%;
}

.presentation-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
}

.presentation-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
    /* Section Portfolio*/

    .portfolio-section {
    background-color: rgba(9, 24, 34, 1);
    color: white;
    padding: 4rem;
    text-align: center;
    
}

.portfolio-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.portfolio-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #586b18;
    width: 100%;
}

.portfolio-message {
    font-size: 1.5rem;
    color: #ff6458;
    margin-top: 1rem;
    font-weight: bold;
}

/* CONTACT SECTION */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #0d2331;
  padding: 2rem;
}

.contact h1 {
  font-size: 2.5rem; /* 2.5rem correspond à 40px si la racine est à 16px */
  margin-bottom: 1.5rem;
  text-align: center;
  color: #fff;
}


.contact p {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.rounded img {
  width: 12rem; /* Utilise rem au lieu de px */
  height: 12rem;
  border-radius: 50%;
  border: 0.2rem solid #586b18;
  margin-bottom: 2rem;
}

/* FORM CONTAINER */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0c2641;
  width: 100%;
  max-width: 37.5rem; /* 37.5rem = 600px */
  padding: 2rem;
  border-radius: 1rem; /* border-radius en rem */
  text-transform: uppercase;
}

/* INPUTS & TEXTAREA STYLES */
.form input,
.form textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: none; /* Supprime toutes les bordures */
  border-bottom: 0.2rem solid #fff; /* Ajoute seulement la bordure du bas */
  background-color: transparent;
  color: #fff;
  font-size: 1rem;
  border-radius: 0; /* Pas de border-radius */
  outline: none;
}


.form input::placeholder,
.form textarea::placeholder {
  color: #fff;
}
.form input:focus,
.form textarea:focus {
  border-bottom: 0.2rem solid #586b18;
}

/* BUTTON STYLES */
.form .submit {
  background: #091822;
  color: #fff;
  border: 0.1rem solid #586b18;
  padding: 1rem 2rem; /* Utilisation de rem pour l'espacement */
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0.625rem; /* border-radius en rem */
  transition: background 0.3s ease;
}
.form .submit:disabled {
  background: #2a3a44;          /* plus terne */
  border-color: #555;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Empêche le hover quand disabled */
.form .submit:disabled:hover {
  background: #2a3a44;
}


.form .submit:hover {
  background: #586b18;
}
#form-status {
 opacity: 0;
  transition: opacity 0.5s ease;
}
#form-status.show {
  opacity: 1;
}
.form-success {
  color: #39ff14; 
}

/* RESPONSIVE STYLES */
@media (max-width: 48rem) { /* 48rem = 768px */
  .contact {
      padding: 2rem;
  }

  .form {
      width: 90%;
  }

  .contact h1 {
      font-size: 2.25rem;
  }

  .contact p {
      font-size: 1.1rem;
  }

  .rounded img {
      width: 10rem; /* Réduction de la taille de l'image */
      height: 10rem;
  }
}
/* Style pour la bannière */
.dev-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #e7003b;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  z-index: 1000;
}

.dev-banner p {
  margin: 0;
  font-size: 1rem;
}

.close-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #0c2641;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.close-btn:hover {
  background-color: #d50032;
}

/* Cache la bannière après avoir cliqué sur OK */
.dev-banner.hidden {
  display: none;
}


    
