* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Canvas pour particules */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
#navbar .logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar .logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(0) invert(0.9) sepia(1) saturate(5) hue-rotate(120deg);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 1.2rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(16px) saturate(200%);
    border-bottom-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    position: relative;
}

/* Liens de navigation standards */
nav a:not(.all-projects-button):not(.chat-button):not(.accessibility-button) {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

nav a:not(.all-projects-button):not(.chat-button):not(.accessibility-button)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(74, 222, 128, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

nav a:not(.all-projects-button):not(.chat-button):not(.accessibility-button):hover::before {
    opacity: 1;
}

nav a:not(.all-projects-button):not(.chat-button):not(.accessibility-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #4ade80);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav a:not(.all-projects-button):not(.chat-button):not(.accessibility-button):hover::after {
    width: 80%;
}

/* Container pour texte et icône */
.nav-home,
.nav-contact,
.nav-about,
.nav-formations,
.nav-experience,
.nav-projects,
.nav-skills,
.nav-interests {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

/* Texte visible par défaut */
.nav-home .text,
.nav-contact .text,
.nav-about .text,
.nav-formations .text,
.nav-experience .text,
.nav-projects .text,
.nav-skills .text,
.nav-interests .text {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

/* Icône cachée par défaut */
.nav-home .icon,
.nav-contact .icon,
.nav-about .icon,
.nav-formations .icon,
.nav-experience .icon,
.nav-projects .icon,
.nav-skills .icon,
.nav-interests .icon {
    position: absolute;
    display: none;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4ade80;
}

/* Hover state - Animation icône */
.nav-home:hover,
.nav-contact:hover,
.nav-about:hover,
.nav-formations:hover,
.nav-experience:hover,
.nav-projects:hover,
.nav-skills:hover,
.nav-interests:hover {
    color: #4ade80;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(99, 102, 241, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.15);
}

/* Au survol : texte disparaît, icône apparaît */
.nav-home:hover .text,
.nav-contact:hover .text,
.nav-about:hover .text,
.nav-formations:hover .text,
.nav-experience:hover .text,
.nav-projects:hover .text,
.nav-skills:hover .text,
.nav-interests:hover .text {
    opacity: 0;
    transform: translateY(10px);
    display: none;
}

.nav-home:hover .icon,
.nav-contact:hover .icon,
.nav-about:hover .icon,
.nav-formations:hover .icon,
.nav-experience:hover .icon,
.nav-projects:hover .icon,
.nav-skills:hover .icon,
.nav-interests:hover .icon {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
}

/* Bouton "Tous mes projets" - Version originale corrigée */
.all-projects-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
    font-size: 0.9rem;
}

.all-projects-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.all-projects-button i {
    font-size: 1rem;
}

.all-projects-button .button-text {
    white-space: nowrap;
}

/* Bouton chat - Version originale corrigée */
.chat-button {
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
    width: 40px;
    height: 40px;
}

.chat-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399, #6ee7b7);
}

/* Bouton accessibilité - Version originale corrigée */
.accessibility-button {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
    width: 40px;
    height: 40px;
}

.accessibility-button:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.accessibility-button .tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.accessibility-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
}

.accessibility-button i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    nav ul {
        gap: 1rem;
    }
    
    nav a:not(.all-projects-button):not(.chat-button):not(.accessibility-button) {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .all-projects-button .button-text {
        display: none;
    }
    
    .all-projects-button {
        padding: 0.6rem;
        min-width: auto;
    }
    
    .all-projects-button i {
        margin: 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: space-between;
    }
    
    nav li:nth-child(n+9) {
        order: 1;
    }
    
    .all-projects-button,
    .chat-button,
    .accessibility-button {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
    }
    
    .chat-button img {
        width: 18px;
        height: 18px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}



.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}




/* Timeline horizontale */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
    padding: 40px 0;
}

/* Ligne horizontale centrale */
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top:12%;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #1e3a8a);
    border-radius: 2px;
    z-index: 1;
}

/* Chaque item */
.timeline-horizontal .timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
}

/* Contenu */
.timeline-horizontal .timeline-content {
    background: rgba(138, 43, 226, 0.08);;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.9);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}
.timeline-horizontal .timeline-content:hover {
    transform: translateY(-8px);
}

/* Titre de formation */
.formation-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

/* Dates */
.timeline-horizontal .date {
    font-size: 0.9rem;
    color: #555;
    margin-top: 6px;
    font-style: italic;
}

.formation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a; /* bleu foncé */
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: inline-block;
    border: 1px solid rgba(30, 144, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, 
        #6366f1 0%, 
        #8b5cf6 20%, 
        #d946ef 40%, 
        #4ade80 60%, 
        #22d3ee 80%, 
        #10b981 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    line-height: 1.1;
    animation: gradientShift 8s ease infinite;
    padding: 0 1rem;
}

.section-title::before {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    z-index: -1;
    opacity: 0.7;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6366f1 20%, 
        #4ade80 80%, 
        transparent 100%
    );
    border-radius: 4px;
    animation: linePulse 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes linePulse {
    0%, 100% {
        width: 100px;
        opacity: 0.6;
    }
    50% {
        width: 150px;
        opacity: 1;
    }
}
/* Gros bloc englobant */
.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Effet de fond animé */
.about-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Zone photo */
.about-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.about-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 5px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.about-name {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
  letter-spacing: 0.5px;
}

/* Zone infos - Grid */
.about-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  z-index: 1;
}

/* Cartes individuelles */
.about-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.about-card h3 svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.about-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.5;
}

.about-card a {
    color: #110054;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.about-card a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-photo img {
    width: 180px;
    height: 180px;
  }
  
  .about-name {
    font-size: 1.2rem;
  }
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 20px;
    border-left: none;
}

/* Ligne verticale avec dégradé et effet brillant */
.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        #0ea5e9 0%, 
        #1e3a8a 30%, 
        #3b82f6 60%, 
        #60a5fa 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.4);
}

