:root {

  --bg: #000;

  --text: #fff;

  --icon: #fff;

}

body.light-mode {

  --bg: #fff;

  --text: #000;

  --icon: #000;

}

/* 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;
  width: 140px; /* ajuste si besoin */
}

.switches {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

/* 🦈 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,

.header-buttons a svg {

  font-size: 30px;

  color: var(--icon) !important;

  fill: var(--icon) !important;

  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;
}


.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: 16px;
  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: 16px;
  opacity: 0.7;
}

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

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

.theme-switch,
.lang-switch {
  position: relative;
  width: 61px;
  height: 30px;
  margin-top: 8px;
  margin-left: -6px;
  display: flex;
  align-items: center;
}


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

/* fond */
.lang-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #FC077D;
  border-radius: 34px;
  cursor: pointer;
  display: block;
}

/* rond (thumb) */
.lang-slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.25s ease;
  z-index: 2;
}

/* position droite */
#lang-toggle:checked + .lang-slider::before {
  transform: translateX(24px);
}

/* 🌙 MODE NUIT */
.lang-slider::before {
  background-color: #000;
}

/* ☀️ MODE JOUR */
body.light-mode .lang-slider::before {
  background-color: #fff;
}

/* FLAGS */
.flags::before,
.flags::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.8;
  pointer-events: none;
}

/* 🇫🇷 gauche */
.flags::before {
  content: "🇫🇷";
  left: 6px;
}

/* 🇬🇧 droite */
.flags::after {
  content: "🇬🇧";
  right: 6px;
}

header { pointer-events: none; }

.header-buttons { pointer-events: auto; }

@media (max-width: 768px) {

  .header-buttons {

    margin-top: 10px;

    margin-left: -25px;

  }

  header {

    top: 0;

    transform: scale(0.8);

    transform-origin: top center;

    opacity: 1;

    transition: opacity 0.3s ease; /* animation opacity */

  }

  header.hide {

    opacity: 0; /* disparaît en fondu */

    pointer-events: none; /* évite de cliquer dessus invisible */

  }

}
