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

* { cursor: none !important; }

#cursor {
  position: fixed;
  width: 14px; height: 14px;
  background: #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
}
#cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  background: #FF4400;
  color: #fff;
  font-family: "Google Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  transform: translate(12px, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

html {
  overflow-x: hidden;
}
body {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Google Sans", sans-serif;
  background: #fff;
}
#page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ══ LOADER ══ */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wordmark {
  position: absolute; display: flex; align-items: center;
  font-weight: 700; font-size: 108px;
  color: #FF4400; letter-spacing: -3px; line-height: 1;
  user-select: none; z-index: 5;
}
.letter { display: inline-block; opacity: 0; transform: translateY(32px); }
#dots-wrap {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; z-index: 5;
}
.dot {
  position: absolute; border-radius: 50%;
  background: #FF4400; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}
#center-dot {
  position: fixed; border-radius: 50%;
  background: #FF4400; top: 50%; left: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  opacity: 0; z-index: 101;
}

/* ══ MAIN PAGE ══ */
#main {
  position: relative;
  background: #FF4400;
  opacity: 0; pointer-events: none;
  display: flex; flex-direction: column;
  height: calc(100vh - 60px);
  flex-shrink: 0;
  overflow: hidden;
}
#main.visible { opacity: 1; pointer-events: all; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 3.5rem 2.2rem 3.5rem;
  background: #FF4400;
  opacity: 0; transform: translateY(-16px);
  transition: opacity 0.6s ease, transform 0.4s ease, background 0.3s ease;
}
.nav.in { opacity: 1; transform: translateY(0); }

