/* ═══════════════════════════════════════
   BETCOM AI — Shared Styles
   Palette: 65% Noir · 25% Blanc · 10% Or
═══════════════════════════════════════ */

@font-face {
  font-family: 'Creato Display';
  src: url('https://fonts.cdnfonts.com/s/25414/CreatoDisplay-Regular.woff') format('woff');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Creato Display';
  src: url('https://fonts.cdnfonts.com/s/25414/CreatoDisplay-Light.woff') format('woff');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'Creato Display';
  src: url('https://fonts.cdnfonts.com/s/25414/CreatoDisplay-Bold.woff') format('woff');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'Creato Display';
  src: url('https://fonts.cdnfonts.com/s/25414/CreatoDisplay-Italic.woff') format('woff');
  font-weight: 400; font-style: italic;
}

:root {
  /* 65% Noir */
  --noir:       #0C0C0C;
  --noir-2:     #131313;
  --noir-3:     #1A1A1A;
  --noir-4:     #242424;
  /* 25% Blanc */
  --blanc:      #FFFFFF;
  --blanc-2:    #F5F5F0;
  --blanc-3:    #E8E8E0;
  --blanc-muted:#B0AFA8;
  /* 10% Or */
  --or:         #C8A96E;
  --or-light:   #DEC28E;
  --or-dark:    #A8893E;
  --or-pale:    rgba(200,169,110,0.12);

  --serif: 'Creato Display', Georgia, serif;
  --sans:  'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── CURSOR ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--or);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(200,169,110,.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  padding: 26px 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(12,12,12,0);
  border-bottom: 1px solid transparent;
  transition: all .4s ease;
}
nav.scrolled {
  background: rgba(12,12,12,.97);
  border-bottom-color: rgba(200,169,110,.15);
  padding: 16px 64px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: .14em;
  color: var(--blanc); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.logo .logo-accent { color: var(--or); }

.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blanc-muted); text-decoration: none;
  transition: color .3s;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--or);
  transition: width .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blanc); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--sans); font-size: .72rem;
  font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--noir); background: var(--or);
  padding: 11px 28px; text-decoration: none;
  transition: background .3s, transform .2s;
}
.nav-cta:hover { background: var(--or-light); transform: translateY(-1px); }

/* ── HAMBURGER (Mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 300;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blanc);
  transition: all .35s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(12,12,12,.98);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 300; letter-spacing: .08em;
  color: var(--blanc); text-decoration: none;
  transition: color .3s;
  position: relative;
}
.mobile-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--or);
  transition: width .4s;
}
.mobile-menu a:hover { color: var(--or); }
.mobile-menu a:hover::after { width: 100%; }
.mobile-menu a.active { color: var(--or); }

.mobile-menu-cta {
  margin-top: 8px;
  font-family: var(--sans); font-size: .75rem;
  font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--noir); background: var(--or);
  padding: 14px 36px; text-decoration: none;
  transition: background .3s;
}
.mobile-menu-cta:hover { background: var(--or-light); }

/* ── FOOTER ── */
footer {
  background: var(--noir-2);
  border-top: 1px solid rgba(200,169,110,.15);
}
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px; padding: 80px 64px 60px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 16px; }
.footer-brand p {
  font-size: .82rem; color: var(--blanc-muted);
  line-height: 1.8; max-width: 260px; margin-top: 12px;
}
.footer-col h4 {
  font-family: var(--sans); font-size: .68rem;
  font-weight: 600; letter-spacing: .25em; text-transform: uppercase;
  color: var(--or); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .83rem; color: var(--blanc-muted);
  text-decoration: none; transition: color .3s;
}
.footer-col ul li a:hover { color: var(--or); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 64px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: .72rem; color: var(--blanc-muted); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(200,169,110,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; text-decoration: none; color: var(--blanc-muted);
  transition: all .3s;
}
.footer-social a:hover { background: var(--or); color: var(--noir); border-color: var(--or); transform: translateY(-3px); }
.footer-social a { transition: all .3s ease; }

/* ── COMMON SECTIONS ── */
.section-tag {
  font-family: var(--sans); font-size: .68rem;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--or); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.section-tag::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--or);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--or-light); }

/* Boutons */
.btn-primary {
  background: var(--or); color: var(--noir);
  font-family: var(--sans); font-size: .73rem;
  font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 15px 38px; text-decoration: none; display: inline-block;
  transition: background .3s, transform .2s;
}
.btn-primary:hover { background: var(--or-light); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--or); color: var(--or);
  font-family: var(--sans); font-size: .73rem;
  font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 36px; text-decoration: none; display: inline-block;
  transition: all .3s;
}
.btn-outline:hover { background: var(--or); color: var(--noir); }

.btn-white {
  background: var(--blanc); color: var(--noir);
  font-family: var(--sans); font-size: .73rem;
  font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 15px 38px; text-decoration: none; display: inline-block;
  transition: background .3s, transform .2s;
}
.btn-white:hover { background: var(--blanc-3); transform: translateY(-2px); }

/* Reveal animations */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* Marquee */
.marquee-wrap {
  background: var(--or); padding: 14px 0; overflow: hidden;
}
.marquee-track {
  display: inline-block; white-space: nowrap;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-size: .8rem;
  font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--noir); padding: 0 36px;
}
.marquee-track span::before { content: '✦  '; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* White section */
.white-section {
  background: var(--blanc-2); color: var(--noir);
}
.white-section .section-tag { color: var(--or-dark); }
.white-section .section-tag::before { background: var(--or-dark); }
.white-section .section-title em { color: var(--or-dark); }

/* Divider */
.or-divider {
  width: 48px; height: 2px; background: var(--or); margin: 24px 0;
}

/* ── ANIMATED ICONS ── */
.icon-anim {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; position: relative;
}
.icon-anim svg {
  width: 28px; height: 28px;
  stroke: var(--or); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.icon-anim svg .anim-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s ease;
}
.reveal.visible .icon-anim svg .anim-draw,
.icon-anim:hover svg .anim-draw {
  stroke-dashoffset: 0;
}

/* Pulse glow on hover */
.icon-anim::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.15) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.icon-anim:hover::after { opacity: 1; }

/* Float animation */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.icon-float { animation: iconFloat 3s ease-in-out infinite; }

/* Pulse animation */
@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .85; }
}
.icon-pulse { animation: iconPulse 2.5s ease-in-out infinite; }

/* Spin slow */
@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.icon-spin { animation: iconSpin 8s linear infinite; }

/* Bounce */
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-4px); }
}
.icon-bounce { animation: iconBounce 2s ease-in-out infinite; }

/* Shake */
@keyframes iconShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}
.icon-shake:hover { animation: iconShake .4s ease-in-out; }

/* Draw-in on scroll */
@keyframes drawIn {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
.reveal.visible .icon-draw svg path {
  animation: drawIn 1.2s ease forwards;
}
.icon-draw svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

/* ── PAGE LOADER / TRANSITION ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.page-loader-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blanc);
}
.page-loader-logo span { color: var(--or); }
.page-loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(200,169,110,.15);
  position: relative;
  overflow: hidden;
}
.page-loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--or);
  animation: loaderProgress 1s ease forwards;
}
@keyframes loaderProgress {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* Page exit transition */
body.page-exit {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav, nav.scrolled { padding: 20px 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 32px 40px; }
  .footer-bottom { padding: 20px 32px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  nav { padding: 18px 24px; }
  .footer-main { grid-template-columns: 1fr; padding: 48px 24px 32px; }
  .footer-bottom { padding: 18px 24px; flex-direction: column; gap: 14px; text-align: center; }
}