/* Cercles animés sur la ligne */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.7rem;
    top: 1rem;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #60a5fa 0%, #1e3a8a 70%);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 
        0 0 0 4px rgba(30, 58, 138, 0.2),
        0 4px 12px rgba(30, 58, 138, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

/* Animation au survol avec rotation */
.timeline-item:hover::before {
    transform: scale(1.3) rotate(360deg);
    box-shadow: 
        0 0 0 6px rgba(59, 130, 246, 0.3),
        0 6px 20px rgba(30, 58, 138, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* Pulse uniquement au survol du premier élément */
.timeline-item:first-child:hover::before {
    animation: timelinePulse 0.6s ease-in-out;
}

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(59, 130, 246, 0.7),
            0 6px 20px rgba(30, 58, 138, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 0 0 15px rgba(59, 130, 246, 0),
            0 6px 20px rgba(30, 58, 138, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
}

/* Sous-titres (Stages, Intérim) */
.experience-subtitle {
    font-size: 1.8rem;                
    font-weight: 700;                 
    color: #ffffff;                   
    text-transform: uppercase;        
    letter-spacing: 2px;              
    margin: 50px 0 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    transition: all 0.4s ease;
}

/* Ligne décorative sous le titre */
.experience-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
    border-radius: 2px;
    transition: width 0.4s ease, background 0.4s ease;
}

/* Effet au survol */
.experience-subtitle:hover {
    color: #60a5fa;
    letter-spacing: 3px;
    transform: translateX(5px);
}

.experience-subtitle:hover::after {
    width: 110%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #1e3a8a);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Animation d'apparition au scroll */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-subtitle {
    animation: slideInLeft 0.6s ease-out;
}

#experience .section-title::after {
    content: '';
    display: block;
    width: 750px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 3px;
}


/* Contenu des cartes */
.timeline-content {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.experience-icon {
    width: 100px;    
    height: 100px;   
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    float: right;
    margin-left: 15px;
    margin-top: 25px;
    padding: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%); /* Dégradé subtil violet très clair */
    border: 3px solid #b19cd9;
    box-shadow: 0 4px 12px rgba(177, 156, 217, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Courbe d'animation plus fluide */
    position: relative; /* Pour d'éventuels effets supplémentaires */
}

.experience-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(177, 156, 217, 0.45); /* Ombre encore plus prononcée */
    border-color: #9370db;
    background: linear-gradient(135deg, #ffffff 0%, #f0ebff 100%); /* Dégradé légèrement plus prononcé au survol */
}

/* Effet de brillance subtile (optionnel) */
.experience-icon::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none; /* Pour ne pas bloquer les clics */
    opacity: 0.5;
}

/* Animation subtile au chargement  */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.experience-icon {
    animation: fadeInScale 0.5s ease-out; /* L'icône apparaît en douceur */
}

/* Responsive : réduction de taille sur petits écrans */
@media (max-width: 768px) {
    .experience-icon {
        width: 80px;
        height: 80px;
        margin-top: 15px;
        margin-left: 10px;
    }
}

.timeline-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(30, 144, 255, 0.25); 
    color: white;          
    font-weight: bold;
    font-size: 0.8rem;       
    padding: 5px 12px;       
    border-radius: 25px;     
    border: 1.5px solid rgba(30, 144, 255, 0.5); 
    backdrop-filter: blur(2px); 
    box-shadow: 0 0 6px rgba(30, 144, 255, 0.2); 
}


.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark);
    box-shadow: 0 0 20px var(--primary);
}



#education .timeline-item {
    position: relative;
    display: flex;
    justify-content: center; 
}

#education .timeline-item::before {
    content: '';
    position: absolute;
    top: 0px; 
    left: 50%;  
    transform: translateX(-50%); 
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark);
    box-shadow: 0 0 20px var(--primary);
    z-index: 3;
}

.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 12%;
    left: 0;
    right: 0;
    width: 112%;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #1e3a8a);
    border-radius: 2px;
    z-index: 1;
}


.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 40px; /* Plus de padding à gauche pour l'icône */
    background: rgba(236, 72, 153, 0.1); 
    border-radius: 20px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 36px;
}

/* Icône Font Awesome calendrier */
.timeline-content .date::before {
    content: '\f073'; /* fa-calendar-alt */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--accent);
    transition: all 0.2s ease;
}

/* Effet hover optionnel */
.timeline-content .date:hover::before {
    transform: translateY(-50%) scale(1.1);
}

.timeline-content .date:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(236, 72, 153, 0.2);
    transition: all 0.3s ease;
}

.timeline-content .lieu {
    color: #0e7f96;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 32px; /* Ajusté pour l'icône */
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    border: 1px dashed rgba(11, 108, 199, 0.4);
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 30px;
}

/* Icône Font Awesome pour lieu */
.timeline-content .lieu::before {
    content: '\f3c5'; /* fa-map-marker-alt */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #0e7f96;
    transition: all 0.2s ease;
}

.timeline-content .lieu:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content .lieu:hover::before {
    color: #10b981;
    transform: translateY(-50%) scale(1.1);
}


.timeline-content .entreprise {
    color: #2563eb; /* Bleu légèrement plus foncé */
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 36px; /* Plus de padding à gauche pour l'icône */
    background: rgba(37, 99, 235, 0.06);
    border-radius: 6px;
    border: 1px dotted rgba(37, 99, 235, 0.4); /* Pointillés au lieu de tirets */
    font-style: normal; /* Pas d'italique pour plus de formalité */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    min-height: 32px;
}

/* Icône Font Awesome bâtiment */
.timeline-content .entreprise::before {
    content: '\f1ad'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #2563eb;
    transition: all 0.2s ease;
}

.timeline-content .entreprise:hover::before {
    color: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

.timeline-content .entreprise:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content ul {
    margin-left: 1.5rem;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
}

/* ===== CAROUSEL DE PROJETS - NAVIGATION PROJET PAR PROJET ===== */

/* Container principal du carousel */
#projects .container {
    position: relative;
    padding: 0 120px; /* Plus d'espace pour les flèches */
    max-width: 900px; /* Limiter la largeur pour un meilleur centrage */
    margin: 0 auto;
}

/* Wrapper pour le carousel */
.projects-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    padding: 20px 0;
}

/* Grid avec défilement - 1 projet centré à la fois */
.projects-grid {
    display: flex;
    gap: 2rem; /* Gap réduit car on ne voit qu'un projet à la fois */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
    min-width: 100%; /* Chaque projet prend 100% de la largeur */
    max-width: 100%;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #764ba2;
    box-shadow: 0 25px 60px rgba(118, 75, 162, 0.5),
                0 0 40px rgba(102, 126, 234, 0.3);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-card-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
}

