@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Mode clair (par défaut) */
:root {
  --primary-color: #ffffff;
  --background-color: #f8f9fa;
  --text-color: #2d3436;
  --text-color-light: #64748b;
  --text-primary: #2d3436;
  --text-secondary: #64748b;
  --surface-color: #ffffff;
  --accent-color: #0066ff;
  --accent-color-light: rgba(0, 102, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-dark: rgba(255, 255, 255, 0.95);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --backdrop: blur(10px);
  --border-color: rgba(0, 0, 0, 0.1);
  --vh: 1vh; /* Variable pour la hauteur des appareils mobiles */
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  
  /* Variables pour le formulaire de contact moderne */
  --card-background: rgba(255, 255, 255, 0.95);
  --card-backdrop: blur(20px);
  --card-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
  --card-border: 1px solid rgba(255, 255, 255, 0.2);
  --input-background: rgba(255, 255, 255, 0.8);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus: #0066ff;
  --button-gradient: linear-gradient(135deg, #0066ff 0%, #4d94ff 100%);
  --button-hover: linear-gradient(135deg, #0052cc 0%, #3d7acc 100%);
  --info-item-bg: rgba(255, 255, 255, 0.6);
  --info-item-hover: rgba(255, 255, 255, 0.8);
  
  /* Variables de couleur consolidées */
  --text-muted: #64748b;
  --secondary-color: #6366f1;
  --secondary-color-light: rgba(99, 102, 241, 0.1);
  --gradient-primary: var(--button-gradient);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Mode sombre */
[theme="dark"] {
  --primary-color: #0a0a0a;
  --background-color: #000000;
  --text-color: #ffffff;
  --text-color-light: #94a3b8;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --surface-color: #1a1a1a;
  --accent-color: #3b82f6;
  --accent-color-light: rgba(59, 130, 246, 0.1);
  --glass: rgba(0, 0, 0, 0.8);
  --glass-dark: rgba(0, 0, 0, 0.95);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --border-color: rgba(255, 255, 255, 0.1);
  
  /* Variables pour le formulaire de contact moderne en mode sombre */
  --card-background: rgba(26, 26, 26, 0.95);
  --card-backdrop: blur(20px);
  --card-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
  --card-border: 1px solid rgba(255, 255, 255, 0.1);
  --input-background: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: #3b82f6;
  --button-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --button-hover: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --info-item-bg: rgba(255, 255, 255, 0.05);
  --info-item-hover: rgba(255, 255, 255, 0.1);
  
  /* Variables de couleur consolidées pour le mode sombre */
  --text-muted: #94a3b8;
  --secondary-color: #8b5cf6;
  --secondary-color-light: rgba(139, 92, 246, 0.1);
  --gradient-primary: var(--button-gradient);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  width: 100%;
  position: relative;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  font-size: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-color);
}

/* Classes Tailwind pour les tailles de texte élégantes et lisibles */
.text-3xl {
  font-size: 1.875rem; /* 30px */
  line-height: 1.2;
}

.text-4xl {
  font-size: 2.25rem; /* 36px */
  line-height: 1.1;
}

.text-5xl {
  font-size: 3rem; /* 48px */
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem; /* 60px */
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem; /* 72px */
  line-height: 1;
}

.text-8xl {
  font-size: 6rem; /* 96px */
  line-height: 1;
}

/* Classes responsive pour mobile */
@media (min-width: 768px) {
  .md\:text-3xl {
    font-size: 1.875rem; /* 30px */
    line-height: 1.2;
  }

  .md\:text-4xl {
    font-size: 2.25rem; /* 36px */
    line-height: 1.1;
  }

  .md\:text-5xl {
    font-size: 3rem; /* 48px */
    line-height: 1;
  }

  .md\:text-6xl {
    font-size: 3.75rem; /* 60px */
    line-height: 1;
  }

  .md\:text-7xl {
    font-size: 4.5rem; /* 72px */
    line-height: 1;
  }

  .md\:text-8xl {
    font-size: 6rem; /* 96px */
    line-height: 1;
  }
}

/* TRANSITIONS GLOBALES */
a,
.btn,
.nav-button,
.project-card,
.technology-item,
.contact-method {
  transition: all 300ms ease;
}

/* RESET BUTTON STYLES */
button {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus {
  outline: none;
  box-shadow: none;
}

/* NAVIGATION MODERNE OPTIMISÉE */
.modern-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw !important;
  max-width: none !important;
  min-width: 100vw;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  width: 100vw !important;
  max-width: none !important;
  min-width: 100vw;
  margin: 0 !important;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

/* Logo Section - Responsive */
.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0.25rem;
}

.logo-section:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--accent-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
  }
}

.logo-section:hover .logo-icon {
  transform: scale(1.1);
}

.code-icon {
  width: 1rem;
  height: 1rem;
  color: white;
}

@media (min-width: 640px) {
  .code-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  transition: all 0.3s ease;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

/* Desktop Navigation Links - Responsive */
.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
  margin: 0 1rem;
}

@media (min-width: 768px) {
  .desktop-nav-links {
    display: flex;
    gap: 0.25rem;
  }
}

@media (min-width: 1024px) {
  .desktop-nav-links {
    gap: 0.5rem;
  }
}

.nav-button {
  position: relative;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color-light);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-button {
    padding: 0.5rem 1rem;
  }
}

.nav-button:hover {
  color: var(--accent-color);
  background: rgba(0, 102, 255, 0.05);
}

[theme="dark"] .nav-button:hover {
  background: rgba(59, 130, 246, 0.2);
}

.nav-text {
  position: relative;
  z-index: 10;
  font-weight: 500;
  font-size: 0.8rem;
}

@media (min-width: 1024px) {
  .nav-text {
    font-size: 0.9rem;
  }
}

.nav-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 102, 255, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
}

.nav-button:hover .nav-bg {
  opacity: 1;
  transform: scale(1);
}

