/* ══ TKSwift — Global Stylesheet ══ */
/* Tous les styles CSS personnalisés sont centralisés ici */

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

/* ── CSS variables per theme ── */
:root {
  --bg-primary: #020617;
  --bg-secondary: #0a0f1e;
  --bg-surface: rgba(255,255,255,0.03);
  --bg-surface-strong: rgba(15,23,42,0.8);
  --border-default: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-faint: #334155;
  --grid-line: rgba(7,78,177,0.03);
  --hero-orb1: rgba(7,78,177,0.18);
  --hero-orb2: rgba(62,144,186,0.1);
  --nav-scrolled: rgba(2,6,23,0.92);
  --card-hover-bg: rgba(7,78,177,0.05);
  --footer-bg: #020617;
  --footer-text: #1e293b;
}
html.light {
  --bg-primary: #f8faff;
  --bg-secondary: #f1f5fe;
  --bg-surface: rgba(255,255,255,0.8);
  --bg-surface-strong: rgba(255,255,255,0.95);
  --border-default: rgba(7,78,177,0.12);
  --border-strong: rgba(7,78,177,0.2);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --grid-line: rgba(7,78,177,0.04);
  --hero-orb1: rgba(7,78,177,0.08);
  --hero-orb2: rgba(62,144,186,0.06);
  --nav-scrolled: rgba(248,250,255,0.95);
  --card-hover-bg: rgba(7,78,177,0.03);
  --footer-bg: #f1f5fe;
  --footer-text: #94a3b8;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Glass morphism ── */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  transition: background 0.3s, border-color 0.3s;
}
.glass-strong {
  background: var(--bg-surface-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  transition: background 0.3s, border-color 0.3s;
}

/* ── Text gradients ── */
.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, #a5b4fc 40%, #3E90BA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #074EB1 0%, #3E90BA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow effects ── */
.glow-blue { box-shadow: 0 0 30px rgba(7,78,177,0.3), 0 0 60px rgba(7,78,177,0.1); }
.btn-glow { transition: all 0.3s; }
.btn-glow:hover {
  box-shadow: 0 0 25px rgba(7,78,177,0.4), 0 0 50px rgba(7,78,177,0.15);
  transform: translateY(-2px);
}

/* ── Shimmer border ── */
.shimmer-border { position: relative; overflow: hidden; }
.shimmer-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent 0%, rgba(62,144,186,0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  border-radius: inherit;
  z-index: -1;
}
@keyframes shimmer {
  0%{background-position:-200% 0}
  100%{background-position:200% 0}
}

.card-hover { transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover {
  transform: translateY(-8px);
  border-color: rgba(7,78,177,0.35);
  background: var(--card-hover-bg);
}

/* ── Hero ── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--hero-orb1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--hero-orb2) 0%, transparent 50%),
    var(--bg-primary);
}

.page-hero {
  min-height: 40vh;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(7,78,177,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(62,144,186,.07) 0%, transparent 50%),
    var(--bg-primary);
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── Tech badge ── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(62,144,186,0.3);
  color: #3E90BA;
  background: rgba(62,144,186,0.08);
}
html.light .tech-badge {
  color: #224A6D;
  border-color: rgba(34,74,109,0.3);
  background: rgba(34,74,109,0.08);
}

/* ── Scrollbar ── */
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--bg-primary)}
::-webkit-scrollbar-thumb{background:#074EB1;border-radius:2px}

/* ── Typing cursor ── */
.cursor::after {
  content:'|';
  animation: blink 1s step-end infinite;
  color: #3E90BA;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}

/* ── Navigation ── */
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, #074EB1, #3E90BA);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #074EB1; }
.nav-link.active::after { width: 100%; }

/* ── Icon ring ── */
.icon-ring {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.card-hover:hover .icon-ring { transform: scale(1.1) rotate(5deg); }

/* ── Progress bars ── */
.progress-bar { height: 2px; background: rgba(255,255,255,0.05); border-radius:1px; overflow:hidden; }
html.light .progress-bar { background: rgba(0,0,0,0.06); }
.progress-fill,
.stat-fill {
  height:100%;
  background: linear-gradient(90deg, #074EB1, #3E90BA);
  border-radius:1px;
  width:0;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.stat-bar { height:4px; background:rgba(255,255,255,.05); border-radius:2px; overflow:hidden; margin-top:8px }
html.light .stat-bar { background:rgba(0,0,0,.06) }

/* ── Quote mark ── */
.quote-mark {
  font-size:80px; line-height:0.6;
  color: rgba(7,78,177,0.15);
  font-family: Georgia, serif;
  position:absolute; top:20px; left:20px;
}

#mobile-menu { display:none; }
#mobile-menu.open { display:flex; }

.section-pad { padding:120px 0; }
@media(max-width:768px){
  .section-pad{padding:80px 0}
  .hero-title{font-size:2.8rem}
  .stat-number{font-size:2rem}
}

/* ── Theme toggle ── */
.theme-toggle {
  width:40px; height:40px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: all 0.3s;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.theme-toggle:hover {
  border-color: rgba(7,78,177,0.4);
  color: #074EB1;
  transform: rotate(15deg);
}

/* ── Budget radio ── */
.budget-opt { cursor:pointer; }
.budget-opt span {
  display:block; text-align:center;
  padding:8px 12px; border-radius:8px;
  font-size:12px; font-weight:500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  transition:all 0.2s; cursor:pointer;
}
.budget-opt input:checked + span {
  background: rgba(7,78,177,0.12);
  border-color: rgba(7,78,177,0.4);
  color: #93c5fd;
}
html.light .budget-opt input:checked + span { color: #074EB1; }
.budget-opt span:hover { border-color: rgba(7,78,177,0.3); }

/* ── Form inputs ── */
.form-input {
  width:100%;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-default);
  border-radius:10px;
  padding:12px 16px;
  color: var(--text-primary);
  font-size:14px;
  font-family:'Inter',sans-serif;
  outline:none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: rgba(7,78,177,0.5);
  box-shadow: 0 0 0 3px rgba(7,78,177,0.1);
}

/* ── Team card ── */
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(7,78,177,0.35);
}
.team-card:hover .team-avatar { transform: scale(1.05); }
.team-avatar { transition: transform 0.4s; }

/* ── Value card ── */
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.value-card:hover {
  border-color: rgba(7,78,177,0.3);
  background: rgba(7,78,177,0.03);
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  opacity: 0.04;
  background: radial-gradient(circle, #074EB1, transparent);
}

/* ── Float animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-12px) translateX(-50%); }
}

/* ── Spinner ── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

#hero-canvas { position:absolute; inset:0; width:100%; height:100%; opacity:0.5; pointer-events:none; }
