/* =============================================
   SHARED.CSS — ANGE TECH SOLUTIONS Portfolio
   Importé dans toutes les pages
============================================= */
:root {
  --bg: #07090D;
  --bg2: #0B0E14;
  --surface: #10141C;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #00E5FF;
  --accent2: #7B61FF;
  --gold: #D4AF37;
  --gold2: #F1D592;
  --txt: #F0F4F8;
  --muted: #6B7B8D;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-h: 'Syne', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none
}

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

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), opacity .3s
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 18px;
  height: 18px
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 60px;
  height: 60px;
  opacity: .5
}

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  transition: background .5s var(--ease), padding .4s var(--ease)
}

nav.scrolled {
  background: rgba(7, 9, 13, .95);
  backdrop-filter: blur(24px) saturate(1.6);
  padding: 10px 5%;
  border-bottom: 1px solid var(--border)
}

/* LOGO avec image */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, .3));
  transition: filter .3s
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, .5))
}

.logo-text {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: .5px;
  line-height: 1.1
}

.logo-text span {
  color: var(--gold)
}

.logo-sub {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted)
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .3s;
  position: relative
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right .4s var(--ease)
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--txt)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0
}

.nav-links a.active {
  color: var(--gold)
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 20px;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 100px;
  color: var(--gold);
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, .3)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
  opacity: 0
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg)
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 9, 13, .98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  transition: opacity .4s var(--ease)
}

.mobile-menu.open {
  opacity: 1
}

.mobile-menu .mob-logo {
  margin-bottom: 20px
}

.mobile-menu .mob-logo img {
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, .4))
}

.mobile-menu a {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 700;
  color: var(--txt);
  text-decoration: none;
  transition: color .3s
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold)
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px
}

.footer-logo img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, .25))
}

.footer-logo-text {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 800;
  color: var(--txt)
}

.footer-logo-text span {
  color: var(--gold)
}

.footer-copy {
  font-size: 13px;
  color: var(--muted)
}

.footer-back {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  cursor: none;
  transition: color .3s
}

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

/* PAGE HERO (pages internes) */
.page-hero {
  padding: 160px 5% 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg)
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, black 20%, transparent 100%)
}

.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .8s var(--ease) .1s forwards
}

.page-hero-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold)
}

.page-hero-title {
  font-family: var(--font-h);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 1s var(--ease) .25s forwards
}

.page-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.page-hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .9s var(--ease) .4s forwards
}

.page-hero-sub strong {
  color: var(--txt);
  font-weight: 500
}

.page-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite
}

.page-orb-1 {
  width: 400px;
  height: 400px;
  right: -80px;
  top: -60px;
  background: radial-gradient(circle, rgba(212, 175, 55, .1) 0%, transparent 70%)
}

.page-orb-2 {
  width: 300px;
  height: 300px;
  right: 20%;
  bottom: 0;
  background: radial-gradient(circle, rgba(123, 97, 255, .07) 0%, transparent 70%);
  animation-delay: -6s
}

/* SECTIONS */
.section {
  padding: 100px 5%;
  position: relative
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold)
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 56px
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease)
}

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

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .22s
}

.reveal-delay-3 {
  transition-delay: .36s
}

.reveal-delay-4 {
  transition-delay: .5s
}

.reveal-delay-5 {
  transition-delay: .64s
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--bg);
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  cursor: none;
  transition: transform .3s var(--ease), box-shadow .3s
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, .35);
  color: var(--bg)
}

.btn-primary .arrow {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 0, 0, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: transform .3s var(--ease)
}

.btn-primary:hover .arrow {
  transform: rotate(45deg)
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1px solid var(--border);
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  cursor: none;
  transition: background .3s, border-color .3s, transform .3s var(--ease)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-3px);
  color: var(--txt)
}

/* CTA BAND */
.cta-band {
  padding: 80px 5%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--border)
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9995;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transform: translateY(100px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
  pointer-events: none
}

.toast.show {
  transform: translateY(0);
  opacity: 1
}

.toast.success {
  background: #065F46;
  color: #6EE7B7;
  border: 1px solid #047857
}

.toast.info {
  background: #1E3A5F;
  color: #7DD3FC;
  border: 1px solid #1D4ED8
}

/* ANIMATIONS */
@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1)
  }

  33% {
    transform: translateY(-28px) scale(1.04)
  }

  66% {
    transform: translateY(14px) scale(.97)
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, .4)
  }

  50% {
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

@keyframes goldGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, .3))
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, .6))
  }
}

/* RESPONSIVE */
@media(max-width:1024px) {
  .page-hero-title {
    font-size: clamp(38px, 6vw, 60px)
  }
}

@media(max-width:768px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .hamburger {
    display: flex
  }

  .mobile-menu {
    display: flex
  }

  .section {
    padding: 70px 5%
  }

  .page-hero {
    padding: 130px 5% 60px
  }

  footer {
    flex-direction: column;
    text-align: center
  }

  .footer-logo {
    justify-content: center
  }

  .cta-band {
    flex-direction: column;
    text-align: center
  }
}

@media(max-width:480px) {

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center
  }
}