body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: black;
  color: white; /* pour que le texte soit visible sur un fond noir */
}

.w3-row-padding img {
  margin-bottom: 12px;
}

/* Set the width of the sidebar to 120px */
.w3-sidebar {
  width: 120px;
  background: #222;
}

.mode-switch {
  position: absolute;
  bottom: 10px; /* Ajustez cette valeur selon vos besoins */
  width: 100%;
  display: flex;
  justify-content: center;

  /* marge gauche pour centrer le bouton */
  margin-left: 30px;
}

#main {
  margin-left: 120px;
  background-color: black; /* ajout pour changer le fond de #main */
}

@media only screen and (max-width: 600px) {
  #main {
    margin-left: 0;
  }
}

.html,
.css,
.js {
  background: radial-gradient(closest-side, black 79%, white 80% 100%),
    conic-gradient(white calc(var(--progress-value) * 1%), black 0 100%);
  border: 2px solid white;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
  color: white;
}

h2 {
  text-align: center;
}

progress {
  visibility: hidden;
  width: 0;
  height: 0;
}

.faicons {
  font-size: 2em; /* Ajout de cette ligne pour une taille fixe */
  width: 2em; /* Ajout de cette ligne pour une largeur fixe */
  height: 2em; /* Ajout de cette ligne pour une hauteur fixe */
  line-height: 2em; /* Pour centrer verticalement l'icône */
  text-align: center; /* Pour centrer horizontalement l'icône */
  color: white;
  margin-left: 10px;
  margin-right: 10px;
}

.fabicons {
  color: white;
  margin-left: 10px;
  margin-right: 10px;
  width: 2em; /* Ajout de cette ligne pour une largeur fixe */
  height: 2em; /* Ajout de cette ligne pour une hauteur fixe */
  line-height: 2em; /* Pour centrer verticalement l'icône */
  text-align: center; /* Pour centrer horizontalement l'icône */
}


a, button {
  transition: all 0.3s ease-in-out;
}

a:hover, button:hover {
  background-color: #444;
  color: #fff;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.5s forwards;
}


html {
  scroll-behavior: smooth;
}


.card {
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}


body {
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
}

.card img {
  transition: transform 0.3s ease;
}


@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.faicons:hover, .fabicons:hover {
  animation: bounce 1s;
}


h1, h2, h3, a, button {
  position: relative;
  display: inline-block;
}

h1::after, h2::after, h3::after, a::after, button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

button:hover::after  {
  width: 100%;
}
 

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid white; /* pour ajouter un contour blanc */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}


.text-animate {
  display: inline-block;
  position: relative;
}

.text-animate::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
}

.text-animate:hover::before {
  width: 100%;
  left: 0;
}


.parallax {
  background-attachment: fixed;
  background-size: cover;
}

.parallax:hover {
  background-position: center;
}

.faicons,
.fabicons {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.faicons:hover,
.fabicons:hover {
  transform: translateY(-10px) rotate(10deg);
}


/* ------------------------------*/

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.project-card {
  width: calc(33.333% - 16px);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .project-card {
    width: calc(50% - 16px); 
  }
}
@media (max-width: 480px) {
  .project-card {
    width: 100%; 
  }
}

/* ------------------------------*/
.filter-dropdown {
  background-color: black;
  color: white;
  padding: 8px 16px;
  border: white 1px solid;
  border-radius: 4px;
  width: 100%; 
  display: inline-block; 
  margin-right: 9px;
}

.renButton {
  background-color: black;
  color: white;
  padding: 8px 16px;
  border: white 1px solid;
  border-radius: 4px;
  width: 100%; 
  display: inline-block; 
  margin-right: 9px;
}


#noProjectsMessage {
  display: none; 
  margin-top: 20px;
  color: white; 
  text-align: center;
  font-size: 1.2em; 
  padding: 10px; 
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 5px; 
}


