/* ================================================================
   ANiD PORTFOLIO — STYLESHEET COMPLET
   Abdourazack Nour Iltireh · Technicien Réseau & Web Développeur
================================================================ */

/* ── Google Fonts (chargées aussi dans le HTML, mais on garde la ref) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.cdnfonts.com/css/gagalin');

/* ================================================================
   VARIABLES CSS
================================================================ */
:root {
  --clr-bg:            #FFFFFF;
  --clr-surface:       #F8F9FA;
  --clr-surface-2:     #E9ECEF;
  --clr-border:        rgba(0,0,0,0.1);
  --clr-accent:        #2563EB;
  --clr-accent-dark:   #1D4ED8;
  --clr-accent-glow:   rgba(37,99,235,0.25);
  --clr-accent-subtle: rgba(37,99,235,0.08);
  --clr-cyan:          #0099AA;
  --clr-violet:        #8B5CF6;
  --clr-text-primary:  #000000;
  --clr-text-body:     #333333;
  --clr-text-muted:    #666666;
  --font-main:         'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:      'Outfit', sans-serif;
  --font-name:         'Playfair Display', serif;
  --font-mono:         'JetBrains Mono', monospace;
  --radius-sm:         8px;
  --radius-md:         16px;
  --radius-lg:         24px;
  --shadow-card:       0 4px 32px rgba(0,0,0,0.08);
  --shadow-glow:       0 0 32px rgba(37,99,235,0.25), 0 4px 24px rgba(0,0,0,0.1);
  --transition:        0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Dark Mode Variables ── */
body.dark-mode {
  --clr-bg:            #0D0D0D;
  --clr-surface:       #161616;
  --clr-surface-2:     #1F1F1F;
  --clr-border:        rgba(255,255,255,0.08);
  --clr-accent:        #3B82F6;
  --clr-accent-dark:   #2563EB;
  --clr-accent-glow:   rgba(59,130,246,0.3);
  --clr-accent-subtle: rgba(59,130,246,0.12);
  --clr-text-primary:  #F0F0F0;
  --clr-text-body:     #C0C0C0;
  --clr-text-muted:    #888888;
  --shadow-card:       0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow:       0 0 32px rgba(59,130,246,0.35), 0 4px 24px rgba(0,0,0,0.4);
  background: var(--clr-bg);
  color: var(--clr-text-body);
}

/* ── Dark Mode Toggle Button (Fixed Bottom Left) ── */
.anid-dark-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--clr-text-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all var(--transition);
}
.anid-dark-toggle:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 6px 24px rgba(37,99,235,0.35);
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--clr-bg);
  color: var(--clr-text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   NAVBAR
================================================================ */
.anid-nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  padding: 0.75rem 0;
}
.anid-nav.scrolled {
  background: rgba(255,255,255,0.85);
  border-color: var(--clr-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.dark-mode .anid-nav.scrolled {
  background: rgba(13,13,13,0.85);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.anid-logo img { transition: transform var(--transition); }
.anid-logo:hover img { transform: scale(1.5) !important; }

.anid-nav .nav-link {
  color: var(--clr-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem !important;
  position: relative;
  transition: color var(--transition);
}
.anid-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--clr-cyan);
  transition: width var(--transition), left var(--transition);
  border-radius: 2px;
}
.anid-nav .nav-link:hover,
.anid-nav .nav-link.active {
  color: var(--clr-text-primary);
  background: transparent;
}
.anid-nav .nav-link:hover::after,
.anid-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* Toggler */
.anid-toggler {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex; flex-direction: column; gap: 5px;
  background: transparent;
}
.anid-toggler:focus { box-shadow: none; }
.toggler-bar {
  display: block; width: 22px; height: 2px;
  background: var(--clr-text-muted);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 991px) {
  #navMenu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid var(--clr-border);
    text-align: center;
  }
}

/* ================================================================
   HERO — SECTION PRINCIPALE
================================================================ */
.anid-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-bg);
  padding: 120px 0 80px;
}