.project-card p {
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.project-tags {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.tag {
    background: rgba(102, 126, 234, 0.25);
    color: #a8b3ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(102, 126, 234, 0.4);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.github-link, .report-link {
    display: inline-block;
    color: #a8b3ff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-right: 1rem;
    padding: 10px 20px;
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.github-link:hover, .report-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateX(5px);
}

/* Flèches de navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4),
                0 0 0 0 rgba(102, 126, 234, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4),
                    0 0 0 0 rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6),
                    0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.15);
    background: linear-gradient(135deg, #764ba2 0%, #ec4899 100%);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.6);
    animation: none;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

.carousel-arrow i {
    color: white;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-arrow.left.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-20px);
}

.carousel-arrow.right.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
}

/* Indicateurs (points) - 6 points, 1 seul actif à la fois */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4rem;
    padding: 25px 0;
    flex-wrap: wrap;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.indicator-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
    border-color: rgba(102, 126, 234, 0.6);
}

.indicator-dot:hover::before {
    width: 30px;
    height: 30px;
}

/* UN SEUL point actif à la fois */
.indicator-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                0 0 40px rgba(118, 75, 162, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8),
                    0 0 40px rgba(118, 75, 162, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 1),
                    0 0 60px rgba(118, 75, 162, 0.6);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    #projects .container {
        padding: 0 100px;
        max-width: 800px;
    }
    
    .carousel-arrow {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    #projects .container {
        padding: 0 70px;
        max-width: 100%;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
    }
    
    .carousel-arrow i {
        font-size: 1.5rem;
    }
    
    .project-card {
        min-width: 100%;
    }
    
    .carousel-indicators {
        gap: 10px;
    }
    
    .indicator-dot {
        width: 10px;
        height: 10px;
    }
    
    .indicator-dot.active {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    #projects .container {
        padding: 0 60px;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
    }
    
    .carousel-arrow.left {
        left: 10px;
    }
    
    .carousel-arrow.right {
        right: 10px;
    }
    
    .carousel-arrow i {
        font-size: 1.3rem;
    }
    
    .project-card-content {
        padding: 1.5rem;
    }
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.github-link {
    color: white;
    font-weight: bold;          
    background: linear-gradient(135deg, #2196F3, #1976D2);  /* Bleu Material Design */
    border: 2px solid #2196F3;
    border-radius: 25px;
    padding: 6px 12px;          
    text-decoration: none;      
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;       
}
.github-link:hover {
    background: linear-gradient(135deg, #42a5f5, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}
/* Effet au survol */
.github-link:hover {
    background: linear-gradient(135deg, #00008b, #87ceeb);  /* Inverse le dégradé */
    color: #ffffff;                        /* Texte blanc */
    border-color: #1e90ff;                 /* Bordure bleu dodger */
    transform: translateY(-2px);           /* Léger soulèvement */
    box-shadow: 0 4px 12px rgba(0, 0, 139, 0.4);  /* Ombre bleue */
}




/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(30, 30, 50, 0.8) 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.6) 50%, 
        transparent 100%
    );
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
    transition: color 0.3s ease;
}

footer p:hover {
    color: rgba(99, 102, 241, 1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }

    nav a {
        padding: 0.3rem 0.7rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Animation pour Big Data */
@keyframes moveBigData {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

.big-data-text {
    position: fixed;
    top: 50%;
    left: 0;
    font-size: 4rem;
    font-weight: bold;
    color: red;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: moveBigData 10s linear infinite;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* Animation pour Big Data */
@keyframes moveBigData {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

.big-data-text {
    position: fixed;
    top: 50%;
    left: 0;
    font-size: 4rem;
    font-weight: bold;
    color: red;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: moveBigData 10s linear infinite;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* Carte pour LinkedIn avec fond transparent */
.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Bouton Plus */
.plus-button {
    position: absolute;
    right: 20px;
    top: 140px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.plus-button:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.plus-button:active {
    transform: scale(0.95) rotate(90deg);
}

/* Section d'informations supplémentaires */
.more-info-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                margin-top 0.6s ease, 
                opacity 0.6s ease, 
                padding 0.6s ease;
    opacity: 0;
    margin-top: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 0 50px;
    backdrop-filter: blur(15px);
    width: 100%;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.more-info-section.active {
    max-height: 900px; /* AUGMENTÉ de 700px à 900px */
    max-width: 700px;
    opacity: 1;
    margin-top: 30px;
    padding: 35px 50px;
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.2);
}

.more-info-section h4 {
    font-size: 1.6rem;
    color: #fbbf24;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.more-info-section h4 svg {
    filter: drop-shadow(0 3px 6px rgba(251, 191, 36, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.more-info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px; /* AUGMENTÉ le gap vertical de 25px à 30px */
}

/* Taille du texte général dans les cartes */
.more-info-section li {
    font-size: 0.75rem; /* ← TAILLE DU TEXTE GÉNÉRAL */
    line-height: 1.4; /* ← ESPACEMENT ENTRE LES LIGNES */
}

/* Taille du texte des TITRES (strong) */
.more-info-section li strong {
    font-size: 0.75rem; /* ← TAILLE DU TITRE (Centres d'intérêt, Langues, etc.) */
}

/* Taille du texte du CONTENU (span) */
.more-info-section li span {
    font-size: 0.75rem; /* ← TAILLE DU CONTENU (Bénévolat, Français, etc.) */
}

.more-info-section li:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.2);
}

.more-info-section li strong {
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    white-space: normal;
    flex-wrap: wrap;
}

.more-info-section li strong svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.more-info-section li span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

/* Style pour la carte info avec le bouton */
.info-card {
    position: relative;
    overflow: visible;
}

.info-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Animation d'entrée pour les items de liste */
.more-info-section.active li {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.more-info-section.active li:nth-child(1) { animation-delay: 0.1s; }
.more-info-section.active li:nth-child(2) { animation-delay: 0.2s; }
.more-info-section.active li:nth-child(3) { animation-delay: 0.3s; }
.more-info-section.active li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive */
@media (max-width: 968px) {
    .more-info-section ul {
        grid-template-columns: 1fr;
    }
    
    .more-info-section.active {
        max-height: 1200px; /* AUGMENTÉ de 900px à 1200px */
    }
}

@media (max-width: 768px) {
    .plus-button {
        right: 10px;
        top: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .more-info-section {
        padding: 0 25px;
        border-radius: 16px;
    }
    
    .more-info-section.active {
        padding: 25px;
        max-height: 1800px; /* AUGMENTÉ de 1400px à 1800px */
    }
    
    .more-info-section h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .more-info-section ul {
        grid-template-columns: 1fr;
        gap: 25px; /* AUGMENTÉ de 20px à 25px */
    }
    
    .more-info-section li {
        padding: 25px 18px; /* AUGMENTÉ de 20px 16px à 25px 18px */
        font-size: 0.9rem;
        min-height: 260px; /* AUGMENTÉ de 220px à 260px */
    }
    
    .more-info-section li strong {
        font-size: 0.9rem;
    }
    
    .more-info-section li strong svg {
        width: 16px;
        height: 16px;
    }
}
/*****************************
   VARIABLES (couleurs du portfolio de Steve)
******************************/
:root {
    --primary: #3b82f6;       /* Bleu principal */
    --accent: #06b6d4;        /* Cyan d'accent */
    --background: #0f172a;    /* Fond principal sombre */
    --surface: rgba(30, 41, 59, 0.7); /* Surface des cartes */
    --text: #f8fafc;          /* Texte principal */
    --text-secondary: #cbd5e1; /* Texte secondaire */
}

/*****************************
   SECTION COMPÉTENCES (sans fond spécifique)
******************************/
#skills {
    /* PAS de background-color ici - utilise le fond global de la page */
    color: var(--text-secondary);
    padding: 5rem 1rem;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Conteneur des particules */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#skills .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

#skills .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text);
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;
}

#skills .section-title::after {
    content: '';
    display: block;
    width: 300px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* ===== AMÉLIORATIONS RESPONSIVE POUR LA SECTION ABOUT ===== */

/* Sur mobile - cacher les boutons flottants pour éviter les chevauchements */
@media (max-width: 768px) {
    #linkedin-btn,
    #github-btn,
    #mail-btn {
        display: none; /* Cache les boutons sur mobile */
    }
}

/* Section About sur mobile */
@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column; /* Empile photo au-dessus des infos */
        padding: 25px 20px;
        gap: 25px;
        
        /* FOND TRANSPARENT/BLUR COMME SUR PC - MAIS ADAPTÉ MOBILE */
        background: rgba(15, 23, 42, 0.7); /* Semi-transparent */
        backdrop-filter: blur(15px) saturate(180%); /* Effet blur comme PC */
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        
        border: 1px solid rgba(99, 102, 241, 0.25); /* Bordure subtile */
        border-radius: 20px; /* Coins arrondis comme sur PC */
        
        max-width: 95%;
        margin: 0 auto;
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.4), /* Ombre extérieure */
            inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Lumière intérieure subtile */
        
        /* Effet de brillance sur les bords */
        position: relative;
        overflow: hidden;
    }
    
    /* Effet de surbrillance sur les bords (optionnel) */
    .about-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(99, 102, 241, 0.4), 
            transparent
        );
        z-index: 1;
    }
    
    /* Photo sur mobile */
    .about-photo {
        display: flex;
        justify-content: center;
        width: 100%;
        position: relative;
        z-index: 2;
    }
    
    .about-photo img {
        width: 200px; /* Légèrement plus grand pour mobile */
        height: 200px;
        
        /* Style cohérent avec PC */
        border: 3px solid rgba(99, 102, 241, 0.4);
        border-radius: 16px; /* Arrondi légèrement plus prononcé */
        
        box-shadow: 
            0 15px 35px rgba(99, 102, 241, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.1);
        
        /* Effet de brillance sur la photo */
        position: relative;
        overflow: hidden;
    }
    
    /* Effet de réflexion sur la photo */
    .about-photo img::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 30%;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.1),
            transparent
        );
        border-radius: 16px 16px 0 0;
    }
    
    /* Grille d'informations sur mobile */
    .about-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 18px;
        width: 100%;
        position: relative;
        z-index: 2;
    }
    
    /* Style pour chaque carte d'information - TRANSPARENT/BLUR */
    .about-grid > div {
        background: rgba(30, 41, 59, 0.6); /* Fond semi-transparent */
        backdrop-filter: blur(10px); /* Effet blur */
        -webkit-backdrop-filter: blur(10px);
        
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 12px; /* Coins arrondis comme PC */
        
        padding: 18px 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        
        /* Ombre intérieure pour effet "profondeur" */
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.1),
            0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .about-grid > div:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.1),
            0 15px 30px rgba(99, 102, 241, 0.25);
        background: rgba(30, 41, 59, 0.8);
    }
    
    /* Icônes pour chaque ligne (optionnel mais joli) */
    .about-grid > div {
        position: relative;
        padding-left: 50px; /* Espace pour l'icône */
    }
    
    .about-grid > div::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        background: var(--primary);
        border-radius: 8px;
        opacity: 0.2;
    }
    
    /* Titres des informations */
    .about-grid > div strong {
        display: block;
        color: var(--primary);
        font-size: 0.85rem;
        margin-bottom: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.9;
    }
    
    /* Contenu des informations */
    .about-grid > div span,
    .about-grid > div a {
        color: var(--text-secondary);
        font-size: 1rem;
        line-height: 1.5;
        word-break: break-word;
        display: block;
    }
    
    /* Liens avec style moderne */
    .about-grid > div a {
        color: #8b5cf6;
        text-decoration: none;
        display: inline-block;
        padding: 4px 0;
        position: relative;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .about-grid > div a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #8b5cf6, #ec4899);
        transition: width 0.3s ease;
    }
    
    .about-grid > div a:hover {
        color: var(--accent);
    }
    
    .about-grid > div a:hover::after {
        width: 100%;
    }
    
    /* Nom en bas - style amélioré */
    .about-name {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        
        /* Ligne de séparation avec effet gradient */
        border-top: 1px solid;
        border-image: linear-gradient(90deg, 
            transparent, 
            rgba(99, 102, 241, 0.5), 
            transparent
        ) 1;
        
        font-size: 1.3rem;
        font-weight: 800;
        padding: 15px 25px;
        
        /* Dégradé amélioré */
        background: linear-gradient(135deg, 
            #facc15 0%, 
            #f59e0b 25%, 
            #d97706 50%, 
            #b45309 75%, 
            #92400e 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
        /* Effet d'ombre sur le texte */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* Pour les très petits écrans (≤480px) */
@media (max-width: 480px) {
    .about-wrapper {
        padding: 20px 15px;
        border-radius: 18px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .about-photo img {
        width: 170px;
        height: 170px;
        border-radius: 14px;
    }
    
    .about-grid > div {
        padding: 16px 18px 16px 50px;
        border-radius: 10px;
    }
    
    .about-grid > div::before {
        left: 16px;
        width: 20px;
        height: 20px;
    }
    
    .about-grid > div strong {
        font-size: 0.8rem;
    }
    
    .about-grid > div span,
    .about-grid > div a {
        font-size: 0.95rem;
    }
    
    .about-name {
        font-size: 1.1rem;
        padding: 12px 20px;
        margin-top: 25px;
    }
}

/* Pour tablette (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-wrapper {
        gap: 30px;
        padding: 30px;
        
        /* Conserve le style PC mais adapté */
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        border: 1px solid rgba(99, 102, 241, 0.3);
        border-radius: 24px;
        
        max-width: 90%;
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .about-photo img {
        width: 220px;
        height: 220px;
        border-radius: 18px;
        border: 4px solid rgba(99, 102, 241, 0.5);
    }
    
    .about-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
    
    .about-grid > div {
        padding: 20px 25px 20px 60px;
    }
    
    .about-grid > div::before {
        left: 20px;
        width: 28px;
        height: 28px;
    }
    
    .about-name {
        grid-column: 1 / -1;
        font-size: 1.4rem;
        margin-top: 35px;
        padding-top: 25px;
    }
}

/* Bouton GitHub */
.github-btn {
  display: flex; /* Utiliser flex au lieu de inline-flex */
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #24292e, #000000);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin: 0 auto;
  width: fit-content;
}

.github-btn i {
  font-size: 20px;
}

.github-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}

/* Style de base commun pour tous les boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bouton Principal */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* Bouton Secondaire */
.btn-secondary {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.2);
}

