/* Variables de couleur pour un design noir et blanc */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-dark: #222222;
  --color-gray: #888888;
  --color-gray-light: #e5e5e5;
  --color-yellow: #ffc107; /* Couleur jaune pour les effets hover */
  --main-font: 'Roboto', sans-serif;
  --heading-font: 'Oswald', sans-serif;
}

body {
  font-family: var(--main-font);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Styles pour les cartes de projets */
.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-radius: 0; /* Design minimaliste sans border-radius */
  background: transparent;
  cursor: pointer;
  border: none;
}

.card::after {
  content: '+';
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--color-black);
  opacity: 0.8;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0);
}

.card:hover::after {
  transform: scale(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0; /* Design minimaliste sans border-radius */
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  display: none;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-white);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
  text-align: center;
  border-radius: 0; /* Design minimaliste sans border-radius */
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-overlay p {
  font-size: 0.9rem;
  max-width: 80%;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Styles pour la galerie de photos */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* Design minimaliste sans border-radius */
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item::after {
  content: '+';
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--color-black);
  opacity: 0.8;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0);
}

.gallery-item:hover::after {
  transform: scale(1);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-white);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
  border-radius: 0; /* Design minimaliste sans border-radius */
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-theme {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-desc {
  font-size: 0.9rem;
  max-width: 80%;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Animations supplémentaires */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.card-overlay > * {
  animation: slideUp 0.4s ease forwards;
  opacity: 0;
}

.card-overlay > *:nth-child(1) { animation-delay: 0.1s; }
.card-overlay > *:nth-child(2) { animation-delay: 0.2s; }
.card-overlay > *:nth-child(3) { animation-delay: 0.3s; }

.gallery-overlay > * {
  animation: slideUp 0.4s ease forwards;
  opacity: 0;
}

.gallery-overlay > *:nth-child(1) { animation-delay: 0.1s; }
.gallery-overlay > *:nth-child(2) { animation-delay: 0.2s; }
.gallery-overlay > *:nth-child(3) { animation-delay: 0.3s; }

/* Styles pour la barre de navigation lors du défilement */
.navbar {
  transition: all 0.4s ease;
  padding: 1.2rem 0;
  background-color: var(--color-black) !important;
}

.navbar-scrolled {
  padding: 0.8rem 0;
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.navbar-brand img {
  transition: all 0.4s ease;
}

.navbar-scrolled .navbar-brand img {
  transform: scale(0.9);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--color-gray-light);
  transition: color 0.3s;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--color-white);
}

/* Styles améliorés pour les boutons */
.btn {
  border-radius: 0; /* Design minimaliste sans border-radius */
  font-weight: 500;
  padding: 0.7rem 2rem 0.7rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn::after {
  content: '\f061'; /* Code pour l'icône flèche droite de Font Awesome */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0;
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.btn:hover::after {
  margin-left: 10px;
  opacity: 1;
  width: auto;
  transform: translateX(0);
}

.btn:active::after, 
.btn:focus::after {
  margin-left: 10px;
  opacity: 1;
  width: auto;
  transform: translateX(0);
}

.btn-outline-light {
  border-width: 1px;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-light:hover {
  background-color: var(--color-yellow) !important;
  border-color: var(--color-yellow) !important;
  color: var(--color-black) !important;
}

.btn-outline-dark {
  border-width: 1px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.7rem 2rem;
  transition: all 0.3s ease;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline-dark:hover {
  background-color: var(--color-yellow) !important;
  border-color: var(--color-yellow) !important;
  color: var(--color-black) !important;
}

/* Améliorations esthétiques générales */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background-color: var(--color-black);
}

/* Styles pour le footer */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 2rem 0;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.social-icons a {
  color: var(--color-white);
  transition: color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
  display: inline-block;
}

.social-icons a:hover {
  color: var(--color-yellow) !important;
  transform: scale(1.2);
}

.social-icons i {
  font-size: 1.5rem;
}

/* Pour la cohérence des footers sur toutes les pages */
footer.text-center {
  background-color: var(--color-black);
  color: var(--color-white);
}

footer.text-center p {
  color: var(--color-white);
}

/* Suppression du filtre grayscale sur toutes les images */
img {
  transition: transform 0.5s ease;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Supprimer les styles spécifiques pour les images en noir et blanc */
.carousel-item img {
  transition: filter 0.5s ease;
}

/* Supprimer le filtre grayscale pour les pages projets */
body[class*="project"] .carousel-item img,
.project-page .carousel-item img {
}

/* Pour la page photos.html */
body[class*="photos"] img,
.photos-page img {
  transition: filter 0.5s ease;
}

/* Styles pour la section hero */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay noir pour le contraste */
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-section p.lead {
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Animation des images héro pour tablette et mobile */
@media (max-width: 991px) {
  .hero-image {
    opacity: 0;
    animation: heroImageFade 10s infinite;
    position: absolute;
    top: 0;
    left: 0;
  }

  .hero-image-hover {
    opacity: 0;
    animation: heroImageFade 10s infinite;
    position: absolute;
    top: 0;
    left: 0;
    animation-delay: 5s;
  }

  @keyframes heroImageFade {
    0%, 45% {
      opacity: 0;
      transform: scale(1.1);
    }
    5%, 40% {
      opacity: 1;
      transform: scale(1);
    }
    50%, 100% {
      opacity: 0;
      transform: scale(1.1);
    }
  }

  .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* Améliorations pour mobile */
@media (max-width: 767px) {
  .card-overlay, .gallery-overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .card-overlay > *, .gallery-overlay > * {
    opacity: 1;
    animation: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  body {
    font-size: 0.9rem;
  }
}

/* Ajouter une classe pour la logo du header avec effet hover jaune */
.header-logo:hover {
  filter: drop-shadow(0 0 5px var(--color-yellow));
  transform: scale(1.1);
}

/* Style pour les liens de navigation au survol */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--color-yellow) !important;
}

/* Ajouter à la fin du fichier CSS */
.hidden-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.visible-section {
  display: block;
  opacity: 1;
}

.content-section {
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
}

.content-section.visible-section {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.btn-toggle-projects {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-toggle-projects:hover {
  background-color: var(--color-yellow) !important;
  border-color: var(--color-yellow) !important;
  color: var(--color-black) !important;
}

.btn-toggle-projects.active {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-black);
}

/* Style pour l'animation progressive des sections */
#portfolio.visible-section {
  animation-delay: 0.2s;
}

#photos.visible-section {
  animation-delay: 0.4s;
}

#hide-section.visible-section {
  animation-delay: 0.6s;
}

/* Ajustement pour les boutons avec flèche vers le bas */
.btn-down::after {
  content: '\f078'; /* Code pour l'icône flèche bas de Font Awesome */
}

/* Ajustement pour les boutons avec flèche vers le haut */
.btn-up::after {
  content: '\f077'; /* Code pour l'icône flèche haut de Font Awesome */
}

/* Animation spéciale pour le bouton de découverte des projets */
.btn-toggle-projects {
  position: relative;
  transition: all 0.4s ease;
}

.btn-toggle-projects.active::after {
  margin-left: 10px;
  opacity: 1;
  width: auto;
  transform: translateX(0) rotate(90deg);
}

/* Effet de pulsation subtil sur les flèches au survol */
@keyframes arrow-pulse {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

.btn:hover::after {
  animation: arrow-pulse 1s infinite;
} 

/* Fond animé style suisse design graphique */
.swiss-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.1; /* Opacité subtile pour ne pas perturber le contenu */
}

/* Création des lignes horizontales */
.swiss-line {
  position: absolute;
  height: 1px;
  background-color: var(--color-gray);
  width: 100%;
  transform-origin: left center;
  animation: swiss-line-move 60s infinite linear;
}

/* Création des lignes verticales */
.swiss-vline {
  position: absolute;
  width: 1px;
  background-color: var(--color-gray-dark);
  height: 100%;
  transform-origin: center top;
  animation: swiss-vline-move 45s infinite linear;
}

/* Création des cercles */
.swiss-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-gray-light);
  opacity: 0.3;
  transform-origin: center center;
  animation: swiss-circle-pulse 15s infinite alternate ease-in-out;
}

/* Création des rectangles */
.swiss-rect {
  position: absolute;
  background-color: transparent;
  border: 1px solid var(--color-gray);
  opacity: 0.2;
  transform-origin: center center;
  animation: swiss-rect-rotate 30s infinite linear;
}

/* Points grille */
.swiss-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-gray-dark);
  opacity: 0.15;
}

