@tailwind base;
@tailwind components;
@tailwind utilities;

/* Variables CSS */
:root {
  --primary: #1e293b;
  --secondary: #334155;
  --accent: #10b981;
  --accent-dark: #047857;
  --accent-light: #34d399;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Styles de base */
* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVIGATION ===== */
.nav-link {
  @apply text-white/80 hover:text-accent transition-all duration-300 relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== PARTICULES ANIMÉES ===== */
.particle {
  position: absolute;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.particle-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.particle-3 {
  width: 40px;
  height: 40px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.particle-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 30%;
  animation-delay: 1s;
}

.particle-5 {
  width: 20px;
  height: 20px;
  top: 30%;
  left: 50%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.8;
  }
}

/* ===== ANIMATIONS KEYFRAMES ===== */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===== BOUTONS HERO ===== */
.hero-btn-primary {
  @apply px-8 py-4 bg-accent text-white font-semibold rounded-full relative overflow-hidden transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-accent/25;
}

.hero-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-secondary {
  @apply px-8 py-4 border-2 border-accent text-accent font-semibold rounded-full transition-all duration-300 hover:bg-accent hover:text-white hover:scale-105;
}

/* ===== LIENS SOCIAUX ===== */
.social-link {
  @apply w-12 h-12 rounded-full border-2 border-accent/30 flex items-center justify-center text-accent/80 hover:text-accent hover:bg-accent hover:border-accent transition-all duration-300 hover:scale-110;
}

/* ===== TITRES DE SECTION ===== */
.section-title {
  @apply text-4xl md:text-5xl font-black text-center;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== CARTES STATISTIQUES ===== */
.stats-card {
  @apply bg-primary/40 backdrop-blur border border-accent/20 rounded-2xl p-6 text-center hover:border-accent/40 transition-all duration-300 hover:transform hover:scale-105;
}

/* ===== BARRES DE COMPÉTENCES ===== */
.skill-item {
  @apply mb-6;
}

.skill-bar {
  @apply w-full bg-primary/50 rounded-full h-3 overflow-hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.skill-progress {
  @apply h-full bg-gradient-to-r from-accent to-accent-light rounded-full transition-all duration-1000 ease-out;
  animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
  from { width: 0; }
}

/* ===== TIMELINE ===== */
.timeline-section {
  @apply relative;
}

.timeline-item {
  @apply relative mb-16;
}

.timeline-left .timeline-content {
  @apply md:mr-auto md:ml-0 md:text-right md:pr-16;
}

.timeline-right .timeline-content {
  @apply md:ml-auto md:mr-0 md:text-left md:pl-16;
}

.timeline-content {
  @apply max-w-lg mx-auto md:mx-0 relative;
}

.timeline-icon {
  @apply absolute top-0 left-1/2 transform -translate-x-1/2 w-12 h-12 bg-accent text-white rounded-full flex items-center justify-center font-bold text-lg z-10 hidden md:flex;
  box-shadow: 0 0 0 4px var(--primary), 0 0 0 8px var(--accent);
}

.timeline-left .timeline-icon {
  @apply md:left-full md:ml-6;
}

.timeline-right .timeline-icon {
  @apply md:right-full md:mr-6 md:left-auto;
}

.timeline-card {
  @apply bg-primary/60 backdrop-blur border border-accent/20 rounded-2xl p-6 hover:border-accent/40 transition-all duration-300 hover:transform hover:scale-105 hover:shadow-xl hover:shadow-accent/10;
}

.timeline-card:hover {
  box-shadow: 0 20px 40px rgba(var(--accent-rgb), 0.1);
}

/* ===== CARTES D'ACTIVITÉS ===== */
.activity-card {
  @apply bg-primary/50 backdrop-blur border border-accent/20 rounded-2xl p-8 hover:border-accent/40 transition-all duration-300 hover:transform hover:scale-105 hover:shadow-xl;
}

.activity-header {
  @apply flex items-center gap-4 mb-4;
}

.skill-tag {
  @apply px-3 py-1 bg-accent/20 text-accent text-xs rounded-full border border-accent/30;
}

/* ===== CARTES DE CONTACT ===== */
.contact-card {
  @apply bg-primary/60 backdrop-blur border border-accent/20 rounded-2xl p-8 text-center hover:border-accent/40 transition-all duration-300 hover:transform hover:scale-105 hover:shadow-xl hover:shadow-accent/10;
}

.contact-icon {
  @apply w-16 h-16 mx-auto mb-4 bg-accent/20 rounded-full flex items-center justify-center text-accent text-2xl group-hover:bg-accent group-hover:text-white transition-all duration-300;
}

/* ===== MACHINE À ÉCRIRE ===== */
#typewriter {
  min-height: 1.5em;
}

/* ===== RESPONSIVE TIMELINE ===== */
@media (max-width: 768px) {
  .timeline-left,
  .timeline-right {
    @apply text-left;
  }
  
  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    @apply pr-0 pl-0 ml-0 mr-0;
  }
  
  .timeline-card {
    @apply ml-8;
  }
  
  .timeline-item::before {
    content: '';
    @apply absolute left-0 top-2 w-4 h-4 bg-accent rounded-full;
  }
}

/* ===== ANIMATIONS D'ENTRÉE ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* ===== SÉLECTION DE TEXTE ===== */
::selection {
  background: var(--accent);
  color: var(--primary);
}

::-moz-selection {
  background: var(--accent);
  color: var(--primary);
}

/* ===== EFFETS GLASSMORPHISM ===== */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ANIMATIONS SUBTILES ===== */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
}

/* ===== UTILITAIRES SUPPLÉMENTAIRES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-gradient {
  border-image: linear-gradient(135deg, var(--accent) 0%, #047857 100%) 1;
}

/* ===== AMÉLIORATION DES PERFORMANCES ===== */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

/* ===== ANIMATIONS AU SCROLL ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================
   PORTFOLIO ROBIN MESSERLI - CSS MODERNE
   ===================================== */

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0e1a40;
}

