
/* HEADER TRANSPARENT */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  background-color: transparent;
  padding: 0;
}

/* 🦈 MODIF */
.header-buttons {
  margin-left: 40px;
  display: flex;
  flex-direction: column; /* 🦈 */
  align-items: flex-start; /* 🦈 */
  gap: 8px; /* 🦈 */
  margin-top: 70px;
}

/* 🔥 NOUVEAU WRAPPER */
.switches {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 🦈 AJOUT */
.icons-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.header-buttons a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.header-buttons a i {
  font-size: 30px;
  color: var(--icon);
  cursor: pointer;
  display: block;
}

.header-buttons a .fa-envelope { 
  top: 3px; 
  position: relative; 
}

.profile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  display: block;
  position: relative;
  top: 5px;
  margin-left: -6px;
  transition: transform 0.2s;
}

body.light-mode .profile-icon {
  filter: invert(1);
}

/* 🦶 SWITCH caché par défaut */
#theme-switch {
  display: none;
}

/* 🦶 SWITCH STYLE */
.theme-switch {
  position: relative;
  width: 52px;
  height: 30px;
  margin-left: -10px;
  margin-right: 0px;
  margin-top: 8px;
  align-self: right; /* 🦈 */
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: #FC077D;
  border-radius: 34px;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.slider::after {
  content: "🌙";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
}

.slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background-color: #000;
  border-radius: 50%;
  transition: 0.25s ease;
  z-index: 2;
}

.slider span::after {
  content: "☀️";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
}

input:checked + .slider::before {
  transform: translateX(16px);
  background-color: #fff;
}

.header-buttons a:hover i,
.profile-icon:hover { 
  transform: scale(1.1); 
}
