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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a, #101020);
    color: white;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

a {
    font: inherit;
    color: inherit;
    font-size: inherit;
}

#overlay {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

/* L'image en mode aperçu */
#overlay img {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  max-height: 90vh; /* jamais plus haut que la fenêtre */
  max-width: 100%;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  border-radius: 10px;
  background: white;
}

/* Texture granuleuse */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
    background-size: 100px 100px;
    opacity: 0.8;
}

.project-detail, .expertise-section, .misc-projects-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px; /* Taille approximative avant chargement */
}

/* ============================================================================
   CORRECTIONS ANIMATIONS AU SCROLL
   ============================================================================ */

/* État initial des éléments animés - ils doivent être cachés par défaut */
.stat-card,
.project-detail,
.project-header,
.expertise-card,
.logo-grid {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Exception pour les éléments qui sont déjà visibles au chargement (hero section) */
#hero .stat-card,
#hero .project-detail,
#hero .project-header,
#hero .expertise-card,
#hero .logo-grid,
#hero .project-item {
    opacity: 1;
    transform: translateY(0);
}

/* Classe appliquée quand l'élément devient visible */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Animations spécifiques pour les éléments de projet */
.project-detail .project-logo-main,
.project-detail .project-title-section {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-detail.animate-in .project-logo-main {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.project-detail.animate-in .project-title-section {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Animations pour les cartes d'expertise */
.expertise-card h3,
.expertise-card p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expertise-card.animate-in h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.expertise-card.animate-in p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* LOGO ET TITRE FIXED */
.fixed-header {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.fixed-header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fixed-header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.fixed-header-title {
    color: #1c1c1c;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* NAVIGATION PRINCIPALE */
.main-nav {
    position: fixed;
    display: flex;
    flex-direction: row;
    top: 2rem;
    right: 2rem;
    background: rgba(27, 24, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.8rem 1rem;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-item {
    background: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-item.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.nav-icon {
    width: 16px;
    height: 16px;
}

/* Sélecteur de langue */
.language-selector {
    position: fixed;
    top: 6.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 25px;
}

.lang-btn {
    background: rgba(87, 87, 87, 0.226);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.75rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 35px;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #00ffff;
    color: #000;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Transition pour les changements de langue */
.multilang {
    transition: opacity 0.15s ease-out;
}

.multilang.fade-out {
    opacity: 0;
}

/* SECTION HERO */
.hero {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    background: url('./assets/portfolio_main.jpg') center center/cover no-repeat;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.501);
    max-width: 50%;
}

/* Formes abstraites */
.abstract-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(255, 0, 150, 0.4), transparent);
    filter: blur(120px);
    animation: move 12s infinite alternate ease-in-out;
}

.abstract-shape:nth-child(1) {
    top: -50px;
    left: -50px;
}

.abstract-shape:nth-child(2) {
    bottom: -50px;
    right: -50px;
    background: radial-gradient(circle at center, rgba(0, 200, 255, 0.4), transparent);
    animation-delay: 3s;
}

@keyframes move {
    0% { transform: translate(0,0); }
    100% { transform: translate(50px, -50px); }
}

/* Texte Hero */

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

.hero p {
    line-height: 1.5;
    max-width: 550px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

/* Section Projets Hero */
.projects-section {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.projects-section h3 {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.see-more-item {
    background: none;
    border: none;
}

.project-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
}

.project-logo {
    max-width: 150px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.project-item:hover .project-logo {
    filter: brightness(1);
}

.project-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.project-subname {
    font-size: 0.75rem;
    color: rgba(197, 197, 197, 0.8);
    text-align: center;
    line-height: 14px;
}

.see-more {
    display: inline-block;
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #00ffff;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.see-more:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-1px);
}

/* SECTION EXPERTISE */
.expertise-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
}

.expertise-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.expertise-intro {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 800px;
}

.expertise-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.expertise-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    max-width: 850px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.5rem;
    margin-bottom: 3rem;
}

/* CORRECTION: Expertise Card sans animations automatiques */
.expertise-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 290px;
    -webkit-hyphens: auto;
     hyphens: auto;
    /* Animations contrôlées par le scroll uniquement */
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(14, 165, 233, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.expertise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.expertise-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.expertise-cta {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 2rem;
}

.expertise-cta p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.expertise-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.expertise-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-cta-btn:hover::before {
    opacity: 1;
}

.expertise-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.expertise-cta-btn span,
.cta-arrow {
    position: relative;
    z-index: 2;
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.expertise-cta-btn:hover .cta-arrow {
    transform: translateY(3px);
}

/* PROJETS PORTFOLIO - STYLES GÉNÉRAUX */
.portfolio-projects {
    position: relative;
}

.project-detail {
    position: relative;
    overflow: hidden;
    display: flex;
    padding: 4rem 0;
}

.project-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color:#1c1c1c;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.project-logo-section {
    position: relative;
}

.project-logo-main {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.project-badge {
    text-align: center;
    bottom: -20px;
    left: auto;
    right: auto;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.3rem 0.3rem;
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title-section h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color:#374151;
}

.stat-label-light {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color:white;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px;
    grid-column: 1 / -1;
}

.logo-grid img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.logo-grid img:hover {
    transform: scale(1.1);
}

.project-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1c1c1c;
    padding: 1rem 0.4rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    width: 24%;
    height: 65px;
    text-align: center;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(110%);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-content {
    flex: 1;
}

.tab-pane {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    overflow: auto;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

.tab-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background:#1c1c1c;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tab-pane p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tab-pane figure {
    float:right;
    position: relative;
    z-index: 10;
    padding: 0 0 5px 5px;
    cursor: zoom-in;
}

figcaption {
    font-size: 0.9rem;
    font-style: italic;
    max-width: 250px;
    line-height: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0.7rem;
    color: #475569;
    font-weight: bold;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* THÈMES SPÉCIFIQUES PAR PROJET */

/* 1. DIFFUSION MENUISERIE - Thème Bois */
.wood-theme {
    background: linear-gradient(135deg, #c7ab86 0%, #c7ab86 50%, #F0E68C 100%);
}

.wood-theme .wood-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.08) 2px, rgba(139, 69, 19, 0.08) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.08) 2px, rgba(139, 69, 19, 0.08) 4px);
    opacity: 0.4;
}

.wood-theme .wood-chip {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #8B4513;
    border-radius: 50% 20% 50% 20%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.wood-theme .wood-chip:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.wood-theme .wood-chip:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.wood-theme .wood-chip:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.wood-theme .project-title-section h2 {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wood-theme .stat-number {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wood-theme .tab-btn.active {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: white;
}

.wood-theme .project-container {
    color: #3D2914;
}

/* ============================================================================
   NEWC - Mission en cours
   ============================================================================ */

.newc-theme {
    background: linear-gradient(135deg, #7a0119 0%, #c2052d 45%, #9e0424 100%);
    position: relative;
    overflow: hidden;
}

.newc-theme .project-background::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(255, 80, 80, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 0, 0, 0.2) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.newc-shimmer {
    position: absolute;
    top: 0;
    left: -55%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 30%,
        rgba(255, 255, 255, 0.13) 50%,
        rgba(255, 255, 255, 0.04) 70%,
        transparent 100%
    );
    animation: newcShimmer 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes newcShimmer {
    0%   { left: -55%; }
    100% { left: 115%; }
}

/* ── Container & couleur texte ── */
.newc-theme .project-container {
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
}

/* Layout : centré verticalement, padding réduit (section sobre) */
.newc-container {
    display: flex;
    align-items: center;
}

.newc-header {
    margin-bottom: 0 !important;
}

/* ── Badge "Mission en cours" ── */
.newc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}

/* Pastille clignotante */
.newc-dot {
    width: 7px;
    height: 7px;
    background: #ff8fa3;
    border-radius: 50%;
    flex-shrink: 0;
    animation: newcPulse 1.6s ease-in-out infinite;
}

@keyframes newcPulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.3; transform: scale(0.65); }
}

/* ── Titre du rôle ── */
.newc-theme .project-title-section h2 {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.97) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    margin-bottom: 0.6rem !important;
    letter-spacing: -0.5px;
}

/* ── Phrase descriptive ── */
.newc-description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.65;
}

/* ── Couleurs de la timeline ── */
.newc-theme .timeline-base-line {
    background: linear-gradient(0.25turn, rgba(255,255,255,0) 5%, rgba(255,255,255,0.28));
}

.newc-theme .timeline-active-segment {
    background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.85));
    color: rgba(255, 255, 255, 0.85);
}

.newc-theme .timeline-project-year {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Flèche de fin (→) légèrement plus grande */
.newc-year-end {
    font-size: 14px !important;
    padding: 0.15rem 0.25rem !important;
}

/* 2. ASP - Thème Tech/IT */
.tech-theme {
    background: linear-gradient(135deg, #ffffff 0%, #d8d1f6 50%, #bacaff 100%);
}

.tech-theme .tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(39, 110, 203, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 110, 203, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.tech-theme .tech-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #0e4b99;
    border-radius: 50%;
    animation: techFloat 8s ease-in-out infinite;
}

.tech-theme .tech-particle:nth-child(1) {
    top: 25%;
    left: 20%;
    animation-delay: 0s;
}

.tech-theme .tech-particle:nth-child(2) {
    top: 70%;
    right: 25%;
    animation-delay: 2s;
}

.tech-theme .tech-particle:nth-child(3) {
    bottom: 40%;
    left: 15%;
    animation-delay: 4s;
}

.tech-theme .tech-particle:nth-child(4) {
    top: 50%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes techFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-120px) scale(1.2); opacity: 1; }
}

.tech-theme .project-title-section h2 {
    background: linear-gradient(135deg, #0e4b99 0%, #2e8b57 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-theme .tech-badge {
    background: linear-gradient(135deg, #0e4b99, #2e8b57);
}

.tech-theme .tech-card {
    border: 1px solid rgba(14, 75, 153, 0.3);
    background: rgba(255, 255, 255, 0.6);
}

.tech-theme .tech-card:hover {
    box-shadow: 0 10px 30px rgba(14, 75, 153, 0.2);
}

.tech-theme .stat-number {
    background: linear-gradient(135deg, #0e4b99 0%, #2e8b57 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-theme .tab-btn.active {
    background: linear-gradient(135deg, #0e4b99 0%, #2e8b57 100%);
    color: white;
}

.tech-theme .project-container {
    color: #1a365d;
}

/* 3. ROYAUME DES CARMES - Thème Luxe */
.luxury-theme {
    background: linear-gradient(
  135deg,
  #f0ece1 0%,
  #e6ddcf 30%,
  #d4c4aa 65%,
  #bfa17a 100%
);
}

.luxury-theme .luxury-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.luxury-theme .luxury-particle {
    position: absolute;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, #ffd700, #daa520);
    border-radius: 50%;
    animation: luxuryFloat 10s ease-in-out infinite;
}

.luxury-theme .luxury-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle 3s ease-in-out infinite;
}

.luxury-theme .luxury-particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.luxury-theme .luxury-particle:nth-child(2) {
    bottom: 30%;
    right: 20%;
    animation-delay: 3s;
}

.luxury-theme .luxury-sparkle:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 1.5s;
}

@keyframes luxuryFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-130px) rotate(180deg); opacity: 1; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.luxury-theme .project-title-section h2 {
    background: #18575e;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-theme .luxury-badge {
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #2c1810;
}

.luxury-theme .luxury-card {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: #18575e;
}

.luxury-theme .luxury-card:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.luxury-theme .stat-number {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-theme .tab-btn.active {
    background: linear-gradient(135deg, #17565d 0%, #639981 100%);
    color: white;
}

/* 4. TURBEL - Thème Industriel */
.industrial-theme {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 50%, rgb(255, 255, 255) 100%);
}

.industrial-theme .industrial-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(75, 85, 99, 0.08) 5px, rgba(75, 85, 99, 0.08) 200px),
        repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(75, 85, 99, 0.08) 5px, rgba(75, 85, 99, 0.08) 200px);
}

.industrial-theme .industrial-gear {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #4B5563;
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.industrial-theme .industrial-gear:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #4B5563;
    border-radius: 50%;
}

.industrial-theme .industrial-gear:nth-child(1) {
    top: 25%;
    right: 20%;
}

.industrial-theme .industrial-gear:nth-child(2) {
    bottom: 30%;
    left: 15%;
    animation-direction: reverse;
    animation-duration: 20s;
}

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

.industrial-theme .project-title-section h2 {
    background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industrial-theme .industrial-badge {
    background: linear-gradient(135deg, #4B5563, #6B7280);
}

.industrial-theme .industrial-card {
    border: 1px solid rgba(75, 85, 99, 0.3);
    background: rgba(255, 255, 255, 0.6);
}

.industrial-theme .industrial-card:hover {
    box-shadow: 0 10px 30px rgba(75, 85, 99, 0.2);
}

.industrial-theme .stat-number {
    background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industrial-theme .tab-btn.active {
    background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
    color: white;
}

.industrial-theme .project-container {
    color: #374151;
}

/* 5. POWERDALE - Thème Écologique */
.eco-theme {
    background: linear-gradient(135deg, #ffffff 0%, #dfe2de 70%, #a7f3a7 100%);
}

.eco-theme .eco-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 60% 20%, rgba(34, 197, 94, 0.15) 0%, transparent 30%);
    animation: ecoWave 12s ease-in-out infinite;
}

@keyframes ecoWave {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.eco-theme .eco-leaf {
    position: absolute;
    width: 20px;
    height: 25px;
    background: #22C55E;
    border-radius: 0 100% 0 100%;
    animation: leafFloat 8s ease-in-out infinite;
}

.eco-theme .eco-energy {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #22C55E;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: energyPulse 4s ease-in-out infinite;
}

.eco-theme .eco-leaf:nth-child(1) {
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.eco-theme .eco-leaf:nth-child(2) {
    bottom: 40%;
    right: 15%;
    animation-delay: 3s;
    transform: rotate(45deg);
}

.eco-theme .eco-energy:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-delay: 1s;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-55px) rotate(10deg); opacity: 1; }
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.eco-theme .project-title-section h2 {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-theme .eco-badge {
    background: linear-gradient(135deg, #16A34A, #22C55E);
}

.eco-theme .eco-card {
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(255, 255, 255, 0.6);
}

.eco-theme .eco-card:hover {
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.eco-theme .stat-number {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-theme .tab-btn.active {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    color: white;
}

.eco-theme .project-container {
    color: #166534;
}

/* Animation générale de float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================================================
   SECTION PROJETS DIVERS - Full Width avec Navigation Horizontale
   ============================================================================ */

.misc-projects-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 30%, #e8f0fe 70%, #f5f7ff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
}

.misc-projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 181, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(254, 202, 202, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.misc-projects-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

.misc-projects-section h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.misc-projects-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Category Styling */
.misc-category {
    margin-bottom: 4rem;
}

.misc-category:last-child {
    margin-bottom: 0;
}

.misc-category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.misc-category h3 {
    font-size: 2rem;
    color: #1e293b;
    font-weight: 600;
    position: relative;
}

.misc-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #a78bfa, #f472b6);
    border-radius: 2px;
}

/* Navigation Controls - Positionnées sur les côtés */
.misc-nav-controls {
    display: none; /* Cachées par défaut, gérées par JS */
}

.misc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 78px;
    height: 78px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #4f46e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.misc-nav-btn.visible {
    opacity: 1;
    visibility: visible;
}

.misc-nav-btn.prev {
    left: -10px;
}

.misc-nav-btn.next {
    right: -10px;
}

.misc-nav-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #a78bfa;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.25);
    color: #5b21b6;
}

.misc-nav-btn:disabled {
    opacity: 0;
    visibility: hidden;
    cursor: not-allowed;
}

/* Slider Container */
.misc-projects-slider {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    overflow: visible;
}

.misc-projects-content {
    overflow: hidden;
    border-radius: 20px;
}

.misc-projects-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: none;
}

/* Project Item */
.misc-project-item {
    flex: 0 0 380px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(147, 197, 253, 0.3);
    position: relative;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.misc-project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.misc-project-info {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
}

.misc-project-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.misc-project-info p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Désactiver le swipe tactile pour TOUTE la section misc-projects */
#misc-projects .misc-projects-slider {
    touch-action: pan-y !important; /* Seulement scroll vertical */
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

#misc-projects .misc-projects-content {
    touch-action: pan-y !important;
    overflow-x: hidden !important;
}

#misc-projects .misc-projects-track {
    touch-action: pan-y !important;
}

/* Réactiver les événements pour les boutons de navigation */
#misc-projects .misc-nav-btn {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

/* Réactiver les événements pour le contenu des projets */
#misc-projects .misc-project-item {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    max-height: 660px;
    overflow-y: auto;
}

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

/* SECTION CONTACT */
.contact-section {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a, #101020);
}

.contact-content {
    text-align: center;
    max-width: 800px;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ffff, #ff0055);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display:none;
}

.contact-section p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* ============================================================================
   TIMELINE HORIZONTALE MINIMALISTE - À ajouter au fichier style.css
   ============================================================================ */

/* Timeline Container - Position à gauche du subtitle */
.project-subtitle-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    overflow: visible !important;
    position: relative;
}

.project-timeline {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible !important;
    position: relative;
}

/* Timeline Project Years - Années du projet au-dessus de la ligne colorée */
.timeline-project-year {
    position: absolute !important;
    top: -25px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1.2 !important;
    transform: translateX(-50%);
    color: #333 !important;
    padding: 0.1rem 0.1rem !important;
    border-radius: 4px !important;
    z-index: 100 !important;
    white-space: nowrap !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    text-overflow: visible !important;
    max-width: none !important;
    min-width: auto !important;
}

/* Timeline Line Container */
.timeline-line-container {
    position: relative;
    height: 6px;
    width: 215px;
    flex-shrink: 0;
    margin-top: 30px;
    overflow: visible !important;
}

/* Timeline Base Line */
.timeline-base-line {
    width: 100%;
    height: 6px;
    background: linear-gradient(0.25turn, #8a8a8a00 5%, #8a8a8a);
    border-radius: 3px;
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

/* Timeline Active Segment */
.timeline-active-segment {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
    transition: all 0.5s ease;
    animation: timelineGlow 2s ease-in-out infinite alternate;
}

@keyframes timelineGlow {
    0% { 
        opacity: 0.8;
        box-shadow: 0 0 8px currentColor;
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 15px currentColor;
    }
}

/* Couleurs par thème - Segment actif et années du projet */

/* ASP - Thème Tech */
.tech-theme .timeline-active-segment {
    background: linear-gradient(90deg, #0e4b99, #2e8b57);
    color: #0e4b99;
}

.tech-theme .timeline-project-year .tech-theme .timeline-project-year.single {
    color: #0e4b99;
    border: 1px solid #0e4b99;
}

/* Diffusion Menuiserie - Thème Bois */
.wood-theme .timeline-active-segment {
    background: linear-gradient(90deg, #8B4513, #CD853F);
    color: #8B4513;
}

.wood-theme .timeline-project-year {
    color: #8B4513;
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #8B4513;
}

/* Powerdale */

.eco-theme .timeline-active-segment {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    color: #16A34A;
}

.eco-theme .timeline-project-year {
    color: #16A34A;
    background: #16a34a3f;
    border: 1px solid #16A34A;
}

/* RDC */

.luxury-theme .timeline-active-segment {
    background: linear-gradient(135deg, #ffd700, #daa520);
    color: #ffd700;
}

.luxury-theme .timeline-project-year {
    color: #17565d;
    background: #6399812b;
    border: 1px solid #daa520;
}

/* Turbel */

.industrial-theme .timeline-active-segment {
    background: linear-gradient(90deg, #E6007E, #3227839d);
    color: #667eea;
}

.industrial-theme .timeline-project-year {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #667eea;
}

/* Animation d'entrée */
.project-timeline {
    opacity: 0;
    transform: translateY(10px);
    animation: timelineSlideIn 0.6s ease-out forwards;
}

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

/* CHATBOT */
.ask-ai-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: aiPulse 3s ease-in-out infinite;
}

.ask-ai-btn::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.6s ease;
}

.ask-ai-btn:hover::before {
    left: 100%;
}

.ask-ai-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, #ff0055, #00ffff);
}

.ai-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes aiPulse {
    0% { box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 8px 40px rgba(0, 255, 255, 0.6); }
    100% { box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3); }
}

.floating-chatbot {
    position: fixed;
    bottom: 120px;
    right: 2rem;
    width: 400px;
    height: 500px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-chatbot:not(.hidden) {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 85, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chatbot-header h3 {
    color: #00ffff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #ff0055;
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: messageSlide 0.3s ease-out;
}

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

.message.user {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    font-weight: 500;
}

.message.bot {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    position: relative;
}

.message.bot::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #00ffff, #ff0055);
    border-radius: 2px;
}

.welcome-message {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 85, 0.05)) !important;
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    animation: welcomeGlow 2s ease-in-out infinite alternate;
}

@keyframes welcomeGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.2); }
    100% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); }
}

