/* ============================================================
   ANSEL DORIAN — anseldorian.com
   Design system : dark + orange, animations avancées
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #e84a0c;
  --orange-light: #ff6b35;
  --orange-glow: rgba(232, 74, 12, 0.35);
  --dark: #070707;
  --dark2: #0d0d0d;
  --dark3: #151515;
  --dark4: #1e1e1e;
  --gray: #8a8a8a;
  --gray-light: #b5b5b5;
  --white: #f5f5f5;
  --font: 'Montserrat', sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

::selection { background: var(--orange); color: var(--white); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--orange), var(--orange-light)); border-radius: 3px; }

/* ===== GRAIN OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== CURSEUR PERSONNALISÉ ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  transition: opacity 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(232, 74, 12, 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  background: rgba(232, 74, 12, 0.08);
  border-color: var(--orange);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== BARRE DE PROGRESSION SCROLL ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  z-index: 2000;
  box-shadow: 0 0 12px var(--orange-glow);
}

/* ===== ORBES DE FOND ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.orb-1 {
  width: 480px; height: 480px;
  background: rgba(232, 74, 12, 0.13);
  top: -10%; right: -10%;
  animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: rgba(232, 74, 12, 0.08);
  bottom: -5%; left: -8%;
  animation: orbFloat2 22s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.15); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -50px) scale(1.1); }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.3rem 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
/* Flou sur un pseudo-élément : un backdrop-filter directement sur #navbar
   changerait le repère du menu mobile en position:fixed (.nav-links) */
#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
#navbar.scrolled {
  background: rgba(7, 7, 7, 0.85);
  padding: 0.75rem 0;
  border-bottom-color: rgba(232, 74, 12, 0.12);
}
#navbar.scrolled::before { opacity: 1; }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 38px; transition: transform 0.3s var(--ease); }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.08); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  position: relative;
  transition: color 0.3s;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-block;
  color: var(--orange) !important;
  border: 1px solid var(--orange);
  padding: 0.5rem 1.3rem !important;
  border-radius: 4px;
  overflow: hidden;
  z-index: 1;
}
.nav-cta::after { display: none !important; }
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease);
  z-index: -1;
}
.nav-cta:hover { color: var(--white) !important; }
.nav-cta:hover::before { transform: translateY(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO (accueil) ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 2rem 80px;
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1200px;
  width: 100%;
}
.hero-content { flex: 1 1 55%; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--orange);
}

