/* ==========================================================================
   Prittio — base
   Tokens, reset, typography, shared components (nav, buttons, cursor, badge)
   ========================================================================== */

:root {
  /* brand — taken from the Prittio logo and charte graphique */
  --teal-950: #01161b;
  --teal-900: #021f26;
  --teal-800: #04303b;
  --teal-700: #0a4351;
  --teal-600: #165a6b;
  --teal-400: #008fae;
  --teal-200: #9fc4cd;
  --orange: #e8480b;
  --orange-600: #c93b06;
  --peach: #f9c68e;
  --cream: #fff3e6;
  --ink: #062a33;
  --white: #ffffff;

  /* type — Poppins is the charte face; Anton only for the poster-size titles */
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Anton", "Poppins", Impact, sans-serif;

  --pad-x: clamp(20px, 4.2vw, 68px);
  --radius-xl: clamp(26px, 3.2vw, 48px);
  --nav-h: 88px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--teal-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }

/* while the intro plays nothing scrolls */
body.is-loading { overflow: hidden; }

/* ---------- shared bits ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 72, 11, .22);
  flex: none;
}

/* char spans produced by the splitter */
.ch { display: inline-block; will-change: transform; }

/* reveal lines: outer clips, inner slides */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: block; will-change: transform; }

/* ---------- buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 26px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn-pill svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn-pill::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-expo);
  z-index: -1;
}
.btn-pill:hover { color: var(--white); border-color: var(--orange); }
.btn-pill:hover::before { transform: translateY(0); }
.btn-pill:hover svg { transform: rotate(45deg); }

.pill-outline {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 18px;
  border: 1px solid rgba(255, 243, 230, .55);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s;
}
.pill-outline svg { width: 14px; height: 14px; }
.pill-outline:hover { background: var(--cream); color: var(--teal-900); border-color: var(--cream); }

.round {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  /* hover uses the independent `scale` property: GSAP owns `transform` here */
  transition: scale .4s var(--ease-out);
}
.round svg { width: 22px; height: 22px; }
.round:hover { scale: 1.08; }
.round--orange { background: var(--orange); color: var(--white); }
.round--light { background: var(--cream); color: var(--teal-900); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  transition: background-color .3s, color .3s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--cream); color: var(--teal-900); border-color: var(--cream); }

/* ---------- rotating badge ---------- */
.badge {
  position: relative;
  width: 92px; height: 92px;
  flex: none;
}
.badge__text {
  width: 100%; height: 100%;
  fill: var(--cream);
  font-family: var(--font-text);
  font-size: 11.2px; font-weight: 600; letter-spacing: 2.4px;
  animation: spin 14s linear infinite;
}
.badge__core {
  position: absolute; inset: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid; place-items: center;
  transform: rotate(-8deg);
}
.badge__core svg { width: 16px; height: 16px; }
.badge--dark .badge__text { fill: var(--teal-800); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--cream);
  transition: color .45s var(--ease-out), translate .6s var(--ease-expo);
}
.nav.is-hidden { translate: 0 -110%; }
.nav.nav--light { color: var(--teal-800); }

.nav__logo img { width: 78px; height: auto; transition: filter .45s; }
.nav--light .nav__logo img { filter: brightness(0) saturate(100%) invert(14%) sepia(35%) saturate(1800%) hue-rotate(160deg) brightness(90%); }

.nav__links {
  display: flex; align-items: center; gap: 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding: 10px 18px;
}
/* dot separators, like the reference */
.nav__links a + a::before {
  content: "";
  position: absolute; left: -2px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .55;
  transform: translateY(-50%);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 50%; bottom: -4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%) scale(0);
  transition: transform .4s var(--ease-expo);
}
.nav__links a.is-active::after,
.nav__links a:hover::after { transform: translateX(-50%) scale(1); }

.nav__actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav--light .icon-btn:hover { background: var(--teal-800); color: var(--cream); border-color: var(--teal-800); }

.burger {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream);
  display: grid; place-content: center; gap: 5px;
  transition: background-color .35s;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--teal-900); border-radius: 2px; transition: transform .4s var(--ease-expo); }
.burger span:last-child { width: 12px; justify-self: end; }
.nav--light .burger { background: var(--teal-800); }
.nav--light .burger span { background: var(--cream); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { width: 18px; transform: translateY(-3.5px) rotate(-45deg); }

/* full-screen menu (used under 900px) */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--teal-900);
  display: grid; place-items: center;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease-expo);
  pointer-events: none;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); pointer-events: auto; }
.menu nav { display: grid; gap: 6px; text-align: center; }
.menu a { font-family: var(--font-display); font-size: clamp(46px, 12vw, 96px); line-height: 1.05; text-transform: uppercase; color: var(--cream); }
.menu a:hover { color: var(--orange); }

/* ==========================================================================
   CURSOR
   ========================================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--orange);
}
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(232, 72, 11, .65);
  display: grid; place-items: center;
  transition: width .45s var(--ease-expo), height .45s var(--ease-expo), margin .45s var(--ease-expo),
              background-color .35s, border-color .35s;
}
.cursor__label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white);
  opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .45s var(--ease-expo);
}
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--orange); border-color: var(--orange); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   SHOWREEL MODAL
   ========================================================================== */
.reel {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(1, 22, 27, .94);
  display: grid; place-items: center;
  padding: 6vh 6vw;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.reel.is-open { opacity: 1; visibility: visible; }
.reel__video {
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
  transform: scale(.92);
  transition: transform .8s var(--ease-expo);
}
.reel.is-open .reel__video { transform: scale(1); }
.reel__close {
  position: absolute; top: 24px; right: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--cream); color: var(--teal-900);
  display: grid; place-items: center;
}
.reel__close svg { width: 20px; height: 20px; }

/* ==========================================================================
   RESPONSIVE (shared)
   ========================================================================== */
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__logo img { width: 64px; }
  .icon-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* lien désactivé depuis js/liens.js (adresse laissée vide) */
a[aria-disabled="true"] { opacity: .45; pointer-events: none; cursor: default; }

/* ==========================================================================
   Retours du 28/10 : menu plus lisible, réseaux sociaux dans le menu
   ========================================================================== */
.nav__links { font-size: 14px; letter-spacing: .16em; }
.nav__links a { padding: 10px 22px; }
.menu { align-content: center; gap: 48px; }
.menu__social { display: flex; justify-content: center; gap: 22px; }
.menu .menu__social a {
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 1.5px solid rgba(255, 243, 230, .45); border-radius: 50%;
  font-size: 0; line-height: 1; color: var(--cream);
  transition: background-color .3s, color .3s, border-color .3s;
}
.menu .menu__social a svg { width: 24px; height: 24px; }
.menu .menu__social a:hover { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.menu .menu__social a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
/* crédit de l'agence dans le pied de page (28/10) */
.footer__bottom .footer__credit { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom .footer__credit:hover { color: var(--orange); }
