body {
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
}

/* Navigation */
nav {
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 10px 0;
  font-size: 18px;
  transition: color 0.3s;
  cursor: pointer;
}

nav a:hover {
  color: #1abc9c;
}

.popup {
  display: none;
}

.desktop {
  display: none;
}

/* Mobile Header */
.mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: white;
  padding: 15px 20px;
  background: linear-gradient(rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2)),
    url("/ressources/img/R1.jpeg");
}

/* Menu Mobile */
.menu_mobile {
  display: none;
  flex-direction: column;
  list-style: none;
  padding: 0;
  position: absolute;
  top: 100px;
  left: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.2)),
    url("/ressources/img/R1.jpeg");
  width: 100%;
  text-align: center;
  z-index: 1999;
}

.menu_mobile.active {
  display: flex;
}

.menu_mobile li {
  margin: 5px 15px;
}

.menu_mobile a {
  text-decoration: none;
  color: white;
  font-size: 18px;
}

/* Menu Burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 30px;
  height: 4px;
  background: white;
  margin: 5px;
}

.burger {
  display: flex;
}

/* Contenu Principal */
main {
  flex: 1;
  position: relative;
  background-color: #fff;
}

/* Sections */
section {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: none;
}

section.active {
  display: flex;
}

section.active_portfolio {
  display: flex;
  flex-direction: column;
  /*padding-left: 20px;*/
}

section h2 {
  color: #2c3e50;
  padding-bottom: 5px;
}

section h3 {
  font-size: 15px;
}

/* Disposition des éléments */
section.active {
  display: flex;
  flex-direction: column;
}

.section_container {
  display: none;

}

/* Ajustement des blocs */
.div_right {
  width: 100%;
}


.div_right {
  background: url("ressources/img/R.png");
  /* Si nécessaire */
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  order: 1;
}

.div_left {
  order: 2;
  padding: 0 1em;
  width: 90%;
}



.div_right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Vidéo responsive */
.div_right video, .div_right img  {
  width: 100%;
  object-fit: cover;
}

.font_title {
  font-style: italic;
  font-size: 28px;
  text-decoration: underline;
  font-family: "Courier New", Courier, monospace;
}

.code-editor {
  font-family: "Courier New", Courier, monospace;
  /* Police type éditeur */
  background-color: #1e1e1e;
  /* Fond sombre */
  color: #d4d4d4;
  /* Couleur du texte */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Effet de panneau */
  overflow: auto;
  filter: brightness(100%);
  border: 1px solid #ccc;
  /* Bordure pour délimiter la div */
  /*padding: 10px; Espacement interne */
  height: fit-content;
  /* Hauteur maximale avant d'activer le défilement */
  overflow-y: scroll;
  height: 550px;
}

.code-editor-exp {
  font-family: "Courier New", Courier, monospace;
  /* Police type éditeur */
  background-color: #1e1e1e;
  /* Fond sombre */
  color: #d4d4d4;
  /* Couleur du texte */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Effet de panneau */
  overflow: auto;
  filter: brightness(100%);
  border: 1px solid #ccc;
  /* Bordure pour délimiter la div */
  /*padding: 10px; Espacement interne */
  height: 700px;
  /* Hauteur maximale avant d'activer le défilement */
  overflow-y: scroll;
}

/* Titres */
.code-editor h3,
.code-editor-exp h3 {
  color: #66b032;
  /* Couleur bleue pour les titres */
  margin-bottom: 8px;
  /* Réduction de l'espacement sous les titres */
}

/* Liste */
.code-editor ul,
.code-editor-exp ul {
  list-style-type: none;
  padding-left: 15px;
  /* Espacement réduit à gauche */
  margin: 0;
  /* Suppression de l'espacement par défaut */
}

.code-editor ul li,
.code-editor-exp ul li {
  color: #9cdcfe;
  /* Couleur cyan */
  margin-bottom: 4px;
  /* Réduction de l'espacement entre les items */
}

/* Ajout d'un effet à certains mots-clés (optionnel) */
.education-content ul li::before {
  content: "•";
  /* Puce personnalisée */
  color: #ce9178;
  /* Couleur orange */
  margin-right: 8px;
  /* Réduction de l'espacement avec le texte */
}

/* Ajout de marges entre les sections */
.code-editor h3+ul,
.code-editor-exp h3+ul {
  margin-top: 4px;
  /* Espacement réduit entre le titre et la liste */
}

/* Mots-clés */
.keyword {
  color: #1e90ff;
  /* Violet */
  font-weight: bold;
}

.education-logo {
  width: 60px;
  height: auto;
  margin-right: 15px;
  flex-shrink: 0;
}

.div_line {
  background-color: rgba(255, 255, 255, 1);
  padding: 1em;
  width: 90%;
  order: 1;
}

.container_portfolio {
  gap: 20px;
  /* Espace entre les vignettes */
  width: 100%;
  margin-left: 2em;
  justify-content: space-around;
  font-family: Arial, sans-serif;
  flex-direction: row;
  margin-bottom: 2em;
  vertical-align: middle;
  padding: 2em;
  overflow-y: auto;
  /* Scroll vertical si nécessaire */
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* 3 colonnes */
  max-height: 80%;
  order: 2;
}