.chatbot-input-container {
    display: flex;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cgu {
    font-size: 12px;
    font-style: italic;
    padding: 2px 10px;
}

#chatbot-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

#chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#chatbot-input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

#send-btn {
    padding: 0.8rem;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

#send-btn:hover {
    background: linear-gradient(135deg, #ff0055, #00ffff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

#send-btn:active {
    transform: translateY(0);
}

#send-btn svg {
    transition: transform 0.2s ease;
}

#send-btn:hover svg {
    transform: translateX(2px);
}

/* Animation pour l'indicateur de frappe */
.typing-indicator {
    padding: 1rem !important;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    animation: typingDots 1.5s infinite;
    opacity: 0.4;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.3s; }
.typing-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes typingDots {
    0%, 60%, 100% { 
        opacity: 0.4;
        transform: translateY(0);
    }
    30% { 
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* BARRE D'ACCÈS RAPIDE PROJETS */
.portfolio-quick-access {
    position: fixed;
    top: 5rem;
    right: 16rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.6rem 1rem;
    display: flex;
    gap: 0.8rem;
    z-index: 1500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-quick-access.visible {
    opacity: 1;
    visibility: visible;
}

.quick-project-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.quick-project-btn:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.1);
}

.quick-project-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.quick-project-btn:hover img {
    filter: brightness(1.2);
}

/* Tooltip pour les projets */
.quick-project-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.quick-project-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* MENU BURGER ET VERSION MOBILE */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(27, 24, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

.burger-line {
    width: 20px;
    height: 2px;
    background: #00ffff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-nav-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: rgba(0, 255, 255, 0.3);
}

.mobile-nav-item .nav-icon {
    width: 24px;
    height: 24px;
}

.mobile-lang-section {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mobile-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.mobile-lang-btn.active {
    background: #00ffff;
    color: #000;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.mobile-projects-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    max-width: 300px;
}

.mobile-project-btn {
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
}

.mobile-project-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.1);
}

.mobile-project-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.mobile-project-btn:hover img {
    filter: brightness(1.2);
}

.mobile-project-btn span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.2;
}

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

