/* ══════════════════════════════════════════════
   AXIA CONSEIL — poles.css
   CSS commun aux 4 pages pôles
   Ne pas modifier sans vérifier l'impact sur les 4 pôles
══════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; font-size: 16px; }

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar-track { background: var(--navy-x); }

.nav-brand em { color: var(--gold); font-style: normal; }

.nav-back:hover { color: var(--gold); }

.nav-back svg { width: 16px; height: 16px; }

/* ── HERO ──────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 6% 60px;
  position: relative; overflow: hidden;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title em { color: var(--gold); font-style: italic; }

.hero-desc {
  font-size: 1.05rem; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239,159,39,0.35);
}

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 20px;
}

.section-title em { color: var(--gold); font-style: italic; }

.section-desc {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  line-height: 1.85; max-width: 560px;
}

.promesse-inner {
  max-width: 780px; margin: 0 auto; text-align: center;
}

.promesse-quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-style: italic; font-weight: 400; line-height: 1.55;
  color: rgba(255,255,255,0.9);
  position: relative;
}

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 20px;
}

.cta-title em { color: var(--gold); font-style: italic; }

.cta-desc {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  max-width: 500px; margin: 0 auto 40px; line-height: 1.8;
}

.cta-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239,159,39,0.35);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7);
  padding: 14px 32px; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--gold); color: var(--gold);
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--navy-d);
  border-top: 1px solid rgba(239,159,39,0.1);
  padding: 32px 6%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-brand {
  font-family: var(--f-display);
  font-size: 1.1rem; font-weight: 700;
}

.footer-brand em { color: var(--gold); font-style: normal; }

.footer-info {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  text-align: right; line-height: 1.6;
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }

.reveal-d2 { transition-delay: 0.2s; }

.reveal-d3 { transition-delay: 0.3s; }

/* ── CURSOR ────────────────────────────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); pointer-events: none;
  z-index: 9999; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.25s, height 0.25s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(239,159,39,0.5);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.25s, height 0.25s;
  opacity: 0;
}

.cursor-dot.is-active, .cursor-ring.is-active { opacity: 1; }

.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--gold); }

@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ── NAV LOGO ──────────────────────────────────────── */
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 38px; height: 38px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.nav-logo:hover { transform: scale(1.08) rotate(-3deg); }

.nav-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ══ AXIA — SHARED POLE ENHANCEMENTS ══════════════════════ */
/* AXIA v2 — snappier transitions + BFCache-safe leaving state */
html.page-entering body { opacity: 0; transform: translateY(10px) scale(0.997); filter: blur(4px); }

body { transition: opacity 0.28s cubic-bezier(.2,.8,.2,1), transform 0.3s cubic-bezier(.2,.8,.2,1), filter 0.28s cubic-bezier(.2,.8,.2,1); }

html.page-leaving body { opacity: 0.3; transform: translateY(-4px) scale(0.997); filter: blur(3px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { html.page-entering body, html.page-leaving body { opacity: 1; transform: none; filter: none; } }

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-fo 0.45s cubic-bezier(.2,.8,.2,1) both; }

::view-transition-new(root) { animation: vt-fi 0.55s 0.1s cubic-bezier(.2,.8,.2,1) both; }

@keyframes vt-fo { to { opacity: 0; transform: scale(0.985) translateY(-8px); filter: blur(6px); } }

@keyframes vt-fi { from { opacity: 0; transform: scale(1.01) translateY(10px); filter: blur(6px); } }

/* Scroll progress bar */
#axia-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #EF9F27, #FFD27A, #EF9F27); background-size: 200% 100%; z-index: 9999; pointer-events: none; box-shadow: 0 0 12px rgba(239,159,39,0.55); animation: axiaShimmer 3s linear infinite; transition: width 0.05s linear; }

@keyframes axiaShimmer { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

/* Floating orbs */
.axia-orb { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: 0.4; z-index: 0; mix-blend-mode: screen; }

.axia-orb.o1 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(239,159,39,0.35), transparent 70%); top: 15%; left: -120px; animation: axiaDrift1 28s ease-in-out infinite; }

.axia-orb.o2 { width: 440px; height: 440px; background: radial-gradient(circle, rgba(83,74,183,0.4), transparent 70%); top: 60%; right: -140px; animation: axiaDrift2 36s ease-in-out infinite; }

.axia-orb.o3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(29,158,117,0.32), transparent 70%); bottom: -80px; left: 40%; animation: axiaDrift3 32s ease-in-out infinite; }

@keyframes axiaDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(120px,-60px) scale(1.1); } 66% { transform: translate(60px,80px) scale(0.95); } }

@keyframes axiaDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px,60px) scale(1.12); } }

@keyframes axiaDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,-90px) scale(1.08); } }

/* Premium back button */
.axia-back-fab { position: fixed; top: 80px; left: 26px; z-index: 200; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 14px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(239,159,39,0.3); backdrop-filter: blur(16px); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px; text-decoration: none; cursor: pointer; transition: all 0.4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 6px 20px -8px rgba(0,0,0,0.4); }

.axia-back-fab:hover { background: #EF9F27; color: #0D0A20; border-color: #EF9F27; transform: translateX(-4px); box-shadow: 0 12px 32px -10px rgba(239,159,39,0.55); }

.axia-back-fab .axia-back-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(239,159,39,0.18); transition: all 0.4s cubic-bezier(.2,.8,.2,1); }

.axia-back-fab:hover .axia-back-ico { background: rgba(13,10,32,0.18); transform: translateX(-2px) rotate(-8deg); }

.axia-back-fab svg { width: 14px; height: 14px; }

@media (max-width: 600px) { .axia-back-fab { top: 75px; left: 16px; padding: 9px 16px 9px 10px; font-size: 0.72rem; } .axia-back-fab .axia-back-ico { width: 24px; height: 24px; } }

/* Reveal-on-scroll utility */
.axia-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1); }

.axia-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Ensure nav brand/back keep proper position above orbs */
nav, header { position: relative; z-index: 100; }

section { position: relative; z-index: 1; }

/* ── AXIA v3: iframe-mode / WhatsApp / back-to-top ───────── */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9995;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 38px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.55);
  cursor: pointer; transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  animation: waPulse 2.6s infinite; text-decoration: none;
}

.wa-fab:hover { transform: scale(1.1) rotate(-6deg); }

.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

@keyframes waPulse {
  0%,100% { box-shadow: 0 14px 38px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.55); }
  50%     { box-shadow: 0 14px 38px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0); }
}

.axia-btt {
  position: fixed; right: 28px; bottom: 94px; z-index: 9994;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(239,159,39,0.95); color: #0D0A20;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(239,159,39,0.4);
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all 0.35s cubic-bezier(.2,.8,.2,1); padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
}

.axia-btt.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.axia-btt:hover { background: #FFD27A; transform: translateY(-3px); box-shadow: 0 14px 40px rgba(239,159,39,0.55); }

.axia-btt svg { width: 22px; height: 22px; }

@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .axia-btt { right: 18px; bottom: 80px; width: 42px; height: 42px; }
  .axia-btt svg { width: 18px; height: 18px; }
}