/* ══════════════════════════════════════════
   RESET & VARIABLES
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --noir: #0a0a0a;
  --blanc: #f5f0e8;
  --or: #c9a84c;
  --or-pale: #e8d5a3;
  --gris: #1c1c1c;
  --border: rgba(245,240,232,0.07);
}

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ══ CURSOR — desktop only ══ */
#cursor {
  display: none;
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--or); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .18s, height .18s;
  mix-blend-mode: difference;
}
#cursor.grow { width: 36px; height: 36px; }

/* ══════════════════════════════════════════
   NAV — mobile first
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; letter-spacing: .15em;
  color: var(--or); text-decoration: none; z-index: 201;
}
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 30px; height: 30px;
  background: none; border: none; padding: 0; cursor: pointer; z-index: 201;
}
.nav-burger span {
  display: block; height: 1px; width: 100%;
  background: var(--blanc); opacity: .7;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); opacity: 1; }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); opacity: 1; }

.nav-menu {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(10,10,10,0.98);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 2.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.nav-menu.open { opacity: 1; visibility: visible; }
.nav-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--blanc);
  text-decoration: none; transition: color .2s;
}
.nav-menu a:hover { color: var(--or); }

.nav-links { display: none; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blanc); text-decoration: none;
  opacity: .5; transition: opacity .3s, color .3s;
}
.nav-links a:hover { opacity: 1; color: var(--or); }

/* ══════════════════════════════════════════
   HERO — mobile first
══════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 1.25rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(201,168,76,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(201,168,76,0.04) 0%, transparent 45%),
    linear-gradient(160deg, #0a0a0a 0%, #0f0f0f 100%);
}
.hero-deco {
  position: absolute; top: -40%; left: 60%;
  width: 1px; height: 180%;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.12), transparent);
  transform: rotate(10deg); pointer-events: none;
}
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--or); margin-bottom: 1rem;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.4rem, 15vw, 9rem);
  line-height: .93; font-weight: 700;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
h1 em { font-style: italic; color: var(--or); }
.hero-sub {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.75; max-width: 440px;
  opacity: 0; animation: fadeUp .7s .6s forwards;
}
.hero-cta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: .85rem; align-items: center;
  opacity: 0; animation: fadeUp .7s .8s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--or); color: var(--noir);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: .85rem 1.5rem;
  transition: background .25s, transform .2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--or-pale); transform: translateY(-2px); }
.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blanc); text-decoration: none; opacity: .45;
  border-bottom: 1px solid rgba(245,240,232,0.2); padding-bottom: 2px;
  transition: opacity .3s;
}
.btn-ghost:hover { opacity: 1; }
.hero-scroll {
  display: none;
  position: absolute; bottom: 2rem; right: 1.25rem;
  flex-direction: column; align-items: center; gap: .4rem;
  opacity: 0; animation: fadeIn 1s 1.4s forwards;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--or), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll span {
  font-family: 'DM Mono', monospace; font-size: 0.55rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--or);
  writing-mode: vertical-rl;
}

/* ══════════════════════════════════════════
   SECTIONS COMMONS — mobile first
══════════════════════════════════════════ */
section { padding: 5rem 1.25rem; border-top: 1px solid var(--border); }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--or); margin-bottom: .8rem;
  display: flex; align-items: center; gap: .8rem;
}
.section-label::after { content: ''; width: 40px; height: 1px; background: var(--or); opacity: .4; }
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  line-height: 1.05; margin-bottom: 2.5rem;
}
h2 em { font-style: italic; color: var(--or); }