/* ------------------------------
Button mode sombre
------------------------------ */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(75, 73, 74);
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 20px;
  left: 0.3em;
  bottom: 0.3em;
  background-color: black;
  box-shadow: inset 8px -4px 0 0 white;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #2196f3;
}

.switch input:checked + .slider:before {
  transform: translateX(1.5em);
  background-color: yellow;
  box-shadow: none;
}

/****************************************************
 *  Light Mode
 ****************************************************/
.light-mode {
  background-color: white;
  color: black;
}

.light-mode body, .light-mode #main {
  background-color: white;
  color: black;
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6,
.light-mode p,
.light-mode span {
  color: black;
}

.light-mode .w3-bar,
.light-mode .w3-sidebar {
  background: #f1f1f1;
}

.light-mode .w3-bar .fa,
.light-mode .w3-sidebar .fa,
.light-mode .w3-bar .faicons,
.light-mode .w3-sidebar .faicons {
  color: black;
}

.light-mode .w3-bar .faicons,
.light-mode .w3-sidebar .faicons {
  color: white;
}

.light-mode .w3-bar .w3-bar-item.w3-black,
.light-mode .w3-sidebar .w3-bar-item.w3-black {
  background-color: black;
  color: white;
}

.light-mode .progress-bar {
  border: 2px solid black;
}

.light-mode .faicons,
.light-mode .fabicons {
  color: black;
}

.light-mode .filter-dropdown,
.light-mode .renButton {
  background-color: white;
  color: black;
  border: black 1px solid;
}

.light-mode #noProjectsMessage {
  color: black;
  background-color: rgba(255, 255, 255, 0.8);
}

.light-mode .switch .slider {
  background-color: #ccc;
}

.light-mode .switch .slider:before {
  background-color: yellow;
  box-shadow: none;
}

.light-mode .switch input:checked + .slider {
  background-color: #2196f3;
}

.light-mode .switch input:checked + .slider:before {
  background-color: black;
}

.light-mode .card {
  border: 1px solid black;
}

.light-mode .card-body {
  background-color: #f9f9f9;
  color: black;
}

.light-mode .project-card .card-title,
.light-mode .project-card .card-text,
.light-mode .w3-container .w3-quarter span {
  color: black;
}

.light-mode .w3-row.w3-black {
  background-color: white;
  color: black;
}

.light-mode header.w3-container.w3-black {
  background-color: white;
}

.light-mode .w3-content {
  background-color: white;
}

.light-mode .w3-section {
  color: black;
}

.light-mode .fa-map-marker,
.light-mode .fa-phone,
.light-mode .fa-envelope {
  color: black;
}


.light-mode .w3-sidebar,
.light-mode .w3-bar {
  background: #f1f1f1;
}

.light-mode .w3-sidebar .fa,
.light-mode .w3-bar .fa,
.light-mode .w3-sidebar .faicons,
.light-mode .w3-bar .faicons {
  color: black;
}

.dark-mode .w3-sidebar,
.dark-mode .w3-bar {
  background: #222;
}

.dark-mode .w3-sidebar .fa,
.dark-mode .w3-bar .fa,
.dark-mode .w3-sidebar .faicons,
.dark-mode .w3-bar .faicons {
  color: white;
}

button.btn-primary {
  border: 1px solid white;
  background-color: black;
  color: white;
}

.light-mode button.btn-primary {
  border: 1px solid black;
  background-color: white;
  color: black;
}

.btn-primary {
  border: 1px solid white;
  background-color: black;
  color: white;
}

.light-mode .btn-primary {
  border: 1px solid black;
  background-color: white;
  color: black;
}

button.btn-primary {
  border: 1px solid white !important;
  background-color: black !important;
  color: white !important;
}

.light-mode button.btn-primary {
  border: 1px solid black !important;
  background-color: white !important;
  color: black !important;
}

.btn-primary {
  border: 1px solid white !important;
  background-color: black !important;
  color: white !important;
}

.light-mode .btn-primary {
  border: 1px solid black !important;
  background-color: white !important;
  color: black !important;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid white; 
  background-color: black; 
  color: white; 
}