.nav-dot {
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.25rem;
  height: 0.25rem;
  background: var(--accent-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.nav-button:hover .nav-dot {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-button.active {
  color: var(--accent-color);
}

.nav-button.active .nav-dot {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Desktop Controls - Responsive */
.desktop-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .desktop-controls {
    display: flex;
  }
}

.controls-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: rgba(0, 102, 255, 0.05);
  backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .controls-group {
    gap: 0.5rem;
    padding: 0.5rem;
  }
}

[theme="dark"] .controls-group {
  background: rgba(59, 130, 246, 0.2);
}

.lang-button, .theme-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .lang-button, .theme-button {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

.lang-button:hover, .theme-button:hover {
  background: var(--accent-color-light);
}

.flag {
  font-size: 1rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .flag {
    font-size: 1.125rem;
  }
}

.lang-text {
  display: none;
}

@media (min-width: 768px) {
  .lang-text {
    display: inline;
  }
}

.separator {
  width: 1px;
  height: 1.25rem;
  background: var(--border-color);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .separator {
    height: 1.5rem;
  }
}

.theme-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .theme-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Mobile Menu Button - Optimisé */
.mobile-menu-button {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 0.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .mobile-menu-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
  }
}

.mobile-menu-button:hover {
  transform: scale(1.05);
  background: rgba(0, 102, 255, 0.2);
}

[theme="dark"] .mobile-menu-button {
  background: rgba(59, 130, 246, 0.5);
}

[theme="dark"] .mobile-menu-button:hover {
  background: rgba(59, 130, 246, 0.7);
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

.menu-icon {
  color: var(--accent-color);
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 480px) {
  .menu-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  max-height: 450px;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
  background: var(--accent-color-light);
  color: var(--accent-color);
  padding-left: 2rem;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Séparateur menu mobile */
.mobile-menu-separator {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 1rem;
}

/* Bouton Dark Mode Mobile */
.mobile-theme-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.mobile-theme-button:hover {
  background: var(--accent-color-light);
  color: var(--accent-color);
  padding-left: 2rem;
}

.mobile-theme-icon {
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}

.mobile-theme-button:hover .mobile-theme-icon {
  transform: rotate(180deg);
}

.mobile-theme-text {
  font-family: inherit;
}

/* Dark mode styles pour le bouton mobile */
[theme="dark"] .mobile-theme-button,
.dark .mobile-theme-button {
  color: var(--text-color);
}

[theme="dark"] .mobile-theme-button:hover,
.dark .mobile-theme-button:hover {
  background: var(--accent-color-light);
  color: var(--accent-color);
}

/* Ancien code hamburger supprimé - remplacé par navigation moderne */

/* SECTIONS - Responsive */
section {
  padding-top: 5rem; /* Espace pour la navigation moderne */
  height: auto;
  min-height: 100vh;
  min-height: calc(100 * var(--vh));
  margin: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 640px) {
  section {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 5.5rem;
  }
}

@media (min-width: 1024px) {
  section {
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 6rem;
  }
}

@media (min-width: 1280px) {
  section {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

@media (min-width: 1536px) {
  section {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

.section-container {
  display: flex;
  gap: 5rem;
  height: 80%;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* PROFILE SECTION */
#accueil {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 2rem;
  box-sizing: border-box;
  background: var(--background-color);
}

@media (min-width: 1024px) {
  #accueil {
    padding: 0 6rem;
  }
}

@media (min-width: 1280px) {
  #accueil {
    padding: 0 8rem;
  }
}

@media (min-width: 1536px) {
  #accueil {
    padding: 0 10rem;
  }
}

.section__pic-container {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  height: 400px;
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: 1px solid var(--border-color);
}

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

.section__pic-container img.me {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section__text {
  align-self: center;
  text-align: left;
  animation: fadeIn 1s ease-in;
  max-width: 600px;
}

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0.9;
  letter-spacing: -0.01em;
}

.section__text__p2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  min-height: 3rem;
  text-align: left;
  line-height: 1.4;
}

.section__text__p2 .static-text {
  color: var(--text-color);
  opacity: 0.9;
}

.section__text__p2 .dynamic-text {
  color: var(--accent-color);
  font-weight: 600;
}

.title {
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.02em;
}

#socials-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 3rem;
  gap: 1.5rem;
}

.social-link {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ICONS */
.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem 2rem;
  width: auto;
  min-width: 8rem;
  border-radius: 2rem;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  color: var(--text-color);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-color-1,
.btn-color-2 {
  border: var(--border-color);
  color: var(--text-color-light);
}

.btn-color-1 {
  background: var(--accent-color);
  color: white;
}

.btn-color-1:hover {
  background: var(--text-color);
}

.btn-color-2 {
  background: var(--accent-color-light);
  color: var(--accent-color);
}

.btn-color-2:hover {
  border: var(--border-color);
  background: var(--text-color);
  color: white;
}

/* ABOUT SECTION */
#apropos {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.details-container:hover {
  transform: translateY(-5px);
}

#apropos .section__pic-container {
  height: 400px;
  width: 500px;
  margin: auto 0;
  border-radius: 2rem;
  overflow: hidden;
}

#apropos .about-details-container {
  flex: 1;
  max-width: 600px;
}

.text-container {
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Prose Styles for About Section */
.prose {
  max-width: 65ch;
  color: var(--text-color);
  width: 100%;
  box-sizing: border-box;
}

.prose.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Styles pour la section des statistiques */
.card {
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: var(--shadow);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[theme="dark"] .glass-effect,
.dark .glass-effect {
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Classes Tailwind manquantes pour glassmorphisme */
.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-black\/5 {
  background-color: rgba(0, 0, 0, 0.05);
}

.bg-black\/10 {
  background-color: rgba(0, 0, 0, 0.1);
}

.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Classes d'ombre supplémentaires */
.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Classes de bordure supplémentaires */
.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-4 {
  border-width: 4px;
}

.border-8 {
  border-width: 8px;
}

.border-t {
  border-top-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l {
  border-left-width: 1px;
}

/* Classes d'espacement complémentaires */
.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Classes de rayon de bordure supplémentaires */
.rounded-xs {
  border-radius: 0.125rem;
}

.rounded-sm {
  border-radius: 0.25rem;
}

.rounded {
  border-radius: 0.375rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Classes de transition supplémentaires */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-150 {
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

/* Classes d'opacité supplémentaires */
.opacity-0 {
  opacity: 0;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

/* Classes de transform supplémentaires */
.scale-90 {
  transform: scale(0.9);
}

.scale-95 {
  transform: scale(0.95);
}

.scale-100 {
  transform: scale(1);
}

.scale-105 {
  transform: scale(1.05);
}

.scale-110 {
  transform: scale(1.1);
}

.hover\\:scale-105:hover {
  transform: scale(1.05);
}

.hover\\:scale-110:hover {
  transform: scale(1.1);
}

.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

.group\\/social:hover .group-hover\\/social\\:scale-110 {
  transform: scale(1.1);
}

/* Classes de couleur de texte supplémentaires */
.text-red-500 {
  color: #ef4444;
}

.text-blue-500 {
  color: #3b82f6;
}

.text-green-500 {
  color: #10b981;
}

.text-yellow-500 {
  color: #f59e0b;
}

.text-purple-500 {
  color: #8b5cf6;
}

.text-pink-500 {
  color: #ec4899;
}

/* Classes de couleur de fond supplémentaires */
.bg-red-500 {
  background-color: #ef4444;
}

.bg-blue-500 {
  background-color: #3b82f6;
}

.bg-green-500 {
  background-color: #10b981;
}

.bg-yellow-500 {
  background-color: #f59e0b;
}

.bg-purple-500 {
  background-color: #8b5cf6;
}

.bg-pink-500 {
  background-color: #ec4899;
}

/* Classes d'animation supplémentaires */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Classes de position et z-index supplémentaires */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Classes de débordement supplémentaires */
.overflow-hidden {
  overflow: hidden;
}

.overflow-visible {
  overflow: visible;
}

.overflow-scroll {
  overflow: scroll;
}

.overflow-auto {
  overflow: auto;
}

/* Classes de curseur supplémentaires */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-wait {
  cursor: wait;
}

.cursor-text {
  cursor: text;
}

/* Classes de sélection d'utilisateur */
.select-none {
  user-select: none;
}

.select-text {
  user-select: text;
}

.select-all {
  user-select: all;
}

.select-auto {
  user-select: auto;
}

.text-gradient {
  background: linear-gradient(135deg, #0066ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.gap-8 {
  gap: 2rem;
}

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

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

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

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.text-muted-foreground {
  color: var(--text-color-light);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 300ms;
}

.cursor-default {
  cursor: default;
}

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

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.prose.prose-lg p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.prose.max-w-none {
  max-width: none;
  width: 100%;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text-muted-foreground {
  color: var(--text-color-light);
}

.leading-relaxed {
  line-height: 1.625;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

/* Mobile optimizations for prose */
@media screen and (max-width: 768px) {
  .prose {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .prose.prose-lg {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .text-lg {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .prose.prose-lg p {
    margin-top: 1em;
    margin-bottom: 1em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  /* Force proper container behavior on mobile */
  .text-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  .about-details-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  #apropos .section-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 600px) {
  .prose.prose-lg {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .text-lg {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .mb-6 {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 400px) {
  .prose.prose-lg {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .text-lg {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Universal mobile text overflow prevention */
@media screen and (max-width: 768px) {
  p, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }
  
  .text-container p,
  .prose p,
  .about-details-container p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* TECHNOLOGIES SECTION */
.technologies-section {
  margin: 6rem auto 4rem;
  width: 100%;
  padding: 0 2rem;
  text-align: center;
}

.technologies-title {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.technologies-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

.technologies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.technology-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 120px;
  transition: all 0.3s ease;
}

.technology-item:hover {
  transform: translateY(-10px);
}

.technology-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.technology-item:hover .technology-icon {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.technology-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  margin-top: 0.5rem;
  text-align: center;
}

/* Styles pour les icônes SVG des technologies */
.vue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.technology-item:hover .vue-icon {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* PROJECTS SECTION */
#projets {
  position: relative;
  padding: 6rem 0;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  justify-content: center;
}

.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[theme="dark"] .project-card {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.project-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

.project-description {
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.95rem;
}

.project-card .btn-container {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-card .project-btn {
  flex: 1;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  min-width: unset;
  white-space: nowrap;
}

/* EXPERIENCE SECTION */
.timeline {
  position: relative;
  width: 100%;
  margin: 3rem auto;
  padding: 0 2rem;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50px;
  margin-left: -1.5px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 70px;
}

.timeline-date {
  position: absolute;
  width: 100px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.6rem 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  left: 0;
  text-align: center;
  z-index: 1;
}

.timeline-content {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.timeline-content h4 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.timeline-content p {
  margin-bottom: 0;
}

/* Experience Timeline - Tailwind CSS Inspired */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Tailwind-inspired Utility Classes */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-700 {
  transition-duration: 700ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out forwards;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.opacity-100 {
  opacity: 1;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.left-8 {
  left: 2rem;
}

.transform {
  transform: translateX(-50%);
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.h-full {
  height: 100%;
}

.w-0\.5 {
  width: 0.125rem;
}

.bg-gradient-to-b {
  background: linear-gradient(180deg, 
    rgba(59, 130, 246, 0.3) 0%, 
    var(--accent-color) 50%, 
    rgba(59, 130, 246, 0.3) 100%);
}

.space-y-12 > * + * {
  margin-top: 3rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.flex {
  display: flex;
}

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

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

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.p-2 {
  padding: 0.5rem;
}

.bg-primary-500 {
  background-color: var(--accent-color);
}

.border-4 {
  border-width: 4px;
}

.border-background {
  border-color: var(--background-color);
}

.rounded-full {
  border-radius: 9999px;
}

.z-10 {
  z-index: 10;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== CLASSES CSS MANQUANTES POUR LE FOOTER ===== */

/* Classes de largeur et hauteur */
.w-80 {
  width: 20rem; /* 320px */
}

.h-40 {
  height: 10rem; /* 160px */
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

/* Classes flexbox */
.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

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

.items-start {
  align-items: flex-start;
}

/* Classes d'espacement */
.gap-6 {
  gap: 1.5rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

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

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Classes de taille de texte */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* Classes de largeur maximale */
.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Classes de padding */
.p-4 {
  padding: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Classes d'arrière-plan */
.bg-primary-100 {
  background-color: rgba(59, 130, 246, 0.1);
}

.dark\\:bg-primary-900-50 {
  background-color: rgba(30, 58, 138, 0.05);
}

/* Classes de bordure */
.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Classes de positionnement et affichage */
.text-center {
  text-align: center;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

/* Classes de largeur responsive */
@media (min-width: 768px) {
  .md\\:flex {
    display: flex;
  }
}

.hover\:scale-125:hover {
  transform: scale(1.25);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.bg-primary-300 {
  background-color: rgba(59, 130, 246, 0.6);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.-top-1 {
  top: -0.25rem;
}

.-right-1 {
  right: -0.25rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.bg-green-500 {
  background-color: #10b981;
}

.border-2 {
  border-width: 2px;
}

.w-2 {
  width: 0.5rem;
}

.h-2 {
  height: 0.5rem;
}

.bg-white {
  background-color: #ffffff;
}

.ml-16 {
  margin-left: 4rem;
}

.group {
  position: relative;
}

.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.items-start {
  align-items: flex-start;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--text-primary);
}

.font-bold {
  font-weight: 700;
}

.group:hover .group-hover\:text-primary-600 {
  color: var(--accent-color);
}

.transition-colors {
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

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

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.text-primary-600 {
  color: var(--accent-color);
}

.text-muted-foreground {
  color: var(--text-secondary);
}

.hover\:text-primary-600:hover {
  color: var(--accent-color);
}

.dark\:hover\:text-primary-400:hover {
  color: #60a5fa;
}

.group-hover\:text-primary-600:hover {
  color: var(--accent-color);
}

.dark\:group-hover\:text-primary-400:hover {
  color: #60a5fa;
}

.group\/social:hover .group-hover\/social\:text-primary-600 {
  color: var(--accent-color);
}

.group\/social:hover .dark\:group-hover\/social\:text-primary-400 {
  color: #60a5fa;
}

.group\/link:hover .group-hover\/link\:opacity-100 {
  opacity: 1;
}

.hover\:translate-x-2:hover {
  transform: translateX(0.5rem);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group\/social:hover .group-hover\/social\:scale-110 {
  transform: scale(1.1);
}

.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-600 {
  animation-delay: 600ms;
}

.delay-800 {
  animation-delay: 800ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

.transition-all {
  transition-property: all;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

.transition-transform {
  transition-property: transform;
}

.transition-opacity {
  transition-property: opacity;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.bg-primary-500 {
  background-color: var(--accent-color);
}

.object-contain {
  object-fit: contain;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.bg-gradient-to-r {
  background: linear-gradient(to right, #10b981, #059669);
}

/* Dégradé bleu pour les traits sous les titres */
.bg-gradient-to-r.from-primary-500.to-primary-700 {
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
}

.from-primary-500 {
  --tw-gradient-from: #3b82f6;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(59 130 246 / 0));
}

.to-primary-700 {
  --tw-gradient-to: #1d4ed8;
}

/* Classes utilitaires pour les dimensions du trait */
.w-24 {
  width: 6rem;
}

.h-1 {
  height: 0.25rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.rounded-full {
  border-radius: 9999px;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Classes pour les fonds d'icônes des titres */
.bg-primary-100 {
  background-color: var(--accent-color-light); /* Même couleur que le bouton "Me contacter" */
}

.bg-primary-900-50 {
  background-color: var(--accent-color-light); /* Même couleur que le bouton "Me contacter" */
}

.rounded-2xl {
  border-radius: 1rem; /* 16px */
}

.w-16 {
  width: 4rem; /* 64px */
}

.h-16 {
  height: 4rem; /* 64px */
}

.inline-flex {
  display: inline-flex;
}

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

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

.mb-6 {
  margin-bottom: 1.5rem;
}

/* Classes pour le nouveau footer */
.bg-card {
  background-color: var(--surface-color);
}

.border-border {
  border-color: var(--border-color);
}

.border-t {
  border-top-width: 1px;
}

.from-primary-50\/20 {
  --tw-gradient-from: rgba(239, 246, 255, 0.2);
}

.to-secondary-50\/20 {
  --tw-gradient-to: rgba(248, 250, 252, 0.2);
}

.bg-primary-200\/10 {
  background-color: rgba(191, 219, 254, 0.1);
}

.bg-secondary-200\/10 {
  background-color: rgba(226, 232, 240, 0.1);
}

.blur-3xl {
  filter: blur(64px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.bg-primary-50\/50 {
  background-color: rgba(239, 246, 255, 0.5);
}

.bg-primary-900\/20 {
  background-color: rgba(30, 58, 138, 0.2);
}

.text-red-500 {
  color: #ef4444;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Version dark mode */
@media (prefers-color-scheme: dark) {
  .dark\:bg-primary-900-50 {
    background-color: var(--accent-color-light); /* Même couleur que le bouton "Me contacter" */
  }
  
  .dark\:text-white {
    color: #ffffff;
  }
  
  .dark\:from-primary-950\/10 {
    --tw-gradient-from: rgba(23, 37, 84, 0.1);
  }
  
  .dark\:to-secondary-950\/10 {
    --tw-gradient-to: rgba(15, 23, 42, 0.1);
  }
  
  .dark\:bg-primary-800\/10 {
    background-color: rgba(30, 64, 175, 0.1);
  }
  
  .dark\:bg-secondary-800\/10 {
    background-color: rgba(51, 65, 85, 0.1);
  }
  
  .dark\:hover\:bg-primary-900\/20:hover {
    background-color: rgba(30, 58, 138, 0.2);
  }
}

.text-white {
  color: #ffffff;
}

/* Classes utilitaires supplémentaires pour le footer */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-10 {
  top: 2.5rem;
}

.right-10 {
  right: 2.5rem;
}

.bottom-10 {
  bottom: 2.5rem;
}

.left-10 {
  left: 2.5rem;
}

.w-48 {
  width: 12rem;
}

.h-48 {
  height: 12rem;
}

.w-64 {
  width: 16rem;
}

.h-64 {
  height: 16rem;
}

.z-10 {
  z-index: 10;
}

.overflow-hidden {
  overflow: hidden;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-1 {
  width: 0.25rem;
}

.h-1 {
  height: 0.25rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.leading-relaxed {
  line-height: 1.625;
}

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

.max-w-4xl {
  max-width: 56rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-medium {
  font-weight: 500;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.whitespace-nowrap {
  white-space: nowrap;
}

.ml-3 {
  margin-left: 0.75rem;
}

.text-muted-foreground {
  color: var(--text-secondary);
}

.leading-relaxed {
  line-height: 1.625;
}

/* Smaller Padding Classes for Cards */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.ml-12 {
  margin-left: 3rem;
}

.ml-10 {
  margin-left: 2.5rem;
}

.pr-8 {
  padding-right: 2rem;
}

.pl-8 {
  padding-left: 2rem;
}

.pr-6 {
  padding-right: 1.5rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

/* Largeurs réduites pour les cartes */
.md\:w-5\/12 {
  width: 41.666667%;
}

.md\:w-2\/5 {
  width: 40%;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

/* Espacement réduit pour coller à la timeline */
.md\:pr-4 {
  padding-right: 1rem;
}

.md\:pl-4 {
  padding-left: 1rem;
}

.md\:pr-3 {
  padding-right: 0.75rem;
}

.md\:pl-3 {
  padding-left: 0.75rem;
}

/* Glass Card Styles */
.experience-card {
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .md\:flex-row-reverse {
    flex-direction: row-reverse;
  }
  
  .md\:left-1\/2 {
    left: 50%;
  }
  
  .md\:-translate-x-px {
    transform: translateX(-1px);
  }
  
  .md\:ml-0 {
    margin-left: 0;
  }
  
  .md\:pr-12 {
    padding-right: 3rem;
  }
  
  .md\:pl-12 {
    padding-left: 3rem;
  }
  
  .md\:text-right {
    text-align: right;
  }
  
  .md\:text-left {
    text-align: left;
  }
  
  .md\:w-1\/2 {
    width: 50%;
  }
  
  .md\:justify-end {
    justify-content: flex-end;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .left-8 {
    left: 1rem;
  }
  
  .ml-16 {
    margin-left: 2.5rem;
  }
  
  .space-y-12 > * + * {
    margin-top: 2rem;
  }
  
  .w-8, .h-8 {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .text-xl {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .px-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* CONTACT SECTION */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: auto;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 40%;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: var(--accent-color-light);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 30px;
  height: 30px;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-card p {
  text-align: center;
}

.contact-form-container {
  width: 60%;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--primary-color);
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-color-light);
}

.btn-block {
  width: 100%;
}

/* FOOTER SECTION */
footer {
  background: var(--glass);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer nav {
  position: relative;
  transform: none;
  left: auto;
  top: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 2rem;
  min-width: unset;
  width: 100%;
}

footer .nav-links-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

footer .nav-links {
  gap: 3rem;
  padding: 0;
  margin-bottom: 2rem;
}

footer .nav-links a {
  font-size: 1rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

footer .nav-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-content {
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* MEDIA QUERIES OPTIMISÉES */

/* Large desktop screens */
@media screen and (min-width: 1400px) {
  .projects-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
  }
  
  .technologies-container {
    width: 100%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 1400px) {
  section {
    padding-left: 6rem;
    padding-right: 6rem;
    margin: 0;
  }

  .projects-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  nav {
    min-width: 500px;
    padding: 0.8rem 2rem;
  }
  
  .nav-links {
    gap: 2.5rem;
  }
}

@media screen and (max-width: 1200px) {
  /* SUPPRESSION DE L'ANCIEN CODE - REMPLACÉ PAR NAVIGATION MODERNE */
  .logo {
    margin-right: 1.2rem;
  }

  section {
    margin: 0 4rem;
    height: auto;
    padding: 8rem 0;
    min-height: auto;
  }

  /* ACCUEIL : tout centré en colonne */
  #accueil .section-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
  }

  #accueil .section__pic-container {
    margin: 0 auto;
  }

  #accueil .section__text {
    align-items: center;
    text-align: center;
    margin-top: 2rem;
  }

  /* MENU DÉROULANT MODERNE */
  .menu-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 240px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 20px;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 0;
    text-align: left;
    border: none;
  }
  
  [theme="dark"] .menu-links {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .menu-links.open {
    max-height: 450px;
    padding: 1.5rem 0;
  }

  .menu-links li {
    list-style: none;
    margin: 0;
  }

  .menu-links a {
    display: block;
    text-align: left;
    padding: 16px 24px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
    position: relative;
    letter-spacing: -0.01em;
  }
  
  .menu-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
  }
  
  .menu-links a:hover {
    background: var(--accent-color-light);
    color: var(--accent-color);
    padding-left: 32px;
  }
  
  .menu-links a:hover::before {
    transform: scaleY(1);
  }
  
  .menu-links a:active {
    transform: scale(0.98);
  }

  #accueil {
    flex-direction: column;
    gap: 4rem;
    height: auto;
    padding: 12rem 2rem 6rem 2rem;
  }

  .section__pic-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .section__text {
    align-items: center;
    text-align: center;
  }

  .title {
    text-align: center;
  }

  .section__text__p2 {
    text-align: center;
  }

  #socials-container {
    justify-content: center;
  }

  .btn-container {
    justify-content: center;
  }

  .about-containers {
    flex-wrap: wrap;
  }

  #apropos .section-container {
    flex-direction: column;
  }

  #apropos .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form-container {
    width: 100%;
  }

  .projects-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .mobile-toolbar {
    width: 100vw;
    background: transparent;
    padding: 0.5rem 0;
    margin: 0;
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-height: 56px;
  }
}

@media screen and (min-width: 1201px) {
  .mobile-toolbar {
    display: none !important;
  }
}

@media screen and (max-width: 1200px) {
  .mobile-toolbar {
    display: flex !important;
  }
}

/* Amélioration de l'affichage en mode portrait */
@media screen and (orientation: portrait) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  html,
  body {
    position: relative;
    margin: 0;
    padding: 0;
  }

  section {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .section-container {
    width: 100%;
    flex-direction: column;
  }

  /* Correction pour les projets */
  .projects-container {
    grid-template-columns: 1fr;
    width: 100%;
  }

  /* Ajustements spécifiques pour les petits écrans en portrait */
  .project-card {
    max-width: 100%;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
  }
}

/* Tablettes en mode paysage */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  section {
    margin: 0 4rem;
    padding: 6rem 0;
  }
  
  .section-container {
    gap: 3rem;
  }
  
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .contact-container {
    gap: 2rem;
  }
  
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .contact-card {
    width: calc(50% - 1rem);
  }
  
  .technologies-container {
    gap: 2rem;
  }
  
  .timeline-content {
    padding: 1.8rem;
  }
}

@media screen and (max-width: 800px) {
  section {
    margin: 0;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  #accueil {
    padding: 12rem 2rem 6rem 2rem;
    margin: 0;
  }

  .about-containers,
  .contact-info-upper-container {
    flex-direction: column;
  }

  .contact-info-container {
    margin: 0;
  }

  .title {
    font-size: 3rem;
  }

  .text-container {
    text-align: justify;
  }

  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .project-image {
    height: 220px;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-date {
    width: 60px;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .contact-card {
    width: calc(50% - 0.5rem);
  }
}

/* Mobiles moyens */
@media screen and (min-width: 481px) and (max-width: 768px) {
  section {
    margin: 0 2rem;
    padding: 5rem 0;
  }
  
  #accueil {
    padding: 10rem 2rem 5rem 2rem;
  }
  
  .section__pic-container {
    width: 280px;
    height: 280px;
  }
  
  .title {
    font-size: 3.2rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .contact-card {
    width: calc(50% - 0.5rem);
  }
  
  .btn-container {
    flex-direction: row;
    gap: 1rem;
  }
  
  .btn {
    flex: 1;
    min-width: unset;
  }
}

@media screen and (max-width: 600px) {
  section {
    margin: 0;
    padding-top: 6rem;
    padding-bottom: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #accueil {
    padding: 12rem 1rem 6rem 1rem;
    margin: 0;
  }

  .section__pic-container {
    width: 70vw;
    max-width: 250px;
    min-width: 120px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow);
    background: var(--glass);
    overflow: hidden;
  }
  .section__pic-container img.me {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
  }

  .section__text__p1 {
    font-size: 1.25rem;
    letter-spacing: normal;
  }

  .section__text__p2 {
    font-size: 1.1rem;
    letter-spacing: normal;
  }

  .title {
    font-size: 2.5rem;
    word-wrap: break-word;
    hyphens: auto;
    letter-spacing: -0.01em;
  }

  .btn-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    min-width: 12rem;
  }

  .about-containers {
    gap: 1rem;
  }

  .details-container {
    padding: 1rem;
  }

  .section-container {
    gap: 2.5rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 2rem auto 0;
  }

  .project-image {
    height: 240px;
  }

  .tech-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .project-card .btn-container {
    flex-direction: row;
  }

  .contact-card {
    width: 100%;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  /* Amélioration pour les petits écrans */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Empêche le zoom sur iOS */
  }

  body {
    font-size: 15px;
  }

  html {
    font-size: 95%;
  }

  .project-title {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Taille fixe pour éviter le zoom sur iOS */
    padding: 0.9rem;
  }

  .btn {
    font-size: 0.95rem;
  }

  #hamburger-nav {
    margin-right: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 40px;
  }
  
  /* Menu déroulant adapté pour petits écrans */
  .menu-links {
    width: 200px !important;
    right: 0;
    border-radius: 16px !important;
  }
  
  .menu-links a {
    font-size: 0.9rem !important;
    padding: 14px 20px !important;
  }
}

/* Très petits écrans - Optimisé pour performances */
@media screen and (max-width: 400px) {
  /* Réduction de la complexité visuelle pour améliorer les performances */
  * {
    will-change: auto;
  }
  
  .section__pic-container {
    width: 85vw;
    max-width: 200px;
    min-width: 100px;
    height: auto;
    aspect-ratio: 1/1;
    margin: 0 auto 1rem auto;
  }
  
  /* Optimisation des animations pour les petits écrans */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
  
  /* Réduction des ombres complexes */
  .project-card,
  .contact-card,
  .details-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Optimisation des transitions */
  .btn, .nav-links a, .project-card {
    transition-duration: 0.2s;
  }

  .title {
    font-size: 2rem;
    letter-spacing: normal;
  }

  #socials-container {
    gap: 1rem;
  }

  .icon {
    height: 1.75rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }

  /* Corrections pour empêcher le débordement */
  .technology-name {
    font-size: 0.7rem;
  }

  .technology-item {
    padding: 0.5rem;
  }

  .technology-icon {
    width: 30px;
    height: 30px;
  }

  body {
    font-size: 14px;
  }

  html {
    font-size: 90%;
  }

  .project-description {
    font-size: 0.85rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.85rem;
  }

  .details-container h3 {
    font-size: 1.1rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }

  .contact-card h3 {
    font-size: 1.1rem;
  }
}

/* Support pour les écrans très étroits */
@media screen and (max-width: 320px) {
  .section__pic-container {
    width: 95vw;
    max-width: 180px;
    min-width: 80px;
    height: auto;
    aspect-ratio: 1/1;
    margin: 0 auto 0.5rem auto;
  }

  .title {
    font-size: 1.75rem;
  }

  .btn {
    min-width: 10rem;
    padding: 0.5rem 1rem;
  }

  .technologies-container {
    gap: 0.25rem;
  }

  .menu-links a {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .menu-links {
    width: 180px !important;
    border-radius: 14px !important;
  }
  
  #hamburger-nav {
    margin-right: 0.75rem;
    padding: 0.5rem 0.7rem;
    border-radius: 35px;
  }

  body {
    font-size: 13px;
  }

  html {
    font-size: 85%;
  }
}

/* Ajout de la classe pour animations sur petits appareils */
.project-card.active,
.contact-card.active,
.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animation par défaut pour ces éléments sur appareils mobiles */
@media screen and (max-width: 768px) {
  .project-card,
  .contact-card,
  .timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}

/* --- Modern Contact Form Styles --- */
.form-group.modern {
  position: relative;
  margin-bottom: 2rem;
}
.form-group.modern input,
.form-group.modern textarea {
  width: 100%;
  padding: 1.2rem 1rem 0.6rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-group.modern input:focus,
.form-group.modern textarea:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 0 2px #4f8cff22;
}
.form-group.modern label {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  color: #888;
  font-size: 1rem;
  pointer-events: none;
  background: #fff;
  padding: 0 0.2rem;
  transition: 0.2s;
}
.form-group.modern input:focus + label,
.form-group.modern input:not(:placeholder-shown):not(:focus) + label,
.form-group.modern textarea:focus + label,
.form-group.modern textarea:not(:placeholder-shown):not(:focus) + label {
  top: -0.7rem;
  left: 0.8rem;
  font-size: 0.85rem;
  color: #4f8cff;
  background: #fff;
}
.modern-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #4f8cff, #6a82fb);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #4f8cff22;
  transition: background 0.2s, transform 0.1s;
}
.modern-btn:hover {
  background: linear-gradient(90deg, #6a82fb, #4f8cff);
  transform: translateY(-2px) scale(1.02);
}
.form-status {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  min-height: 1.5em;
  color: #4f8cff;
}
@media (max-width: 600px) {
  .contact-form-container {
    padding: 1rem 0.5rem;
  }
  .form-group.modern input,
  .form-group.modern textarea {
    font-size: 0.98rem;
    padding: 1rem 0.7rem 0.5rem 0.7rem;
  }
  .form-group.modern label {
    left: 0.7rem;
    top: 0.9rem;
    font-size: 0.98rem;
  }
}

/* Focus visible pour l'accessibilité */
a:focus,
button:focus,
.icon:focus {
  outline: 2px solid #4f8cff;
  outline-offset: 2px;
}

/* Responsive nav et sections */
@media (max-width: 900px) {
  .section-container {
    flex-direction: column;
    align-items: center;
  }
  .section__pic-container,
  .about-details-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
  }
  .technologies-container {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 1.2rem;
  }
  .section__text {
    text-align: center;
  }
  .btn-container {
    flex-direction: column;
    gap: 1rem;
  }
  .project-card,
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-image,
  .project-content {
    width: 100%;
    max-width: 100%;
  }
  .contact-info,
  .contact-form-container {
    width: 100%;
    max-width: 100%;
  }
}

/* Champ honeypot caché */
input[name="_honey"] {
  display: none !important;
}

.subtitle {
  font-size: 1.2rem;
  color: #4f8cff;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Écrans ultra-larges et 4K */
@media screen and (min-width: 1920px) {
  section {
    margin: 0 auto;
    max-width: 1600px;
  }
  
  #accueil {
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 8rem;
  }
  
  nav {
    max-width: 800px;
  }
  
  .projects-container {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 3rem;
  }
  
  .contact-container {
    width: 100%;
  }
  
  .title {
    font-size: 5rem;
  }
  
  .section__pic-container {
    width: 450px;
    height: 450px;
  }
}

/* Mode paysage pour mobiles */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #accueil {
    height: auto;
    min-height: auto;
    padding: 4rem 2rem 2rem 2rem;
  }
  
  .section__pic-container {
    width: 200px;
    height: 200px;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .section__text__p1 {
    font-size: 1.1rem;
  }
  
  .section__text__p2 {
    font-size: 1.3rem;
  }
}

/* Support pour les écrans pliables */
@media screen and (min-width: 540px) and (max-width: 720px) and (orientation: portrait) {
  .projects-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .contact-info {
    flex-direction: column;
  }
  
  .contact-card {
    width: 100%;
  }
}

/* Amélioration pour les appareils avec encoche */
@supports (padding-top: env(safe-area-inset-top)) {
  .mobile-toolbar {
    padding-top: env(safe-area-inset-top);
  }
}

/* Classe dynamique pour mobile en mode paysage */
.mobile-landscape #accueil {
  height: auto;
  min-height: auto;
  padding: 2rem 1rem;
}

.mobile-landscape .section__pic-container {
  width: 150px;
  height: 150px;
}

.mobile-landscape .title {
  font-size: 2rem;
}

.mobile-landscape .btn-container {
  flex-direction: row;
  gap: 0.5rem;
}

.mobile-landscape .btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

/* Optimisation des performances pour appareils lents */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .section__pic-container {
    animation: none !important;
  }
}

/* Mode économie d'énergie */
@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .project-card:hover,
  .contact-card:hover {
    transform: none !important;
  }
}

/* Support pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .icon,
  .technology-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Classes de marge supplémentaires */
.mb-16 {
  margin-bottom: 4rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Max-width classes */
.max-w-lg {
  max-width: 32rem;
}

.max-w-sm {
  max-width: 24rem;
}

/* Responsive utility classes */
.hidden {
  display: none;
}

/* Mobile-first responsive design */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:hidden {
    display: none;
  }
}

/* Grid classes */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Additional spacing */
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Background classes */
.bg-background-100 {
  background-color: rgba(248, 250, 252, 1);
}

[theme="dark"] .bg-background-100,
.dark .bg-background-100 {
  background-color: rgba(15, 23, 42, 1);
}

.bg-background-900 {
  background-color: rgba(15, 23, 42, 1);
}

[theme="dark"] .bg-background-900,
.dark .bg-background-900 {
  background-color: rgba(2, 6, 23, 1);
}

/* Background classes pour mobile */
.bg-background-50 {
  background-color: rgba(248, 250, 252, 0.5);
}

[theme="dark"] .bg-background-50,
.dark .bg-background-50 {
  background-color: transparent;
}

.bg-background-800 {
  background-color: rgba(30, 41, 59, 0.5);
}

[theme="dark"] .bg-background-800,
.dark .bg-background-800 {
  background-color: transparent;
}

/* Classes manquantes */
.bg-transparent {
  background-color: transparent;
}

.border-border-50 {
  border-color: rgba(148, 163, 184, 0.1);
}

[theme="dark"] .border-border-50,
.dark .border-border-50 {
  border-color: rgba(71, 85, 105, 0.2);
}

/* Classes pour le nouveau formulaire de contact */
.text-primary {
  color: var(--accent-color);
}

[theme="dark"] .text-primary,
.dark .text-primary {
  color: var(--accent-color);
}

.bg-primary {
  background-color: var(--accent-color);
}

.bg-primary\/10 {
  background-color: rgba(59, 130, 246, 0.1);
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(59, 130, 246, 0.9);
}

.text-green-600 {
  color: #059669;
}

.text-red-600 {
  color: #dc2626;
}

.text-blue-600 {
  color: #2563eb;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-green-100 {
  background-color: #dcfce7;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

[theme="dark"] .bg-green-50,
.dark .bg-green-50 {
  background-color: rgba(5, 150, 105, 0.1);
}

[theme="dark"] .bg-green-100,
.dark .bg-green-100 {
  background-color: rgba(5, 150, 105, 0.2);
}

[theme="dark"] .bg-blue-50,
.dark .bg-blue-50 {
  background-color: rgba(37, 99, 235, 0.1);
}

[theme="dark"] .bg-blue-100,
.dark .bg-blue-100 {
  background-color: rgba(37, 99, 235, 0.2);
}

.border-green-200 {
  border-color: #bbf7d0;
}

[theme="dark"] .border-green-200,
.dark .border-green-200 {
  border-color: rgba(5, 150, 105, 0.3);
}

.hover\:bg-green-100:hover {
  background-color: #dcfce7;
}

[theme="dark"] .hover\:bg-green-100:hover,
.dark .hover\:bg-green-100:hover {
  background-color: rgba(5, 150, 105, 0.2);
}

/* Animation du spinner de chargement */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Classes utilitaires supplémentaires */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Styles pour les inputs du formulaire */
input:focus,
textarea:focus {
  outline: none;
}

/* Dark mode pour les inputs */
[theme="dark"] input,
[theme="dark"] textarea,
.dark input,
.dark textarea {
  background-color: rgba(55, 65, 81, 1);
  border-color: rgba(75, 85, 99, 1);
  color: white;
}

[theme="dark"] input::placeholder,
[theme="dark"] textarea::placeholder,
.dark input::placeholder,
.dark textarea::placeholder {
  color: rgba(156, 163, 175, 1);
}

/* ============================================
   NOUVEAU DESIGN MODERNE POUR LE CONTACT
   ============================================ */

/* Container principal du contact */
.contact-modern-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .contact-modern-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

/* ============================================
   FORMULAIRE DE CONTACT MODERNE
   ============================================ */

.contact-form-modern {
  background: var(--card-background);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-form-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* En-tête du formulaire */
.contact-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--accent-color-light);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.contact-form-header h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.contact-form-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Contenu du formulaire */
.contact-form-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Ligne de formulaire (pour les champs côte à côte) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Groupes de champs modernes */
.form-group-modern {
  position: relative;
}

.form-group-modern label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-group-modern input,
.form-group-modern textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--input-border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--input-background);
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 
    0 0 0 3px var(--accent-color-light),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.form-group-modern input::placeholder,
.form-group-modern textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group-modern textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Bouton de soumission moderne */
.btn-submit-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-top: 1rem;
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 25px -5px rgba(59, 130, 246, 0.4),
    0 10px 10px -5px rgba(59, 130, 246, 0.3);
}

.btn-submit-modern:active {
  transform: translateY(0);
}

.btn-submit-modern:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-loader {
  display: none;
}

.btn-submit-modern.loading .btn-text,
.btn-submit-modern.loading .btn-icon {
  display: none;
}

.btn-submit-modern.loading .btn-loader {
  display: block;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Message de statut */
.form-status-message {
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-status-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 2px solid rgba(16, 185, 129, 0.2);
  display: block;
}

.form-status-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 2px solid rgba(239, 68, 68, 0.2);
  display: block;
}

/* ============================================
   INFORMATIONS DE CONTACT MODERNES
   ============================================ */

.contact-info-modern {
  background: var(--card-background);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-info-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
}

/* En-tête des infos */
.contact-info-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--secondary-color-light);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.contact-info-header h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.contact-info-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Méthodes de contact */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--section-background);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color-light);
}

/* Icônes des méthodes */
.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.email-method .method-icon {
  background: rgba(59, 130, 246, 0.1);
}

.whatsapp-method .method-icon {
  background: rgba(34, 197, 94, 0.1);
}

.location-method .method-icon {
  background: rgba(168, 85, 247, 0.1);
}

.method-icon .icon {
  width: 28px;
  height: 28px;
}

.whatsapp-icon svg {
  width: 28px;
  height: 28px;
  color: #25c55e;
}

/* Contenu des méthodes */
.method-content {
  flex: 1;
}

.method-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.method-content a,
.phone-number,
.location-text {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.method-content a:hover {
  text-decoration: underline;
}

.method-note {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* WhatsApp spécial styling */
.whatsapp-method:hover {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

.whatsapp-method .phone-number {
  color: #059669;
}

/* Mode sombre */
[theme="dark"] .contact-form-modern,
[theme="dark"] .contact-info-modern {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[theme="dark"] .contact-method {
  background: rgba(55, 65, 81, 0.5);
}

[theme="dark"] .contact-method:hover {
  background: rgba(75, 85, 99, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-modern,
  .contact-info-modern {
    padding: 1.5rem;
  }
  
  .contact-form-header,
  .contact-info-header {
    margin-bottom: 1.5rem;
  }
  
  .contact-method {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .method-icon {
    width: 48px;
    height: 48px;
  }
  
  .method-icon .icon {
    width: 24px;
    height: 24px;
  }
}

/* ============================
   BOUTON SCROLL TO TOP
   ============================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px) scale(1.05);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}