/* Animation pour les lignes horizontales */
@keyframes swiss-line-move {
  0% {
    transform: translateY(0) scaleX(1);
  }
  50% {
    transform: translateY(30px) scaleX(0.9);
  }
  100% {
    transform: translateY(0) scaleX(1);
  }
}

/* Animation pour les lignes verticales */
@keyframes swiss-vline-move {
  0% {
    transform: translateX(0) scaleY(1);
  }
  50% {
    transform: translateX(20px) scaleY(0.8);
  }
  100% {
    transform: translateX(0) scaleY(1);
  }
}

/* Animation pour les cercles */
@keyframes swiss-circle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
}

/* Animation pour les rectangles */
@keyframes swiss-rect-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.05);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Palettes spécifiques par page */
.swiss-bg-home .swiss-line:nth-child(3n) {
  background-color: rgba(240, 240, 240, 0.8);
}
.swiss-bg-home .swiss-vline:nth-child(2n) {
  background-color: rgba(230, 230, 230, 0.8);
}
.swiss-bg-home .swiss-circle:nth-child(3n) {
  border-color: rgba(220, 220, 220, 0.6);
}

.swiss-bg-about .swiss-line:nth-child(3n) {
  background-color: rgba(235, 235, 230, 0.8);
}
.swiss-bg-about .swiss-vline:nth-child(2n) {
  background-color: rgba(225, 225, 220, 0.8);
}
.swiss-bg-about .swiss-circle:nth-child(3n) {
  border-color: rgba(215, 215, 210, 0.6);
}