.light-mode .card {
  border: 1px solid black;
  background-color: white;
  color: black; 
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.card-body {
  background-color: black;
  color: white;
}

.light-mode .card-body {
  background-color: white;
  color: black; 
}

.card-body h4.card-title,
.card-body p.card-text,
.card-body p {
  color: white;
}

.light-mode .card-body h4.card-title,
.light-mode .card-body p.card-text,
.light-mode .card-body p {
  color: black;
}

.btn-primary {
  border: 1px solid white;
  background-color: black;
  color: white;
}

.light-mode .btn-primary {
  border: 1px solid black;
  background-color: white;
  color: black;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid white;
  background-color: black;
  color: white;
}

.light-mode .card {
  border: 1px solid black;
  background-color: white;
  color: black; 
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.card-body {
  background-color: black; 
  color: white;
}

.light-mode .card-body {
  background-color: white; 
  color: black;
}

.card-body h4.card-title,
.card-body p.card-text,
.card-body p,
.card-body a.btn-primary {
  color: white !important;
}

.light-mode .card-body h4.card-title,
.light-mode .card-body p.card-text,
.light-mode .card-body p,
.light-mode .card-body a.btn-primary {
  color: black !important; /* Texte noir en mode jour */
}

.card-body .w3-text-black {
  color: white !important; 
}

.light-mode .card-body .w3-text-black {
  color: black !important; 
}

.btn-primary {
  border: 1px solid white; 
  background-color: black; 
  color: white; 
}

.light-mode .btn-primary {
  border: 1px solid black;
  background-color: white;
  color: black;
}

hr {
  border: none;
  background-color: white;
  width: 60px;
  height: 4px;
}

.light-mode hr {
  background-color: black;
}

h2.section-title,
h3.section-title {
  color: white; 
}

.light-mode h2.section-title,
.light-mode h3.section-title {
  color: black;
}

.card-body .w3-text-black {
  color: white !important; 
}

.light-mode .card-body .w3-text-black {
  color: black !important;
}

.btn-primary {
  border: 1px solid white;
  background-color: black;
  color: white;
}

.light-mode .btn-primary {
  border: 1px solid black; 
  background-color: white; 
  color: black;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid white; 
  background-color: black; 
  color: white; 
}

.light-mode .card {
  border: 1px solid black; 
  background-color: white;
  color: black;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.card-body {
  background-color: black;
  color: white; 
}

.light-mode .card-body {
  background-color: white;
  color: black; 
}

.card-body h4.card-title,
.card-body p.card-text,
.card-body p,
.card-body a.btn-primary {
  color: white !important; 
}

.light-mode .card-body h4.card-title,
.light-mode .card-body p.card-text,
.light-mode .card-body p,
.light-mode .card-body a.btn-primary {
  color: black !important;
}

.w3-input {
  background-color: black;
  border: 1px solid white;
  color: white;
  border-radius: 8px;
}

.light-mode .w3-input {
  background-color: white;
  border: 1px solid black;
  color: black;
  border-radius: 8px;
}

.w3-input {
  background-color: black;
  border: 1px solid white;
  color: white;
  border-radius: 8px;
}

.light-mode .w3-input {
  background-color: white;
  border: 1px solid black;
  color: black;
  border-radius: 8px; 
}

.w3-button.w3-light-grey {
  background-color: black;
  border: 1px solid white;
  color: white;
  border-radius: 8px;
}

.light-mode .w3-button.w3-light-grey {
  background-color: white;
  border: 1px solid black;
  color: black;
  border-radius: 8px; 
}

/*********************************************************
  Switches Container 
*********************************************************/
.switches-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 10px; 
  width: 100%; 
}

.switch {
  font-size: 17px;
  display: inline-block;
  width: 3.5em;
  height: 2em;
  margin-bottom: 20px; 
  display: flex;
  justify-content: center;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(75, 73, 74);
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 20px;
  left: 0.3em;
  bottom: 0.3em;
  background-color: black;
  box-shadow: inset 8px -4px 0 0 white;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: #2196f3;
}

.switch input:checked + .slider:before {
  transform: translateX(1.5em);
  background-color: yellow;
  box-shadow: none;
}

.language-switch-container  {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure the switch is centered */
}

.switch
{
  align-items: center;
  justify-content: center;
  margin-right: 40px; /* Space between the two switches */
}

.toggle {
  width: 30px;
  height: 60px;
  background-color: hsl(0, 0%, 80%);
  border-radius: 1.7rem;
  padding: .25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  transition: background-color 300ms 300ms;
  margin-right: 10px; /* Space between toggle and text */
}

.toggle__circle {
  width: 20px;
  height: 20px;
  background-color: hsl(0, 0%, 95%);
  border-radius: 50%;
  margin-top: calc(60px - (.25rem * 2) - 20px);
  transition: margin 500ms ease-in-out;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: bold; 
  font-size: 1.2em; 
}

#check:checked + .toggle > .toggle__circle {
  margin-top: 0;
}

#check:checked + .toggle {
  background-color: #41a63c;
}

