:root{
  --bg: #0a0a0f;
  --bg-2: #111118;
  --card: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(10,10,20,0.9));
  --accent-1: #00d9ff;
  --accent-2: #ff006e;
  --accent-3: #8338ec;
  --accent-4: #ffbe0b;
  --muted: #a0a8b8;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --radius: 20px;
  --glow-cyan: 0 0 20px rgba(0,217,255,0.4), 0 0 40px rgba(0,217,255,0.2);
  --glow-magenta: 0 0 20px rgba(255,0,110,0.4), 0 0 40px rgba(255,0,110,0.2);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html,body{height:100%}
body{
  margin:0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(131,56,236,0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,217,255,0.06), transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255,0,110,0.05), transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
  color:#e8e8ea;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  font-size:16px;
  position: relative;
  cursor: none;
}

/* Background video */
.bg-video{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.2) contrast(1.05) brightness(0.8) blur(0.5px);
  opacity: 0.96;
  pointer-events: none;
  transform: scale(1.02);
}

body::before{
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(131,56,236,0.12), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(0,217,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.65));
  z-index: -1;
  pointer-events: none;
}

/* Curseur personnalisé */
.custom-cursor{
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  mix-blend-mode: difference;
}
.custom-cursor-dot{
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.08s ease;
}

/* Particules */
.particles{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.particle{
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-1);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 20s infinite ease-in-out;
}
@keyframes float-particle{
  0%, 100%{transform: translate(0, 0) scale(1);}
  25%{transform: translate(100px, -100px) scale(1.2);}
  50%{transform: translate(-50px, -200px) scale(0.8);}
  75%{transform: translate(150px, -150px) scale(1.1);}
}

/* Header */
.site-header{
  position:relative;
  padding-bottom:20px;
  z-index: 10;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 40px;
  gap:12px;
  backdrop-filter: blur(20px);
  background: rgba(10,10,20,0.4);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.6s ease;
}
@keyframes slideDown{
  from{transform: translateY(-100%); opacity: 0;}
  to{transform: translateY(0); opacity: 1;}
}
.brand{display:flex;align-items:center;gap:14px;}
.logo{
  width:56px;
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: var(--glow-cyan);
  font-weight:800;
  color:#000;
  border:2px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.logo:hover{
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-magenta);
}
.chile-flag{
  font-size: 24px;
  position: absolute;
  bottom: -8px;
  right: -8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: wave 2s ease-in-out infinite;
}
@keyframes wave{
  0%, 100%{transform: rotate(0deg);}
  25%{transform: rotate(-10deg);}
  75%{transform: rotate(10deg);}
}
.brand-name{
  font-weight:800;
  letter-spacing:0.5px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  text-decoration: none;
}

/* Hero Section */
.hero{
  display:flex;
  align-items:center;
  gap:60px;
  padding:80px 40px;
  max-width:1400px;
  margin:0 auto;
  min-height: 85vh;
  position:relative;
  overflow:visible;
  z-index: 2;
}
.hero-content{
  flex:1;
  max-width:65%;
  animation: fadeInUp 1s ease;
}
@keyframes fadeInUp{
  from{opacity: 0; transform: translateY(40px);}
  to{opacity: 1; transform: translateY(0);}
}
.badge{
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #000;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--glow-cyan);
}
.hero h1{
  font-size:clamp(48px, 8vw, 84px);
  margin:0 0 12px;
  font-weight:900;
  letter-spacing:-2px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-1) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  background-size: 200% 200%;
}
@keyframes gradientShift{
  0%, 100%{background-position: 0% 50%;}
  50%{background-position: 100% 50%;}
}
.lead{
  color:#d8d8da;
  margin-bottom:32px;
  font-size: 18px;
  line-height: 1.8;
  max-width: 600px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 32px;
  border-radius:50px;
  border:2px solid transparent;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn.ghost{
  background:rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border:2px solid var(--glass-border);
  color:#fff;
}
.btn.ghost:hover{
  background:rgba(255,255,255,0.1);
  border-color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,217,255,0.2);
}

/* Hero Art */
.hero-art{
  width:400px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  animation: fadeInRight 1s ease 0.3s backwards;
}
@keyframes fadeInRight{
  from{opacity: 0; transform: translateX(60px);}
  to{opacity: 1; transform: translateX(0);}
}
.blob{
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  opacity:0.6;
  animation: blob-float 8s ease-in-out infinite;
}
.blob-1{
  width:300px;
  height:300px;
  background:linear-gradient(135deg, var(--accent-1), var(--accent-3));
  left:-50px;
  top:-60px;
}
.blob-2{
  width:250px;
  height:250px;
  background:linear-gradient(135deg, var(--accent-2), var(--accent-4));
  right:-40px;
  bottom:-40px;
  animation-delay: -4s;
}
@keyframes blob-float{
  0%, 100%{transform: translate(0, 0) scale(1);}
  25%{transform: translate(20px, -20px) scale(1.1);}
  50%{transform: translate(-15px, 15px) scale(0.95);}
  75%{transform: translate(15px, 10px) scale(1.05);}
}

