
    html, body {
      margin: 0;
      padding: 0;
      background: 
        url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAwIDIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZUZpbHRlciI+PGZlVHVyYmVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNzUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2hBbmRDb21tZW50Ii8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZUZpbHRlcpkiLz48L2Z2Zz4=') top left / 200px 200px repeat,
        linear-gradient(135deg, #5C4033 0%, #8B4513 50%, #5C4033 100%), 
        radial-gradient(circle at 10% 20%, rgba(244,162,97,0.3) 0%, rgba(244,162,97,0) 70%), 
        radial-gradient(circle at 90% 80%, rgba(244,162,97,0.3) 0%, rgba(244,162,97,0) 70%);
      background-blend-mode: overlay, normal, normal, normal;
      background-attachment: fixed;
      color: #F8F8F8;
      font-family: 'Segoe UI', sans-serif;
      height: 100%;
    }

    body {
      overflow-y: scroll;
    }

    ::-webkit-scrollbar {
      width: 0.8vw;
    }

    ::-webkit-scrollbar-thumb {
      background: #e3ad81e888;
      border-radius: 1vh;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    #loader {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      transition: opacity 0.5s ease;
    }

    #loader object {
      width: 22vmin;
      height: 22vmin;
      max-width: 260px;
      filter: drop-shadow(0 0 2vh #c48241aa);
      animation: pulse 1.5s infinite alternate;
    }

    @keyframes pulse {
      from { transform: scale(0.95); }
      to { transform: scale(1.05); }
    }

    

    #intro {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      max-width: 90vw;
      line-height: 1.6;
      opacity: 0;
      transition: opacity 1s ease;
    }

    #intro p {
      font-size: 2.4vh;
	  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, ui-sans-serif;
      font-weight: 300;
      background: linear-gradient(to right, #d98328, #fdefbd);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 0.8vh #5d3204);
      margin-bottom: 4vh;
    }

    #intro button {
      padding: 1.5vh 4vh;
      font-size: 2vh;
      background: none;
      border: 0.2vh solid #fdefbd;
      color: #fdefbd;
      border-radius: 2vh;
      cursor: pointer;
      transition: background 0.3s, color 0.3s;
    }

    #intro button:hover {
      background: #fdefbd;
      color: #111;
    }

    #nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 7vh;
      background: #cbb28f17;
      backdrop-filter: blur(6px);
      z-index: 10;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2vw;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .nav-button {
      background: none;
      border: none;
      color: #fdefbd;
      padding: 1.2vh 2vw;
      font-size: 2vh;
      border-radius: 4vh;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .nav-button:hover {
      background: #fdefbd2e;
    }

    .nav-button.active {
      background: #fdefbd;
      color: #111;
      font-weight: bold;
      box-shadow: 0 0 1vh #fdefbd
    }

    #content {
      display: block;
      margin-top: 10vh;
      padding: 4vw;
      max-width: 100vw;
      overflow-x: hidden;
      opacity: 0;
      transform: translateY(20px); /* Commencer légèrement en dessous */
      transition: opacity 0.5s ease, transform 0.5s ease; /* Transition pour le fondu et le mouvement */
    }

    .card {
      max-width: 1100px;
      margin: auto;
      background: #cbb28f17;
      padding: 4.5vh 5.5vw;
      border-radius: 1.5vh;
      box-shadow: 0 0 2vh #e3ad81e844;
    }

    .card h2 {
      color: #fdefbd;
      font-size: 3vh;
      margin-bottom: 2vh;
    }

    .entry {
      margin-bottom: 3vh;
    }

    .entry label {
      display: block;
      font-weight: bold;
      font-size: 2.2vh;
      color: #fdefbd;
      margin-bottom: 1vh;
      /* border-bottom: 1px solid #e3ad81e833; */ /* Supprimé pour ne pas affecter le formulaire */
      padding-bottom: 0.5vh;
    }

    .entry .value {
      font-size: 2vh;
      line-height: 1.6;
      color: #E0E0E0;
    }

    .experience-item {
      background: #cbb28f17;
      border-radius: 1vh;
      box-shadow: 0 0 1vh #e3ad81e822;
      margin-bottom: 2.5vh;
      padding: 2.5vh 3vw;
      transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    }

    .experience-item:hover {
      transform: translateY(-0.5vh);
      box-shadow: 0 0 1.5vh #e3ad81e866;
    }

    .experience-item label {
      font-size: 2.2vh;
      color: #fdefbd;
      margin-bottom: 0.8vh;
      border-bottom: none;
      padding-bottom: 0;
    }

    .experience-item .value {
      font-size: 1.9vh;
      color: #C0C0C0;
      line-height: 1.5;
    }

    .education-item {
      background: #cbb28f17;
      border-radius: 1vh;
      box-shadow: 0 0 1vh #e3ad81e822;
      margin-bottom: 2.5vh;
      padding: 2.5vh 3vw;
      transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    }

    .education-item:hover {
      transform: translateY(-0.5vh);
      box-shadow: 0 0 1.5vh #e3ad81e866;
    }

    .education-item label {
      font-size: 2.2vh;
      color: #fdefbd;
      margin-bottom: 0.8vh;
      border-bottom: none;
      padding-bottom: 0;
    }

    .education-item .value {
      font-size: 1.9vh;
      color: #C0C0C0;
      line-height: 1.5;
    }

    

    .themes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2.5vh;
    }

    .theme-item {
      background: #cbb28f17;
      border-radius: 1vh;
      box-shadow: 0 0 1vh #e3ad81e822;
      padding: 2.5vh 3vw;
      transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
      cursor: pointer;
    }

    .theme-item:hover {
      transform: translateY(-0.5vh);
      box-shadow: 0 0 1.5vh #e3ad81e866;
      background: rgba(244, 162, 97, 0.1);
    }

    .theme-item label {
      font-size: 2.2vh;
      color: #fdefbd;
      margin-bottom: 0.8vh;
      border-bottom: none;
      padding-bottom: 0;
    }

    .theme-item .value {
      font-size: 1.9vh;
      color: #C0C0C0;
      line-height: 1.5;
    }

    .photo {
      display: flex;
      justify-content: center;
      margin-bottom: 3vh;
    }

    .photo img {
      width: 14vh;
      height: 14vh;
      object-fit: cover;
      border-radius: 50%;
      border: 0.4vh solid #fdefbd;
      box-shadow: 0 0 0.8vh;
    }

    .skill {
      margin-bottom: 1.5vh;
      background: #cbb28f17;
      border-radius: 1vh;
      box-shadow: 0 0 1vh #e3ad81e822;
      transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    }

    .skill:hover {
      transform: translateY(-0.5vh);
      box-shadow: 0 0 1.5vh #e3ad81e866;
    }

    .skill-summary {
      color: #E0E0E0;
      font-weight: bold;
      font-size: 2vh;
      padding: 1.5vh 2vw;
      position: relative;
      cursor: pointer;
      transition: background 0.3s ease;
      border-radius: 1vh;
    }

    .skill-summary:hover {
      background: rgba(244, 162, 97, 0.1);
    }

    .skill-summary::after {
      /* Supprimé pour le style bulle */
      content: '';
    }

    .skill-detail {
      max-height: 0;
      overflow: hidden;
      padding: 0 2vw;
      font-size: 1.8vh;
      color: #C0C0C0;
      transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
      opacity: 0;
    }

    .skill:hover .skill-detail {
      max-height: 20vh; /* Ajustez cette valeur si le contenu est plus long */
      padding-bottom: 1.5vh;
      opacity: 1;
    }

    .skill:hover .skill-summary {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    #formResponse {
      text-align: center;
      margin-top: 2vh;
      color: #e3ad81e8;
      font-size: 1.9vh;
      opacity: 0;
      transition: opacity 0.4s;
    }

    #formResponse.show {
      opacity: 1;
    }

	 /* --- Styles pour le formulaire de contact --- */

    #contactForm .entry {
      margin-bottom: 2.5vh;
    }

    #contactForm label {
      font-size: 2vh;
      color: #fdefbd;
      margin-bottom: 0.8vh;
      display: block;
    }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm textarea {
      width: 100%;
      padding: 1.5vh 1.5vw;
      background: #cbb28f17;
      border: 1px solid #e3ad81e844;
      border-radius: 0.8vh;
      color: #E0E0E0;
      font-size: 1.9vh;
      transition: border-color 0.3s, box-shadow 0.3s;
      box-sizing: border-box; /* Important pour que le padding n'augmente pas la largeur */
    }

    #contactForm input[type="text"]:focus,
    #contactForm input[type="email"]:focus,
    #contactForm textarea:focus {
      border-color: #fdefbd;
      box-shadow: 0 0 1.2vh;
      outline: none;
    }

    #contactForm textarea {
      resize: vertical;
      min-height: 15vh;
    }

    #contactForm .submit-btn {
      padding: 1.5vh 4vh;
      font-size: 2.2vh; /* Légèrement plus grand */
      background: #fdefbd;
      border: none;
      color: #111;
      border-radius: 2vh;
      cursor: pointer;
      transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
      display: block;
      margin: 2vh auto 0;
      font-weight: bold;
      box-shadow: 0 0.5vh 0.9vh  /* Ombre plus prononcée */
      text-shadow: 0 0.1vh 0.2vh /* Légère ombre sur le texte */
    }

    #contactForm .submit-btn:hover {
      background: #fdefbd;
      transform: translateY(-0.5vh); /* Effet de soulèvement plus marqué */
      box-shadow: 0 0.8vh 2vh rgba(244, 162, 97, 0.8); /* Ombre plus intense au survol */
    }

    #formResponse {
      text-align: center;
      margin-top: 2vh;
      color: #e3ad81e8;
      font-size: 1.9vh;
      opacity: 0;
      transition: opacity 0.4s;
    }

    #formResponse.show {
      opacity: 1;
    }

    .contact-intro-text {
      text-align: center;
      color: #F8F8F8; /* Couleur du texte principal */
      font-size: 2vh; /* Légèrement plus grand */
      margin-bottom: 4vh;
      font-weight: 300;
      line-height: 1.6;
    }

    
    