/* Grille techno en fond */
.anid-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Vignette bords */
.anid-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 50%, var(--clr-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Orbs lumineux ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: orbFloat3 15s ease-in-out infinite alternate;
}

@keyframes orbFloat1 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(80px,60px) scale(1.15)} }
@keyframes orbFloat2 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-60px,-50px) scale(1.2)} }
@keyframes orbFloat3 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(40px,-60px) scale(0.9)} }

/* ── Dots particles container ── */
.hero-dots {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-dot {
  position: absolute;
  background: var(--clr-cyan);
  border-radius: 50%;
  animation: dotRise linear infinite;
}
@keyframes dotRise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}

/* ── Zone contenu hero ── */
.hero-text-col { position: relative; z-index: 1; }

/* Badge disponible */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--clr-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-cyan);
  box-shadow: 0 0 8px var(--clr-cyan);
  animation: badgePulse 1.8s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.5; }
}

/* ── Nom principal ── */
.hero-name {
  font-family: var(--font-name);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

/* Prénom */
.hero-name-first {
  color: var(--clr-text-primary);
  font-size: 1.15em;
  position: relative;
  z-index: 2;
}

/* Nom de famille — gradient animé */
.hero-name-last {
  background: linear-gradient(90deg, #000 0%, var(--clr-cyan) 40%, var(--clr-violet) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite alternate;
  font-size: 0.85em;
  margin-left: 0.8em;
  margin-top: -0.1em;
  position: relative;
  z-index: 1;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

/* ── Tagline typewriter ── */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.hero-tagline .bracket { color: var(--clr-cyan); opacity: 0.7; }
.hero-tagline .typed-text { color: var(--clr-text-primary); }
.cursor-blink {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--clr-cyan);
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Slogan ── */
.hero-slogan {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  font-style: italic;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

/* ── Intro ── */
.hero-intro {
  font-size: 1rem;
  color: var(--clr-text-body);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-intro strong { color: var(--clr-text-primary); font-weight: 600; }

/* ── Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-text-primary);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-stat-divider {
  width: 1px; height: 40px;
  background: var(--clr-border);
}

/* ── CTAs ── */
.hero-ctas { margin-top: 0.5rem; }

/* ── Image hero ── */
.hero-img-col { position: relative; z-index: 1; }

.hero-img-wrapper {
  position: relative;
  display: inline-block;
  animation: glitchImgColor 5s step-end infinite;
}

@keyframes glitchImgColor {
  0%,89%,100% { transform: none; filter: none; }
  90% { transform: translate(-4px, 2px) skewX(2deg); filter: drop-shadow(-4px 0 var(--clr-cyan)) drop-shadow(4px 0 #ff3cac); }
  91% { transform: none; filter: none; }
  93% { transform: translate(4px, -2px) skewX(-2deg); filter: drop-shadow(4px 0 var(--clr-cyan)) drop-shadow(-4px 0 #ff3cac); }
  95% { transform: none; filter: none; }
}

.hero-img-card {
  position: relative;
  width: 340px; height: 420px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  animation: levitate 5s ease-in-out infinite, blobShape 8s ease-in-out infinite;
  transition: border-radius 0.3s ease;
}

@keyframes blobShape {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%  { border-radius: 60% 40% 30% 70% / 30% 50% 70% 50%; }
  75%  { border-radius: 40% 60% 50% 30% / 60% 30% 50% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

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



.hero-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: revealPortrait 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes revealPortrait {
  from { opacity: 0; transform: scale(1.05); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

/* ── Floating tags ── */
.hero-floating-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(255,255,255,0.75);
  color: var(--clr-cyan);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: tagFloat 3s ease-in-out infinite alternate;
}
.hero-floating-tag--1 { top: 10%; right: -10px; animation-delay: 0s; }
.hero-floating-tag--2 { bottom: 20%; right: -20px; animation-delay: 1s; }
.hero-floating-tag--3 { bottom: 5%; left: -10px; animation-delay: 0.5s; }

@keyframes tagFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  animation: hintFade 3s ease-in-out infinite;
}
@keyframes hintFade { 0%,100%{opacity:0.4} 50%{opacity:1} }
.hero-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--clr-text-muted), transparent);
}

/* ================================================================
   BOUTONS
================================================================ */
.anid-btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.anid-btn-primary:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.anid-btn-outline {
  background: transparent;
  color: var(--clr-text-primary);
  border: 1px solid var(--clr-border);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.anid-btn-outline:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.2);
  color: var(--clr-text-primary);
  transform: translateY(-2px);
}

/* ── Dark mode: stylish glowing border on hover ── */
body.dark-mode .anid-btn-outline {
  border: 1px solid rgba(255,255,255,0.12);
}
body.dark-mode .anid-btn-outline:hover {
  background: rgba(37,99,235,0.08);
  border: 1px solid var(--clr-accent);
  box-shadow: 0 0 12px rgba(37,99,235,0.35), 0 0 4px rgba(37,99,235,0.18), inset 0 0 8px rgba(37,99,235,0.06);
  color: #fff;
  transform: translateY(-2px);
}

/* ================================================================
   SECTIONS COMMUNES
================================================================ */
.anid-section {
  padding: 100px 0;
  position: relative;
}
.anid-section--alt {
  background: var(--clr-surface);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--clr-text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ================================================================
   PROJETS
================================================================ */
.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0,0,0,0.12);
}
.project-card--star { border-color: rgba(37,99,235,0.3); }
.project-card--star:hover { border-color: rgba(37,99,235,0.5); box-shadow: var(--shadow-glow); }
.project-card--placeholder { border-style: dashed; }

/* Flip Card Specific */
.project-card-flip {
  perspective: 1500px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.project-card-flip:hover {
  transform: none;
  box-shadow: none;
}
.project-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.project-card-flip:hover .project-card-flip-inner {
  transform: rotateY(180deg);
}
.project-card-flip-front, .project-card-flip-back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-card-flip-front {
  background: var(--clr-surface);
  border: 1px solid rgba(37,99,235,0.3);
  position: relative;
  z-index: 2;
  transition: box-shadow var(--transition);
}
.project-card-flip-front:hover {
  box-shadow: var(--shadow-glow);
}
.project-card-flip-back {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
  color: white;
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--clr-accent);
}

.project-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--clr-accent-subtle);
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent-glow);
  letter-spacing: 0.05em;
  width: fit-content;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text-primary);
}
.project-card__title .accent { color: var(--clr-accent); }

/* DjibStreet Title Specific */
.djibstreet-title {
  font-family: 'Gagalin', sans-serif;
  font-size: 1.4rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--clr-text-primary);
}
.djibstreet-title span.brand {
  color: inherit;
  position: relative;
  display: inline-block;
}
.djibstreet-title span.brand::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #FF0000;
  border-radius: 0;
}
.djibstreet-title .accent {
  font-family: inherit;
  font-size: 1.3em;
  font-weight: inherit;
  color: inherit;
  display: inline;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
}
.project-card__role { font-size: 0.88rem; color: var(--clr-text-muted); margin: 0; padding: 0.8rem 0; }
.project-card__desc { font-size: 0.93rem; color: var(--clr-text-body); margin: 0; flex: 1; padding: 1rem 0; line-height: 1.7; }

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.05);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