.vignette:hover {
  transform: scale(1.05);
  /* Effet de zoom au survol */
}

.vignette img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.vignette h3 {
  font-size: 16px;
  margin: 10px;
  color: #333;
}

.vignette p {
  font-size: 14px;
  margin: 10px;
  color: #666;
  line-height: 1.4;
}

.vignette {
  position: relative;
  width: 250px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 2em;
  transition: transform 0.3s ease;
}

.vignette img {
  width: 100%;
  height: 150px;
  /* Fixe la hauteur de l'image */
  object-fit: cover;
  /* Adapte l'image pour couvrir la zone */
}

/*   .vignette p , h3{
                        padding: 10px;
                        font-size: 14px;
                        color: #333;
                        text-align: center;
                        padding: 1em;
                    }*/
.vignette .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vignette:hover .overlay {
  opacity: 1;
}

.vignette .overlay a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;

  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.vignette .overlay a:hover {
  font-style: italic;
  text-decoration: underline;
}

/* Popup Container */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Popup Content */
.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

/* Form Styles */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form label {
  font-size: 14px;
  font-weight: bold;
  text-align: left;
}

#contact-form input,
#contact-form textarea {
  width: ç5%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

#contact-form button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #1abc9c;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact-form button:hover {
  background-color: #16a085;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container_portfolio {

    grid-template-columns: repeat(2, 1fr);
    /* 3 colonnes */

  }
}