/* Classes utilitaires */
.hidden {
    display: none !important;
}

/* ============================================================================
   STYLES GDPR BANNER
   ============================================================================ */

.gdpr-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: auto;
    height: auto;
    max-width: 600px;
    z-index: 10000;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gdpr-banner:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.gdpr-banner.hidden {
    display: none !important;
}

.gdpr-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
    color: white;
}

.gdpr-content h3 {
    color: #00ffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.gdpr-content > p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.gdpr-options {
    margin-bottom: 2rem;
    overflow: visible;
    position: relative;
}

.cookie-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .toggle-slider {
    background: #00ffff;
}

.cookie-toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-slider.essential {
    background: #00ffff !important;
    opacity: 0.7;
}

.toggle-slider.essential::before {
    transform: translateX(24px) !important;
}

.cookie-info {
    flex: 1;
}

.cookie-info strong {
    color: #00ffff;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.cookie-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.gdpr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    flex-direction: row !important;
}

.gdpr-btn {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gdpr-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.gdpr-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gdpr-btn.primary {
    background: linear-gradient(135deg, #181818, #313131);
    color: white;
}

.gdpr-btn.primary:hover {
    background: linear-gradient(135deg, #242424, #3d3d3d);
    transform: translateY(-1px);
}

.gdpr-btn.primary-alt {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
}

.gdpr-btn.primary-alt:hover {
    background: linear-gradient(135deg, #00e6e6, #0070e6);
    transform: translateY(-1px);
}

.gdpr-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gdpr-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Bouton de gestion des cookies */
.cookie-settings-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: #00ffff;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: scale(1.05);
}

.cookie-settings-btn.hidden {
    display: none !important;
}

/* Personnages animés des cookies */
.cookie-character {
    position: absolute;
    right: -15px;
    width: 85px;
    height: 85px;
    visibility: hidden;
    transform: translateY(-50%) translateX(100vw);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                visibility 0s linear 0.8s;
    z-index: 10;
    pointer-events: none;
}

.cookie-character.show {
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                visibility 0s linear 0s;
}

.cookie-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 255, 255, 0.3));
}