.placeholder-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 1.2rem;
  padding: 2rem; flex: 1;
}
.placeholder-icon { color: var(--clr-text-muted); opacity: 0.45; }
.placeholder-text { color: var(--clr-text-muted); font-size: 0.95rem; margin: 0; }
.placeholder-sub  { font-family: var(--font-mono); font-size: 0.75rem; color: var(--clr-accent); }

/* ── Carte Projets en Cours ── */
.project-card--incoming {
  border: 2px dashed rgba(0, 0, 0, 0.14);
  background: #F0F2F5;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
body.dark-mode .project-card--incoming {
  background: #1C1C22;
  border-color: rgba(255, 255, 255, 0.14);
}
.project-card--incoming .placeholder-icon {
  color: var(--clr-text-muted);
  opacity: 0.55;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease, opacity 0.3s ease;
}
.project-card--incoming:hover {
  border-style: solid;
  border-color: var(--clr-accent);
  background: #E8ECF0;
  box-shadow: 0 12px 35px var(--clr-accent-glow), 0 0 20px rgba(230, 28, 93, 0.18);
  transform: translateY(-6px);
}
body.dark-mode .project-card--incoming:hover {
  background: #24242C;
  border-color: var(--clr-accent);
}
.project-card--incoming:hover .placeholder-icon {
  color: var(--clr-accent);
  opacity: 1;
  transform: scale(1.15) rotate(90deg);
}

.incoming-project-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  background: linear-gradient(135deg, var(--clr-text-primary) 30%, var(--clr-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}
.project-card--incoming:hover .incoming-project-title {
  background: linear-gradient(135deg, var(--clr-text-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   STAGES
================================================================ */
.stages-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--clr-text-muted);
  border-left: 3px solid var(--clr-accent);
  padding-left: 1.5rem;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  line-height: 1.8;
}

.stage-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0,0,0,0.1);
}
.stage-card__num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 800;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
}
.stage-card__icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.stage-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: 0.35rem;
}
.stage-card__org {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--clr-accent);
  letter-spacing: 0.05em; margin-bottom: 0.8rem;
}
.stage-card__desc { font-size: 0.9rem; color: var(--clr-text-body); line-height: 1.7; }

