/* ============================================================
   NEXIA — components.css
   Boutons, nav, footer, cards, cursor, ticker, FAQ, ZIA modal
   ============================================================ */

/* --- Container --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--pad); }

/* --- Eyebrow --- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  margin-bottom: var(--gap-md);
}
.eyebrow::before { content:''; width: 32px; height: 2px; background: var(--gradient); flex-shrink: 0; }

/* --- Gradient text --- */
.gt {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Titres section --- */
.st { font-size: var(--t-3xl); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }

/* ========== BOUTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius-pill);
  transition: transform .4s var(--ease-bounce), box-shadow .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: scale(1.04); }

/* Primary — texte ink sur fond paper, hover → gradient */
.btn-primary { color: var(--ink); background: var(--paper); }
.btn-primary:hover { background: var(--gradient); color: #fff; box-shadow: 0 8px 40px var(--glow); }

/* Secondary — bordure fine, hover → accent */
.btn-secondary { color: var(--paper); border: 1px solid var(--line-hover); }
.btn-secondary:hover { border-color: var(--violet); box-shadow: 0 4px 24px var(--glow); }

/* Arrow icon slide */
.btn__ic { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .btn__ic { transform: translateX(4px); }
.btn-secondary:hover .btn__ic { transform: translateX(3px) rotate(0deg); }

/* Briefez ZIA — variante gradient text dans la nav */
.btn-zia {
  background: none; border: 1px solid var(--line-accent);
  color: var(--paper); position: relative;
}
.btn-zia .btn__label {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn-zia:hover { background: var(--gradient); border-color: transparent; }
.btn-zia:hover .btn__label { -webkit-text-fill-color: #fff; background: none; }

/* --- Badge live (dot vert pulsant) --- */
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green);
}
.badge-live::before {
  content:''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(80,255,180,.5); }
  50% { opacity:.7; box-shadow: 0 0 0 6px rgba(80,255,180,0); }
}

/* --- Tags --- */
.tag {
  display: inline-block; font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border: 1px solid var(--line-hover);
  border-radius: var(--radius-pill); color: var(--dim);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.tag:hover { border-color: var(--line-accent); color: var(--paper); }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px var(--pad);
  background: rgba(6,6,8,.92); backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%); border-bottom-color: var(--line);
}
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(20px,3vw,40px); }
.nav__link {
  font-size: var(--t-sm); font-weight: 500; letter-spacing: .04em;
  color: var(--dim); transition: color .3s var(--ease);
}
.nav__link:hover { color: var(--paper); }

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; z-index: 502; }
.nav__burger span { display: block; height: 1.5px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile {
  position: fixed; inset: 0; z-index: 501;
  background: rgba(6,6,8,.97); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--gap-lg);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile__link { font-size: var(--t-2xl); font-weight: 600; }
.nav-mobile__link:hover { color: var(--violet); }

@media (max-width:768px) {
  .nav__links, .nav .btn-zia { display: none; }
  .nav__burger { display: flex; }
}

/* ========== CARDS SERVICE ========== */
.card-service {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--gap-md);
  transition: background .3s var(--ease), border-color .4s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.card-service::after {
  content:''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card-service:hover {
  background: var(--card-hover); border-color: var(--line-accent);
  transform: translateY(-6px); box-shadow: 0 12px 40px rgba(139,63,255,.08);
}
.card-service:hover::after { transform: scaleX(1); }
.card-service__num { font-size: var(--t-xs); color: var(--dim); letter-spacing: .1em; margin-bottom: var(--gap-sm); }
.card-service__title { font-size: var(--t-lg); font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card-service__desc { font-size: var(--t-sm); color: var(--dim); line-height: 1.6; }

/* ========== PORTFOLIO LIST ========== */
.pf-item {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--gap-md);
  padding: clamp(16px,2.5vw,28px) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer; position: relative;
  transition: border-color .4s var(--ease);
}
.pf-item:hover { border-bottom-color: var(--violet); }
.pf-item__num { font-size: var(--t-sm); color: var(--dim); font-weight: 500; letter-spacing: .1em; min-width: 2em; }
.pf-item__info { min-width: 0; }
.pf-item__name {
  font-size: var(--t-2xl); font-weight: 900; letter-spacing: -.02em; line-height: 1.1;
  color: var(--dim); transition: color .4s var(--ease);
}
.pf-item:hover .pf-item__name { color: var(--paper); }
.pf-item__sub { font-size: var(--t-sm); color: var(--dim); margin-top: 2px; }
.pf-item__tags { display: flex; gap: 6px; justify-self: end; }

/* Image follow (positionne par JS) */
.pf-follow {
  position: fixed; z-index: 400; pointer-events: none;
  width: 280px; height: 180px; border-radius: var(--radius-sm);
  overflow: hidden; opacity: 0; transform: scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.pf-follow.is-visible { opacity: 1; transform: scale(1); }
.pf-follow img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width:768px) {
  .pf-follow { display: none; }
  .pf-item { grid-template-columns: 1fr; gap: var(--gap-sm); }
  .pf-item__name { font-size: var(--t-xl); }
  .pf-item__tags { justify-self: start; }
}

/* ========== TABS ========== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-hover); color: var(--dim);
  transition: all .3s var(--ease); cursor: pointer;
}
.tab:hover { color: var(--paper); border-color: var(--line-accent); }
.tab.is-active { color: var(--ink); background: var(--paper); border-color: var(--paper); }

/* ========== STAT COUNTER ========== */
.stat { text-align: left; }
.stat__num {
  font-size: var(--t-3xl); font-weight: 900; line-height: 1;
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat__label { font-size: var(--t-sm); color: var(--dim); margin-top: 4px; }

/* ========== FAQ ========== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--gap-md) 0; font-size: var(--t-md); font-weight: 500;
  color: var(--paper); text-align: left; cursor: pointer;
  transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--violet); }
.faq-q__ic { font-size: var(--t-lg); transition: transform .3s var(--ease); flex-shrink: 0; margin-left: var(--gap-md); }
.faq-item.is-open .faq-q__ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a__inner { padding-bottom: var(--gap-md); font-size: var(--t-base); color: var(--dim); line-height: 1.7; }
.faq-item.is-open .faq-a { max-height: 500px; }

/* ========== TICKER ========== */
.ticker { overflow: hidden; padding: var(--gap-md) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; animation: tickScroll 30s linear infinite; }
.ticker__item {
  display: flex; align-items: center; gap: clamp(16px,2vw,28px);
  padding: 0 clamp(16px,2vw,28px);
  font-size: var(--t-sm); font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.ticker__sep { color: var(--violet); font-size: .7em; }
@keyframes tickScroll { to { transform: translateX(-50%); } }

/* ========== LOGOS CLIENTS ========== */
.logos-wrap { overflow: hidden; perspective: 800px; }
.logos-track {
  display: flex; align-items: center; gap: clamp(32px,5vw,64px);
  width: max-content; animation: tickScroll 40s linear infinite;
  transform: rotateX(2deg); transform-origin: center bottom;
}
.logos-track img {
  height: clamp(18px,2.5vw,30px); width: auto;
  filter: brightness(0) invert(1); opacity: .35;
  transition: opacity .3s var(--ease);
}
.logos-wrap:hover .logos-track img { opacity: .65; }
.logos-track img:hover { opacity: 1; }

/* ========== ZIA MODAL ========== */
.zia-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,6,8,.92); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.zia-modal.is-open { opacity: 1; pointer-events: auto; }
.zia-modal__panel {
  width: min(92vw,480px); height: min(88vh,720px);
  background: var(--ink); border: 1px solid var(--line-hover);
  border-radius: var(--radius); overflow: hidden; position: relative;
  transform: translateY(24px) scale(.96); transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
}
.zia-modal.is-open .zia-modal__panel { transform: translateY(0) scale(1); }
.zia-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.zia-modal__identity { display: flex; align-items: center; gap: 10px; }
.zia-modal__name { font-size: var(--t-sm); font-weight: 700; letter-spacing: .04em; }
.zia-modal__role { font-size: var(--t-xs); color: var(--dim); }
.zia-modal__close {
  font-size: var(--t-xs); font-weight: 600; color: var(--dim);
  padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.zia-modal__close:hover { color: var(--paper); border-color: var(--line-hover); }
.zia-modal__iframe { flex: 1; width: 100%; border: none; }

/* ========== CUSTOM CURSOR ========== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 8px; height: 8px; background: #fff; }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(255,255,255,.6);
  transition: width .35s var(--ease), height .35s var(--ease), opacity .3s var(--ease);
}
.cursor-ring.is-hover { width: 64px; height: 64px; }
.cursor-ring.is-hidden { opacity: 0; width: 0; height: 0; }
@media (max-width:768px) { .cursor-dot,.cursor-ring { display:none; } }
@media (pointer:coarse) { .cursor-dot,.cursor-ring { display:none; } }

/* ========== SCROLL REVEAL ========== */
.sr {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease);
}
.sr.is-v {
  opacity: 1;
  transform: translateY(0);
}
.sr.d1 { transition-delay: .1s; }
.sr.d2 { transition-delay: .2s; }
.sr.d3 { transition-delay: .3s; }
.sr.d4 { transition-delay: .4s; }
.sr.d5 { transition-delay: .5s; }

/* ========== FOOTER ========== */
.footer { border-top: 1px solid var(--line); padding: var(--section-gap) 0 var(--gap-lg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gap-lg); }
.footer__desc { font-size: var(--t-sm); color: var(--dim); line-height: 1.6; max-width: 280px; }
.footer__socials { display: flex; gap: 12px; margin-top: var(--gap-md); }
.footer__social {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-hover); border-radius: 50%;
  font-size: var(--t-sm); color: var(--dim);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.footer__social:hover { border-color: var(--violet); color: var(--paper); }
.footer__heading { font-size: var(--t-xs); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); margin-bottom: var(--gap-md); }
.footer__link { display: block; font-size: var(--t-sm); color: var(--dim); padding: 4px 0; transition: color .3s var(--ease); }
.footer__link:hover { color: var(--paper); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--section-gap); padding-top: var(--gap-md);
  border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--dim);
}
@media (max-width:768px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg) var(--gap-md); } }
@media (max-width:480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