/* ══════════════════════════════════════════
   SHOWREEL — mobile first
══════════════════════════════════════════ */
.video-outer {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--gris); overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}
.video-thumb {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  background: linear-gradient(135deg, #111, #1a1a1a);
  cursor: pointer;
  transition: background .3s, opacity .4s ease;
}
.video-thumb:hover { background: linear-gradient(135deg, #151515, #202020); }
.play-ring {
  width: 72px; height: 72px;
  border: 1px solid var(--or); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.video-thumb:hover .play-ring { background: var(--or); transform: scale(1.08); }
.play-ring svg { fill: var(--or); transition: fill .25s; margin-left: 4px; }
.video-thumb:hover .play-ring svg { fill: var(--noir); }
.play-label {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(245,240,232,0.3);
}
.video-outer iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.video-yt-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .85rem;
  font-family: 'DM Mono', monospace; font-size: .62rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--or); text-decoration: none; opacity: .55;
  transition: opacity .2s;
}
.video-yt-link:hover { opacity: 1; }
.video-yt-link svg { fill: var(--or); }

/* ══════════════════════════════════════════
   ABOUT — mobile first
══════════════════════════════════════════ */
.about-grid { display: flex; flex-direction: column; gap: 3rem; }
.about-text p {
  font-size: .925rem; line-height: 1.85;
  color: rgba(245,240,232,0.65); margin-bottom: 1.2rem;
}
.about-text strong { color: var(--blanc); font-weight: 500; }
.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2.5rem;
}
.stat-item { border-left: 1px solid rgba(201,168,76,0.3); padding-left: 1rem; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--or); line-height: 1;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,240,232,0.35); margin-top: .3rem;
}
.skills-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; margin-bottom: 1.8rem;
}
.skills-group { margin-bottom: 2rem; }
.skills-group-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--or); margin-bottom: .75rem; opacity: .8;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.skill-tag {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: .08em; padding: .35rem .85rem;
  border: 1px solid rgba(245,240,232,0.1);
  color: rgba(245,240,232,0.5);
  transition: border-color .25s, color .25s;
}
.skill-tag:hover { border-color: var(--or); color: var(--or); }
.skill-tag.hi { border-color: rgba(201,168,76,0.35); color: var(--or-pale); }

/* ══════════════════════════════════════════
   TIMELINE — mobile first
══════════════════════════════════════════ */
.timeline { margin-top: 2.5rem; }
.timeline-item {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:first-child { border-top: 1px solid var(--border); }
.t-date {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: .15em; color: var(--or); opacity: .8;
}
.t-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; margin-top: .2rem;
}
.t-company {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,240,232,0.35); margin-bottom: .5rem;
}
.t-desc {
  font-size: .85rem; line-height: 1.7;
  color: rgba(245,240,232,0.5);
}

/* ══════════════════════════════════════════
   CONTACT — mobile first
══════════════════════════════════════════ */
.contact-grid { display: flex; flex-direction: column; gap: 3rem; }
.contact-text p {
  font-size: .925rem; line-height: 1.8;
  color: rgba(245,240,232,0.55); margin-bottom: 1.8rem;
}
.contact-links { display: flex; flex-direction: column; gap: .5rem; }
.c-link {
  display: flex; align-items: center; gap: .9rem;
  font-family: 'DM Mono', monospace; font-size: .72rem;
  letter-spacing: .1em; color: rgba(245,240,232,0.45);
  text-decoration: none;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
  transition: color .25s;
}
.c-link:hover { color: var(--or); }
.c-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--or);
  transition: background .25s;
}
.c-link:hover .c-icon { background: rgba(201,168,76,0.1); }
.contact-card {
  background: var(--gris);
  border: 1px solid rgba(245,240,232,0.07);
  padding: 2.5rem; position: relative;
}
.contact-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 36px; height: 2px; background: var(--or);
}
.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; margin-bottom: .4rem;
}
.contact-card .sub {
  font-family: 'DM Mono', monospace; font-size: .6rem;
  letter-spacing: .12em; color: rgba(245,240,232,0.3);
  margin-bottom: 1.8rem;
}
.contact-card .btn-primary { width: 100%; justify-content: center; }