/* ================================================================
   COMPÉTENCES
================================================================ */
.skill-block {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}
.skill-block:hover {
  transform: translateY(-5px);
  border-color: rgba(0,0,0,0.12);
}
.skill-block__icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.skill-block__title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: 1rem;
}

.skill-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.skill-list li {
  font-size: 0.9rem; color: var(--clr-text-body);
  display: flex; align-items: center; gap: 8px;
}
.skill-list li::before { content: '›'; color: var(--clr-accent); font-weight: 700; }

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem; padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--clr-accent-subtle);
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent-glow);
  letter-spacing: 0.05em;
  margin-left: auto;
}

/* Diplômes */
.diploma-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.diploma-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.diploma-year {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--clr-text-muted);
  min-width: 36px;
}
.diploma-name { font-size: 0.9rem; font-weight: 600; color: var(--clr-text-primary); flex: 1; }
.diploma-mention {
  font-family: var(--font-mono);
  font-size: 0.65rem; padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.mention--bien { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.mention--ab   { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }

.certif-divider {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  padding: 0.6rem 0;
  border-top: 1px solid var(--clr-border);
  margin-top: 0.5rem;
}
.certif-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.certif-list li { font-size: 0.85rem; color: var(--clr-text-body); }

/* ================================================================
   CONTACT — REFONTE MODERNE
================================================================ */
.anid-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.5rem;
}
.anid-input {
  display: block; width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--clr-text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.anid-input::placeholder { color: var(--clr-text-muted); opacity: 0.6; }
.anid-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}
.anid-textarea { resize: vertical; min-height: 140px; }

.text-accent-gradient {
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.15;
  z-index: 1;
}
.contact-glow--1 {
  top: 10%;
  left: 5%;
  background: var(--clr-accent);
}
.contact-glow--2 {
  bottom: 10%;
  right: 5%;
  background: var(--clr-cyan);
}

/* ── 3 Cartes d'Information Statik ── */
.contact-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.2rem 1.6rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  color: inherit;
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition);
}
.contact-quick-card:hover {
  border-color: rgba(230, 28, 93, 0.25);
}