@media (min-width: 920px) {

    html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  main {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  section.active {
    height: 100vh;
    display: flex;
    flex-direction: row; /* Adapté au desktop */
    align-items: stretch; /* Étire les éléments enfants */
  }

  .div_left, .div_right {
    height: 100%;
    flex: 1; /* Prend toute la place disponible */
  }
  section.active {
    display: flex;
    padding-left: 20px;
    flex-direction: row;
  }

  .section_container {
    display: none;

  }

  .div_right {
    order: 2;
    width: 50%;
  }

  .div_left {
    order: 1;
    width: 50%;
  }

  * {
    font-family: "Nunito Sans", sans-serif;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.2)),
      url("/ressources/img/R1.jpeg");
    background-size: cover;
    background-position: center;
  }

  .desktop {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
  }

  .desktop a {
    color: white;
    text-decoration: none;
    margin: 10px 0;
    font-size: 18px;
    transition: color 0.3s;
    cursor: pointer;
  }

  .desktop a:hover {
    color: #1abc9c;
  }

  main {
    flex: 1;
    position: relative;
    background-color: #fff;
  }

  section {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: none;
  }

  section.active {
    display: flex;
    padding-left: 20px;
  }

  section.active_portfolio {
    display: block;
    padding-left: 20px;
  }

  section h2 {
    color: #2c3e50;
    padding-bottom: 5px;
  }

  section h3 {
    font-size: 15px;
  }

  .div_left,
  .div_right {
    height: 100%;
  }

  .div_left {
    background-color: rgba(255, 255, 255, 1);
    padding: 1em;
    width: 55%;
  }

  .div_right {
    background: url("ressources/img/R.png");
    /* Si nécessaire */
    width: 45%;
    height: 100%;
    /* S'assure que la hauteur est à 100% */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centre la vidéo */
    overflow: hidden;
  }

  .div_right video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajuste la vidéo pour couvrir toute la zone */
    max-width: none;
    /* Ignore les restrictions de largeur */
    max-height: none;
    /* Ignore les restrictions de hauteur */
  }

  .div_line {
    background-color: rgba(255, 255, 255, 1);
    padding: 1em;
    width: 100%;
  }

  ul {
    font-size: 13px;
    margin-bottom: 2em;
  }

  .font_title {
    font-style: italic;
    font-size: 28px;
    text-decoration: underline;
    font-family: "Courier New", Courier, monospace;
  }

  .code-editor {
    font-family: "Courier New", Courier, monospace;
    /* Police type éditeur */
    background-color: #1e1e1e;
    /* Fond sombre */
    color: #d4d4d4;
    /* Couleur du texte */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Effet de panneau */
    overflow: auto;
    filter: brightness(100%);
    border: 1px solid #ccc;
    /* Bordure pour délimiter la div */
    /*padding: 10px; Espacement interne */
    height: fit-content;
    /* Hauteur maximale avant d'activer le défilement */
    overflow-y: scroll;
    height: 550px;
  }

  .code-editor-exp {
    font-family: "Courier New", Courier, monospace;
    /* Police type éditeur */
    background-color: #1e1e1e;
    /* Fond sombre */
    color: #d4d4d4;
    /* Couleur du texte */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Effet de panneau */
    overflow: auto;
    filter: brightness(100%);
    border: 1px solid #ccc;
    /* Bordure pour délimiter la div */
    /*padding: 10px; Espacement interne */
    height: 700px;
    /* Hauteur maximale avant d'activer le défilement */
    overflow-y: scroll;
  }

  /* Titres */
  .code-editor h3,
  .code-editor-exp h3 {
    color: #66b032;
    /* Couleur bleue pour les titres */
    margin-bottom: 8px;
    /* Réduction de l'espacement sous les titres */
  }

  /* Liste */
  .code-editor ul,
  .code-editor-exp ul {
    list-style-type: none;
    padding-left: 15px;
    /* Espacement réduit à gauche */
    margin: 0;
    /* Suppression de l'espacement par défaut */
  }

  .code-editor ul li,
  .code-editor-exp ul li {
    color: #9cdcfe;
    /* Couleur cyan */
    margin-bottom: 4px;
    /* Réduction de l'espacement entre les items */
  }
  ul li:has(.h4) {
    list-style: none;
}

  /* Ajout d'un effet à certains mots-clés (optionnel) */
  .education-content ul li::before {
    content: "•";
    /* Puce personnalisée */
    color: #ce9178;
    /* Couleur orange */
    margin-right: 8px;
    /* Réduction de l'espacement avec le texte */
  }

  /* Ajout de marges entre les sections */
  .code-editor h3+ul,
  .code-editor-exp h3+ul {
    margin-top: 4px;
    /* Espacement réduit entre le titre et la liste */
  }

  /* Mots-clés */
  .keyword {
    color: #1e90ff;
    /* Violet */
    font-weight: bold;
  }

  .nav-dots {
    position: fixed;
    top: 40%;
    left: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
  }

  .dot {
    width: 10px;
    height: 10px;
    background-color: gray;
    margin: 10px 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid gray;
    cursor: pointer;
    margin-bottom: 10px;
    /* Espacement entre la flèche et le premier dot */
    transition: border-color 0.3s, transform 0.3s;
  }

  .down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid gray;
    cursor: pointer;
    margin-bottom: 10px;
    /* Espacement entre la flèche et le premier dot */
    transition: border-color 0.3s, transform 0.3s;
  }

  .up.active,
  .down.active {
    border-bottom-color: blue;
    /* Même couleur que le dot actif */
    transform: scale(1.1);
    /* Légère mise en valeur */
  }

  .dot.active {
    background-color: #b0817d;
    transform: scale(1.2);
  }

  .dot:hover {
    background-color: #1abc9c;
  }

  .education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .education-logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .education-content {
    flex: 1;
  }

  .education-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .education-header h3 {
    margin: 0;
    margin-right: 10px;
    font-size: 1.2em;
    /* Ajustez la taille si nécessaire */
  }

  .education-header .keyword {
    font-weight: bold;
  }

  .education-item-ul {
    list-style-type: none;
  }

  .education-item-ul li::before {
    content: "";
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  ul li {
    margin-bottom: 15px;
  }

  .container_portfolio {
    gap: 20px;
    /* Espace entre les vignettes */
    width: 100%;
    margin-left: 2em;
    justify-content: space-around;
    font-family: Arial, sans-serif;
    flex-direction: row;
    margin-bottom: 2em;
    vertical-align: middle;
    padding: 2em;
    overflow-y: auto;
    /* Scroll vertical si nécessaire */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colonnes */
    max-height: 80%;
  }

  .vignette:hover {
    transform: scale(1.05);
    /* Effet de zoom au survol */
  }

  .vignette img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  .vignette h3 {
    font-size: 16px;
    margin: 10px;
    color: #333;
  }

  .vignette p {
    font-size: 14px;
    margin: 10px;
    color: #666;
    line-height: 1.4;
  }

  .vignette {
    position: relative;
    width: 250px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 2em;
    transition: transform 0.3s ease;
  }

  .vignette img {
    width: 100%;
    height: 150px;
    /* Fixe la hauteur de l'image */
    object-fit: cover;
    /* Adapte l'image pour couvrir la zone */
  }

  /*   .vignette p , h3{
                        padding: 10px;
                        font-size: 14px;
                        color: #333;
                        text-align: center;
                        padding: 1em;
                    }*/
  .vignette .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .vignette:hover .overlay {
    opacity: 1;
  }

  .vignette .overlay a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;

    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }

  .vignette .overlay a:hover {
    font-style: italic;
    text-decoration: underline;
  }

  .keyword {
    color: #569cd6;
  }

  .class-name {
    color: #4ec9b0;
  }

  .property {
    color: #9cdcfe;
  }

  .string {
    color: #ce9178;
  }

  .comment {
    color: #6a9955;
    font-style: italic;
  }

  .method {
    color: #dcdcaa;
  }

  .brackets {
    color: #d4d4d4;
  }

  .symbol {
    color: #c586c0;
  }

  .commentaire {
    color: #9e9c9c;
    font-style: italic;
    font-size: 14px;
  }

  #who_am_i li {
    color: #f0ffb5;
  }

  #personal-info {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    position: absolute;
    bottom: 0;
  }

  #personal-info h3 {
    margin: 0;
    font-size: 1.5em;
  }

  #personal-info p {
    margin: 5px 0;
    font-size: 0.9em;
  }

  #personal-info img {
    border: 2px solid white;
  }


  .mobile {
    display: none;
  }
}