:root {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  --bs-border-radius: 0.75rem;
  --bs-border-color: rgba(15, 23, 42, 0.12);
  --bs-body-color: #212529;
  --bs-body-bg: #ffffff;
  --bs-primary: #0062cc;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #17a2b8;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
}

main,
nav,
section,
footer {
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

img,
picture {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 7rem;
}

@media (max-width: 767.98px) {
  section[id] {
    scroll-margin-top: 5.5rem;
  }
}

.container {
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col-4,
.col-md-4,
.col-md-6,
.col-md-8,
.col-lg-4,
.col-lg-8 {
  flex: 0 0 auto;
}

.col-4 {
  width: 33.333333%;
}

.col-md-4,
.col-md-6,
.col-md-8,
.col-lg-4,
.col-lg-8 {
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 {
    width: 33.333333%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-8 {
    width: 66.666667%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    width: 33.333333%;
  }

  .col-lg-8 {
    width: 66.666667%;
  }
}

.d-flex {
  display: flex !important;
}

.d-none {
  display: none !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.position-fixed {
  position: fixed !important;
}

.top-0 {
  top: 0 !important;
}

.end-0 {
  right: 0 !important;
}

.h-100 {
  height: 100% !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.m-auto {
  margin: auto !important;
}

@media (min-width: 768px) {
  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .text-md-start {
    text-align: left !important;
  }

  .text-md-end {
    text-align: right !important;
  }
}

.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

.text-white {
  color: #fff !important;
}

.text-light {
  color: rgba(255, 255, 255, 0.82) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.bg-light {
  background-color: var(--bs-light) !important;
}

.bg-white {
  background-color: #fff !important;
}

.bg-dark {
  background-color: var(--bs-dark) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-success {
  background-color: var(--bs-success) !important;
}

.bg-info {
  background-color: var(--bs-info) !important;
}

.bg-warning {
  background-color: var(--bs-warning) !important;
  color: #111827 !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
}

.border-0 {
  border: 0 !important;
}

.shadow {
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
}

.small,
small {
  font-size: 0.875em;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: inherit;
  background-color: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card-text {
  margin-top: 0;
  margin-bottom: 1rem;
}

.card-img-top {
  width: 100%;
  display: block;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:focus-visible {
  outline: 2px solid rgba(0, 98, 204, 0.3);
  outline-offset: 2px;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #004a99;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-primary {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
  background: rgba(0, 98, 204, 0.08);
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.collapse:not(.show) {
  display: none;
}

.collapse.show {
  display: block;
}

.navbar-toggler {
  appearance: none;
}

.spinner-border {
  display: inline-block;
  vertical-align: -0.125em;
  border: 0.35em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.form-control {
  display: block;
  width: 100%;
  padding: 1rem 1rem 0.45rem;
  color: inherit;
  background-color: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: transparent;
}

.form-control:focus {
  border-color: rgba(0, 98, 204, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(0, 98, 204, 0.12);
  outline: 0;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > textarea.form-control {
  min-height: calc(3.5rem + 2px);
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: opacity 0.1s ease, transform 0.1s ease;
  color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > textarea.form-control:focus ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
  opacity: 0.75;
  transform: scale(0.85) translateY(-0.65rem) translateX(0.15rem);
}

.toast-container {
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
}

.toast-body {
  flex: 1 1 auto;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--bs-danger);
}

.is-invalid {
  border-color: rgba(220, 53, 69, 0.7) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.btn-close {
  position: relative;
  width: 1rem;
  height: 1rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}

.btn-close::before,
.btn-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-lg .collapse:not(.show),
  .navbar-expand-lg .collapse.show,
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    align-items: center;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }

  .d-lg-none {
    display: none !important;
  }

  .d-lg-flex {
    display: flex !important;
  }
}

@media (max-width: 991.98px) {
  .d-lg-none {
    display: flex !important;
  }

  .d-lg-flex {
    display: none !important;
  }
}
/* Styles généraux */
:root {
  --primary: #0062cc; /* Modifié pour un meilleur contraste */
  --primary-dark: #004a99;
  --secondary: #ffd700;
  --dark: #212529;
  --light: #f8f9fa;
  --transition: all 0.3s ease;
  --text-color: #444;
  --heading-color: #212529;
  --focus-ring-color: rgba(0, 123, 255, 0.5);
  --mobile-breakpoint: 576px;
  --tablet-breakpoint: 768px;
  --laptop-breakpoint: 992px;
  --desktop-breakpoint: 1200px;
  --large-desktop-breakpoint: 1400px;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
}

body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  background-color: #f7f7f7;
  /* Softer background */
  scroll-behavior: smooth;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Préchargeur */
/* #preloader est entièrement géré dans le <style> critique inline du <head> */

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Navigation améliorée et responsive - VERSION SANS AUTO-HIDE */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1030;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .navbar {
    padding: 0.9rem 0;
  }
}

.navbar.scrolled {
  padding: 0.4rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

@media (min-width: 768px) {
  .navbar.scrolled {
    padding: 0.6rem 0;
  }
}

/* Indicateur de progression de lecture */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--info), var(--success));
  width: var(--scroll-progress, 0%);
  transition: width 0.1s ease-out;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

/* Container avec espace maximisé pour tous les boutons */
.navbar .container {
  max-width: 100%;
  padding: 0 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

@media (min-width: 576px) {
  .navbar .container {
    padding: 0 0.3rem;
  }
}

@media (min-width: 768px) {
  .navbar .container {
    padding: 0 0.5rem;
  }
}

@media (min-width: 992px) {
  .navbar .container {
    padding: 0 0.75rem;
  }
}

@media (min-width: 1200px) {
  .navbar .container {
    max-width: 1140px;
    padding: 0 1rem;
  }
}

@media (min-width: 1400px) {
  .navbar .container {
    max-width: 1320px;
    padding: 0 1.5rem;
  }
}

/* Navbar-brand avec effet glass morphism amélioré */
.navbar-brand {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0px;
  padding: 2px 3px;
  position: relative;
  overflow: hidden;
  color: var(--primary) !important;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  max-width: fit-content;
  flex-shrink: 0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tailles progressives COMPACTES */
@media (min-width: 400px) {
  .navbar-brand {
    font-size: 0.75rem;
    padding: 2px 4px;
  }
}

@media (min-width: 576px) {
  .navbar-brand {
    font-size: 0.85rem;
    padding: 3px 5px;
  }
}

@media (min-width: 768px) {
  .navbar-brand {
    font-size: 0.95rem;
    padding: 4px 6px;
  }
}

@media (min-width: 992px) {
  .navbar-brand {
    font-size: 1.05rem;
    padding: 5px 7px;
  }
}

@media (min-width: 1200px) {
  .navbar-brand {
    font-size: 1.15rem;
    padding: 6px 9px;
  }
}

@media (min-width: 1400px) {
  .navbar-brand {
    font-size: 1.25rem;
    padding: 7px 11px;
  }
}

/* Icône navbar-brand avec animation */
.navbar-brand i,
.navbar-brand .brand-icon {
  margin-right: 2px;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.75em;
  flex-shrink: 0;
  display: inline-block;
}

@media (min-width: 576px) {
  .navbar-brand i,
  .navbar-brand .brand-icon {
    margin-right: 3px;
    font-size: 0.8em;
  }
}

@media (min-width: 768px) {
  .navbar-brand i,
  .navbar-brand .brand-icon {
    margin-right: 4px;
    font-size: 0.85em;
  }
}

@media (min-width: 992px) {
  .navbar-brand i,
  .navbar-brand .brand-icon {
    margin-right: 4px;
    font-size: 0.9em;
  }
}

@media (min-width: 1200px) {
  .navbar-brand i,
  .navbar-brand .brand-icon {
    margin-right: 5px;
    font-size: 0.95em;
  }
}

/* Navigation avec effets améliorés */
.nav-item {
  position: relative;
  margin: 0;
}

@media (min-width: 768px) {
  .nav-item {
    margin: 0 0.5px;
  }
}

@media (min-width: 992px) {
  .nav-item {
    margin: 0 1px;
  }
}

@media (min-width: 1200px) {
  .nav-item {
    margin: 0 2px;
  }
}

@media (min-width: 1400px) {
  .nav-item {
    margin: 0 3px;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.7rem;
  padding: 4px 5px !important;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  color: var(--dark) !important;
  white-space: nowrap;
  overflow: hidden;
}

@media (min-width: 576px) {
  .nav-link {
    font-size: 0.75rem;
    padding: 5px 6px !important;
  }
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 7px !important;
  }
}

@media (min-width: 992px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 7px 9px !important;
  }
}

@media (min-width: 1200px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 8px 11px !important;
  }
}

@media (min-width: 1400px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 9px 13px !important;
  }
}

/* Effet de fond animé pour les nav-links */
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 80%;
}

.nav-link:hover {
  transform: translateY(-1px);
  color: var(--primary) !important;
  text-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Indicateur de section active avec pulse */
.nav-item.active .nav-link {
  color: var(--primary) !important;
  font-weight: 600;
}

.nav-item.active .nav-link::after {
  animation: pulse-active 2s infinite;
}

@keyframes pulse-active {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  }

  50% {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
  }
}

/* ─── Theme toggles (desktop + mobile) — styles partagés ─── */
#theme-toggle,
#theme-toggle-mobile {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid var(--primary);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

#theme-toggle::before,
#theme-toggle-mobile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#theme-toggle:hover::before,
#theme-toggle-mobile:hover::before {
  opacity: 1;
}

#theme-toggle:hover,
#theme-toggle-mobile:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
  border-color: var(--info);
}

#theme-toggle:focus-visible,
#theme-toggle-mobile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

#theme-toggle:active,
#theme-toggle-mobile:active {
  transform: scale(0.93);
}

/* Icône */
#theme-toggle i,
#theme-toggle-mobile i,
#theme-toggle .theme-icon,
#theme-toggle-mobile .theme-icon {
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

#theme-toggle:hover i,
#theme-toggle-mobile:hover i,
#theme-toggle:hover .theme-icon,
#theme-toggle-mobile:hover .theme-icon {
  transform: rotate(20deg) scale(1.15);
  color: var(--info);
}

/* Espacement spécifique au desktop */
#theme-toggle {
  margin-left: 8px;
}

/* Espacement spécifique au mobile */
#theme-toggle-mobile {
  margin-left: 10px;
}

/* Mode sombre */
body.dark-mode #theme-toggle,
body.dark-mode #theme-toggle-mobile {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode #theme-toggle i,
body.dark-mode #theme-toggle-mobile i,
body.dark-mode #theme-toggle .theme-icon,
body.dark-mode #theme-toggle-mobile .theme-icon {
  color: #f0c040;
}