.swiss-bg-photos .swiss-line:nth-child(3n) {
  background-color: rgba(230, 235, 235, 0.8);
}
.swiss-bg-photos .swiss-vline:nth-child(2n) {
  background-color: rgba(220, 225, 225, 0.8);
}
.swiss-bg-photos .swiss-circle:nth-child(3n) {
  border-color: rgba(210, 215, 215, 0.6);
}

.swiss-bg-project .swiss-line:nth-child(3n) {
  background-color: rgba(235, 230, 235, 0.8);
}
.swiss-bg-project .swiss-vline:nth-child(2n) {
  background-color: rgba(225, 220, 225, 0.8);
}
.swiss-bg-project .swiss-circle:nth-child(3n) {
  border-color: rgba(215, 210, 215, 0.6);
}

.swiss-bg-contact .swiss-line:nth-child(3n) {
  background-color: rgba(230, 235, 230, 0.8);
}
.swiss-bg-contact .swiss-vline:nth-child(2n) {
  background-color: rgba(220, 225, 220, 0.8);
}
.swiss-bg-contact .swiss-circle:nth-child(3n) {
  border-color: rgba(210, 215, 210, 0.6);
}

/* Assurer que le fond animé n'interfère pas avec l'UI */
.hero-section,
.container,
.navbar,
.footer {
  position: relative;
  z-index: 1;
}

/* Styles pour les projets avec taille réduite */
.compact-project .carousel-item img {
  max-height: 450px;
  object-fit: contain;
  margin: 0 auto;
}

.compact-project h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.compact-project .project-container {
  max-width: 85%;
  margin: 0 auto;
}

/* Animation 3D pour le carrousel */
.carousel-3d .carousel-item {
  perspective: 1000px;
}

.carousel-3d .carousel-item img {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.carousel-3d:hover .carousel-item.active img {
  transform: rotateY(10deg);
}

/* Animation flottante pour les descriptions */
.floating-desc {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Nouvelles animations pour les boutons */
.btn-reveal {
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.btn-reveal:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  background-color: var(--color-yellow);
  transition: height 0.4s ease;
  z-index: -1;
}

.btn-reveal:hover {
  color: var(--color-black) !important;
}

.btn-reveal:hover:after {
  height: 100%;
}

/* Effet de parallaxe léger pour les images */
.parallax-bg {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 300px;
}

/* Ombre texte dynamique */
.dynamic-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: text-shadow 0.3s ease;
}

.dynamic-shadow:hover {
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

/* Timeline verticale pour les projets */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--color-gray-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  right: -8px;
  background-color: var(--color-white);
  border: 2px solid var(--color-gray);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-left::after {
  right: -8px;
}

.timeline-right::after {
  left: -8px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--color-white);
  position: relative;
  border-radius: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 600px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-right {
    left: 0%;
  }
  
  .timeline-left::after, .timeline-right::after {
    left: 15px;
  }
}

/* Footer amélioré avec design typographique */
.footer-enhanced {
  background-color: var(--color-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.footer-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-white), transparent);
  opacity: 0.3;
}

.footer-enhanced .social-icons a {
  color: var(--color-white);
  transition: color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
  display: inline-block;
}

.footer-enhanced .social-icons a:hover {
  color: var(--color-yellow) !important;
  transform: scale(1.2);
}

.footer-enhanced .social-icons i {
  font-size: 1.5rem;
}

.footer-enhanced p {
  margin-bottom: 0.5rem;
}

/* Améliorer le chargement progressif des images */
@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Amélioration des performances pour les animation AOS */
[data-aos] {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* S'assurer que la classe collapsed n'interfère pas avec active sur mobile */
.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar.collapsed.active {
  transform: translateX(0);
}