.w3-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 100px; 
}

.w3-bar-block {
  flex-grow: 1; 
  overflow-y: auto; 
  padding-bottom: 100px;
}

.w3-bar-item {
  margin-bottom: 70px;
  padding: 8px 16px; 
}

/****************************************************
 *  Navigation petit écran
 ****************************************************/
 .hamburger {
  font-size: 36px; 
  font-weight: bold; 
  color: white;
  display: inline-block; 
  margin: 10px; 
  text-align: left; 
}

.hamburger-menu {
  display: none; 
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.hamburger-menu.active {
  display: flex; 
}

.hamburger-menu .switches-container {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center; 
  gap: 20px; 
}

.hamburger-menu a {
  font-size: 24px;
  color: white;
  margin: 15px 0;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px; 
}

.hamburger-menu .close-btn {
  font-size: 36px; 
  color: white;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.light-mode .hamburger-menu .close-btn {
  color: black; 
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .w3-sidebar, .w3-top {
    display: none;
  }

  #main {
    margin-left: 0;
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
}

.light-mode .hamburger {
  color: black;
}

.hamburger-menu {
  background-color: black; 
}

.light-mode .hamburger-menu {
  align-items: center;
  background-color: white;
}

.hamburger-menu a {
  color: white; 
}

.light-mode .hamburger-menu a {
  color: black;
}

.hamburger-bar {
  background-color: black;
  color: white;
  text-align: right; 
  padding: 10px; 
}

.light-mode .hamburger-bar {
  background-color: white;
  color: black;
  text-align: right;
  padding: 10px; 
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .hamburger-menu {
    display: none;
  }
}







/* Container général */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: auto;
  padding-bottom: 24px;
}

/* Style d’un badge */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 999px;
  padding: 6px 14px; 
  font-size: 1rem;
  color: white;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Logo dans le badge */
.skill-tag img {
  width: 1.3em;
  height: 1.3em;
  object-fit: contain;
}

/* Effet au survol */
.skill-tag:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

/* --- Overrides pour les badges Skills en mode sombre --- */
.dark-mode .skills-tags .skill-tag {
  color: white;                                  /* texte blanc */
  border-color: rgba(255, 255, 255, 0.2);        /* contour pâle */
  background-color: transparent;
}
.dark-mode .skills-tags .skill-tag:hover {
  background-color: rgba(255, 255, 255, 0.15);   /* légère surbrillance */
  border-color: rgba(255, 255, 255, 0.4);
}
/* Inversion des icônes SVG noires pour les rendre blanches */
.dark-mode .skills-tags .skill-tag img {
  filter: invert(1) brightness(1.5);
}
/* =============================
   Fix taille des icônes Skills
   ============================= */
.skills-tags .skill-tag img {
  width: 1.5em;       /* 1.5 fois la taille de la police */
  height: auto;       /* conserve les proportions */
  vertical-align: middle;
  margin-right: 0.5em;/* un peu d’espace avant le texte */
}




























/* — Thèmes pour la section Services — */
:root {
  --services-bg: #000;
  --services-text: #fff;
  --services-accent: #fff; /* ton orange */
}
.light-mode {
  --services-bg: #fff;
  --services-text: #222;
  --services-accent: #222;
}
.dark-mode {
  --services-bg: #000;
  --services-text: #fff;
  --services-accent: #fff;
}

/* — Styles appliqués à #about-services — */
#about-services {
  background-color: var(--services-bg);
  color: var(--services-text);
  padding: 4rem 1rem;
  text-align: center;
}