.nav.on-white { background: #fff; }
.nav.on-white .nav-logo-img img { filter: brightness(0); }
.nav.on-white .nav-menu-btn { background: #FF4400; }
.nav.on-white .menu-dot { background: #fff; }

.nav-logo-img { display: block; flex-shrink: 0; line-height: 0; }
.nav-logo-img img { display: block; width: 280px; height: auto; }

/* ── BOUTON 3 POINTS ── */
.nav-menu-btn {
  display: flex; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
  background: #fff; border: none;
  cursor: pointer;
  width: 62px; height: 62px; border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.3s ease;
}
.menu-dot {
  width: 20px; height: 2.5px; border-radius: 99px;
  background: #FF4400; display: block;
  transition: background 0.3s ease;
}
.nav-menu-btn:hover { transform: scale(1.08); }

/* ── OVERLAY ── */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 550;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ── PANEL ── */
.nav-panel {
  position: fixed;
  top: 0; right: 0;
  width: 50vw; height: 100vh;
  background: #fff;
  z-index: 600;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 5rem;
}
.nav-panel.open { transform: translateX(0); }

.nav-panel-close {
  position: absolute; top: 2.2rem; right: 3rem;
  width: 62px; height: 62px; border-radius: 50%;
  background: #FF4400; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer;
  color: #fff; line-height: 1;
  font-family: "Google Sans", sans-serif;
  transition: transform 0.2s;
}
.nav-panel-close:hover { transform: scale(1.08); }
.nav-panel-close:hover { color: #FF4400; }

.nav-panel-links {
  display: flex; flex-direction: column;
  gap: 2rem;
}
.nav-panel-links a {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: #111; text-decoration: none;
  transition: color 0.2s, padding-left 0.3s cubic-bezier(0.34,1.4,0.64,1);
}
.nav-panel-links a:hover { color: #FF4400; padding-left: 1rem; }

.nav-panel-social {
  display: flex; flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  bottom: 5rem;
}
.nav-panel-social a {
  font-size: 1.5rem;
  font-weight: 700; letter-spacing: -0.02em;
  color: #111; text-decoration: none;
  transition: color 0.2s, padding-left 0.3s cubic-bezier(0.34,1.4,0.64,1);
}
.nav-panel-social a:hover { color: #FF4400; padding-left: 1rem; }

.nav-panel-logo {
  display: none;
  position: absolute;
  top: 2.2rem;
  left: 2.5rem;
}
.nav-panel-logo img {
  width: 180px;
  height: auto;
}

@media (max-width: 1100px) {
  body:not(.page-index) .nav-logo-img {
    display: none;
  }
  body:not(.page-index) .nav-menu-btn {
    margin-left: auto;
  }
  .nav-panel-logo {
    display: block;
  }
  .nav-panel {
    width: 100vw;
    padding: 0 2.5rem;
  }
}

/* ── HERO ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3.5rem 6rem;
}
.hero-body {
  max-width: 65%;
}
.hero-body p {
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  text-align: justify;
  hyphens: auto;
}

/* ── WORD REVEAL ── */
.word-outer {
  display: inline;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.2,0,0.2,1);
}
.word-outer.visible {
  opacity: 1;
}

/* ── BOUTON COLLABORER ── */
.collab-btn {
  position: fixed; bottom: 4.5rem; right: 2rem;
  z-index: 301;
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "Google Sans", sans-serif;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.03em;
  text-transform: lowercase;
  text-decoration: none;
  background: #FF4400; color: #fff;
  opacity: 0; pointer-events: none;
  transition: background 0.05s ease, color 0.05s ease, transform 0.2s ease, opacity 0.4s ease;
}
.collab-btn.visible { opacity: 1; pointer-events: all; }
.collab-btn.below-fold { transform: translateY(200%); pointer-events: none; }
.collab-btn.on-orange { background: #fff; color: #FF4400; }

@keyframes collab-grow {
  from { transform: scale(1); }
  to   { transform: scale(1.5); }
}
.collab-btn.is-growing {
  animation: collab-grow 1.2s ease-in forwards;
  transition: none;
}

/* ── PROJETS CARTES ── */
#projets {
  padding: 0;
  /* hauteur définie par JS */
}
.proj-intro {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: flex-start;
  padding: 2.2rem 3.5rem;
  z-index: 9;
  transform: translateY(100vh);
  will-change: transform;
  overflow: hidden;
}
.proj-intro p {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: #111;
}

.proj-card {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: #111;
  transform-origin: top center;
  will-change: transform;
  overflow: hidden;
}

#footer {
  position: relative;
  z-index: 50;
}

.proj-card-inner {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  padding: 3.5rem;
  position: relative;
  z-index: 1;
}
.proj-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.proj-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 50%);
  z-index: 0;
}
.proj-card-top { position: relative; z-index: 1; }

.proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.proj-card-name {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}

.proj-card-type {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgb(255, 255, 255);
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
#footer {
  background: #FF4400;
  overflow: hidden;
  height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3.5rem 3.5rem 2.5rem;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 400;
  transition: opacity 0.2s;
}
.footer-nav a:hover { opacity: 0.6; }
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer-social a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 400;
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 0.6; }
.footer-year {
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.8;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1rem 3.5rem 3.5rem;
}
.footer-email {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
}
.email-default {
  display: inline-block;
  transition: opacity 0.2s;
}
.email-copy {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  background: #fff;
  color: #FF4400;
  border-radius: 999px;
  padding: 0.35em 1em;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer-email:hover .email-default { opacity: 0; }
.footer-email:hover .email-copy { opacity: 1; }
.footer-title {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-name {
  padding: 3.5rem 3.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-name img {
  display: block;
  width: 22%;
  height: auto;
}

/* ── SCROLL CTA ── */
.scroll-cta-row {
  position: absolute;
  left: 0; right: 0;
  bottom: 18%;
  display: flex;
  justify-content: space-between;
  padding: 0 3.5rem;
}
.scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-cta svg {
  display: block;
  width: 52px;
  height: 32px;
  animation: bounce-arrow 1.3s ease-in-out infinite;
}
.scroll-cta svg:nth-child(2) { animation-delay: 0.18s; }
.scroll-cta svg:nth-child(3) { animation-delay: 0.36s; }

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── BADGE AWARD ── */
.badge-award {
  position: absolute;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #FF4400;
  color: #fff;
  gap: 2px;
  pointer-events: none;
}
.badge-line1, .badge-line2, .badge-line3 {
  display: block;
  width: 82px;
  text-align: center;
  line-height: 1.2;
}
.badge-line1 { font-size: 1rem; font-weight: 400; text-transform: lowercase; }
.badge-line2 { font-size: 2.2rem; font-weight: 700; }
.badge-line3 { font-size: 1rem; font-weight: 400; }

/* ── TABLETTE ── */
@media (max-width: 1100px) {
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* ── Curseur ── */
  * { cursor: auto !important; }
  #cursor, #cursor-label { display: none !important; }

  /* ── Nav ── */
  .nav {
    padding: 1.6rem 1.25rem 1.6rem 3rem;
  }

  .nav-logo-img img {
    width: 160px;
  }

  .nav-menu-btn {
    width: 62px;
    height: 62px;
  }

  /* ── Hero ── */
  .hero {
    padding: 0 1.25rem;
    justify-content: center;
  }

  .hero-body {
    max-width: 100%;
  }

  .hero-body p {
    font-size: 0.9rem;
    text-align: left;
    hyphens: none;
  }

  .proj-card--pikl .proj-card-img {
    object-position: left center;
  }

  .proj-card-inner {
    padding: 1.5rem;
  }

  .proj-card-name {
    font-size: 1.1rem;
  }

  .proj-card-type {
    font-size: 0.85rem;
  }

  .proj-card-top {
    flex-direction: column;
    gap: 0.15rem;
  }

  /* ── Footer ── */
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem 2rem 2.5rem;
  }

  .footer-name {
    padding: 2.5rem 2rem 1.5rem;
  }

  .footer-name img {
    width: 40%;
  }
}