.contact-quick-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-quick-icon--email {
  background: rgba(230, 28, 93, 0.1);
  color: var(--clr-accent);
}

.contact-quick-icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.contact-quick-icon--location {
  background: rgba(0, 153, 170, 0.12);
  color: var(--clr-cyan);
}

.contact-quick-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
}
.contact-quick-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
}
.contact-quick-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clr-text-primary);
  margin-top: 2px;
  word-break: break-word;
}

/* ── Main Form Hub Card ── */
.contact-main-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 768px) {
  .contact-main-card {
    padding: 1.8rem 1.4rem;
  }
}

.contact-main-header {
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.contact-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-accent);
  background: var(--clr-accent-subtle);
  border: 1px solid var(--clr-accent-glow);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--clr-text-primary);
  margin-bottom: 0.4rem;
}
.contact-form-desc {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
}

.anid-label-modern {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  color: var(--clr-text-muted);
  opacity: 0.6;
  pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.input-icon--textarea {
  top: 18px;
}

.anid-input-modern {
  width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem 0.85rem 3rem;
  color: var(--clr-text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.anid-input-modern::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.5;
}
.anid-input-modern:focus {
  outline: none;
  background: var(--clr-bg);
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 4px var(--clr-accent-glow);
}
.input-icon-wrapper:focus-within .input-icon {
  color: var(--clr-accent);
  opacity: 1;
}
.anid-textarea-modern {
  resize: vertical;
  min-height: 130px;
}

/* Pills radio for project types */
.pill-option {
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}
.pill-option:hover {
  border-color: rgba(230, 28, 93, 0.4);
  color: var(--clr-text-primary);
}
.btn-check:checked + .pill-option {
  background: var(--clr-accent-subtle);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(230, 28, 93, 0.15);
}

/* Submit button */
.contact-btn-submit {
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-dark) 100%);
  color: #ffffff;
  border: none;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(230, 28, 93, 0.25);
}
.contact-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 28, 93, 0.4);
  color: #ffffff;
}
.contact-btn-submit:hover .submit-icon {
  transform: translate(3px, -3px);
}
.submit-icon {
  transition: transform 0.25s ease;
}

.contact-info-link { color: var(--clr-accent); text-decoration: none; transition: opacity var(--transition); }
.contact-info-link:hover { opacity: 0.75; }

.contact-form { display: flex; flex-direction: column; gap: 0; }

/* ================================================================
   CLI TERMINAL CONTACT
================================================================ */
/* ================================================================
   CLI TERMINAL CONTACT — LIGHT & DARK MODES
================================================================ */
.cli-terminal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cli-terminal:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,0.1), 0 4px 14px rgba(0,0,0,0.05);
}
body.dark-mode .cli-terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(230, 28, 93, 0.12);
}