/* Bouton Télécharger CV */
.btn-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid transparent;
}

.btn-download:hover {
    background: linear-gradient(135deg, #0da271, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-download i {
    font-size: 18px;
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}

/* Flèche bleue pour toutes les tâches des expériences */
li[data-translate^="exp-tiqtec-task"],
li[data-translate^="exp-stream-task"],
li[data-translate^="exp-carrefour-task"],
li[data-translate^="exp-diocese-task"] {
    list-style: none;
    padding-left: 0;
}

li[data-translate^="exp-tiqtec-task"]::before,
li[data-translate^="exp-stream-task"]::before,
li[data-translate^="exp-carrefour-task"]::before,
li[data-translate^="exp-diocese-task"]::before {
    content: "→ ";
    color: #3498db;
    font-weight: bold;
    font-size: 1.3em;
    margin-right: 8px;
}

/* Bouton voir le rapport de projet */
.report-btn {
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.report-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.report-btn i {
    font-size: 16px;
}

/*******************************
   Vidéos intégrées (projets)
*******************************/

.video-button {
        display: inline-block;
        margin-top: 15px;
        padding: 12px 30px;
        background: linear-gradient(135deg, #90EE90, #32CD32, #228B22);
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-size: 16px;
        font-weight: bold;
        box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
        transition: all 0.3s ease;
        text-align: center;
    }

    .video-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(50, 205, 50, 0.6);
        background: linear-gradient(135deg, #98FB98, #3CB371, #2E8B57);
    }

    .video-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(50, 205, 50, 0.4);
    }

/*****************************
   GRILLE DES COMPÉTENCES (TON CODE)
******************************/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ========================================
   SECTION COMPÉTENCES - Animations grille
   Icônes spécifiques par compétence
   ======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

/* Catégorie de compétence */
.skill-category {
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

/* Titre de catégorie */
.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Items de compétence */
.skill-item {
    margin: 12px 0;
    position: relative;
}

.skill-name {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-name span {
    z-index: 2;
    position: relative;
}

/* Effet de fond au survol */
.skill-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s ease;
    z-index: 1;
}

.skill-item:hover .skill-name::before {
    left: 0;
}

/* Style de l'icône ajoutée par JavaScript */
.skill-icon {
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(-20px) scale(0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    position: relative;
}

/* Effet au survol */
.skill-item:hover .skill-name {
    transform: translateX(8px);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.skill-item:hover .skill-name span {
    color: #fff;
}

.skill-item:hover .skill-icon {
    opacity: 1;
    transform: translateX(0) scale(1);
    color: #fff;
}

/* Animation de pulsation */
@keyframes pulse-icon {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(0) scale(1.15);
    }
}

.skill-item:hover .skill-icon {
    animation: pulse-icon 0.8s ease-in-out;
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }
.skill-category:nth-child(6) { animation-delay: 0.6s; }
.skill-category:nth-child(7) { animation-delay: 0.7s; }
.skill-category:nth-child(8) { animation-delay: 0.8s; }
.skill-category:nth-child(9) { animation-delay: 0.9s; }
.skill-category:nth-child(10) { animation-delay: 1s; }

/* Style responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skill-name {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        margin-top: 30px;
    }
}

/*****************************
   STYLE DES NOMS DE COMPÉTENCES
******************************/
.skill-name span {
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-name span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/*****************************
   RESPONSIVE
******************************/
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    #skills .section-title {
        font-size: 2.5rem;
    }
    
    #skills {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    #skills .section-title {
        font-size: 2.2rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
    }
}

/* ===============================================
   SECTION CERTIFICATIONS - Styles
   =============================================== */

.certifications {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.certifications .container {
    position: relative;
    z-index: 1;
}

.certifications h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #764ba2;
    margin-bottom: 60px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: linear-gradient(135deg, #f5f0ff 0%, #e8dcff 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(118, 75, 162, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(118, 75, 162, 0.1);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.certification-card:hover::before {
    left: 100%;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.25);
    background: linear-gradient(135deg, #f0e6ff 0%, #dcc9ff 100%);
}

.certification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%); /* Dégradé subtil */
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    padding: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animation fluide */
    position: relative;
}

.certification-icon:hover {
    transform: translateY(-8px) scale(1.08); /* Effet de levée */
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5); /* Ombre plus prononcée */
    border-color: #5568d3; /* Bordure plus foncée */
}