/* Animation de danse */
@keyframes characterDance {
    0%, 100% { 
        transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-55%) translateX(0) rotate(-5deg) scale(1.05);
    }
    50% { 
        transform: translateY(-45%) translateX(0) rotate(5deg) scale(0.95);
    }
    75% { 
        transform: translateY(-55%) translateX(0) rotate(-3deg) scale(1.05);
    }
}

.cookie-character.show.dancing {
    animation: characterDance 2s ease-in-out infinite;
}

/* Animation de célébration pour "Accepter tout" */
.cookie-character.celebrate {
    animation: characterCelebrate 1s ease-in-out !important;
}

@keyframes characterCelebrate {
    0% { 
        transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
    }
    20% { 
        transform: translateY(-65%) translateX(0) rotate(-15deg) scale(1.2);
    }
    40% { 
        transform: translateY(-35%) translateX(0) rotate(15deg) scale(0.8);
    }
    60% { 
        transform: translateY(-75%) translateX(0) rotate(-10deg) scale(1.3);
    }
    80% { 
        transform: translateY(-25%) translateX(0) rotate(10deg) scale(0.9);
    }
    100% { 
        transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
    }
}

/* ============================================================================
   POPUP POLITIQUE DES COOKIES
   ============================================================================ */

.cookies-policy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cookies-policy-link:hover {
    color: #00ffff;
}