/* Style pour la modale de remerciement */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none; /* N'intercepte pas les clics quand elle est cachée */
  transition: opacity 0.3s ease;
}

/* Style pour l'affichage de la modale */
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto; /* Intercepte les clics quand elle est visible */
}

.modal-content {
  background: #cbb28f17;
  padding: 4.5vh 5.5vw;
  border-radius: 1.5vh;
  box-shadow: 0 0 2vh #e3ad81e844;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid #e3ad81e844;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #fdefbd;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal-content h2 {
  margin-top: 0;
  color: #fdefbd;
  font-size: 3vh;
  margin-bottom: 2vh;
  text-shadow: 0 0 0.8vh #5d3204;
}

.modal-content p {
  color: #E0E0E0;
  font-size: 2vh;
  line-height: 1.6;
}

.modal-content button {
  padding: 1.5vh 4vh;
  font-size: 2.2vh;
  background: #fdefbd;
  border: none;
  color: #111;
  border-radius: 2vh;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  display: inline-block;
  margin-top: 2vh;
  font-weight: bold;
  box-shadow: 0 0.5vh 0.9vh #00000033;
}

.modal-content button:hover {
  transform: translateY(-0.5vh);
  box-shadow: 0 0.8vh 2vh #fdefbd99;
}

/* Styles pour le menu responsive */
#hamburger-btn {
  display: none; /* Caché par défaut sur les grands écrans */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

#hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fdefbd;
  margin: 5px 0;
  transition: all 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2vw;
}

/* Media Query pour les écrans étroits */
@media (max-width: 768px) {
  #nav {
    justify-content: flex-end; /* Aligner le hamburger à droite */
    padding-right: 5vw;
  }

  .nav-container {
    display: none; /* Cacher les boutons de navigation */
    position: absolute;
    top: 7vh; /* Hauteur de la barre de navigation */
    left: 0;
    width: 100%;
    background: #5C4033; /* Fond opaque pour la lisibilité */
    backdrop-filter: none; /* On enlève le flou */
    flex-direction: column;
    align-items: center;
    padding: 2vh 0;
    border-bottom-left-radius: 1vh;
    border-bottom-right-radius: 1vh;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  #nav.nav-open .nav-container {
    display: flex; /* Afficher les boutons quand le menu est ouvert */
  }

  .nav-button {
    width: 100%;
    text-align: center;
    padding: 2vh 0;
    border-radius: 0;
  }

  #hamburger-btn {
    display: block; /* Afficher le bouton hamburger */
  }

  #nav.nav-open #hamburger-btn span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  #nav.nav-open #hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  #nav.nav-open #hamburger-btn span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Styles pour la section Explorer (cartes) - Approche Robuste */
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.explorer-grid .card {
  perspective: 1200px;
  cursor: pointer;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.explorer-grid .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.explorer-grid .card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* La superposition via Grid est la clé */
.explorer-grid .card-front,
.explorer-grid .card-back {
  display: grid; /* Utiliser grid pour le centrage vertical */
  place-content: center; /* Raccourci pour align-content et justify-content */
  text-align: center;
  grid-column: 1 / -1; /* Occupe toute la largeur */
  grid-row: 1 / -1;    /* Occupe toute la hauteur */
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 2rem;
  box-shadow: 0 0 1.5vh #e3ad81e833;
  border: 1px solid #e3ad81e844;
  border-radius: 1vh;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.explorer-grid .card-front {
  background: #cbb28f17;
  z-index: 2;
}

.explorer-grid .card-back {
  background: #5C4033;
  transform: rotateY(180deg);
}

/* Conteneur pour les deux faces qui s'adapte au contenu */
.explorer-grid .card .card-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.explorer-grid .card h3, .explorer-grid .card h4 {
  margin: 0 0 0.8rem 0;
  color: #fdefbd;
  font-size: 1.5rem;
}

.explorer-grid .card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #E0E0E0;
  margin: 0;
}

.explorer-grid .card-back p {
  font-size: 0.95rem;
}

/* Effet de survol pour les cartes Explorer */
.explorer-grid .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Nécessaire pour le positionnement du pseudo-élément */
  z-index: 1;
}