/* ── Titlebar ── */
.cli-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.dark-mode .cli-titlebar {
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cli-titlebar-dots {
  display: flex;
  gap: 7px;
}
.cli-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cli-dot:hover {
  transform: scale(1.25);
}
.cli-dot--red { background: #FF5F57; }
.cli-dot--yellow { background: #FEBC2E; }
.cli-dot--green { background: #28C840; }
.cli-titlebar-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
body.dark-mode .cli-titlebar-text {
  color: #8b949e;
}
.cli-titlebar-spacer {
  flex: 1;
}

/* ── Body ── */
.cli-body {
  background: #f8fafc;
  padding: 24px 22px;
  font-family: 'JetBrains Mono', monospace, var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #059669;
  min-height: 240px;
  max-height: 400px;
  overflow-y: auto;
  cursor: text;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}
body.dark-mode .cli-body {
  background: #050811;
  color: #33ff66;
}

/* Cisco / Mail CLI elements */
.cisco-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cisco-history-line {
  word-break: break-word;
  white-space: pre-wrap;
}

.cisco-history-line--out {
  color: #475569;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-history-line--out {
  color: #d1d5db;
}

.cisco-history-line--cmd {
  color: #059669;
  font-weight: 600;
  word-break: break-word;
  white-space: pre-wrap;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-history-line--cmd {
  color: #33ff66;
}

.cisco-history-val {
  color: #0f172a;
  font-weight: 600;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-history-val {
  color: #ffffff;
  font-weight: 500;
}

.cisco-history-line--err {
  color: #dc2626;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-history-line--err {
  color: #ff5555;
}

.cisco-history-line--success {
  color: #059669;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(5, 150, 105, 0.1);
  border-left: 3px solid #059669;
  border-radius: 6px;
  margin: 6px 0;
  transition: all 0.3s ease;
}
body.dark-mode .cisco-history-line--success {
  color: #33ff66;
  background: rgba(51, 255, 102, 0.12);
  border-left: 3px solid #33ff66;
}

.cisco-input-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 8px;
  position: relative;
  margin-top: 4px;
}

.cisco-prompt {
  color: #059669;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-prompt {
  color: #33ff66;
}

.cisco-input-wrapper {
  position: relative;
  flex: 1 1 200px;
  min-width: 150px;
  min-height: 24px;
}

.cisco-typed-text {
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-typed-text {
  color: #ffffff;
  font-weight: 500;
}

.cisco-cursor {
  display: inline-block;
  color: #059669;
  font-weight: 800;
  font-size: 1.05rem;
  animation: ciscoCursorBlink 0.8s step-end infinite;
  margin-left: 1px;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-cursor {
  color: #33ff66;
}

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

.cisco-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  cursor: text;
}

.cisco-placeholder {
  position: absolute;
  left: 0;
  top: 1px;
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  pointer-events: none;
  user-select: none;
  opacity: 0.75;
  transition: color 0.3s ease, opacity 0.2s ease;
}
body.dark-mode .cisco-placeholder {
  color: #556b82;
}

.cisco-next-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  filter: blur(2.5px);
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.cisco-next-preview.visible {
  opacity: 0.75;
  visibility: visible;
  filter: blur(1.2px);
  transform: translateY(0);
}

.cisco-preview-hint {
  color: #059669;
  font-size: 0.82rem;
  font-style: italic;
  animation: ciscoHintBlink 1.4s ease-in-out infinite alternate;
  transition: color 0.3s ease;
}
body.dark-mode .cisco-preview-hint {
  color: #00e676;
}

@keyframes ciscoHintBlink {
  from { opacity: 0.45; transform: translateX(0); }
  to { opacity: 1; transform: translateX(4px); }
}

/* ── Bottom Bar ── */
.cli-bottombar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 18px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.dark-mode .cli-bottombar {
  background: #161b22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cli-status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
  transition: color 0.3s ease;
}
body.dark-mode .cli-status-text {
  color: #8b949e;
}

.cli-bottombar.cli-bottombar-success {
  background: #ecfdf5;
  border-top: 1px solid #a7f3d0;
}
body.dark-mode .cli-bottombar.cli-bottombar-success {
  background: rgba(51, 255, 102, 0.12);
  border-top: 1px solid rgba(51, 255, 102, 0.3);
}

.cli-status-text.cli-status-success {
  color: #059669;
  font-weight: 700;
}
body.dark-mode .cli-status-text.cli-status-success {
  color: #33ff66;
  font-weight: 700;
}

/* Enter badge */
.cli-enter-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #27C93F;
  background: rgba(39,201,63,0.08);
  border: 1px solid rgba(39,201,63,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cli-enter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27C93F;
  animation: cliBlink 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(39,201,63,0.5);
}
@keyframes cliBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Status text */
.cli-status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.dark-mode .cli-status-text {
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .cli-body {
    padding: 18px 14px 14px;
    font-size: 0.8rem;
  }
  .cli-prompt {
    font-size: 0.72rem;
  }
  .cli-input {
    font-size: 0.8rem;
  }
  .cli-input-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .cli-input {
    width: 100%;
  }
}

/* ================================================================
   FOOTER
================================================================ */
.anid-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 2rem 0;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}
.footer-powered-text { font-size: 0.8rem; color: var(--clr-text-muted); }
.footer-djibstreet-logo {
  height: 28px; width: auto;
  border-radius: 6px;
  filter: brightness(0.85);
  transition: filter var(--transition);
}
.footer-djibstreet-logo:hover { filter: brightness(1); }

/* ================================================================
   ANIMATIONS & SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ================================================================
   RÉSEAUX SOCIAUX MODAL
================================================================ */
.reseaux-modal-content {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}

.reseaux-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--clr-border);
  background: linear-gradient(135deg, var(--clr-surface) 0%, var(--clr-surface-2) 100%);
}

.reseaux-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--clr-accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--clr-accent);
  flex-shrink: 0;
}

.reseaux-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--clr-text-primary);
  margin: 0 0 2px;
}