body.dark-mode #theme-toggle:hover,
body.dark-mode #theme-toggle-mobile:hover {
  border-color: #f0c040;
  box-shadow: 0 4px 14px rgba(240, 192, 64, 0.3);
}

body.dark-mode #theme-toggle:hover i,
body.dark-mode #theme-toggle-mobile:hover i,
body.dark-mode #theme-toggle:hover .theme-icon,
body.dark-mode #theme-toggle-mobile:hover .theme-icon {
  color: #f0c040;
  transform: rotate(20deg) scale(1.15);
}

/* ─── Burger menu animé moderne ─── */
.navbar-toggler {
  padding: 0;
  border: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  position: relative;
  overflow: visible;
  box-shadow:
    0 4px 15px rgba(0, 123, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--info));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: 0;
}

.navbar-toggler:hover::before {
  opacity: 0.1;
}

.navbar-toggler:focus {
  box-shadow:
    0 0 0 3px rgba(0, 123, 255, 0.3),
    0 4px 15px rgba(0, 123, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  outline: none;
  transform: scale(1.05);
}

.navbar-toggler:active {
  transform: scale(0.95);
  box-shadow:
    0 2px 8px rgba(0, 123, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Icône hamburger : l'élément = barre du milieu, ::before = barre haute, ::after = barre basse */
.navbar-toggler-icon {
  width: 24px;
  height: 3px;
  background-image: none;
  background: linear-gradient(90deg, var(--primary), var(--info));
  border-radius: 2px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  display: block;
  height: 3px;
  width: 24px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -8px;
  transform-origin: center;
}

.navbar-toggler-icon::after {
  top: 8px;
  transform-origin: center;
}

/* Animation du burger vers X améliorée */
.navbar-toggler[aria-expanded="true"] {
  transform: rotate(180deg);
  background: linear-gradient(145deg, rgba(0, 123, 255, 0.1), rgba(0, 188, 212, 0.1));
}

.navbar-toggler[aria-expanded="true"]::before {
  opacity: 0.2;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg) scale(1.1);
  background: linear-gradient(90deg, #dc3545, #e74c3c);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0;
  transform: rotate(-45deg) scale(1.1);
  background: linear-gradient(90deg, #dc3545, #e74c3c);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Effet hover sophistiqué */
.navbar-toggler:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(0, 123, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.navbar-toggler:hover .navbar-toggler-icon {
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after {
  background: linear-gradient(90deg, var(--primary), var(--success));
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Mode sombre pour le burger */
body.dark-mode .navbar-toggler {
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(30, 30, 30, 0.7));
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar-toggler-icon {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(200, 200, 200, 0.8));
}

body.dark-mode .navbar-toggler-icon::before,
body.dark-mode .navbar-toggler-icon::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(200, 200, 200, 0.8));
}

body.dark-mode .navbar-toggler:hover .navbar-toggler-icon {
  background: linear-gradient(90deg, var(--primary), var(--info));
}

body.dark-mode .navbar-toggler:hover .navbar-toggler-icon::before,
body.dark-mode .navbar-toggler:hover .navbar-toggler-icon::after {
  background: linear-gradient(90deg, var(--primary), var(--info));
}

/* Responsive navbar collapse avec glassmorphism - CORRIGÉ */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    max-height: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }

  .navbar-collapse.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-collapse.collapsing {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  body.dark-mode .navbar-collapse {
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
  }

  /* Navigation mobile avec espacement optimal */
  .navbar-nav {
    padding: 1.5rem 0 1rem;
    width: 100%;
  }

  .nav-item {
    margin: 0 !important;
    width: 100%;
  }

  .nav-link {
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    transform: translateX(8px);
    color: var(--primary) !important;
    padding-left: 32px !important;
  }

  .nav-link:active {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(0.98);
  }

  /* Animation en cascade pour les liens */
  .navbar-collapse.show .nav-link {
    animation: slideInUp 0.4s ease-out both;
  }

  .navbar-collapse.show .nav-item:nth-child(1) .nav-link {
    animation-delay: 0.1s;
  }

  .navbar-collapse.show .nav-item:nth-child(2) .nav-link {
    animation-delay: 0.15s;
  }

  .navbar-collapse.show .nav-item:nth-child(3) .nav-link {
    animation-delay: 0.2s;
  }

  .navbar-collapse.show .nav-item:nth-child(4) .nav-link {
    animation-delay: 0.25s;
  }

  .navbar-collapse.show .nav-item:nth-child(5) .nav-link {
    animation-delay: 0.3s;
  }

  .navbar-collapse.show .nav-item:nth-child(6) .nav-link {
    animation-delay: 0.35s;
  }

  .navbar-collapse.show .nav-item:nth-child(7) .nav-link {
    animation-delay: 0.4s;
  }

  .navbar-collapse.show .nav-item:nth-child(8) .nav-link {
    animation-delay: 0.45s;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Theme toggle mobile — géré par #theme-toggle-mobile dans le HTML */
  #theme-toggle {
    display: none !important;
  }

  /* Mode sombre pour navigation mobile */
  body.dark-mode .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #eee !important;
  }

  body.dark-mode .nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.1));
  }
}