.certification-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease; /* Animation de l'image */
}

.certification-icon:hover .certification-icon-img {
    transform: scale(1.1); /* Léger zoom de l'image au survol */
}

/* Effet de brillance subtile */
.certification-icon::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 8%;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

/* Pour les icônes Font Awesome (non-images) */
.certification-icon i {
    font-size: 2rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.certification-icon:hover i {
    color: #5568d3;
    transform: scale(1.15);
}

/* Animation au chargement */
@keyframes certIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.certification-icon {
    animation: certIconFadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .certification-icon {
        width: 70px;
        height: 70px;
        padding: 10px;
    }
    
    .certification-icon i {
        font-size: 1.6rem;
    }
}

.certification-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.certification-issuer {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.certification-date {
    font-size: 0.9rem;
    color: #764ba2;
    margin-bottom: 15px;
    font-weight: 600;
}

.certification-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.certification-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.certification-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.certification-link i {
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications {
        padding: 60px 0;
    }
    
    .certifications h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .certification-card {
        padding: 25px;
    }
    
    .certification-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animation au scroll */
.certification-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.certification-card:nth-child(1) {
    animation-delay: 0.1s;
}

.certification-card:nth-child(2) {
    animation-delay: 0.2s;
}

.certification-card:nth-child(3) {
    animation-delay: 0.3s;
}

.certification-card:nth-child(4) {
    animation-delay: 0.4s;
}

.certification-card:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certification-card {
    position: relative; /* indispensable */
}

.certification-img-top {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;       /* ajuste la taille */
    height: auto;
    border-radius: 6px; /* optionnel */
}


#contact button {
    background: linear-gradient(45deg, #007bff, #8a2be2); /* dégradé bleu → violet */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#contact button:hover {
    background: linear-gradient(45deg, #0056b3, #6a0dad); /* dégradé plus foncé au survol */
    transform: translateY(-2px); /* léger effet de "lift" au survol */
}

#linkedin-btn {
    position: fixed;      
    left: 20px;             
    bottom: 120px;
    background-color: #0a66c2; /* bleu LinkedIn */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 99999;          /* 🔥 TRÈS IMPORTANT */
    pointer-events: auto;   /* 🔥 force le clic */
}

#linkedin-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(10, 102, 194, 0.6);
}

#github-btn {
    position: fixed;        /* 🔒 figé à l’écran */
    left: 20px;
    bottom: 190px;          /* au-dessus du bouton LinkedIn */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #24292e; /* noir GitHub */
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: pointer;

    z-index: 99999;
    pointer-events: auto;

    transition: transform 0.3s, box-shadow 0.3s;
}

#github-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(36, 41, 46, 0.6);
}

#mail-btn {
    position: fixed;
    left: 20px;
    bottom: 260px;          /* au-dessus de GitHub */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d44638; /* rouge mail */
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: pointer;

    z-index: 99999;
    pointer-events: auto;

    transition: transform 0.3s, box-shadow 0.3s;
}

#mail-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(212, 70, 56, 0.6);
}

/* Bouton lien vers le rapport de projet */
.report-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #8b0000 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px; /* Bouton bien arrondi */
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.report-link:hover {
    background: linear-gradient(135deg, #ff5252 0%, #650000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.report-link i {
    margin-right: 8px;
}
/*****************************
   FRISE CHRONOLOGIQUE 
******************************/

#formations {
    padding: 4rem 2rem 6rem 2rem; /* Réduit le padding en haut */
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.7);
}

#formations .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem; /* Réduit la marge */
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   FRISE CHRONOLOGIQUE AMÉLIORÉE
   ============================================ */

/* Timeline horizontale - Version Desktop */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 0 80px 0;
    gap: 20px;
}

/* Ligne horizontale centrale avec animation */
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 6px;
    background: linear-gradient(to right, #6366f1, #8b5cf6, #ec4899);
    border-radius: 3px 0 0 3px;
    z-index: 1;
    box-shadow: 0 2px 15px rgba(99, 102, 241, 0.5);
    animation: pulse-line 3s ease-in-out infinite;
}

/* Flèche à droite de la ligne */
.timeline-horizontal::after {
    content: "";
    position: absolute;
    top: 55px;
    right: 4%;
    width: 0;
    height: 0;
    border-left: 22px solid #ec4899;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    z-index: 2;
    filter: drop-shadow(0 2px 10px rgba(236, 72, 153, 0.6));
    animation: pulse-arrow 3s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { 
        transform: translateX(0);
        filter: drop-shadow(0 2px 10px rgba(236, 72, 153, 0.6));
    }
    50% { 
        transform: translateX(5px);
        filter: drop-shadow(0 2px 15px rgba(236, 72, 153, 0.9));
    }
}

@keyframes pulse-line {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 2px 15px rgba(99, 102, 241, 0.5);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 2px 25px rgba(139, 92, 246, 0.7);
    }
}

