body {
  background-color: var(--secondary);
  color: var(--primary);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #111; /* Fond noir */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Toujours au-dessus */
}

.welcome-text-container {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  overflow: hidden;
}

.letter {
  display: inline-block;
  line-height: 1em;
}

/* Espace entre header et main */
.space {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Container principal avec flexbox */
.vigniette {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 10px 10px 30px var(--shadow-main),
    -10px -10px 30px var(--shadow-highlight);
}

/* Container pour description et xp_pro */
.vigniette-top {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Description et Expériences côte à côte avec largeur max */
.description,
.xp_pro {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 10px 10px 30px var(--shadow-main),
    -10px -10px 30px var(--shadow-highlight);
  transition: all 0.3s ease;
}

.description:hover,
.xp_pro:hover {
  box-shadow: 15px 15px 40px var(--shadow-hover),
    -15px -15px 40px var(--shadow-highlight);
  transform: translateY(-3px);
}

/* Section projets en dessous + contact */
.projet_index {
  flex: 1 1 100%;
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 10px 10px 30px var(--shadow-main),
    -10px -10px 30px var(--shadow-highlight);
  transition: all 0.3s ease;
}

.projet_index:hover {
  box-shadow: 15px 15px 40px var(--shadow-hover),
    -15px -15px 40px var(--shadow-highlight);
}

/* Titres des sections */
.description h2,
.xp_pro h2,
.projet_index h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease;
}

.description h2:hover,
.xp_pro h2:hover,
.projet_index h2:hover {
  text-decoration-color: currentColor;
}

/* Container des projets */
.projet_in_sec {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

/* image dans les projets */
.img_projet {
  width: 75%;
  object-fit: cover;
  border-radius: 5%;
}

/* Cartes de projets individuels plus carte contact*/
.projet_in_sec > div {
  flex: 0 1 280px;
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 10px 10px 30px var(--shadow-main),
    -10px -10px 30px var(--shadow-highlight);
  transition: all 0.3s ease;
  text-align: center;
}

.projet_in_sec > div:hover {
  box-shadow: 15px 15px 40px var(--shadow-hover),
    -15px -15px 40px var(--shadow-highlight);
  transform: translateY(-5px) scale(1.02);
}

.projet_in_sec h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.projet_in_sec p {
  color: var(--primary);
  margin: 0;
}

/* Carte d'expérience */
.experience_1 {
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 1.2rem;
  margin-top: 1rem;
  box-shadow: inset 5px 5px 10px var(--shadow-inset),
    inset -5px -5px 10px var(--shadow-inset-highlight);
  transition: all 0.3s ease;
}

.experience_1:hover {
  box-shadow: inset 7px 7px 15px var(--shadow-inset-focus),
    inset -7px -7px 15px var(--shadow-inset-highlight-strong);
}

.experience_1 h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.experience_1 p {
  color: var(--primary);
  line-height: 1.6;
  margin: 0;
}

/* parti contact de la main page */
.contact_main {
  margin-top: 32px;
}

/* Paragraphes généraux */
.description p,
.xp_pro p {
  color: var(--primary);
  line-height: 1.6;
}

/* paramettre pour la parti contact en bas de page */
.contact_main {
  flex: 1 1 100%;
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 10px 10px 30px var(--shadow-main),
    -10px -10px 30px var(--shadow-highlight);
  transition: all 0.3s ease;
}

.contact_main:hover {
  box-shadow: 15px 15px 40px var(--shadow-hover),
    -15px -15px 40px var(--shadow-highlight);
}

.contact_main h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease;
}

.contact_main h2:hover {
  text-decoration-color: currentColor;
}

.option_contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.option_contact > section {
  flex: 0 1 280px;
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 10px 10px 30px var(--shadow-main),
    -10px -10px 30px var(--shadow-highlight);
  transition: all 0.3s ease;
  text-align: center;
}

.option_contact > section:hover {
  box-shadow: 15px 15px 40px var(--shadow-hover),
    -15px -15px 40px var(--shadow-highlight);
  transform: translateY(-5px) scale(1.02);
}

.option_contact h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.option_contact p {
  color: var(--primary);
  margin: 0;
}

/* image dans le contact */
.contact_img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

#contacts-dialog {
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Layout */
  padding: 2rem;
  max-width: 400px;
  width: 90%;

  /* Animation */
  animation: fadeIn 0.3s ease;
}

#contacts-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

#contacts-dialog h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

#contacts-dialog p {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

#contacts-dialog button {
  /* Glassmorphism pour les boutons */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  /* Boutons en colonne */
  display: block;
  width: 100%;
  margin: 0.5rem 0;
}

#contacts-dialog button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#contacts-dialog button:active {
  transform: translateY(0);
}

#formcontact {
  background: rgba(74, 144, 226, 0.3);
  border-color: rgba(74, 144, 226, 0.5);
}

#formcontact:hover {
  background: rgba(74, 144, 226, 0.4);
}

/* Bouton fermer entièrement rouge au survol */
#close-dialog-btn:hover {
  background: rgb(220, 38, 38);
  border-color: rgb(185, 28, 28);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .description,
  .xp_pro {
    max-width: none;
    min-width: 80%;
  }
}

@media (max-width: 768px) {
  .vigniette {
    padding: 1rem;
    gap: 1rem;
  }

  .description,
  .xp_pro {
    flex: 1 1 100%;
  }

  .space {
    padding: 1rem;
  }
}

.clickable {
  cursor: pointer;
}