/* Mode sombre pour navbar */
body.dark-mode .navbar {
  background: rgba(20, 20, 20, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar.scrolled {
  background: rgba(20, 20, 20, 0.98) !important;
  border-bottom: 1px solid rgba(0, 123, 255, 0.2);
}


/* Très petits écrans - simplification */
@media (max-width: 350px) {
  .navbar-brand {
    font-size: 0.7rem !important;
    padding: 1px 3px !important;
  }

  .navbar-brand i,
  .navbar-brand .brand-icon {
    margin-right: 2px !important;
    font-size: 0.7em !important;
  }

  .navbar .container {
    padding: 0 0.1rem !important;
  }
}

/* Écrans ultra-larges */
@media (min-width: 1600px) {
  .navbar .container {
    max-width: 1500px;
  }

  .navbar-brand {
    font-size: 1.4rem !important;
    padding: 10px 15px !important;
  }

  .nav-link {
    font-size: 1.1rem !important;
    padding: 12px 16px !important;
  }

}

/* Ajustements de l'ensemble navbar-collapse */
.navbar-collapse {
  flex-shrink: 1;
  min-width: 0;
}

/* Styles pour les nav-links desktop */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
  width: 80%;
  opacity: 1;
}

.nav-link:hover {
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
  color: var(--primary) !important;
}

/* Correction des badges d'entreprises en mode sombre */
body.dark-mode .project-tools .badge {
  background-color: #495057 !important;
  color: #fff !important;
  border: 1px solid #6c757d;
}

body.dark-mode .project-tools .badge.bg-primary {
  background-color: var(--primary) !important;
  color: #fff !important;
}

body.dark-mode .project-tools .badge.bg-secondary {
  background-color: #6c757d !important;
  color: #fff !important;
}

body.dark-mode .project-tools .badge.bg-success {
  background-color: var(--success) !important;
  color: #fff !important;
}

body.dark-mode .project-tools .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

body.dark-mode .project-tools .badge.bg-info {
  background-color: var(--info) !important;
  color: #fff !important;
}

/* Amélioration des features list en mode sombre */
body.dark-mode .project-features ul li {
  color: #e0e0e0 !important;
}

body.dark-mode .project-features ul li i {
  color: var(--primary) !important;
}

/* Card footer en mode sombre */
body.dark-mode .card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Effet glassmorphism pour navbar-brand */
.navbar-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 188, 212, 0.05));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  z-index: -1;
}