/* Chaque item de la timeline */
.timeline-horizontal .timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 0 15px;
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Animation d'apparition décalée */
.timeline-horizontal .timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-horizontal .timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-horizontal .timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-horizontal .timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-horizontal .timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Point sur la ligne - Style amélioré */
.timeline-horizontal .timeline-item::before {
    content: '';
    position: absolute;
    top: -9px; /* Sur la ligne au lieu de au-dessus */
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 4px solid #0f172a;
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.8),
        0 0 0 4px rgba(99, 102, 241, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animation du point au survol */
.timeline-horizontal .timeline-item:hover::before {
    width: 32px;
    height: 32px;
    top: -13px; /* Ajusté pour rester centré sur la ligne */
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 1),
        0 0 0 6px rgba(139, 92, 246, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.5);
    animation: pulse-point 1s ease-in-out infinite;
}

@keyframes pulse-point {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Ligne de connexion point -> carte */
.timeline-horizontal .timeline-item::after {
    content: '';
    position: absolute;
    top: 15px; /* Commence juste en dessous du point */
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 25px; /* Ligne courte pour coller les cartes */
    background: linear-gradient(to bottom, 
        rgba(99, 102, 241, 0.9), 
        rgba(139, 92, 246, 0.6),
        rgba(139, 92, 246, 0.2)
    );
    border-radius: 2px;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-horizontal .timeline-item:hover::after {
    background: linear-gradient(to bottom, 
        rgba(139, 92, 246, 1), 
        rgba(236, 72, 153, 0.8),
        rgba(236, 72, 153, 0.3)
    );
    width: 4px;
}

/* Contenu de la carte - Design moderne */
.timeline-horizontal .timeline-content {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%, 
        rgba(30, 41, 59, 0.85) 100%
    );
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 35px; /* Espace réduit pour coller aux points */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Effet de brillance au survol */
.timeline-horizontal .timeline-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.timeline-horizontal .timeline-content:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.timeline-horizontal .timeline-content:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #8b5cf6;
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Titre de formation avec effet gradient */
.timeline-horizontal .formation-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-horizontal .timeline-content:hover .formation-title {
    letter-spacing: 0.5px;
    transform: scale(1.03);
}

/* Dates avec icône intégrée */
.timeline-horizontal .date {
    color: #ec4899;
    font-weight: 600;
    margin: 12px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
    border-radius: 25px;
    border: 2px solid rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-horizontal .date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: #ec4899;
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.5));
}

.timeline-horizontal .timeline-content:hover .date {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(236, 72, 153, 0.1));
    border-color: #ec4899;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Lieu avec icône intégrée */
.timeline-horizontal .lieu {
    color: #06b6d4;
    font-weight: 500;
    margin-top: 12px;
    font-style: italic;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border-radius: 12px;
    border: 2px dashed rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.timeline-horizontal .lieu::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: #06b6d4;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

.timeline-horizontal .timeline-content:hover .lieu {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.1));
    border-color: #06b6d4;
    border-style: solid;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* ============================================
   RESPONSIVE - TABLETTE (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
        gap: 50px;
    }
    
    /* Ligne verticale centrale */
    .timeline-horizontal::before {
        top: 0;
        left: 50%;
        width: 6px;
        height: 100%;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, #6366f1, #8b5cf6, #ec4899);
    }
    
    .timeline-horizontal .timeline-item {
        width: 85%;
        max-width: 600px;
        margin-bottom: 0;
        padding: 0;
    }
    
    /* Points en version tablette */
    .timeline-horizontal .timeline-item::before {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-horizontal .timeline-item:hover::before {
        top: -4px;
        left: 50%;
    }
    
    /* Ligne de connexion verticale */
    .timeline-horizontal .timeline-item::after {
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 50px;
        background: linear-gradient(to bottom, 
            rgba(99, 102, 241, 0.8), 
            rgba(139, 92, 246, 0.4)
        );
    }
    
    .timeline-horizontal .timeline-content {
        margin-top: 70px;
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (≤768px)
   ============================================ */

@media (max-width: 768px) {
    #formations {
        padding: 3rem 1rem 4rem 1rem;
    }
    
    .timeline-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 15px 40px 15px;
        max-width: 100%;
        gap: 40px;
    }
    
    /* Ligne VERTICALE à gauche */
    .timeline-horizontal::before {
        top: 0;
        left: 30px;
        right: auto;
        width: 5px;
        height: calc(100% - 40px);
        transform: none;
        background: linear-gradient(to bottom, #6366f1, #8b5cf6, #ec4899);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    }
    
    /* Items alignés à gauche */
    .timeline-horizontal .timeline-item {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
        flex: none;
        animation: fadeInLeft 0.6s ease-out backwards;
    }
    
    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Points sur la ligne gauche */
    .timeline-horizontal .timeline-item::before {
        top: 10px;
        left: 23px;
        transform: none;
        width: 20px;
        height: 20px;
        border: 3px solid #0f172a;
    }
    
    .timeline-horizontal .timeline-item:hover::before {
        width: 26px;
        height: 26px;
        top: 7px;
        left: 20px;
    }
    
    /* Ligne de connexion horizontale */
    .timeline-horizontal .timeline-item::after {
        display: block;
        top: 19px;
        left: 38px;
        width: 30px;
        height: 3px;
        transform: none;
        background: linear-gradient(to right, 
            rgba(99, 102, 241, 0.8), 
            rgba(139, 92, 246, 0.3)
        );
    }
    
    /* Cartes mobile */
    .timeline-horizontal .timeline-content {
        margin-top: 0;
        margin-left: 0;
        width: 100%;
        min-height: auto;
        padding: 18px;
        border-radius: 16px;
    }
    
    .timeline-horizontal .formation-title {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .timeline-horizontal .date,
    .timeline-horizontal .lieu {
        font-size: 0.9rem;
        padding: 6px 12px;
        margin: 8px 0;
        justify-content: flex-start;
    }
    
    .timeline-horizontal .date::before,
    .timeline-horizontal .lieu::before {
        font-size: 0.85rem;
    }
}

/* ============================================
   RESPONSIVE - PETIT MOBILE (≤480px)
   ============================================ */

@media (max-width: 480px) {
    .timeline-horizontal {
        padding: 50px 10px 30px 10px;
        gap: 35px;
    }
    
    .timeline-horizontal::before {
        left: 25px;
        width: 4px;
        height: calc(100% - 30px);
    }
    
    .timeline-horizontal .timeline-item {
        padding-left: 55px;
    }
    
    .timeline-horizontal .timeline-item::before {
        left: 19px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-horizontal .timeline-item:hover::before {
        width: 22px;
        height: 22px;
        left: 17px;
    }
    
    .timeline-horizontal .timeline-item::after {
        left: 31px;
        width: 25px;
    }
    
    .timeline-horizontal .timeline-content {
        padding: 15px;
        border-radius: 14px;
    }
    
    .timeline-horizontal .formation-title {
        font-size: 1.05rem;
    }
    
    .timeline-horizontal .date,
    .timeline-horizontal .lieu {
        font-size: 0.85rem;
        padding: 5px 10px;
        margin: 6px 0;
    }
}

/* ============================================
   ANIMATIONS SUPPLÉMENTAIRES
   ============================================ */

/* Animation de chargement progressif */
@keyframes progressiveFade {
    0% {
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .timeline-horizontal .timeline-item,
    .timeline-horizontal .timeline-content,
    .timeline-horizontal .timeline-item::before,
    .timeline-horizontal::before {
        animation: none !important;
        transition: none !important;
    }
    
    .timeline-horizontal .timeline-content:hover {
        transform: none;
    }
}

/* Mode sombre amélioré */
@media (prefers-color-scheme: dark) {
    .timeline-horizontal .timeline-content {
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.95) 0%, 
            rgba(15, 23, 42, 0.9) 100%
        );
        border-color: rgba(99, 102, 241, 0.4);
    }
    
    .timeline-horizontal .timeline-item::before {
        border-color: #0f172a;
        box-shadow: 
            0 0 25px rgba(99, 102, 241, 0.9),
            0 0 0 4px rgba(99, 102, 241, 0.4);
    }
}

/* ============================================
   ANIMATIONS SUPPLÉMENTAIRES
   ============================================ */

/* Animation de chargement progressif */
@keyframes progressiveFade {
    0% {
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .timeline-horizontal .timeline-item,
    .timeline-horizontal .timeline-content,
    .timeline-horizontal .timeline-item::before,
    .timeline-horizontal::before {
        animation: none !important;
        transition: none !important;
    }
    
    .timeline-horizontal .timeline-content:hover {
        transform: none;
    }
}

/* Mode sombre amélioré */
@media (prefers-color-scheme: dark) {
    .timeline-horizontal .timeline-content {
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.95) 0%, 
            rgba(15, 23, 42, 0.9) 100%
        );
        border-color: rgba(99, 102, 241, 0.4);
    }
    
    .timeline-horizontal .timeline-item::before {
        border-color: #0f172a;
        box-shadow: 
            0 0 25px rgba(99, 102, 241, 0.9),
            0 0 0 4px rgba(99, 102, 241, 0.4);
    }
}

/* Bouton langue - mêmes dimensions que le bouton lune */
#languageToggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.5em;  /* Même taille de police */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 60px;  /* MÊME largeur que le bouton lune */
    height: 60px;  /* MÊME hauteur que le bouton lune */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4), 
                0 4px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 530px;  /* Position en haut */
    right: 30px;
    z-index: 1000;
    margin: 0;
    overflow: hidden;
}