.cookies-policy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cookies-policy-popup:not(.hidden) {
    opacity: 1;
}

.cookies-policy-popup.hidden {
    display: none !important;
}

.cookies-policy-content {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.1);
    color: white;
}

.cookies-policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.cookies-policy-header h2 {
    color: #00ffff;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.cookies-policy-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookies-policy-close:hover {
    background: rgba(255, 0, 85, 0.1);
    color: #ff0055;
    transform: scale(1.1);
}

.cookies-policy-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
}

.cookies-policy-body::-webkit-scrollbar {
    width: 6px;
}

.cookies-policy-body::-webkit-scrollbar-track {
    background: transparent;
}

.cookies-policy-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.policy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h3 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.policy-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 500;
}

.policy-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.policy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.policy-section strong {
    color: #00ffff;
    font-weight: 600;
}

.policy-section code {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.policy-section a {
    color: #00ffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: #ff0055;
}

/* ============================================================================
   YOUTUBE CONSENT PLACEHOLDERS
   ============================================================================ */

.youtube-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

.video-consent-prompt {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    max-width: 400px;
}

.video-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.video-consent-prompt h4 {
    font-size: 0.6em;
    margin-bottom: 6px;
    color: #ffffff;
}

.video-consent-prompt p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 25px;
}