.avatar{
  width:280px;
  height:280px;
  border-radius:30px;
  background:linear-gradient(135deg, rgba(20,20,40,0.9), rgba(40,20,60,0.8));
  backdrop-filter: blur(20px);
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,217,255,0.1);
  position: relative;
  overflow: hidden;
  /* transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); */
}
.avatar:hover{
  box-shadow: 0 30px 80px rgba(0,217,255,0.4);
  border-color: var(--accent-1);
}
.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
  z-index: 1;
  /* Image fixe - aucune animation */
  transition: none;
  transform: none;
}
/* Sections */
.section{
  padding:100px 40px;
  position: relative;
  z-index: 2;
}
.container{
  max-width:1300px;
  margin:0 auto;
}
.section h2{
  font-size:clamp(36px, 5vw, 56px);
  margin:0 0 16px;
  font-weight:900;
  background: linear-gradient(135deg, #fff, var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}
.section h2::after{
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

/* About Grid */
.about-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:60px;
  align-items:center;
  margin-top: 40px;
}
.about-text p{
  margin:0 0 20px;
  color:#d6d6d8;
  font-size: 17px;
  line-height: 1.8;
}
.about-stats{
  display:grid;
  grid-template-columns: 1fr;
  gap:20px;
}
.stat{
  background:var(--glass);
  backdrop-filter: blur(20px);
  padding:24px;
  border-radius:20px;
  border:1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat:hover{
  transform: translateY(-8px);
  border-color: var(--accent-1);
  box-shadow: 0 15px 40px rgba(0,217,255,0.3);
}
.stat .num{
  font-size:32px;
  font-weight:900;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat .label{
  color:var(--muted);
  font-size:14px;
  font-weight: 600;
}

/* Skill List */
.skill-list{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.skill-list li{
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  font-size: 16px;
  color: #d8d8da;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-list li:hover{
  transform: translateX(10px);
  border-color: var(--accent-1);
  background: rgba(0,217,255,0.05);
}

/* Philosophy Grid */
.philosophy-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.philosophy-card{
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.philosophy-card:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 40px rgba(131,56,236,0.3);
  border-color: var(--accent-3);
}
.philosophy-card h3{
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #fff;
}
.philosophy-card p{
  color: #d8d8da;
  line-height: 1.8;
  font-size: 15px;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--glass-border);
  padding:40px 0;
  margin-top:80px;
  background: rgba(10,10,20,0.5);
  backdrop-filter: blur(20px);
}
.site-footer .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  flex-wrap: wrap;
  gap: 20px;
}
.foot-right{
  font-weight: 600;
}

/* Reveal Animation */
.reveal{
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active{
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar{
  width: 12px;
}
::-webkit-scrollbar-track{
  background: var(--bg);
}
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

/* Selection */
::selection{
  background: var(--accent-1);
  color: #000;
}

/* Responsive */
@media (max-width: 880px){
  .hero{
    flex-direction: column;
    text-align: center;
  }
  .hero-content{
    max-width: 100%;
  }
  .hero-art{
    width: 280px;
  }
  .about-grid{
    grid-template-columns: 1fr;
  }
  .nav{
    padding: 16px 20px;
  }
}

/* ========================================
   FLÈCHE RETOUR ACCUEIL - ULTRA STYLÉE
   ======================================== */

.arrow-back {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  cursor: none;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float-arrow-back 3s ease-in-out infinite;
}

.arrow-back::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.15)
  );
  border-radius: 21px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.arrow-back:hover {
  transform: translateX(5px) translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 30px rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.arrow-back:hover::before {
  opacity: 1;
}

.arrow-back:active {
  transform: translateX(3px) translateY(0) scale(1.02);
}

.arrow-back svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arrow-back:hover svg {
  transform: translateX(-4px);
}

.arrow-back .arrow-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.arrow-back:hover .arrow-label {
  opacity: 1;
}

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

/* Effet de pulse subtle */
.arrow-back::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  animation: pulse-glow-back 2s ease-in-out infinite;
}

@keyframes pulse-glow-back {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .arrow-back {
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
  }
  
  .arrow-back svg {
    width: 28px;
    height: 28px;
  }
  
  .arrow-back .arrow-label {
    font-size: 9px;
  }
}

/* ========================================
   CAROUSEL ULTRA STYLÉ
   ======================================== */

.carousel-section {
  padding: 60px 40px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  gap: 24px;
  animation: scroll-carousel 40s linear infinite;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  flex-shrink: 0;
  width: 280px;
  height: 350px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1),
    rgba(131, 56, 236, 0.1)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.carousel-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--accent-1);
  z-index: 10;
}

.carousel-item:hover::before {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(0.9) contrast(1.1);
}

.carousel-item:hover img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2);
}

/* Effet de brillance qui passe sur les images */
.carousel-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(25deg);
  animation: shine-slide 8s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes shine-slide {
  0% {
    left: -60%;
  }
  20% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-section {
    padding: 40px 20px;
  }
  
  .carousel-wrapper {
    height: 280px;
  }
  
  .carousel-item {
    width: 220px;
    height: 280px;
  }
  
  .carousel-track {
    gap: 16px;
    animation-duration: 30s;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    height: 240px;
  }
  
  .carousel-item {
    width: 180px;
    height: 240px;
  }
}