/* Effet de brillance */
#languageToggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s;
}

#languageToggle:hover::before {
    left: 100%;
}

/* Effet au survol */
#languageToggle:hover {
    transform: translateY(-3px) scale(1.08) rotate(5deg);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5),
                0 6px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Effet de clic */
#languageToggle:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

/* Animation de l'icône drapeau */
#languageToggle .flag-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#languageToggle:hover .flag-icon {
    transform: scale(1.15) rotate(15deg);
}

/* Animation de changement de drapeau */
@keyframes flagSwap {
    0% { 
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    50% { 
        transform: rotateY(90deg) scale(0.8);
        opacity: 0.5;
    }
    100% { 
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

#languageToggle.changing .flag-icon {
    animation: flagSwap 0.6s ease;
}

/* Effet de vague au clic */
#languageToggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
}

#languageToggle:active::after {
    width: 120px;
    height: 120px;
    opacity: 0;
}


/* Responsive */
@media (max-width: 768px) {
    #languageToggle {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        top: 15px;
        right: 15px;
    }
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.02);
    border-radius: 16px;
}.chat-button {
    /* Structure circulaire plus petite */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* Positionnement à droite */
    margin-left: auto;
    
    /* Couleurs rouge avec effet gras */
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5),
                0 0 0 3px rgba(220, 38, 38, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.chat-button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6),
                0 0 0 4px rgba(220, 38, 38, 0.3);
    transform: scale(1.15);
}

.chat-button:active {
    transform: scale(1.1);
    box-shadow: 0 3px 15px rgba(220, 38, 38, 0.4);
}

.chat-button img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chat-button:hover img {
    transform: rotate(10deg) scale(1.15);
}

/* Animation pulse renforcée */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5),
                    0 0 0 3px rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow: 0 6px 35px rgba(220, 38, 38, 0.7),
                    0 0 0 5px rgba(220, 38, 38, 0.4);
    }
}

.chat-button:hover {
    animation: pulse-red 2s infinite;
}

/* Bouton chat */
.chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5),
                0 0 0 3px rgba(220, 38, 38, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.chat-button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6),
                0 0 0 4px rgba(220, 38, 38, 0.3);
    transform: scale(1.15);
}

.chat-button img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Chatbox Container */
.chatbox-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbox-container.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

/* Header */
.chatbox-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbox-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Messages Area */
.chatbox-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
}

.message {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
}

.message-content strong {
    font-weight: 700;
    color: inherit;
}

.message-content br {
    display: block;
    content: "";
    margin: 4px 0;
}

.bot-message .message-content strong {
    color: #ffffff;
}

.user-message .message-content strong {
    color: #1f2937;
}

.bot-message .message-content {
    background: #dc2626;
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: #e5e7eb;
    color: #1f2937;
}

/* Input Area */
.chatbox-input {
    padding: 12px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

#chatInput {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: #dc2626;
}

.send-button {
    width: 36px;
    height: 40px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.send-button:active {
    transform: scale(0.95);
}

/* Scrollbar personnalisée */
.chatbox-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbox-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbox-messages::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 10px;
}

.chatbox-messages::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

.chatbox-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab; /* Indicateur visuel */
    user-select: none; /* Empêche la sélection de texte pendant le drag */
}

.chatbox-header:active {
    cursor: grabbing;
}

.chatbox-header h3 {
    pointer-events: none; /* Empêche les interférences avec le drag */
}

/* Responsive */
@media (max-width: 480px) {
    .chatbox-container {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
    }
}

/* Style pour les QCM */
.qcm-content {
    max-width: 85% !important;
}

.qcm-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.qcm-option {
    background: white;
    color: #1f2937;
    border: 2px solid #fca5a5; /* Rouge plus clair */
    padding: 10px 16px;
    border-radius: 20px; /* Boutons bien arrondis */
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.qcm-option:hover {
    background: #fca5a5; /* Rouge plus clair au survol */
    color: #1f2937;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(252, 165, 165, 0.4);
}

.qcm-option:active {
    transform: translateX(3px) scale(0.98);
    background: #f87171; /* Rouge légèrement plus foncé au clic */
}

/* Style pour la date et l'heure */
.message-timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: 500;
}

.bot-message .message-timestamp {
    color: #ffffff;
}

.user-message .message-timestamp {
    color: #6b7280;
}

/* ====================================
   🎨 CSS POUR LE BOUTON "TOUS MES PROJETS"
   ==================================== */

/* Ajoutez ce CSS dans votre fichier styles.css */

/* Container pour les boutons (chatbox et tous mes projets) */
#navbar ul {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Petit espace entre les boutons */
}

/* Bouton "Tous mes projets" - PETIT BOUTON ROND BLEU */
.all-projects-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;  /* Même taille que le chatbox */
    height: 50px; /* Même taille que le chatbox */
    background: linear-gradient(135deg, #0066FF 0%, #0047CC 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%; /* Parfaitement rond */
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Cache le texte (on garde juste l'icône) */
.all-projects-button .button-text {
    display: none;
}

/* Effet de brillance au survol */
.all-projects-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.all-projects-button:hover::before {
    left: 100%;
}

/* Hover effect */
.all-projects-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.6);
    border-color: #0066FF;
    background: linear-gradient(135deg, #3385FF 0%, #0066FF 100%);
}

/* Active effect (quand on clique) */
.all-projects-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.5);
}