.navbar-brand:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-brand:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.navbar-brand:hover i {
  transform: translateY(-1px) rotate(-8deg) scale(1.1);
  color: var(--info);
}

/* Section Hero avec améliorations */
@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"/></svg>');
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

.hero h1 {
  font-size: 4em;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1.2s ease-out;
}

.hero p {
  font-size: 1.8em;
  margin-top: 20px;
  opacity: 0.9;
  animation: fadeInUp 1.2s ease-out 0.3s;
  animation-fill-mode: both;
}

.hero .typed-text {
  font-size: 1.8em;
  color: var(--secondary);
  min-height: 40px;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  margin-top: 2rem;
}

.hero .hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  font-weight: 600;
  opacity: 1;
}

.lang-toggle {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.lang-toggle:hover {
  background: rgba(0, 98, 204, 0.08);
  transform: scale(1.05);
  color: var(--primary);
}

body.dark-mode .lang-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fdbb2d;
}

/* Formulaire de contact : champ message et disclaimer */
.contact-message-field {
  height: 150px;
}

.contact-disclaimer {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #5f6b7a;
}

.contact-disclaimer a {
  color: #0062cc;
}

body.dark-mode .contact-disclaimer {
  color: #cbd5e1;
}

body.dark-mode .contact-disclaimer a {
  color: #93c5fd;
}

/* Bannière de consentement analytics */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner__panel {
  width: min(960px, 100%);
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  padding: 1.25rem 1.5rem;
}

.consent-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.consent-banner__text {
  flex: 1 1 360px;
  margin: 0;
  color: #334155;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.consent-banner__actions .btn {
  min-width: 180px;
}

body.dark-mode .consent-banner__panel {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

body.dark-mode .consent-banner__text {
  color: #e5e7eb;
}

@media (max-width: 767.98px) {
  .consent-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .consent-banner__panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .consent-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  .consent-banner__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Ligne sécurité du footer */
.footer-security {
  margin-top: 0.35rem !important;
  color: rgba(255, 255, 255, 0.85);
}

.footer-security a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

/* Bouton "Confidentialité & cookies" du footer */
.footer-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: #ffffff;
}

.hero-actions .btn {
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary {
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--primary);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.hero .btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

/* Indicateur de scroll animé */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section À propos - Cards améliorées */
.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
}

.about-card {
  border-radius: 15px;
  overflow: hidden;
  border: none;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.profile-img {
  border: 5px solid white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

/* Statistiques rapides */
.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
  font-weight: 500;
}

/* Section Projets */
.project-item {
  transition: all 0.3s ease;
  display: block;
  opacity: 1;
}

.project-item.hide {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.project-item.show {
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease;
}

.project-features ul li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.project-features ul li i {
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Section Compétences - Design moderne */
.skills-card {
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  background: white;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.skills-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--primary);
  transition: var(--transition);
}

.skills-card:hover .skills-icon {
  transform: scale(1.1);
  color: var(--primary-dark);
}

.skills-card h3,
.skills-card h4 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--dark);
}


/* Bouton retour en haut */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

#back-to-top i,
#back-to-top .icon-svg {
  font-size: 1.2rem;
}

/* Notification toast */
.toast-container {
  z-index: 9999;
}

.toast {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.toast.hide {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
}

.toast .btn-close {
  filter: brightness(0) invert(1);
}

/* Styles pour la section contact */
.contact-info-card,
.contact-form-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
  background-color: var(--primary-dark);
}

.contact-details h4,
.contact-details h5 {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-details a,
.contact-details p {
  color: #555;
  margin-bottom: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary);
}