.explorer-grid .card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2;
}

.explorer-grid .card .card-front > * {
  transition: filter 0.3s ease;
}

.explorer-grid .card:not(.flipped):hover .card-front > * {
  filter: blur(2px);
}

.explorer-grid .card-front::after {
  content: 'Cliquez pour retourner';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 1vh;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none; /* Pour que le clic traverse le pseudo-élément */
}

.explorer-grid .card:not(.flipped):hover .card-front::after {
  opacity: 1;
}

/* Styles pour la nouvelle section Profil */
.profile-card {
  padding: 3rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap; /* Pour les petits écrans */
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fdefbd;
  box-shadow: 0 0 15px #fdefbd99;
  object-fit: cover; /* Empêche la déformation de l'image */
}

.profile-title h1 {
  margin: 0;
  color: #fdefbd;
  font-size: 2.5rem;
}

.profile-title p {
  margin: 0;
  font-size: 1.2rem;
  color: #E0E0E0;
  font-weight: 300;
}

.profile-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: #C0C0C0;
  margin-top: 0.5rem;
}

.profile-section {
  margin-bottom: 2.5rem;
}

.profile-section h2 {
  color: #fdefbd;
  font-size: 1.8rem;
  border-bottom: 2px solid #e3ad81e844;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.profile-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #E0E0E0;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-badge {
  background-color: #cbb28f2e;
  color: #fdefbd;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  border: 1px solid #e3ad81e844;
  transition: background-color 0.3s;
}

.tech-badge:hover {
  background-color: #fdefbd2e;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.action-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: #fdefbd;
  border: none;
  color: #111;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.action-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

