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

:root {
  --bg: #0a0a0c;
  --bg-soft: #121217;
  --fg: #f4f4f2;
  --muted: #9a9aa3;
  --line: rgba(255,255,255,0.08);
  --accent: #c8ff00;          /* vert lime énergie terrain */
  --accent-2: #ff4d6d;        /* corail / passion */
  --accent-3: #6c5ce7;        /* violet */
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: #000; }

/* ============ CURSEUR ============ */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 38px; height: 38px; border: 1px solid #fff; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%, -50%); }
.cursor.is-hover { width: 70px; height: 70px; background: #fff; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ============ LOADER ============ */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.loader__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; overflow: hidden; padding: 0 16px; }
.loader__word { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 6vw, 4.6rem); letter-spacing: -0.03em; transform: translateY(110%); }
.loader__bar { width: min(280px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10,10,12,0.72); backdrop-filter: blur(14px); border-bottom-color: var(--line); padding-top: 16px; padding-bottom: 16px; }
.nav__logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.35rem); letter-spacing: -0.02em; white-space: nowrap; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); }
.nav__links a { font-size: 0.9rem; color: var(--muted); transition: color .25s; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { border: 1px solid var(--line); padding: 9px 20px; border-radius: 100px; color: var(--fg) !important; transition: background .3s, color .3s, border-color .3s !important; }
.nav__cta:hover { background: var(--accent); color: #000 !important; border-color: var(--accent); }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 6px; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--fg); transition: .3s; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(20px, 5vw, 64px) 80px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.55; }
.hero__glow--1 { width: 50vw; height: 50vw; background: radial-gradient(circle, var(--accent-3), transparent 70%); top: -10%; right: -5%; }
.hero__glow--2 { width: 40vw; height: 40vw; background: radial-gradient(circle, var(--accent-2), transparent 70%); bottom: -15%; left: -10%; opacity: 0.4; }

.hero__marquee { position: absolute; top: 22%; left: 0; width: 100%; overflow: hidden; opacity: 0.06; pointer-events: none; }
.hero__track { display: flex; gap: 40px; white-space: nowrap; will-change: transform; }
.hero__track span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(4rem, 12vw, 11rem); letter-spacing: -0.04em; }

.hero__content { max-width: 1100px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 26px; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.hero__title { font-size: clamp(3rem, 9.5vw, 8.5rem); font-weight: 800; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; transform: translateY(105%); }
.hero__title .line:nth-child(2) span { color: transparent; -webkit-text-stroke: 1.5px var(--fg); letter-spacing: 0.015em; paint-order: stroke fill; }
.hero__sub { max-width: 620px; margin-top: 28px; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--muted); }
.hero__sub strong { color: var(--fg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 100px; font-weight: 600; font-size: 0.95rem; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: rgba(255,255,255,0.04); }

/* ============ SECTIONS GÉNÉRIQUES ============ */
section { padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 64px); position: relative; }
.section-tag { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.section-title { font-size: clamp(2.2rem, 6vw, 5rem); max-width: 16ch; margin-bottom: 56px; }

/* reveal helpers */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.word { display: inline-block; overflow: hidden; }
.word > span { display: inline-block; transform: translateY(110%); }

/* ============ ABOUT ============ */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.about__lead { font-size: clamp(1.6rem, 3.5vw, 3.1rem); font-weight: 600; letter-spacing: -0.02em; }
.about__col p { color: var(--muted); margin-bottom: 18px; }
.about__col strong { color: var(--fg); }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about__tags li { font-size: 0.82rem; padding: 7px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 70px; padding-bottom: 70px; }
.stat { text-align: center; }
.stat__num { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1; background: linear-gradient(180deg, #fff, #888); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============ TIMELINE ============ */
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tl-item { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); transition: transform .4s var(--ease), border-color .4s; }
.tl-item:hover { transform: translateY(-6px); border-color: rgba(200,255,0,0.35); }
.tl-year { display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.tl-item h3 { font-size: 1.4rem; margin-bottom: 6px; }
.tl-org { color: var(--fg); font-weight: 500; margin-bottom: 12px; font-size: 0.95rem; }
.tl-item p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ============ CARDS / EXPERTISE ============ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { position: relative; padding: 44px 38px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); transition: transform .4s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(200,255,0,0.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); }
.card__index { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--accent); }
.card h3 { font-size: 1.6rem; margin: 18px 0 12px; }
.card p { color: var(--muted); position: relative; }

/* ============ NOTE SERVICES ============ */
.services-note { margin-top: 44px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; color: var(--fg); }
.services-note a { color: var(--accent); border-bottom: 2px solid transparent; transition: border-color .25s; }
.services-note a:hover { border-bottom-color: var(--accent); }

/* ============ FOOT FÉMININ ============ */
.foot { background: var(--bg-soft); }
.foot__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.foot__text p { color: var(--muted); margin-bottom: 18px; }
.foot__text strong { color: var(--fg); }
.foot__text .section-title { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 28px; }
.foot__text blockquote { margin-top: 30px; padding-left: 24px; border-left: 3px solid var(--accent); font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--fg); line-height: 1.3; }
.foot__text cite { display: block; margin-top: 14px; font-size: 0.85rem; font-style: normal; color: var(--muted); font-weight: 400; font-family: 'Inter', sans-serif; }
.foot__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.foot__media img { width: 100%; transition: transform .8s var(--ease); }
.foot__media:hover img { transform: scale(1.04); }
.foot__media figcaption { padding: 16px 20px; font-size: 0.82rem; color: var(--muted); background: var(--bg); }

/* ============ RÉALISATIONS FOOT ============ */
.foot__wins { margin-top: clamp(50px, 7vw, 90px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.foot__wins-tag { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 34px; }
.wins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.win { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: transform .4s var(--ease), border-color .4s; }
.win:hover { transform: translateY(-6px); border-color: rgba(200,255,0,0.35); }
.win__num { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--accent); }
.win__num span { font-size: 0.55em; }
.win__label { display: block; margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* ============ PROJETS ============ */
.projets__list { display: grid; gap: 16px; }
.proj { padding: 34px clamp(24px, 4vw, 50px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); transition: transform .4s var(--ease), background .4s; }
.proj:hover { transform: translateX(10px); background: #16161c; }
.proj__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.proj__head h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.proj__tag { flex-shrink: 0; font-size: 0.75rem; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.proj p { color: var(--muted); max-width: 70ch; }

/* ============ CONTACT ============ */
.contact { text-align: center; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.contact__title { font-size: clamp(2.4rem, 7vw, 6rem); max-width: 18ch; margin: 0 auto 28px; }
.contact__sub { color: var(--muted); max-width: 55ch; margin: 0 auto 40px; font-size: 1.1rem; }
.contact__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { display: flex; flex-wrap: wrap; gap: 30px 50px; justify-content: space-between; padding: 48px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--fg); letter-spacing: -0.01em; margin-bottom: 2px; }
.footer__status { color: var(--accent); }
.footer__legal { text-align: right; margin-left: auto; }
.footer a { color: var(--muted); transition: color .25s; }
.footer a:hover { color: var(--accent); }
@media (max-width: 680px) { .footer__legal { text-align: left; margin-left: 0; } }

/* ============ MODAL COLLABORATION ============ */
.cmodal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility .4s; }
.cmodal.open { visibility: visible; opacity: 1; }
.cmodal__overlay { position: absolute; inset: 0; background: rgba(5,5,7,0.72); backdrop-filter: blur(8px); }
.cmodal__panel { position: relative; width: min(620px, 100%); max-height: 92vh; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 48px); transform: translateY(30px) scale(0.98); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); display: flex; flex-direction: column; }
.cmodal.open .cmodal__panel { transform: translateY(0) scale(1); opacity: 1; }
.cmodal__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; transition: color .25s, transform .25s; }
.cmodal__close:hover { color: var(--fg); transform: rotate(90deg); }

.cmodal__bar { height: 3px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 32px; }
.cmodal__bar span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 4px; transition: width .5s var(--ease); }