/* Styles pour le formulaire flottant */
.form-floating>.form-control,
.form-floating>.form-control-plaintext {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-floating>label {
  padding: 1rem 0.75rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.contact-btn {
  padding: 12px 25px;
  font-weight: 500;
  border-radius: 30px;
  border: none;
  background: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.contact-description {
  color: #666;
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 15px;
}

/* Footer amélioré */
footer {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  text-align: center;
  padding: 40px 0;
}

footer p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* Styles pour les liens du footer */
footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

footer a:hover {
  color: var(--primary);
  opacity: 1;
  text-decoration: underline;
}

/* Footer en mode sombre */
body.dark-mode footer {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  color: #eee;
}

body.dark-mode footer p {
  color: #eee;
  opacity: 0.9;
}

body.dark-mode footer a {
  color: #eee;
  opacity: 0.9;
}

body.dark-mode footer a:hover {
  color: var(--primary);
  opacity: 1;
}

/* Timeline Modern Evolution */
.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, rgba(0, 123, 255, 0.05), var(--primary), rgba(0, 123, 255, 0.05));
  transform: translateX(-50%);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.timeline-item {
  position: relative;
  margin: 3rem 0;
  width: 50%;
  padding: 0 3rem;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Glassmorphism Card for Timeline - Readability Fix */
.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  /* Increased opacity for readability */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
  z-index: -1;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px -10px rgba(0, 123, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 123, 255, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

/* Glowing Dots */
.timeline-item::after {
  content: '';
  position: absolute;
  top: 35px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 5px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.15);
  transition: all 0.4s ease;
}

.timeline-item.left::after {
  right: -12px;
}

.timeline-item.right::after {
  left: -12px;
}

.timeline-item:hover::after {
  background: var(--primary);
  box-shadow:
    0 0 0 6px rgba(0, 123, 255, 0.2),
    0 0 20px var(--primary);
  transform: scale(1.1);
  border-color: #fff;
}

/* Timeline Typography */
.timeline-content > h3:first-of-type,
.timeline-content > h4:first-of-type,
.timeline-content h4 {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.timeline-content .timeline-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-content > .timeline-date + h3 {
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.timeline-content .timeline-note {
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.timeline-content > h3:first-of-type + h3,
.timeline-content > h3:first-of-type + h4,
.timeline-content > h4:first-of-type + h5,
.timeline-content h5 {
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
  /* Darker text */
  font-size: 1.1rem;
}

.timeline-content .location {
  color: #333;
  /* Darker text */
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 123, 255, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
}

.timeline-content .location i {
  margin-right: 8px;
  color: var(--primary);
}

.experience-category {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-category h4,
.experience-category h6 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.experience-category h4 i,
.experience-category h6 i {
  margin-right: 10px;
  color: var(--info);
  background: rgba(23, 162, 184, 0.1);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
}

.experience-category ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.experience-category ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.8rem;
  color: #333;
  /* Darker text */
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.experience-category ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Certifications Grid Layout */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.cert-card {
  background: rgba(255, 255, 255, 0.95);
  /* Increased opacity */
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--info), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cert-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s ease;
  z-index: -1;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.cert-card:hover::before {
  opacity: 1;
}

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

.cert-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(23, 162, 184, 0.05));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.cert-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.cert-card:hover .cert-icon {
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: #fff;
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
  border-radius: 50%;
}

.cert-card:hover .cert-icon::after {
  transform: translateX(100%);
}

.cert-card h3,
.cert-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--dark);
  transition: color 0.3s ease;
}

.cert-card:hover h3,
.cert-card:hover h4 {
  color: var(--primary);
}

.cert-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Project Cards Polish - Readability Fix */
.project-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  background: #ffffff;
  /* Pure white for contrast */
  height: 100%;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 123, 255, 0.2);
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #1a56db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.project-card:hover .project-icon {
  transform: scale(1.15) rotate(8deg);
  color: #fff;
}

.project-overlay {
  background: rgba(0, 123, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  transform: translateY(20px);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-tools {
  transform: translateY(0);
}

.project-tools .badge {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.project-tools .badge:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

.project-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.project-card .card-body .project-features {
  margin-top: 1rem;
}

.project-card .card-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.project-card .card-text {
  color: #444;
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 500;
  flex: 1;
}

.filter-btn {
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  margin: 0 6px 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background: rgba(0, 123, 255, 0.05);
  color: var(--primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 50px;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
  background: transparent;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 100%;
}

/* Animations de révélation locales pour remplacer AOS */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 32px, 0);
}

[data-aos="fade-left"] {
  transform: translate3d(32px, 0, 0);
}

[data-aos="fade-right"] {
  transform: translate3d(-32px, 0, 0);
}

[data-aos="zoom-in"] {
  transform: scale(0.94);
}

[data-aos].is-visible {
  opacity: 1;
  transform: none;
}

/* Section Titres */
.section-heading {
  position: relative;
  border-bottom: none;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 60px;
  font-size: 2.5em;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -1px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

section {
  padding: 100px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left {
    text-align: left;
  }

  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 20px;
    right: auto;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .project-filters {
    margin-bottom: 2rem;
  }

  .filter-btn {
    margin: 0.25rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .project-image {
    height: 150px;
  }

  .project-icon {
    font-size: 3.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Améliorations pour petits écrans */
@media (max-width: 480px) {
  .hero-actions .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .project-tools .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }
}

/* Adaptations pour le mode sombre - CORRECTIONS ET AJOUTS */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}

body.dark-mode .bg-light {
  background-color: #1e1e1e !important;
}

body.dark-mode .bg-white {
  background-color: #1e1e1e !important;
}

body.dark-mode .contact-info-card,
body.dark-mode .contact-form-card,
body.dark-mode .skills-card,
body.dark-mode .timeline-content,
body.dark-mode .cert-card,
body.dark-mode .about-card,
body.dark-mode .project-card {
  background-color: #252525;
  color: #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Timeline Dark Mode Fixes */
body.dark-mode .timeline-content {
  background: rgba(35, 35, 35, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .timeline-content::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

body.dark-mode .timeline-item:hover .timeline-content {
  background: rgba(45, 45, 45, 0.95);
  border-color: rgba(0, 123, 255, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .timeline-content > h3:first-of-type + h3,
body.dark-mode .timeline-content > h3:first-of-type + h4,
body.dark-mode .timeline-content > h4:first-of-type + h5,
body.dark-mode .timeline-content > .timeline-date + h3,
body.dark-mode .timeline-content h5,
body.dark-mode .cert-card h3,
body.dark-mode .cert-card h4 {
  color: #fff;
}

body.dark-mode .timeline-content .timeline-date {
  color: #7fb5ff;
}

body.dark-mode .timeline-content .timeline-note {
  color: #aaa;
}

body.dark-mode .timeline-content .location {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

body.dark-mode .experience-category h4,
body.dark-mode .experience-category h6 {
  color: #ddd;
}

body.dark-mode .experience-category ul li {
  color: #bbb;
}

/* Certification Cards Dark Mode Fixes */
body.dark-mode .cert-card {
  background: rgba(35, 35, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .cert-card:hover {
  background: rgba(45, 45, 45, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cert-icon {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cert-card:hover .cert-icon {
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: #fff;
}

body.dark-mode .cert-card p {
  color: #aaa;
}

/* Project Cards Dark Mode Fixes */
body.dark-mode .project-card {
  background: #252525;
}

body.dark-mode .project-card:hover {
  border-color: rgba(0, 123, 255, 0.3);
  background: #2d2d2d;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

body.dark-mode .project-card .card-title {
  color: #fff !important;
}

body.dark-mode .project-card .card-text {
  color: #ccc !important;
}

body.dark-mode .project-image {
  background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
}

body.dark-mode .project-tools .badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ddd;
}

body.dark-mode .project-tools .badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Filter Buttons Dark Mode */
body.dark-mode .filter-btn {
  border-color: rgba(0, 123, 255, 0.5);
  color: #64b5f6;
  background: rgba(0, 123, 255, 0.1);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* General Text Contrast */
body.dark-mode .form-control {
  background-color: #333;
  color: #eee;
  border-color: #444;
}

body.dark-mode .form-floating label {
  color: #bbb;
}

body.dark-mode .contact-details a,
body.dark-mode .contact-details p,
body.dark-mode .timeline-item p,
body.dark-mode .skills-card p {
  color: #bbb;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .section-heading {
  color: #fff;
}

body.dark-mode .stat-label {
  color: #aaa;
}

body.dark-mode .project-features ul li {
  color: #ccc !important;
}

body.dark-mode .project-features ul li i {
  color: #64b5f6 !important;
}

body.dark-mode .card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Support pour les préférences utilisateur */
@media (prefers-reduced-motion: reduce) {

  .animate-bounce,
  .progress-bar::after,
  [data-aos] {
    animation: none;
  }

  .project-card:hover,
  .skills-card:hover,
  .btn:hover {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive viewport units */
.hero {
  min-height: 100dvh;
}

/* Styles pour les logos d'entreprises */
.company-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 15px;
  width: 100%;
}

.timeline-item.left .company-logo {
  justify-content: flex-end;
}

.timeline-item.right .company-logo {
  justify-content: flex-start;
}

.company-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 60px;
  max-width: min(180px, 100%);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  padding: 8px;
}

.company-logo img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .company-logo {
    justify-content: flex-start !important;
  }

  .company-logo img {
    max-height: 50px;
    max-width: min(140px, 100%);
  }
}

@media (max-width: 576px) {
  .company-logo img {
    max-height: 40px;
    max-width: min(120px, 100%);
  }
}

body.dark-mode .company-logo img {
  background-color: #f5f5f5;
}

/* Correction des badges d'entreprises en mode sombre */
body.dark-mode .project-tools .badge {
  background-color: #495057 !important;
  color: #fff !important;
  border: 1px solid #6c757d;
}

body.dark-mode .project-tools .badge.bg-primary {
  background-color: var(--primary) !important;
  color: #fff !important;
}

body.dark-mode .project-tools .badge.bg-secondary {
  background-color: #6c757d !important;
  color: #fff !important;
}

body.dark-mode .project-tools .badge.bg-success {
  background-color: var(--success) !important;
  color: #fff !important;
}

body.dark-mode .project-tools .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

body.dark-mode .project-tools .badge.bg-info {
  background-color: var(--info) !important;
  color: #fff !important;
}

/* Amélioration des features list en mode sombre */
body.dark-mode .project-features ul li {
  color: #e0e0e0 !important;
}

body.dark-mode .project-features ul li i {
  color: var(--primary) !important;
}

/* Card footer en mode sombre */
body.dark-mode .card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ===== CORRECTIONS MOBILES SIMPLIFIÉES ===== */

/* Navbar mobile ultra-optimisée - CORRIGÉE COMPLÈTEMENT */
@media (max-width: 991.98px) {

  /* Navbar container fixe */
  .navbar {
    min-height: 70px;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar .container {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  /* Brand mobile optimisé avec taille fixe */
  .navbar-brand {
    font-size: 1.1rem !important;
    padding: 8px 12px !important;
    max-width: calc(100vw - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
  }

  /* Zone des boutons (toggle + theme) */
  .navbar .d-flex {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  /* Toggle button CORRIGÉ avec visibilité forcée */
  .navbar-toggler {
    padding: 8px !important;
    border: 2px solid rgba(0, 123, 255, 0.3) !important;
    border-radius: 12px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(0, 123, 255, 0.1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1040;
    flex-shrink: 0;
    margin-left: auto;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important;
    outline: none !important;
    border-color: var(--primary) !important;
  }

  .navbar-toggler:active {
    transform: scale(0.95);
    background: rgba(0, 123, 255, 0.2) !important;
  }

  /* Icône du toggle CORRIGÉE */
  .navbar-toggler-icon {
    width: 24px !important;
    height: 3px !important;
    background-image: none !important;
    position: relative;
    display: block !important;
  }

  .navbar-toggler-icon,
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    display: block !important;
    height: 3px !important;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    left: 0;
  }

  .navbar-toggler-icon::before {
    top: -8px;
  }

  .navbar-toggler-icon::after {
    top: 8px;
  }

  /* Animation du burger vers X */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent !important;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Collapse menu CORRIGÉ */
  .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    max-height: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 1030;
  }

  .navbar-collapse.show {
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .navbar-collapse.collapsing {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Navigation mobile avec espacement optimal */
  .navbar-nav {
    padding: 1.5rem 0 1rem !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .nav-item {
    margin: 0 !important;
    width: 100% !important;
  }

  .nav-link {
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    color: var(--text-color) !important;
  }

  .nav-link::before,
  .nav-link::after {
    display: none !important;
  }

  .nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05)) !important;
    transform: translateX(8px) !important;
    color: var(--primary) !important;
    padding-left: 32px !important;
  }

  .nav-link:active {
    background: rgba(0, 123, 255, 0.1) !important;
    transform: scale(0.98) !important;
  }

  /* Animation en cascade pour les liens */
  .navbar-collapse.show .nav-link {
    animation: slideInUp 0.4s ease-out both;
  }

  .navbar-collapse.show .nav-item:nth-child(1) .nav-link {
    animation-delay: 0.1s;
  }

  .navbar-collapse.show .nav-item:nth-child(2) .nav-link {
    animation-delay: 0.15s;
  }

  .navbar-collapse.show .nav-item:nth-child(3) .nav-link {
    animation-delay: 0.2s;
  }

  .navbar-collapse.show .nav-item:nth-child(4) .nav-link {
    animation-delay: 0.25s;
  }

  .navbar-collapse.show .nav-item:nth-child(5) .nav-link {
    animation-delay: 0.3s;
  }

  .navbar-collapse.show .nav-item:nth-child(6) .nav-link {
    animation-delay: 0.35s;
  }

  .navbar-collapse.show .nav-item:nth-child(7) .nav-link {
    animation-delay: 0.4s;
  }

  .navbar-collapse.show .nav-item:nth-child(8) .nav-link {
    animation-delay: 0.45s;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mode sombre pour navigation mobile */
@media (max-width: 991.98px) {
  body.dark-mode .navbar {
    background: rgba(20, 20, 20, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.dark-mode .navbar-collapse {
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
  }

  body.dark-mode .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: #eee !important;
  }

  body.dark-mode .nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    color: #ffffff !important;
  }

}

/* Optimisations tactiles pour mobile */
@media (max-width: 991.98px) {

  /* Boutons avec zones tactiles agrandies */
  .btn,
  button,
  .filter-btn {
    min-height: 44px !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    border-radius: 25px !important;
    touch-action: manipulation;
  }

  .btn:active,
  button:active,
  .filter-btn:active {
    transform: scale(0.96);
  }

  /* Formulaires mobiles améliorés */
  .form-control,
  .form-select {
    min-height: 44px !important;
    font-size: 16px !important;
    /* Évite le zoom sur iOS */
    border-radius: 12px !important;
  }

  /* Timeline mobile responsive */
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px;
    margin-bottom: 2rem;
  }

  .timeline-item.right {
    left: 0 !important;
  }

  .timeline-item::before {
    left: -35px !important;
    right: auto !important;
  }

  /* Projets mobile optimisés */
  .project-filters {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .filter-btn {
    margin: 0.5rem 0.25rem;
    padding: 10px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .project-image {
    height: 180px;
  }

  .project-icon {
    font-size: 4rem;
  }

  /* Cards mobiles optimisées */
  .card,
  .skills-card,
  .project-card {
    margin-bottom: 1.5rem;
    border-radius: 15px;
  }

  /* Hero section mobile */
  .hero {
    padding: 140px 0 80px;
    min-height: calc(100dvh - 70px);
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero p,
  .hero .typed-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .btn {
    min-width: 200px;
    margin: 0.5rem;
    font-size: 1.1rem;
    padding: 14px 24px;
  }

  /* Sections avec espacement adapté */
  section {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* Stats mobiles */
  .stat-item {
    margin-bottom: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Très petits écrans (smartphones en portrait) */
@media (max-width: 576px) {
  .navbar {
    min-height: 60px !important;
    padding: 0.4rem 0 !important;
  }

  .navbar .container {
    padding: 0 0.75rem !important;
  }

  .navbar-brand {
    font-size: 1rem !important;
    padding: 6px 10px !important;
    max-width: calc(100vw - 120px) !important;
  }

  .navbar-toggler {
    min-width: 40px !important;
    min-height: 40px !important;
  }

  /* Hero section très petits écrans */
  .hero {
    padding: 120px 0 60px;
    min-height: calc(100dvh - 60px);
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p,
  .hero .typed-text {
    font-size: 1.2rem;
  }

  .hero-actions .btn {
    display: block;
    width: 90%;
    margin: 0.75rem auto;
    font-size: 1rem;
    padding: 12px 20px;
  }

  /* Sections avec espacement réduit */
  section {
    padding: 50px 0;
  }

  .section-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  /* Projets très petits écrans */
  .filter-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 0.25rem;
  }

  .project-tools .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin: 2px;
  }

  /* Formulaires très petits écrans */
  .form-control {
    font-size: 16px;
    /* Important pour éviter le zoom iOS */
    padding: 10px 14px;
  }

  /* Contact mobile */
  .contact-info-card,
  .contact-form-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
}

/* Gestion de l'orientation portrait/paysage */
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero {
    min-height: 100dvh;
    padding: 100px 0 50px;
  }

  .navbar {
    min-height: 60px;
    padding: 0.3rem 0;
  }

  .navbar-toggler {
    min-width: 40px !important;
    min-height: 40px !important;
  }
}

/* Back to top mobile simplifié */
@media (max-width: 991.98px) {
  #back-to-top {
    bottom: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    border-radius: 50%;
  }

  #back-to-top:active {
    transform: scale(0.9);
  }
}

/* Optimisations performance mobile */
@media (max-width: 991.98px) {

  /* Simplifier les gradients */
  .hero {
    background: linear-gradient(135deg, var(--primary), var(--info));
  }

  .hero::before {
    display: none;
    /* Désactiver l'animation de gradient pour économiser les ressources */
  }

  /* Simplifier les ombres */
  .card,
  .skills-card,
  .project-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  }

  .card:hover,
  .skills-card:hover,
  .project-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
  }

  /* CORRECTION : Éliminer les rectangles supplémentaires dans les cartes de projets */
  .project-card .card-img-top {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  .project-image {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  .project-image::before,
  .project-image::after {
    display: none !important;
  }

  /* Correction de la superposition des éléments dans les cartes */
  .project-overlay {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Optimisation des badges dans les projets */
  .project-tools {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .project-tools .badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  /* Nettoyage des pseudo-éléments inutiles */
  .project-card::before,
  .project-card::after,
  .card::before,
  .card::after {
    display: none !important;
  }

  /* Optimisations des transitions mobile */
  * {
    transition-duration: 0.2s !important;
  }

  /* Réduction de l'impact des transforms */
  .project-card:hover {
    transform: translateY(-2px) !important;
  }

  .btn:hover {
    transform: none !important;
  }

  /* Désactiver les animations complexes sur mobile */
  .animate-bounce,
  .profile-img:hover,
  .skills-card:hover .skills-icon {
    animation: none;
    transform: none;
  }

  /* Amélioration de la lisibilité mobile */
  .project-card .card-title {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }

  .project-card .card-text {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }

  .project-features ul li {
    font-size: 0.9rem !important;
    padding: 0.25rem 0 !important;
  }

  /* Optimisation des espacements mobile */
  .card-body {
    padding: 1.25rem !important;
  }

  .card-footer {
    padding: 0.75rem 1.25rem !important;
  }

  /* Amélioration des filtres de projet mobile */
  .project-filters {
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem !important;
  }

  .filter-btn {
    font-size: 0.9rem !important;
    padding: 8px 14px !important;
    margin: 0.25rem !important;
    white-space: nowrap !important;
  }

  /* Optimisation des formulaires mobile */
  .form-floating>label {
    font-size: 0.9rem !important;
  }

  .form-control:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
  }

  /* Contact mobile optimisé */
  .contact-item {
    margin-bottom: 1.5rem !important;
  }

  .contact-icon {
    min-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
  }

  /* Amélioration de la timeline mobile */
  .timeline-item {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .timeline-item h4 {
    font-size: 1rem !important;
  }

  .timeline-item h5 {
    font-size: 1.1rem !important;
  }

  /* Correction des logos d'entreprise */
  .company-logo {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 1rem !important;
  }

  .company-logo img {
    width: auto !important;
    height: auto !important;
    max-width: min(120px, 100%) !important;
    max-height: 40px !important;
  }
}

/* Mode sombre mobile corrigé */
@media (max-width: 991.98px) {
  body.dark-mode .navbar-collapse {
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
  }
}

/* Corrections spécifiques pour Safari iOS */
@supports (-webkit-touch-callout: none) {
  .navbar {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  .navbar-collapse {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  /* Fix pour le viewport iOS */
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* Optimisations pour Android */
@media (max-width: 991.98px) {
  .form-control:focus {
    transform: none;
    /* Évite les problèmes de clavier Android */
  }

  /* Améliorer les performances de scroll */
  .navbar,
  .navbar-collapse,
  .card {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }
}


/* Règles générales pour toutes les cartes en mode sombre */
body.dark-mode .card h1,
body.dark-mode .card h2,
body.dark-mode .card h3,
body.dark-mode .card h4,
body.dark-mode .card h5,
body.dark-mode .card h6 {
  color: #fff !important;
}

body.dark-mode .card p {
  color: #e0e0e0 !important;
}

body.dark-mode .card ul li {
  color: #e0e0e0 !important;
}

body.dark-mode .card strong {
  color: #fff !important;
}

/* Sections bg-light en mode sombre */
body.dark-mode .bg-light {
  background-color: #1a1a1a !important;
}

body.dark-mode section.bg-light {
  background-color: #1a1a1a !important;
}

/* Cartes des pages légales en mode sombre - SELECTORS PLUS SPECIFIQUES */
body.dark-mode .card {
  background-color: #2d2d2d !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e0e0e0 !important;
}

body.dark-mode .card.border-0 {
  background-color: #2d2d2d !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .card .card-body {
  background-color: #2d2d2d !important;
  color: #e0e0e0 !important;
}

body.dark-mode .card.border-0 .card-body {
  background-color: #2d2d2d !important;
  color: #e0e0e0 !important;
}

/* Text-muted en mode sombre */
body.dark-mode .text-muted {
  color: #aaa !important;
}

body.dark-mode .text-muted small {
  color: #aaa !important;
}

body.dark-mode .nav-link {
  color: #eee !important;
}

body.dark-mode .nav-link:hover {
  color: var(--primary) !important;
}

body.dark-mode .navbar-brand {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar-brand i,
body.dark-mode .navbar-brand .brand-icon {
  color: var(--primary);
}

/* Navbar mobile — les styles sont gérés dans la section principale du CSS */


/* Skills Grid System */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
}

.skill-tag i {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15);
  border-color: rgba(0, 123, 255, 0.3);
}

.skill-tag:hover i {
  transform: scale(1.1);
}

/* Dark Mode for Skills */
body.dark-mode .skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #eee;
}

body.dark-mode .skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* Footer Improvements */
footer {
  background: #111 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-white {
  transition: color 0.3s ease;
}

.hover-white:hover {
  color: #fff !important;
}

.social-links a {
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--primary) !important;
}