/* ══ FORM ══ */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: 'DM Mono', monospace; font-size: .58rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,240,232,0.35);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,240,232,0.1);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif; font-size: .875rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .25s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(201,168,76,0.5); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245,240,232,0.2); }
.form-status {
  font-family: 'DM Mono', monospace; font-size: .62rem;
  letter-spacing: .1em; margin-top: .5rem;
  color: var(--or); display: none;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  padding: 1.8rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .4rem;
}
footer p {
  font-family: 'DM Mono', monospace; font-size: .58rem;
  letter-spacing: .13em; color: rgba(245,240,232,0.18);
}

/* ══ Honeypot — caché aux humains ══ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.hp-field input { width: 1px; height: 1px; }

/* ══ Turnstile widget — fondu dans le fond du formulaire ══ */
.cf-turnstile {
  margin-top: .25rem;
  min-height: 65px;
  opacity: .55;
  transition: opacity .3s;
}
.cf-turnstile:hover,
.cf-turnstile:focus-within { opacity: 1; }
.cf-turnstile iframe { max-width: 100%; }

/* ══ Alertes formulaire ══ */
.form-alert {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid;
  margin-bottom: 1.5rem;
  font-family: 'DM Mono', monospace; font-size: .7rem;
  letter-spacing: .06em; line-height: 1.7;
}
.form-alert--success {
  background: rgba(201,168,76,0.07);
  border-color: var(--or);
  color: var(--or-pale);
}
.form-alert--success strong {
  display: block; margin-bottom: .25rem;
  font-size: .78rem; color: var(--or);
}
.form-alert--success p { margin: 0; color: rgba(245,240,232,0.5); }
.form-alert--error {
  background: rgba(224,85,51,0.07);
  border-color: #e05533;
  color: rgba(245,240,232,0.6);
}
.form-alert__icon {
  font-size: .85rem; flex-shrink: 0; margin-top: .1rem;
}

/* ══════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 9998;
  background: rgba(18,16,12,0.97);
  border: 1px solid rgba(201,168,76,0.25);
  border-left: 3px solid var(--or);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-text {
  font-family: 'DM Mono', monospace; font-size: .62rem;
  letter-spacing: .06em; line-height: 1.7;
  color: rgba(245,240,232,0.55);
  margin: 0;
}
.cookie-actions {
  display: flex; align-items: center; gap: .75rem;
}
.cookie-btn {
  font-size: .62rem; padding: .6rem 1.2rem;
}
.cookie-refuse {
  font-family: 'DM Mono', monospace; font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: none; border: none;
  color: rgba(245,240,232,0.3);
  cursor: pointer; padding: 0;
  transition: color .25s;
}
.cookie-refuse:hover { color: rgba(245,240,232,0.7); }

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row; align-items: center;
    left: 2rem; right: auto; max-width: 520px;
  }
  .cookie-text { flex: 1; }
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.5); opacity: .35; }
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .15s; }

/* ══════════════════════════════════════════
   TABLET — 640px+
══════════════════════════════════════════ */
@media (min-width: 640px) {
  nav { padding: 1.2rem 2rem; }
  #hero { padding: 0 2rem 5rem; }
  section { padding: 6rem 2rem; }
  footer { flex-direction: row; justify-content: space-between; padding: 2rem; }
  .timeline-item { flex-direction: row; gap: 2rem; align-items: flex-start; }
  .t-date { min-width: 110px; padding-top: .15rem; }
}

/* ══════════════════════════════════════════
   DESKTOP — 900px+
══════════════════════════════════════════ */
@media (min-width: 900px) {
  nav { padding: 1.4rem 3rem; background: linear-gradient(to bottom, rgba(10,10,10,0.97), transparent); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-burger { display: none; }
  .nav-links { display: flex; }
  #hero { padding: 0 3rem 5.5rem; }
  .hero-scroll { display: flex; }
  section { padding: 8rem 3rem; }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .timeline-item { gap: 3rem; }
  .t-date { min-width: 140px; }
  footer { padding: 2rem 3rem; }
  * { cursor: none !important; }
  #cursor { display: block; }
  .video-outer { max-width: 780px; margin: 0 auto; }
}