#collabForm { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.cstep { display: none; border: 0; padding: 0; min-height: 230px; }
.cstep.is-active { display: block; animation: cstepIn .5s var(--ease); }
@keyframes cstepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.cstep__count { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.cstep h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 12px 0 8px; }
.cstep__hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }

.cchoices { display: grid; gap: 12px; }
.cchoice { text-align: left; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); color: var(--fg); font-size: 1rem; font-family: inherit; cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.cchoice:hover { border-color: rgba(200,255,0,0.4); transform: translateX(4px); }
.cchoice.selected { border-color: var(--accent); background: rgba(200,255,0,0.08); }

.cstep textarea, .cfields input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--fg); font-family: inherit; font-size: 1rem; resize: vertical; transition: border-color .25s; }
.cstep textarea:focus, .cfields input:focus { outline: none; border-color: var(--accent); }
.cfields { display: grid; gap: 16px; }
.cfields label { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.cfields .opt { color: var(--muted); opacity: 0.7; }

.cerror { display: none; color: var(--accent-2); font-size: 0.85rem; margin-top: 12px; }
.cerror.show { display: block; }

.crecap { display: grid; gap: 14px; }
.crecap div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.crecap dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.crecap dd { color: var(--fg); }

.cdone { display: none; text-align: center; padding: 20px 0; }
.cdone.show { display: block; animation: cstepIn .5s var(--ease); }
.cdone__check { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); color: #000; font-size: 2rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cdone h3 { font-size: 2rem; margin-bottom: 10px; }
.cdone p { color: var(--muted); max-width: 38ch; margin: 0 auto 26px; }

.cnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.cnav.hidden { display: none; }
.cnav__prev { background: none; border: 0; color: var(--muted); font-family: inherit; font-size: 0.95rem; cursor: pointer; transition: color .25s, opacity .25s; }
.cnav__prev:hover { color: var(--fg); }
.cnav__prev:disabled { opacity: 0; pointer-events: none; }
.cnav__next { padding: 12px 28px; }
.cdots { display: flex; gap: 8px; }
.cdots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.cdots span.active { background: var(--accent); transform: scale(1.3); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px; background: var(--bg-soft); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.3rem; color: var(--fg); }
  .nav__burger { display: flex; z-index: 101; }
  .nav__burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .wins { grid-template-columns: repeat(2, 1fr); }
  .timeline, .cards { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__media { order: -1; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .proj__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal], .word > span, .hero__title .line span, .loader__word { opacity: 1 !important; transform: none !important; }
}