.reseaux-modal-subtitle {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  margin: 0;
}

.reseaux-close-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.reseaux-close-btn:hover {
  background: var(--clr-accent-subtle);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: rotate(90deg);
}

.reseaux-modal-body {
  padding: 1.2rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ── Social Cards ── */
.reseau-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.reseau-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  border-radius: var(--radius-md);
}
.reseau-card:hover {
  transform: translateX(6px);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.reseau-card:hover::before { opacity: 1; }

.reseau-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.reseau-card:hover .reseau-card-icon { transform: scale(1.12) rotate(-4deg); }

.reseau-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reseau-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--clr-text-primary);
}
.reseau-card-handle {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--clr-text-muted);
}

.reseau-card-arrow {
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all 0.22s;
  color: inherit;
}
.reseau-card:hover .reseau-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* LinkedIn */
.reseau-linkedin .reseau-card-icon { background: rgba(10,102,194,0.12); color: #0A66C2; }
.reseau-linkedin:hover { background: rgba(10,102,194,0.06); border-color: #0A66C2; box-shadow: 0 8px 28px rgba(10,102,194,0.18); }
.reseau-linkedin:hover .reseau-card-name { color: #0A66C2; }
.reseau-linkedin .reseau-card-arrow { color: #0A66C2; }

/* GitHub */
.reseau-github .reseau-card-icon { background: rgba(36,41,47,0.10); color: #24292F; }
body.dark-mode .reseau-github .reseau-card-icon { background: rgba(255,255,255,0.08); color: #e0e0e0; }
.reseau-github:hover { background: rgba(36,41,47,0.05); border-color: #24292F; box-shadow: 0 8px 28px rgba(36,41,47,0.16); }
body.dark-mode .reseau-github:hover { border-color: #666; box-shadow: 0 8px 28px rgba(255,255,255,0.08); }
.reseau-github:hover .reseau-card-name { color: #24292F; }
body.dark-mode .reseau-github:hover .reseau-card-name { color: #e0e0e0; }
.reseau-github .reseau-card-arrow { color: #24292F; }
body.dark-mode .reseau-github .reseau-card-arrow { color: #e0e0e0; }

/* WhatsApp */
.reseau-whatsapp .reseau-card-icon { background: rgba(37,211,102,0.12); color: #25D366; }
.reseau-whatsapp:hover { background: rgba(37,211,102,0.06); border-color: #25D366; box-shadow: 0 8px 28px rgba(37,211,102,0.2); }
.reseau-whatsapp:hover .reseau-card-name { color: #25D366; }
.reseau-whatsapp .reseau-card-arrow { color: #25D366; }

/* Instagram */
.reseau-instagram .reseau-card-icon {
  background: linear-gradient(135deg, rgba(240,148,51,0.15), rgba(230,104,60,0.15), rgba(188,42,141,0.15), rgba(120,63,190,0.15));
  color: #C13584;
}
.reseau-instagram:hover {
  background: rgba(193,53,132,0.05);
  border-color: #C13584;
  box-shadow: 0 8px 28px rgba(193,53,132,0.18);
}
.reseau-instagram:hover .reseau-card-name { color: #C13584; }
.reseau-instagram .reseau-card-arrow { color: #C13584; }

/* Facebook */
.reseau-facebook .reseau-card-icon { background: rgba(24,119,242,0.12); color: #1877F2; }
.reseau-facebook:hover { background: rgba(24,119,242,0.06); border-color: #1877F2; box-shadow: 0 8px 28px rgba(24,119,242,0.18); }
.reseau-facebook:hover .reseau-card-name { color: #1877F2; }
.reseau-facebook .reseau-card-arrow { color: #1877F2; }

/* Modal animation */
#reseauxModal .modal-dialog { transform: scale(0.9) translateY(20px); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
#reseauxModal.show .modal-dialog { transform: scale(1) translateY(0); }

/* stagger animation on cards */
.reseaux-modal-body .reseau-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
#reseauxModal.show .reseau-card:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.05s; }
#reseauxModal.show .reseau-card:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.10s; }
#reseauxModal.show .reseau-card:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.15s; }
#reseauxModal.show .reseau-card:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.20s; }
#reseauxModal.show .reseau-card:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.25s; }

/* ================================================================
   MARQUEE GALLERY (HOBBY & RÉALISATION)
================================================================ */
/* ── Ambient Glow Lights for Hobby Section ── */
.hobby-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 1;
}
.hobby-glow--1 {
  top: 5%;
  right: -5%;
  background: var(--clr-accent);
  animation: floatGlow 12s ease-in-out infinite alternate;
}
.hobby-glow--2 {
  bottom: 5%;
  left: -5%;
  background: var(--clr-cyan);
  animation: floatGlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 30px) scale(1.15); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  box-shadow: 0 0 10px var(--clr-accent);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--clr-accent); }
  50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 20px var(--clr-accent); }
}

/* ── 3D Perspective Wrapper ── */
.marquee-3d-wrapper {
  perspective: 1000px;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.marquee-gallery {
  display: flex;
  gap: 20px;
  height: 110vh;
  min-height: 950px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px 4px;
}

.marquee-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px; /* The gap between the original group and the cloned group! */
}

.marquee-col.scroll-up {
  animation: scrollUp 16s linear infinite;
}

.marquee-col.scroll-down {
  animation: scrollDown 16s linear infinite;
}

/* Pause on hover for better UX */
.marquee-gallery:hover .marquee-col {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* ── Premium Card Micro-Interactions & Sheen ── */
.marquee-item {
  flex-shrink: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: var(--clr-surface);
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glass shine light sweep effect across image on hover */
.marquee-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease-out;
  pointer-events: none;
  z-index: 2;
}

.marquee-item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25), 0 0 20px rgba(0, 229, 255, 0.15);
  z-index: 10;
}

.marquee-item:hover::after {
  transform: rotate(30deg) translateX(100%);
}

.marquee-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.marquee-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05) contrast(1.02);
}
/* ── Read More / Lire la suite ── */
.btn-read-more {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--clr-accent);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-read-more:hover {
  color: var(--clr-accent-dark);
  text-decoration: underline;
}

.read-more-content {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
}
.read-more-content.expanded {
  display: inline;
  opacity: 1;
  transform: translateY(0);
  animation: slideDownFadeIn 0.5s ease-out forwards;
}

@keyframes slideDownFadeIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991px) {
  .anid-hero { padding: 100px 0 60px; }
  .hero-img-col { margin-top: 1rem; }
  .hero-img-card { width: 240px; height: 290px; }
  .hero-floating-tag--2 { right: -5px; }
}

@media (max-width: 576px) {
  .anid-hero { padding: 90px 0 50px; min-height: auto; }
  .hero-name { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-img-card { width: 200px; height: 240px; }
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-floating-tag { display: none; }
  .section-title { font-size: 1.8rem; }
}
