/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Variables */
:root {
  --dark: #000;
  --light-dark: #272727;
  --white: #fff;
  --orange: #FFAE45;
}

/* Mode clair */
:root.light-mode {
  --dark: #fff;
  --light-dark: #f0f0f0;
  --white: #000;
  --orange: #FFAE45;
}

/* Style du bouton de changement de thème */
.switch-wrapper .switch {
  appearance: none;
  background-color: #dfe1e4;
  border-radius: 115.2px;
  border-style: none;
  flex-shrink: 0;
  height: 32px;
  margin: 0;
  position: fixed;
  right: 0;
  top: 0;
  margin: 2rem;
  width: 48px;
  cursor: pointer;
}

.switch-wrapper .switch::before {
  bottom: -9.6px;
  content: "";
  left: -9.6px;
  position: absolute;
  right: -9.6px;
  top: -9.6px;
}

.switch-wrapper .switch,
.switch-wrapper .switch::after {
  transition: all 100ms ease-out;
}

.switch-wrapper .switch::after {
  background-color: #fff;
  border-radius: 50%;
  content: "";
  height: 22.4px;
  left: 4.8px;
  position: absolute;
  top: 4.8px;
  width: 22.4px;
}

.switch-wrapper .switch:hover {
  background-color: #c9cbcd;
  transition-duration: 0s;
}

.switch-wrapper .switch:checked {
  background-color: #ffae45;
}

.switch-wrapper .switch:checked::after {
  background-color: #fff;
  left: 20.8px;
}

.switch-wrapper :focus:not(.focus-visible) {
  outline: 0;
}

.switch-wrapper .switch:checked:hover {
  background-color: #f78c00;
}

/* Icônes en mode clair */
:root.light-mode .social-media img {
  filter: brightness(0); /* Rend les icônes noires */
  transition: filter 0.3s ease; /* Transition fluide lors du changement de mode */
}

:root.light-mode .social-media a:hover img {
  filter: brightness(0.5); /* Icônes légèrement assombries au survol */
}

body {
  font-family: 'Roboto Mono', monospace;
  color: var(--white);
  background-color: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}


.container {
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  background: var(--dark);
  border-radius: 15px;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}



.pfp {
  width: 50%;
  height: 50%;
  object-fit: cover;
  /* L'image remplit entièrement le conteneur */
  transition: transform 0.5s ease-in-out;
  /* Pour un léger zoom */
  border-radius: 50%;
  padding: 20px;
}

/* Effet au survol */
.pfp:hover {
  transition: all 0.5s ease-in-out;
  transform: scale(1.1);
}

.intro-text {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--orange);
}

.intro-text span {
  font-weight: bold;
  color: var(--orange);
}

.social-media {
  margin: 20px 0;
}

.social-media a {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-media img {
  width: 30px;
  height: 30px;
  margin: 0 5px;
  margin: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  transition: filter 0.3s ease, transform 0.3s ease;

}

.social-media a:hover img {
  transform: scale(1.2);
  /* Grossissement */
  filter: drop-shadow(0 0 5px var(--orange)) brightness(1.3);
  /* Effet doré */
}

/* Mise en forme des boutons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.button {
  display: block;
  text-align: center;
  background-color: var(--light-dark);
  color: var(--white);
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  margin: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
  background-color: var(--orange);
  color: var(--dark);
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px var(--orange)) brightness(1.1);

}

.buttons .button img {
  width: 22px;
  height: 22x;
  object-fit: contain;
  align-items: center ;
}

footer p {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--orange);
}

.code-style {
  text-decoration: none;
  color: var(--orange);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.code-style:hover {
  text-decoration: none;
  color: var(--orange);
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px var(--orange)) brightness(1.1);
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .container {
    max-width: 600px;
  }

  header h1 {
    font-size: 2rem;
  }

  .social-media img {
    width: 40px;
    height: 40px;
  }

  .button {
    font-size: 1.1rem;
  }
}