::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Selection */
::selection {
  background: #10b981;
  color: #0e1a40;
}

/* =======================================
   NAVIGATION ULTRA-MODERNE
   ======================================= */

.nav-item {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-item-mobile {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.nav-item-mobile:hover {
  color: #10b981;
  padding-left: 1rem;
}

/* =======================================
   HERO SECTION EXCEPTIONNELLE
   ======================================= */

.geometric-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #10b981, transparent);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 15%;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #10b981, transparent);
  border-radius: 50%;
  animation-delay: -2s;
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 80px;
  height: 80px;
  background: linear-gradient(225deg, #10b981, transparent);
  transform: rotate(45deg);
  animation-delay: -4s;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent);
  animation: orbit 20s linear infinite;
}

.orb-1 {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 20%;
  animation-delay: 0s;
}

.orb-2 {
  width: 40px;
  height: 40px;
  bottom: 30%;
  left: 30%;
  animation-delay: -7s;
}

.orb-3 {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 10%;
  animation-delay: -14s;
}

/* Profile container avec effet 3D */
.profile-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.profile-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.ring-2 {
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  animation-delay: -0.5s;
}

.ring-3 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  animation-delay: -1s;
}

.profile-image-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #10b981;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
}

.profile-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border: 3px solid #0e1a40;
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Titre héro avec effet */
.hero-text {
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero-text-glow {
  background: linear-gradient(135deg, #10b981, #047857);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.5));
  animation: text-glow 2s ease-in-out infinite alternate;
}

/* Machine à écrire */
.typewriter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.cursor {
  color: #10b981;
  animation: blink 1s infinite;
  margin-left: 2px;
  font-weight: 300;
}

/* Description héro */
.hero-description {
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.8s ease-out 0.5s forwards;
}

/* Statistiques */
.stat-card {
  background: rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Boutons CTA modernes */
.cta-primary {
  position: relative;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #0e1a40;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.cta-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #047857, #10b981);
  transition: left 0.3s ease;
  z-index: 0;
}

.cta-primary:hover .cta-bg {
  left: 0;
}

.cta-secondary {
  background: transparent;
  color: #10b981;
  font-weight: 600;
  padding: 1rem 2rem;
  border: 2px solid #10b981;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #10b981;
  color: #0e1a40;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Réseaux sociaux avec style */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: #10b981;
  color: #0e1a40;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.social-icon.linkedin:hover {
  background: #0077b5;
  color: white;
}

.social-icon.email:hover {
  background: #ea4335;
  color: white;
}

.social-icon.github:hover {
  background: #333;
  color: white;
}

/* Scroll indicator sophistiqué */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-wheel {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(16, 185, 129, 0.6);
  border-radius: 25px;
  position: relative;
}

.scroll-wheel::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

.scroll-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =======================================
   SECTIONS COMMUNES
   ======================================= */

.section-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #10b981);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #047857);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* =======================================
   PROFIL PROFESSIONNEL
   ======================================= */

.profile-card {
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.8), rgba(26, 43, 92, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding-bottom: 1rem;
}

.profile-card-content {
  line-height: 1.7;
}

.strength-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.strength-item:hover {
  background: rgba(16, 185, 129, 0.1);
  transform: translateX(5px);
}

.strength-item i {
  font-size: 1.25rem;
}

.strength-item span {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Compétences visuelles */
.skills-visual-card,
.certifications-card {
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.8), rgba(26, 43, 92, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skills-radar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Certifications */
.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.cert-item:hover {
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.cert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
  color: #10b981;
  font-size: 1.5rem;
}

.cert-info {
  flex: 1;
}

.cert-title {
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.cert-institution {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.cert-status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cert-status.current {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cert-status.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* =======================================
   COMPÉTENCES TECHNIQUES
   ======================================= */

.skill-category-card {
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.8), rgba(26, 43, 92, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(16, 185, 129, 0.3);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.skill-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
  color: #10b981;
  font-size: 1.5rem;
}

.skill-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.skill-category-content {
  space-y: 1rem;
}

.skill-progress-item {
  margin-bottom: 1rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.skill-bar-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #047857);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-out;
}

.skill-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
  min-width: 3rem;
  text-align: right;
}

/* Technologies grid */
.tech-stack-section {
  margin-top: 3rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.8), rgba(26, 43, 92, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tech-item:hover {
  transform: translateY(-5px);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.tech-item i {
  font-size: 2.5rem;
  color: #10b981;
  transition: all 0.3s ease;
}

.tech-item:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.tech-item span {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-align: center;
}

/* Tooltip pour les technologies */
.tech-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 26, 64, 0.95);
  color: #10b981;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* =======================================
   TIMELINE RÉVOLUTIONNAIRE
   ======================================= */

.experience-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #10b981, rgba(16, 185, 129, 0.3));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(50px);
  animation: slide-up 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(14, 26, 64, 0.9), rgba(26, 43, 92, 0.9));
  border: 4px solid #10b981;
  border-radius: 50%;
  color: #10b981;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(10px);
}

.timeline-icon.current {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #0e1a40;
  animation: glow 2s ease-in-out infinite alternate;
}

.timeline-year {
  margin-top: 1rem;
  background: rgba(14, 26, 64, 0.9);
  color: #10b981;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(10px);
}

.timeline-content {
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
  right: 0;
  margin-left: 55%;
  padding-left: 3rem;
}

.timeline-card {
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.9), rgba(26, 43, 92, 0.6));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(16, 185, 129, 0.4);
}

.timeline-card.featured {
  border: 2px solid #10b981;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.timeline-meta {
  flex: 1;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: #10b981;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-period {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.timeline-status {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-status.current {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

.timeline-status.completed {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.timeline-status {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.timeline-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-achievements {
  margin-bottom: 1rem;
}

.achievement {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Timeline responsive */
@media (max-width: 768px) {
  .experience-timeline::before {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
    transform: none;
  }

  .timeline-icon {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    padding-left: 2rem !important;
    padding-right: 0 !important;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
  }
}

/* =======================================
   PROJETS & RÉALISATIONS
   ======================================= */

.project-card {
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.9), rgba(26, 43, 92, 0.6));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(16, 185, 129, 0.4);
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.project-meta {
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.project-company {
  color: #10b981;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-type {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.project-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =======================================
   CONTACT MODERNE
   ======================================= */

.contact-method {
  display: block;
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.9), rgba(26, 43, 92, 0.6));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  group: true;
}

.contact-method:hover {
  transform: translateY(-5px);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 1.5rem;
  color: #10b981;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
  background: #10b981;
  color: #0e1a40;
  transform: scale(1.1);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-details {
  color: #10b981;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-cta {
  color: white;
}

/* CTA final */
.final-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(145deg, rgba(14, 26, 64, 0.8), rgba(26, 43, 92, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =======================================
   FOOTER MODERNE
   ======================================= */

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.footer-social:hover {
  background: #10b981;
  color: #0e1a40;
  transform: translateY(-3px);
}

/* =======================================
   ANIMATIONS & KEYFRAMES
   ======================================= */

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

@keyframes glow {
  0% { 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); 
    filter: brightness(1);
  }
  100% { 
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.6); 
    filter: brightness(1.1);
  }
}

@keyframes text-glow {
  0% {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 30px rgba(16, 185, 129, 0.4);
  }
}

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

@keyframes scale-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes scroll-wheel {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 28px;
    opacity: 0;
  }
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */

@media (max-width: 1024px) {
  .hero-text, .hero-text-glow {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .profile-container {
    width: 160px;
    height: 160px;
  }
  
  .profile-image-wrapper {
    width: 120px;
    height: 120px;
    margin: 20px auto;
  }
}

@media (max-width: 768px) {
  .hero-text, .hero-text-glow {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .cta-primary, .cta-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .skill-category-card {
    padding: 1.5rem;
  }
  
  .project-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .final-cta {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-text, .hero-text-glow {
    font-size: 2.5rem;
  }
  
  .typewriter-container {
    font-size: 1.25rem;
  }
  
  .profile-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  
  .tech-item {
    padding: 1rem;
  }
  
  .tech-item i {
    font-size: 2rem;
  }
}

/* Animations d'entrée pour les éléments */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
}

/* Optimisations GPU */
.profile-container,
.timeline-card,
.project-card,
.skill-category-card,
.tech-item {
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Effets de ripple pour les boutons */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Performance et accessibilité */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== AMÉLIORATIONS MOBILE SUPPLÉMENTAIRES ===== */
@media (max-width: 640px) {
  /* Navigation mobile */
  .nav-item-mobile {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    font-size: 1.125rem;
  }
  
  /* Touch targets plus grands */
  button, .nav-item, .social-icon {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Espacement vertical réduit */
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Cartes empilées */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  /* Texte plus lisible */
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* Amélioration des formulaires */
  input, textarea, select {
    font-size: 16px; /* Évite le zoom sur iOS */
    padding: 0.75rem;
  }
  
  /* TIMELINE MOBILE - REFONTE COMPLÈTE */
  .experience-timeline {
    position: relative !important;
    padding: 0 !important;
  }
  
  .experience-timeline::before {
    display: none !important; /* Supprime la ligne centrale */
  }
  
  .timeline-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    position: relative !important;
  }
  
  .timeline-marker {
    display: none !important; /* Supprime les marqueurs complexes */
  }
  
  .timeline-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
  }
  
  .timeline-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem 1rem !important;
    background: rgba(51, 65, 85, 0.8) !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  .timeline-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: #10b981 !important;
  }
  
  .timeline-card-header {
    display: block !important;
    text-align: left !important;
    margin-bottom: 1rem !important;
  }
  
  .company-logo {
    display: none !important; /* Simplifie sur mobile */
  }
  
  .timeline-meta {
    text-align: left !important;
  }
  
  .timeline-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  .timeline-company {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.25rem !important;
  }
  
  .timeline-period {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 1rem !important;
  }
  
  .timeline-status {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.5rem !important;
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border: 1px solid #10b981 !important;
  }
  
  .timeline-description {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 1rem !important;
  }
  
  .timeline-achievements .achievement {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1rem !important;
    position: relative !important;
  }
  
  .timeline-achievements .achievement::before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    color: #10b981 !important;
    font-weight: bold !important;
  }
  
  .timeline-skills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }
  
  .skill-tag {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Titre encore plus petit pour très petits écrans */
  .hero-text, .hero-text-glow {
    font-size: 2rem !important;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  /* Cartes de contact en pile */
  .contact-method {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Timeline encore plus compacte */
  .timeline-card {
    padding: 1rem 0.75rem !important;
  }
  
  .timeline-title {
    font-size: 1rem !important;
  }
  
  .timeline-description {
    font-size: 0.8rem !important;
  }
  
  .timeline-status {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 0.5rem !important;
  }
}

/* CORRECTIONS GLOBALES ANTI-DÉBORDEMENT */
* {
  max-width: 100%;
  box-sizing: border-box;
}

.timeline-card, .timeline-content, .timeline-meta {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Assurer qu'aucun élément ne dépasse */
@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    max-width: 100%;
  }
  
  .timeline-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .timeline-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
