/* ============================================================
   NEXIA — layout.css
   V2 — Retours Andy : poles tabs, portfolio visuel, ecosysteme
   elargi, footer graphique, methode repensee
   ============================================================ */

.section { padding: var(--section-gap) 0; }
.section--border { border-top: 1px solid var(--line); }

/* ========== HERO ========== */
/* Hero : 2 blocs (heading haut, info bas) avec space-between */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 0 var(--pad); overflow: hidden;
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video-wrap::after {
  content:''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(6,6,8,.4) 30%, rgba(6,6,8,.1) 50%, transparent 70%),
    radial-gradient(ellipse 120% 80% at 8% 92%, rgba(139,63,255,.12), transparent 50%),
    radial-gradient(ellipse 80% 100% at 92% 5%, rgba(63,191,255,.06), transparent 50%);
}
.hero__content {
  position: relative; z-index: 3;
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 5rem));
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

/* Bloc haut : badge + heading — pousse en haut */
.hero__top { max-width: 900px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.hero__badge-tags { color: var(--dim); font-size: var(--t-xs); letter-spacing: .04em; }

.hero__heading {
  font-size: clamp(3rem, 1rem + 6vw, 7.5rem); font-weight: 900; line-height: .95;
  letter-spacing: -.03em;
  text-shadow: 0 2px 16px rgba(6,6,8,.3);
}

/* Bloc bas : sous-titre + CTAs — pousse en bas */
.hero__bottom { max-width: 520px; }
.hero__line { display: block; overflow: hidden; }
.hero__char {
  display: inline-block; opacity: 0; transform: translateY(110%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero__char.is-v { opacity: 1; transform: translateY(0); }
.hero__accent { font-weight: 300; font-style: italic; }
/* "augmenté." — glow shimmer au hover, pas de doublon texte */
.hero__gradient {
  color: var(--paper);
  transition: filter .5s var(--ease);
}
.hero__gradient .hero__char {
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  transition: color .3s var(--ease), -webkit-text-fill-color .3s var(--ease), text-shadow .3s var(--ease);
}
/* Hover : degradé violet→cyan lettre par lettre, pas de glow */
.hero__gradient:hover .hero__char { color: var(--violet); -webkit-text-fill-color: var(--violet); }
.hero__gradient:hover .hero__char:nth-child(2) { color: #6B5FFF; -webkit-text-fill-color: #6B5FFF; transition-delay: .03s; }
.hero__gradient:hover .hero__char:nth-child(3) { color: #5B6FFF; -webkit-text-fill-color: #5B6FFF; transition-delay: .05s; }
.hero__gradient:hover .hero__char:nth-child(4) { color: #4B7FFF; -webkit-text-fill-color: #4B7FFF; transition-delay: .07s; }
.hero__gradient:hover .hero__char:nth-child(5) { color: #4B8FFF; -webkit-text-fill-color: #4B8FFF; transition-delay: .09s; }
.hero__gradient:hover .hero__char:nth-child(6) { color: #3F9FFF; -webkit-text-fill-color: #3F9FFF; transition-delay: .11s; }
.hero__gradient:hover .hero__char:nth-child(7) { color: #3FAFFF; -webkit-text-fill-color: #3FAFFF; transition-delay: .13s; }
.hero__gradient:hover .hero__char:nth-child(8) { color: #3FBFFF; -webkit-text-fill-color: #3FBFFF; transition-delay: .15s; }
.hero__gradient:hover .hero__char:nth-child(9) { color: #3FBFFF; -webkit-text-fill-color: #3FBFFF; transition-delay: .17s; }

/* Fallback no-JS */
.hero__gradient:not(:has(.hero__char)) {
  color: var(--paper);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}
.hero__gradient:not(:has(.hero__char)):hover {
  color: var(--violet);
}
.hero__sub {
  font-size: var(--t-lg); font-weight: 300; color: rgba(255,255,255,.7);
  line-height: 1.7; margin-bottom: clamp(1.5rem, 3vh, 2rem);
}
.hero__sub strong { color: var(--paper); font-weight: 600; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__ctas .btn { padding: 16px 32px; font-size: var(--t-sm); }
.hero__scroll {
  position: absolute; bottom: var(--gap-md); left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll-bar { width: 1px; height: 40px; background: var(--line-hover); position: relative; overflow: hidden; }
.hero__scroll-bar::after {
  content:''; position: absolute; top: -100%; width: 100%; height: 100%;
  background: var(--paper); animation: scrollBar 2s ease-in-out infinite;
}
@keyframes scrollBar { 0%{top:-100%} 50%{top:100%} 100%{top:100%} }
.hero__scroll-txt { font-size: var(--t-xs); letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }

/* Noise — hero + ZIA */
.has-noise { position: relative; }
.has-noise::before {
  content:''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .035;
  background: 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='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ========== MANIFESTE — split + micro interactions ========== */
/* Manifeste : plus de gap, colonne droite decalee vers le bas */
.manifeste { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.manifeste > :nth-child(2) { padding-top: clamp(1rem, 3vw, 3rem); }
.manifeste__heading { font-size: var(--t-4xl); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.manifeste__dim { font-weight: 300; font-size: var(--t-xl); color: var(--dim); margin-top: var(--gap-sm); }
.manifeste__body { font-size: var(--t-md); color: var(--dim); line-height: 1.7; }
.manifeste__body strong { color: var(--paper); font-weight: 600; }
.manifeste__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap-md); margin-top: var(--gap-lg); }
/* Hover interaction on stats */
.stat { transition: transform .4s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat:hover .stat__num { filter: brightness(1.3); }

@media (max-width:768px) {
  .manifeste { grid-template-columns: 1fr; }
  .manifeste__stats { grid-template-columns: repeat(2,1fr); }
}

/* ========== CLIENTS — bigger logos ========== */
.clients__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--gap-md); padding: 0 var(--pad);
}
.clients__label { font-size: var(--t-sm); color: var(--dim); }
.logos-wrap { overflow: hidden; }
.logos-track {
  display: flex; align-items: center; gap: clamp(40px,6vw,80px);
  width: max-content; animation: tickScroll 35s linear infinite;
}
.logos-track img {
  height: clamp(24px,3.5vw,42px); width: auto;
  filter: brightness(0) invert(1); opacity: .4;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.logos-track img:hover { opacity: 1; transform: scale(1.1); }
@keyframes tickScroll { to { transform: translateX(-50%); } }

/* ========== SERVICES — 3 POLES (tabs left + content right, bg gradient per pole) ========== */
.expertises {
  position: relative; overflow: hidden;
  padding: var(--section-gap) 0;
  transition: background 1s var(--ease);
}
/* Gradient bg per pole — set via JS data-active-pole */
.expertises[data-pole="web"] { background: linear-gradient(135deg, rgba(139,63,255,.08) 0%, rgba(75,127,255,.06) 50%, var(--ink) 100%); }
.expertises[data-pole="motion"] { background: linear-gradient(135deg, rgba(63,191,255,.08) 0%, rgba(75,127,255,.05) 50%, var(--ink) 100%); }
.expertises[data-pole="graphic"] { background: linear-gradient(135deg, rgba(255,100,150,.07) 0%, rgba(139,63,255,.04) 50%, var(--ink) 100%); }

.expertises__header { margin-bottom: var(--gap-lg); }
.expertises__title {
  font-size: var(--t-4xl); font-weight: 100; font-style: italic;
  line-height: 1; letter-spacing: -.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.expertises__intro { font-size: var(--t-xl); font-weight: 700; line-height: 1.3; margin-top: var(--gap-md); max-width: 900px; }

.expertises__body {
  display: grid; grid-template-columns: 280px 1fr;
  gap: var(--gap-lg); align-items: start; margin-top: var(--gap-lg);
}

/* Pole tabs (left) */
.pole-tabs { display: flex; flex-direction: column; gap: 4px; }
.pole-tab {
  font-size: var(--t-md); font-weight: 300; color: var(--dim);
  padding: 12px 0; cursor: pointer; position: relative;
  transition: color .3s var(--ease), font-weight .3s;
  border: none; background: none; text-align: left;
}
.pole-tab:hover { color: var(--paper); }
.pole-tab.is-active {
  color: var(--paper); font-weight: 600;
}
.pole-tab.is-active::after {
  content: '●'; margin-left: 8px; font-size: .5em; vertical-align: middle;
  color: var(--violet);
}

/* Pole content (right) */
.pole-content { display: none; }
.pole-content.is-active { display: block; }
.pole-content__title {
  font-size: var(--t-2xl); font-weight: 900; line-height: 1.1;
  margin-bottom: var(--gap-sm);
}
.pole-content__desc {
  font-size: var(--t-base); color: var(--dim); line-height: 1.7;
  max-width: 540px; margin-bottom: var(--gap-md);
}
.pole-content__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pole-content__tag {
  font-size: var(--t-sm); font-weight: 500;
  padding: 8px 18px; border: 1px solid var(--line-hover);
  border-radius: var(--radius-pill); color: var(--paper);
  transition: border-color .3s var(--ease), background .3s var(--ease);
  text-decoration: none;
}
.pole-content__tag:hover {
  border-color: var(--violet); background: rgba(139,63,255,.08);
}

@media (max-width:768px) {
  .expertises__body { grid-template-columns: 1fr; }
  .pole-tabs { flex-direction: row; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: var(--gap-md); }
  .pole-tab { padding: 10px 16px; font-size: var(--t-sm); }
}

/* ========== METHODE — timeline horizontale immersive ========== */
.methode__intro { margin-bottom: var(--gap-lg); max-width: 500px; }
.methode__intro p { color: var(--dim); font-size: var(--t-md); }

.methode__timeline {
  display: flex; gap: 0; position: relative;
  counter-reset: step;
}

.methode__step {
  flex: 1; position: relative; padding: var(--gap-md);
  border-right: 1px solid var(--line);
  transition: background .4s var(--ease);
  cursor: default;
}
.methode__step:last-child { border-right: none; }
.methode__step:hover { background: rgba(139,63,255,.04); }

/* Top line = progress accent */
.methode__step::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.methode__step:hover::before { transform: scaleX(1); }

.methode__step-vid {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: var(--gap-sm);
  filter: brightness(.8) saturate(1.2);
  transition: filter .4s var(--ease), transform .4s var(--ease);
}
.methode__step:hover .methode__step-vid { filter: brightness(1) saturate(1.3); transform: scale(1.02); }

.methode__step-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;
  opacity: .2; margin-bottom: var(--gap-sm);
  transition: opacity .3s var(--ease);
}
.methode__step:hover .methode__step-num { opacity: .5; }
.methode__step-title { font-size: var(--t-md); font-weight: 700; margin-bottom: 6px; }
.methode__step-desc { font-size: var(--t-sm); color: var(--dim); line-height: 1.5; }

@media (max-width:900px) { .methode__timeline { flex-wrap: wrap; } .methode__step { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--line); } }
@media (max-width:600px) { .methode__step { flex: 1 1 100%; border-right: none; } }

/* ========== PHILOSOPHIE ========== */
/* Philosophie : sa propre respiration, double padding */
.philosophie {
  text-align: center; padding: clamp(8rem, 18vh, 16rem) var(--pad);
  position: relative;
}
.philosophie__quote {
  font-size: var(--t-2xl); font-weight: 600; line-height: 1.3;
  max-width: 800px; margin: 0 auto;
}
.philosophie__author {
  font-size: var(--t-sm); color: var(--dim); margin-top: var(--gap-md);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ========== ZIA ========== */
.zia { text-align: center; position: relative; }
.zia__orb-wrap {
  position: relative; width: clamp(140px,22vw,220px); height: clamp(140px,22vw,220px);
  margin: var(--gap-lg) auto; cursor: pointer;
}
.zia__orb {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,63,255,.25) 0%, transparent 70%);
  border: 1px solid var(--line-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--t-xl); font-weight: 700; letter-spacing: .15em;
  animation: breathe 4s ease-in-out infinite;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.zia__orb-wrap:hover .zia__orb {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(139,63,255,.3);
}
.zia__ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-accent);
  animation: breathe 4s ease-in-out infinite; pointer-events: none;
}
.zia__ring:nth-child(2) { inset: -20px; animation-delay: .5s; }
.zia__ring:nth-child(3) { inset: -44px; animation-delay: 1s; opacity: .4; }
@keyframes breathe { 0%,100%{transform:scale(1);opacity:.5} 50%{transform:scale(1.06);opacity:1} }

.zia__desc { font-size: var(--t-md); color: var(--dim); max-width: 520px; margin: 0 auto var(--gap-md); line-height: 1.7; }
.zia__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--gap-lg); }
.zia__ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ========== PROJETS — hover video reveal ========== */
.projets__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--gap-lg); flex-wrap: wrap; gap: var(--gap-md);
}

.pf-item {
  border-bottom: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s var(--ease);
  display: flex; flex-direction: column;
}
.pf-item:hover { border-bottom-color: var(--violet); }

.pf-item__header {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--gap-md);
  padding: clamp(14px, 2vw, 24px) 0;
  width: 100%;
}
.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; transition: color .3s var(--ease); }
.pf-item:hover .pf-item__sub { color: rgba(255,255,255,.55); }
.pf-item__tags { display: flex; gap: 6px; justify-self: end; }

/* Video reveal — expand on hover, full width below header */
.pf-item__reveal {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease);
  opacity: 0;
  width: 100%;
}
.pf-item.is-hover .pf-item__reveal {
  max-height: clamp(220px, 45vw, 560px);
  opacity: 1;
}

.pf-item__video-wrap {
  position: relative; width: 100%;
  padding-bottom: 43.75%; /* 16:7 ratio */
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: var(--gap-sm) 0;
  background: var(--card-bg);
}
.pf-item__video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

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

/* ========== ECOSYSTEME — 3×3 grid, monogrammes, futur ========== */
.ecosysteme { text-align: center; }
.ecosysteme__subtitle {
  font-size: var(--t-md); color: var(--dim); max-width: 600px;
  margin: var(--gap-md) auto var(--gap-lg); line-height: 1.7;
}

.eco-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; max-width: 960px; margin: 0 auto;
  background: var(--line); border-radius: var(--radius); overflow: hidden;
}
.eco-cell {
  background: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  transition: background .4s var(--ease);
}
.eco-cell:hover { background: var(--card-bg); }

/* Monogramme — lettre en gradient, cercle subtil */
.eco-mono {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto var(--gap-sm);
  border-radius: 50%; border: 1px solid var(--line-hover);
  font-size: var(--t-lg); font-weight: 700; letter-spacing: .05em;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.eco-cell:hover .eco-mono { border-color: var(--violet); transform: scale(1.08); }

.eco-title { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; }
.eco-desc { font-size: var(--t-xs); color: var(--dim); line-height: 1.4; }
.eco-logo { height: 28px; margin: 0 auto var(--gap-sm); }

/* Centre = Nexia — gradient bg */
.eco-cell--center {
  background: var(--gradient); position: relative;
}
.eco-cell--center:hover { background: var(--gradient); }
.eco-cell--center .eco-mono { display: none; }

@media (max-width:600px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  /* Le centre prend 2 colonnes sur mobile pour pas de trou */
  .eco-cell--center { grid-column: 1 / -1; }
}

/* ========== CTA SECTION ========== */
/* CTA : moment de decision, espace genereux */
.cta-section { text-align: center; padding: clamp(8rem, 16vh, 14rem) 0; }
.cta-section__heading { font-size: var(--t-4xl); font-weight: 700; line-height: 1.05; margin-bottom: var(--gap-lg); }
.cta-section__thin { font-weight: 100; color: var(--dim); }
.cta-section__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ========== FAQ ========== */
.faq-wrap { max-width: 800px; margin: 0 auto; }

/* ========== FOOTER — visual ========== */
.footer {
  border-top: 1px solid var(--line);
  padding: 0;
  position: relative; overflow: hidden;
}

/* Footer top = big CTA band */
.footer__cta-band {
  padding: var(--gap-lg) var(--pad);
  background: linear-gradient(135deg, rgba(139,63,255,.06) 0%, rgba(63,191,255,.04) 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.footer__cta-title { font-size: var(--t-xl); font-weight: 700; margin-bottom: var(--gap-md); }

.footer__main { padding: var(--gap-lg) 0; }
.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: 40px; height: 40px; 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), background .3s var(--ease);
}
.footer__social:hover { border-color: var(--violet); color: #fff; background: rgba(139,63,255,.15); }
.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;
  padding: var(--gap-md) 0; 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; }
}