/* Icône GitHub */
.all-projects-button i {
    font-size: 1.5rem; /* Taille de l'icône */
    animation: pulse 2s ease-in-out infinite;
    margin: 0;
}

/* Animation de pulsation pour l'icône */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animation d'entrée */
.all-projects-button {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   📱 RESPONSIVE DESIGN
   ==================================== */

/* Le bouton garde la même taille sur tous les écrans */
@media (max-width: 1024px) {
    .all-projects-button {
        width: 45px;
        height: 45px;
    }
    
    .all-projects-button i {
        font-size: 1.3rem;
    }
}

/* Pour les mobiles */
@media (max-width: 768px) {
    .all-projects-button {
        width: 40px;
        height: 40px;
    }
    
    .all-projects-button i {
        font-size: 1.2rem;
    }
}

/* Pour très petits écrans */
@media (max-width: 480px) {
    .all-projects-button {
        width: 38px;
        height: 38px;
    }
    
    .all-projects-button i {
        font-size: 1.1rem;
    }
}



.all-projects-button {
    background: transparent;
    border: 2px solid #0066FF;
    color: #0066FF;
    box-shadow: none;
}

.all-projects-button:hover {
    background: #0066FF;
    color: white;
    border-color: #0066FF;
}


/* ====================================
   🌙 MODE SOMBRE 
   ==================================== */

body.dark-mode .all-projects-button {
    background: linear-gradient(135deg, #3385FF 0%, #0066FF 100%);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.5);
}

body.dark-mode .all-projects-button:hover {
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.7);
}


/* ====================================
   SECTION CENTRES D'INTÉRÊT / INTERESTS
   ==================================== */

.interests-section {
    padding: 80px 0;
    background-color: #FFFEF0; /* Jaune très clair */
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 100, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Effet de particules légères */
.interests-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 245, 200, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 245, 200, 0.3) 0%, transparent 20%);
    pointer-events: none;
}

.interests-section .section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
    padding-bottom: 25px;
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.interests-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%); /* Dégradé doré */
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

.interest-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 2px solid transparent;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance au survol */
.interest-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.interest-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(20%, 20%);
}

.interest-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.98);
}

.interest-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(135deg, white, white) padding-box,
                linear-gradient(135deg, #FFD700, #FFA500) border-box;
    transition: all 0.4s ease;
    padding: 18px;
    position: relative;
}

.interest-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.interest-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.interest-card:hover .interest-icon {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.interest-card:hover .interest-icon::after {
    opacity: 0.4;
}

.interest-card:hover .interest-icon img {
    transform: scale(1.08);
}

.interest-card h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 18px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.interest-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.interest-card:hover h3::after {
    width: 70px;
}

.interest-card p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    padding: 0 10px;
}

/* Highlight pour les dates et périodes */
.highlight-date {
    color: #667eea;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .interests-section {
        padding: 60px 0;
    }
    
    .interests-section .section-title {
        font-size: 2.3rem;
        margin-bottom: 40px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 25px;
    }
    
    .interest-card {
        padding: 30px;
    }
    
    .interest-icon {
        width: 140px;
        height: 140px;
        padding: 15px;
    }
    
    .interest-card h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .interests-section {
        padding: 50px 20px;
    }
    
    .interests-section .section-title {
        font-size: 2rem;
        padding-bottom: 20px;
    }
    
    .interests-section .section-title::after {
        width: 80px;
        height: 4px;
    }
    
    .interest-card {
        padding: 25px 20px;
    }
    
    .interest-icon {
        width: 120px;
        height: 120px;
        padding: 12px;
    }
    
    .interest-card h3 {
        font-size: 1.3rem;
    }
    
    .interest-card p {
        font-size: 1rem;
        padding: 0;
    }
}

/* Animations améliorées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.interest-card {
    animation: fadeInUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.interest-card:nth-child(1) { animation-delay: 0.1s; }
.interest-card:nth-child(2) { animation-delay: 0.2s; }
.interest-card:nth-child(3) { animation-delay: 0.3s; }
.interest-card:nth-child(4) { animation-delay: 0.4s; }

/* Animation de flottement au survol */
.interest-card:hover {
    animation: float 2s ease-in-out infinite;
}

/* Transition pour le contenu */
.interest-card * {
    transition: color 0.3s ease, transform 0.3s ease;
}
/* ====================================
   ✨ EFFET BRILLANT SUPPLÉMENTAIRE
   ==================================== */

/* Ajoute un effet de lueur qui clignote doucement */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4),
                    0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 102, 255, 0.6),
                    0 0 30px rgba(0, 102, 255, 0.5);
    }
}

/* Bouton accessibilité */
.accessibility-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-left: 10px;
    position: relative;
    overflow: visible;
}

/* Effet au survol */
.accessibility-button:hover {
    background: linear-gradient(135deg, #ff5e00, #ff3d00);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Effet au clic */
.accessibility-button:active {
    transform: scale(0.95);
}

/* État actif quand le texte est agrandi */
.accessibility-button.active {
    background: linear-gradient(135deg, #ff3d00, #cc0000);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.5);
}

/* Icône loupe */
.accessibility-button i {
    font-size: 20px;
    color: white;
    transition: transform 0.3s ease;
}

/* Animation de la loupe au survol */
.accessibility-button:hover i {
    transform: scale(1.2);
}

/* Tooltip */
.accessibility-button .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.accessibility-button .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.accessibility-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Styles pour le texte agrandi */
.text-large {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
}

.text-xlarge {
    font-size: 1.5rem !important;
    line-height: 1.8 !important;
}

/* Animation de pulsation */
@keyframes pulse {
    0% { box-shadow: 0 4px 8px rgba(255, 92, 0, 0.2); }
    50% { box-shadow: 0 4px 12px rgba(255, 92, 0, 0.4); }
    100% { box-shadow: 0 4px 8px rgba(255, 92, 0, 0.2); }
}

.accessibility-button {
    animation: pulse 3s infinite;
}

/* Styles pour les éléments spécifiques quand le texte est agrandi */
.text-large .text,
.text-large .button-text,
.text-large .nav-link span {
    font-size: 1.1em !important;
}

.text-xlarge .text,
.text-xlarge .button-text,
.text-xlarge .nav-link span {
    font-size: 1.25em !important;
}

/* Style du bouton d'accessibilité */
.accessibility-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-left: 10px;
    position: relative;
}

.accessibility-button:hover {
    background: linear-gradient(135deg, #ff5e00, #ff3d00);
    transform: scale(1.05);
}

.accessibility-button i {
    font-size: 1.2rem;
    color: white;
}

/* Style appliqué aux sections de texte quand zoomé */
.text-zoomed {
    font-size: 1.2em !important; /* Agrandit la taille de la police */
    line-height: 1.6 !important; /* Améliore l'espacement pour la lisibilité */
}

/* Pour cibler plus spécifiquement le texte à l'intérieur si nécessaire */
.text-zoomed p,
.text-zoomed li,
.text-zoomed .text {
    font-size: inherit;
    line-height: inherit;
}