#about-services .section-title {
  font-size: 2rem;
  margin-bottom: .5rem;
}

/* underline custom sous le titre */
#about-services .section-title + hr {
  width: 60px;
  height: 4px;
  background-color: var(--services-accent);
  margin: 0 auto 2.5rem;
  border: none;
}

/* grille responsive */
#about-services .services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* chaque carte */
#about-services .service-item {
  flex: 0 1 calc((100% - 6rem) / 4);
  max-width: calc((100% - 6rem) / 4);
  box-sizing: border-box;
}

/* icône */
#about-services .service-item__icon {
  font-size: 3rem;
  color: var(--services-accent);
  margin-bottom: 1rem;
  transition: transform .3s;
}
#about-services .service-item__icon:hover {
  transform: translateY(-4px);
}

/* titre de la carte */
#about-services .service-item__title {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

/* texte de la carte */
#about-services .service-item__text {
  line-height: 1.5;
  font-size: .95rem;
}

/* 2) Centrer tout le contenu (icône / titre / texte) de chaque service-item */
#about-services .service-item {
  text-align: center;
}


/* mobile first */
@media (max-width: 600px) {
  #about-services .services__grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  #about-services .service-item {
    flex: 1 1 220px;  /* passe à 2 par ligne */
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  #about-services .service-item {
    flex: 1 1 100%;   /* 1 par ligne */
    max-width: 100%;
  }
}







/* logo discret sous "Années d'alternance" */
.internship-logo {
  margin-top: 0.5rem;
  opacity: 0.6;             /* un peu transparent pour ne pas distraire */
  text-align: center;       /* centrer l’image sous le texte */
}
.internship-logo img {
  height: 1.2em;            /* taille discrète, s’adapte à la ligne */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: var(--icon-filter); /* pour suivre le dark/light switch */
}

/* Si tu veux inverser le logo noir en mode sombre (pour les SVG noirs) */
:root {
  --icon-filter: none;
}
.light-mode {
  --icon-filter: none;
}
.dark-mode {
  --icon-filter: invert(1) brightness(1.2);
}

























/* Conteneur de la photo */
.header-photo {
  max-width: 400px;       /* ou la largeur que tu veux */
  margin: 1.5rem auto;    /* centré avec un peu d’espace */
  overflow: hidden;       /* coupe si besoin, pour le border-radius */
  border-radius: 8px;     /* angle arrondi */
}

/* photo responsive */
.header-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* versions claire / sombre */
.profile-light {
  display: block;
}
.profile-dark {
  display: none;
}

/* 1) On cache par défaut toutes les images */
.header-photo img {
  display: none;
}

/* 2) En mode clair, on n’affiche que la version claire */
body.light-mode .header-photo .profile-light {
  display: block !important;
}

/* 3) En mode sombre, on n’affiche que la version sombre */
body.dark-mode .header-photo .profile-dark {
  display: block !important;
}







/* 1) Prépare #home pour un fond en absolute */
#home {
  position: relative;
  overflow: hidden;
}

/* 2) Crée le pseudo‐élément */
#home::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
}

/* 3) Les bonnes URLs */
body.light-mode  #home::before { background-image: url("/img/b.png"); }
body.dark-mode   #home::before { background-image: url("/img/n.png"); }

/* 4) Masque l’élément <div class="header-photo"> */
.header-photo { display: none !important; }