.consent-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.6em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consent-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

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

/* Responsive */
@media (max-height: 1024px) {
    .hero p {
        max-width: auto;
        font-size: 12px;
    }
    .project-item {
        padding: 10px;
    }
    .projects-section h3 {
        display: none;
    }
    .project-logo {
        height: 40px;
    }
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {

    .main-nav {
        top: 1rem;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    
    .nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .language-selector {
        top: 5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .project-title-section h2 {
        font-size: 2.5rem;
    }

    .project-logo {
        height: 30px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 100px;
    }

    .hero{
        display: grid;
        height: auto;
    }

    .fixed-header {
        top: 2rem;
    }

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

    .project-logo {
        height: 30px;
    }

    .hero {
        flex-direction: column;
    }
    
    .hero-left {
        height: 30vh;
        background: url(./assets/portfolio_main.jpg) center calc(50% - -70px) / cover no-repeat;
    }
    
    .hero-right {
        padding: 2rem;
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .expertise-card {
        height: auto;
    }

    .expertise-card h3 {
        font-size: 1em;
    }

    .expertise-card p {
        font-size: 0.7em;
    }
    
    .project-detail {
        padding: 2rem 0;
    }
    
    .project-container {
        padding: 0 1rem;
    }
    
    .project-title-section h2 {
        font-size: 2rem;
    }
    
    .project-header {
        gap: 1.5rem;
    }
    
    .project-logo-main {
        width: 80px;
        height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.1rem;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }

    .stat-label, .stat-label-light {
    font-size: 0.6rem;
    }
    
    .project-tabs {
        overflow-x: auto;
        gap : 0.1rem;
    }
    
    .tab-btn {
        white-space: wrap;
        width:33%;
        text-align:left;
        font-size:0.7rem;
    }

    .ask-ai-btn {
        width: 100px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .ai-text {
        font-size: 0.8rem;
    }

    /* Timeline */    
    .project-timeline {
        display: none;
    }

    /* CHATBOT */
    
    .floating-chatbot {
        width: calc(100vw - 2rem);
        height: 70vh;
        bottom: 80px;
        right: 1rem;
        left: 1rem;
    }
    
    .chatbot-header {
        padding: 1rem;
    }
    
    .chatbot-messages {
        padding: 0.8rem;
    }
    
    .chatbot-input-container {
        padding: 0.8rem 1rem;
    }
    
    .message {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .language-selector {
        top: 1rem;
        right: 1rem;
    }

    .main-nav,
    .language-selector,
    .portfolio-quick-access {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* MISC */

    .misc-projects-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .misc-projects-container {
        padding: 0 1rem;
    }
    
    .misc-projects-section h2 {
        font-size: 2.2rem;
    }
    
    .misc-projects-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .misc-project-item {
        flex: 0 0 220px;
    }
    
    .misc-project-image {
        height: 180px;
    }
    
    .misc-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .misc-nav-controls {
        align-self: flex-end;
    }

    .misc-projects-content {
        overflow: visible;
    }
    
    .misc-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .misc-projects-track {
        gap: 1.5rem;
    }
    
    .misc-projects-slider {
        padding: 0rem;
    }

    /* COOKIES */

    .cookie-character {
        right: 0px;
        width: 35px;
        height: 35px;
    }

    .gdpr-banner {
        align-items: start;
    }

    .gdpr-content {
        padding: 0.5rem;
        margin: 0.1rem;
    }
    
    .gdpr-content h3 {
        font-size: 1.5rem;
    }
    
    .gdpr-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0px;
        flex-direction: column-reverse !important;
    }

    .gdpr-options {
        margin-bottom: 0px;
    }

    .cookie-option {
        margin-bottom: 0.3rem;
    }
    
    .cookie-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .toggle-slider {
        align-self: flex-end;
    }
    
    .cookie-settings-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        left: 1rem;
        font-size: 1.2rem;
    }

    .gdpr-content > p {
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
    }

    .gdpr-actions {
        gap: 0px;
    }

    .gdpr-btn {
        padding: 0.8rem 0rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .cookie-info p {
        font-size: 0.6rem;
        line-height: 1;
    }

    .toggle-slider {
        width: 30px;
        height: 10px;
    }

    .toggle-slider::before {
        top: -2px;
        left: 0px;
        width: 15px;
        height: 15px;
    }
    /* POPUP POLITIQUE */
    .cookies-policy-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cookies-policy-header {
        padding: 1.5rem;
    }
    
    .cookies-policy-header h2 {
        font-size: 1.5rem;
    }
    
    .cookies-policy-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .cookies-policy-body {
        padding: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section h4 {
        font-size: 1rem;
    }
    
    .policy-section p,
    .policy-section li {
        font-size: 0.9rem;
    }

    .youtube-placeholder {
        height: 250px;
    }
    
    .video-consent-prompt {
        padding: 20px 15px;
    }
    
    .video-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .video-consent-prompt h4 {
        font-size: 0.6em;
        margin-bottom: 6px;
    }
    
    .video-consent-prompt p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    
    .consent-btn {
        padding: 10px 20px;
        font-size: 0.6em;
    }
}