.hero-name {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 0.9s var(--ease-out) forwards;
}
.hero-name .line:nth-child(2) span { animation-delay: 0.12s; }
.hero-name .outline {
  background: linear-gradient(120deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes lineUp { to { transform: translateY(0); } }

.hero-typewriter {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 1.6rem;
  min-height: 1.9rem;
}
.cursor-blink {
  display: inline-block;
  color: var(--orange);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 2.4rem;
  max-width: 480px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

/* ===== BOUTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-light);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn-primary:hover { box-shadow: 0 8px 32px var(--orange-glow); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.hero-socials { display: flex; gap: 0.8rem; }
.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--gray-light);
  font-size: 0.95rem;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.hero-socials a:hover {
  border-color: var(--orange);
  color: var(--white);
  background: var(--orange);
  transform: translateY(-4px);
}

/* Photo hero */
.hero-image { flex: 0 0 auto; position: relative; }
.hero-img-frame {
  width: 340px; height: 420px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--orange);
  border-radius: 14px;
  opacity: 0.35;
  transform: translateZ(-30px) rotate(4deg);
  transition: transform 0.4s var(--ease);
}
.hero-img-frame:hover::before { transform: translateZ(-30px) rotate(7deg); }
.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(25%) contrast(1.05);
  transition: filter 0.4s;
}
.hero-img-frame:hover img { filter: grayscale(0%) contrast(1.05); }
.hero-img-glow {
  position: absolute;
  inset: 20%;
  background: var(--orange);
  filter: blur(90px);
  opacity: 0.25;
  z-index: -1;
  border-radius: 50%;
}

.scroll-cue {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 2;
  pointer-events: none;
}
.scroll-cue span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gray);
  animation: cueFade 2.4s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: cueDrop 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cueDrop {
  0% { top: -40%; }
  65%, 100% { top: 100%; }
}
@keyframes cueFade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.4rem 0;
  background: var(--dark2);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.marquee-track span::after {
  content: '✦';
  color: var(--orange);
  font-size: 0.8rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== SECTIONS ===== */
section { padding: 110px 0; position: relative; z-index: 2; }

.section-header { margin-bottom: 4rem; position: relative; }
.section-header.center { text-align: center; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-tag::before { content: ''; width: 30px; height: 1px; background: var(--orange); }
.section-header.center .section-tag::after { content: ''; width: 30px; height: 1px; background: var(--orange); }
.section-header h1, .section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.section-header .ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  z-index: -1;
}

/* ===== PAGE HEADER (pages internes) ===== */
.page-header {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.4rem;
}
.page-header .breadcrumb a { color: var(--gray); transition: color 0.3s; }
.page-header .breadcrumb a:hover { color: var(--orange); }
.page-header .breadcrumb i { font-size: 0.6rem; color: var(--orange); }
.page-header h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.page-header h1 .accent { color: var(--orange); }
.page-header p.lead {
  margin-top: 1.4rem;
  max-width: 560px;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.9;
}

/* ===== ABOUT (accueil) ===== */
#about { background: var(--dark2); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}
.about-text p {
  color: var(--gray-light);
  font-size: 1.02rem;
  line-height: 2;
  margin-bottom: 1.3rem;
  font-weight: 300;
}
.about-text strong { color: var(--white); font-weight: 600; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.about-tags span {
  background: rgba(232,74,12,0.08);
  border: 1px solid rgba(232,74,12,0.25);
  color: var(--orange-light);
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.about-tags span:hover { background: rgba(232,74,12,0.2); transform: translateY(-2px); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.stat-card {
  background: linear-gradient(145deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.stat-card:hover { border-color: rgba(232,74,12,0.4); transform: translateY(-6px); }
.stat-card:hover::before { opacity: 1; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(120deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-plus { font-size: 1.6rem; font-weight: 900; color: var(--orange); }
.stat-card p {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== CARTES TEASER (accueil → pages internes) ===== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.teaser-card {
  background: linear-gradient(150deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 2.6rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.teaser-card::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(232,74,12,0.18), transparent 70%);
  bottom: -110px; right: -110px;
  transition: transform 0.5s var(--ease);
}
.teaser-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232,74,12,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.teaser-card:hover::after { transform: scale(1.6); }
.teaser-card .t-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.2em;
  margin-bottom: 1.4rem;
}
.teaser-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}
.teaser-card p {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  flex: 1;
}
.teaser-card .t-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.teaser-card .t-link i { transition: transform 0.3s var(--ease); }
.teaser-card:hover .t-link i { transform: translateX(6px); }

/* ===== TIMELINE (page expériences) ===== */
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(232,74,12,0.5) 8%, rgba(232,74,12,0.5) 92%, transparent);
  transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding-bottom: 3.5rem; }
.timeline-item:nth-child(odd) { padding-right: 3.2rem; text-align: right; }
.timeline-item:nth-child(even) { padding-left: 3.2rem; margin-left: 50%; text-align: left; }

.timeline-dot {
  position: absolute;
  top: 0.9rem;
  width: 16px; height: 16px;
  background: var(--dark);
  border: 3px solid var(--orange);
  border-radius: 50%;
  z-index: 2;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(232,74,12,0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-date {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.timeline-card {
  background: linear-gradient(150deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d;
}
.timeline-card:hover {
  border-color: rgba(232,74,12,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.timeline-badge {
  display: inline-block;
  background: rgba(232,74,12,0.14);
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  margin-bottom: 0.9rem;
}
.timeline-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; line-height: 1.3; }
.timeline-company {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-item:nth-child(odd) .timeline-company { justify-content: flex-end; }
.timeline-desc { font-size: 0.88rem; color: var(--gray-light); line-height: 1.8; margin-bottom: 0.9rem; font-weight: 300; }
.timeline-list { margin-bottom: 1.1rem; }
.timeline-list li {
  font-size: 0.82rem;
  color: var(--gray);
  padding: 0.22rem 0 0.22rem 1.1rem;
  position: relative;
}
.timeline-list li::before {
  content: '▸';
  color: var(--orange);
  position: absolute;
  left: 0;
  font-size: 0.72rem;
}
.timeline-item:nth-child(odd) .timeline-list li { padding: 0.22rem 1.1rem 0.22rem 0; }
.timeline-item:nth-child(odd) .timeline-list li::before { left: auto; right: 0; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline-item:nth-child(odd) .timeline-tags { justify-content: flex-end; }
.timeline-tags span {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-light);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ===== FORMATION ===== */
.formation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.formation-card {
  background: linear-gradient(150deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 2.8rem 2.2rem;
  text-align: center;
  transition: border-color 0.35s, transform 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.formation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.formation-card:hover { border-color: rgba(232,74,12,0.4); transform: translateY(-6px); }
.formation-card:hover::before { opacity: 1; }
.formation-year {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.3rem;
}
.formation-icon {
  width: 64px; height: 64px;
  background: rgba(232,74,12,0.1);
  border: 1px solid rgba(232,74,12,0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.6rem;
  font-size: 1.5rem;
  color: var(--orange);
  transition: background 0.35s, transform 0.35s var(--ease);
}
.formation-card:hover .formation-icon { background: rgba(232,74,12,0.22); transform: rotate(-8deg) scale(1.08); }
.formation-card h3 { font-size: 0.98rem; font-weight: 800; line-height: 1.4; margin-bottom: 0.4rem; }
.formation-mention { font-size: 0.82rem; color: var(--orange-light); font-weight: 500; margin-bottom: 0.6rem; font-style: italic; min-height: 1.2em; }
.formation-school { font-size: 0.8rem; color: var(--gray); font-weight: 500; }

/* ===== COMPETENCES ===== */
.competences-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
.skills-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.skills-title::after { content: ''; flex: 1; height: 1px; background: rgba(232,74,12,0.25); }

.skill-item { margin-bottom: 2rem; }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.skill-header span:first-child { font-size: 0.9rem; font-weight: 600; }
.skill-header span:last-child { font-size: 0.78rem; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 3px;
  transition: width 1.4s var(--ease);
  position: relative;
}
.skill-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45));
  animation: shine 2.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.tool-card {
  background: linear-gradient(150deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.7rem 1.2rem;
  text-align: center;
  transition: border-color 0.35s, transform 0.35s var(--ease);
  transform-style: preserve-3d;
}
.tool-card:hover { border-color: rgba(232,74,12,0.4); }
.tool-card i {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 0.7rem;
  display: block;
  transition: transform 0.35s var(--ease);
}
.tool-card:hover i { transform: scale(1.18); }
.tool-card span { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.85rem; line-height: 1.3; }
.tool-level { display: flex; justify-content: center; gap: 5px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.dot.active { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 8px var(--orange-glow); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4.5rem; align-items: start; }
.contact-info > p { font-size: 1.02rem; color: var(--gray-light); line-height: 1.9; font-weight: 300; margin-bottom: 2.2rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.3rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}
.contact-item i {
  width: 42px; height: 42px;
  background: rgba(232,74,12,0.1);
  border: 1px solid rgba(232,74,12,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.contact-item:hover i { background: rgba(232,74,12,0.25); transform: scale(1.08); }
.contact-item a { transition: color 0.3s; }
.contact-item a:hover { color: var(--orange); }

.contact-form-wrap {
  background: linear-gradient(150deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2.6rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.55rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(232,74,12,0.04);
  box-shadow: 0 0 0 3px rgba(232,74,12,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--orange);
  color: var(--white);
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-light);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn-submit:hover { box-shadow: 0 10px 36px var(--orange-glow); }
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

#form-status { margin-top: 1.1rem; padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.85rem; display: none; }
#form-status.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}
#form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ===== CTA BANDEAU ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(232,74,12,0.12), rgba(232,74,12,0.03));
  border: 1px solid rgba(232,74,12,0.25);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,74,12,0.25), transparent 70%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}
.cta-banner p { color: var(--gray-light); font-weight: 300; margin-bottom: 2.2rem; position: relative; }
.cta-banner .btn-primary { position: relative; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 34px; margin-bottom: 1.2rem; opacity: 0.85; }
.footer-brand p { font-size: 0.85rem; color: var(--gray); font-weight: 300; line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.footer-col a:hover { color: var(--orange); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--gray); }
.footer-bottom .socials { display: flex; gap: 0.8rem; }
.footer-bottom .socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.footer-bottom .socials a:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS REVEAL ===== */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.92); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Fondu de page */
body { animation: pageFade 0.6s ease both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== INTRO — on traverse le nom (accueil) ===== */
#intro {
  height: 220vh;
  position: relative;
  z-index: 2;
}
.intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(232, 74, 12, calc(var(--glow, 0) * 0.25)), transparent 62%),
    var(--dark);
}
.intro-sticky #particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  will-change: transform, opacity;
  pointer-events: none;
  /* centre optique : margin (et pas translate, le JS écrase transform au scroll) */
  margin-top: -14vh;
}
.intro-content .hero-eyebrow { justify-content: center; }
.intro-content .hero-eyebrow::before { display: none; }
.intro-name {
  font-size: clamp(3.4rem, 15vw, 11rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  white-space: nowrap;
  margin-bottom: 1.2rem;
}
.intro-name .grad {
  background: linear-gradient(120deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ===== BANDES DÉFILANTES ===== */
.bands {
  overflow: hidden;
  padding: 5rem 0 1rem;
  position: relative;
  z-index: 2;
}
.band {
  white-space: nowrap;
  width: max-content;
  margin-left: -30vw;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  will-change: transform;
}
.band-accent {
  background: linear-gradient(120deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.band-faint { color: rgba(255, 255, 255, 0.07); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; }
  .hero-img-frame { width: 280px; height: 350px; }
  .competences-grid, .contact-grid { gap: 3rem; }
  .teaser-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding-left: 3.5rem; padding-right: 0; text-align: left; }
  .timeline-item:nth-child(odd) { padding-right: 0; text-align: left; }
  .timeline-dot, .timeline-item:nth-child(odd) .timeline-dot { left: 12px; right: auto; }
  .timeline-item:nth-child(odd) .timeline-company { justify-content: flex-start; }
  .timeline-item:nth-child(odd) .timeline-tags { justify-content: flex-start; }
  .timeline-item:nth-child(odd) .timeline-list li { padding: 0.22rem 0 0.22rem 1.1rem; }
  .timeline-item:nth-child(odd) .timeline-list li::before { left: 0; right: auto; }
}

@media (max-width: 768px) {
  section { padding: 75px 0; }
  .page-header { padding: 140px 0 60px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7,7,7,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
    z-index: 1050;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.45s var(--ease);
  }
  .nav-links a { font-size: 1.1rem; }

  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 2.5rem; }
  .hero-eyebrow { justify-content: center; }
  .hero-eyebrow::before { display: none; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-socials { justify-content: center; }
  .hero-img-frame { width: 220px; height: 270px; }

  #intro { height: 170vh; }
  .intro-name { white-space: normal; }

  .about-grid, .competences-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .formation-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 3rem 1.6rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat-number { font-size: 2.2rem; }
}
