/* ══════════════════════════════════════════════════════════════
   THTeg — Site en Construction
   Couleur principale : #030490
   Police : Inter
   ══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #0f0f23;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5c8d6; border-radius: 3px; }

/* ── Container ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container { padding: 0 40px; }
}


/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 16px rgba(3, 4, 144, 0.06);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .header-inner { padding: 0 40px; }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}


/* Nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s;
}

.nav-link:hover {
  color: #ffffff;
}

#header.scrolled .nav-link {
  color: #3a3d50;
}

#header.scrolled .nav-link:hover {
  color: #030490;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover { background: rgba(255, 255, 255, 0.08); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

#header.scrolled .hamburger span {
  background: #030490;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e8e9f0;
  padding: 16px 24px;
}

.nav-mobile.open {
  display: block;
}

.nav-link-mobile {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #3a3d50;
  padding: 10px 0;
  transition: color 0.2s;
}

.nav-link-mobile:hover {
  color: #030490;
}


/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, #020380 0%, #030490 35%, #0a0bb5 70%, #0f12d0 100%);
}

/* Grid pattern overlay */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow--1 {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.02);
  filter: blur(100px);
  animation: glow-pulse 4s ease-in-out infinite;
}

.hero-glow--2 {
  bottom: -15%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: rgba(26, 27, 255, 0.04);
  filter: blur(80px);
  animation: glow-pulse 4s ease-in-out infinite 2s;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

/* Geometric decorations */
.geo {
  position: absolute;
  pointer-events: none;
}

.geo--1 {
  top: 18%;
  left: 8%;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: rotate(45deg);
  border-radius: 3px;
}

.geo--2 {
  top: 65%;
  right: 12%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: rotate(12deg);
  border-radius: 3px;
}

.geo--3 {
  bottom: 25%;
  left: 20%;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.025);
  transform: rotate(30deg);
  border-radius: 3px;
}

.geo--4 {
  top: 30%;
  right: 25%;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 720px;
}

.hero-logo-wrap {
  margin-bottom: 32px;
}

.hero-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  background: #ffffff;
  padding: 6px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-logo {
    height: 120px;
  }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.hero-badge svg {
  opacity: 0.7;
}

/* Title */
.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .hero-title { font-size: 44px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 52px; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 58px; }
}

/* Sub text */
.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .hero-sub { font-size: 18px; }
}

.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile { display: inline; }
}

/* ── Countdown ────────────────────────────────────────── */
.countdown-wrap {
  margin-bottom: 20px;
}

.countdown-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .countdown-grid { gap: 20px; }
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-digit {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
}

@media (min-width: 640px) {
  .countdown-digit {
    width: 88px;
    height: 88px;
  }
}

.countdown-digit span {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .countdown-digit span { font-size: 36px; }
}

.countdown-digit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.countdown-unit {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.countdown-sep {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 20px;
  user-select: none;
}

@media (min-width: 640px) {
  .countdown-sep { font-size: 34px; margin-top: 24px; }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.25);
  animation: bounce-down 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}


/* ══════════════════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════════════════ */
#services,
#contact {
  position: relative;
}

#services::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(3, 4, 144, 0.1), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

@media (min-width: 640px) {
  .section-header { margin-bottom: 72px; }
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #030490;
  background: rgba(3, 4, 144, 0.05);
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .section-badge { font-size: 11px; }
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f0f23;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .section-title { font-size: 34px; }
}

@media (min-width: 768px) {
  .section-title { font-size: 40px; }
}

.section-desc {
  font-size: 14px;
  color: #5a5e73;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .section-desc { font-size: 15px; }
}


/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
#services {
  padding: 80px 0;
  background: #ffffff;
}

@media (min-width: 640px) {
  #services { padding: 110px 0; }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border: 1px solid #e8e9f0;
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(3, 4, 144, 0.07);
  border-color: rgba(3, 4, 144, 0.15);
}

@media (min-width: 640px) {
  .service-card { padding: 28px; }
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(3, 4, 144, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #030490;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(3, 4, 144, 0.1);
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f0f23;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 12.5px;
  color: #5a5e73;
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
#contact {
  padding: 80px 0;
  background: #f7f8fb;
}

@media (min-width: 640px) {
  #contact { padding: 110px 0; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e8e9f0;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 4px 20px rgba(3, 4, 144, 0.05);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(3, 4, 144, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #030490;
}

.contact-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f0f23;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.contact-detail {
  font-size: 13px;
  color: #5a5e73;
  line-height: 1.8;
}

.contact-detail a {
  color: #5a5e73;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: #030490;
}

/* CTA */
.cta-wrap {
  text-align: center;
  margin-top: 48px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 10px;
  background: #030490;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(3, 4, 144, 0.2);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cta-btn:hover {
  background: #020380;
  box-shadow: 0 6px 28px rgba(3, 4, 144, 0.3);
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  background: #0a0b2e;
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}


.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.footer-social-link:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}


/* ══════════════════════════════════════════════════════════
   REVEAL ANIMATIONS (scroll-triggered via JS)
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

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

/* Stagger for cards */
.services-grid .reveal:nth-child(1)  { transition-delay: 0.00s; }
.services-grid .reveal:nth-child(2)  { transition-delay: 0.03s; }
.services-grid .reveal:nth-child(3)  { transition-delay: 0.06s; }
.services-grid .reveal:nth-child(4)  { transition-delay: 0.09s; }
.services-grid .reveal:nth-child(5)  { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(6)  { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(7)  { transition-delay: 0.18s; }
.services-grid .reveal:nth-child(8)  { transition-delay: 0.21s; }
.services-grid .reveal:nth-child(9)  { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(10) { transition-delay: 0.27s; }
.services-grid .reveal:nth-child(11) { transition-delay: 0.30s; }
.services-grid .reveal:nth-child(12) { transition-delay: 0.33s; }
.services-grid .reveal:nth-child(13) { transition-delay: 0.36s; }
.services-grid .reveal:nth-child(14) { transition-delay: 0.39s; }
.services-grid .reveal:nth-child(15) { transition-delay: 0.42s; }
.services-grid .reveal:nth-child(16) { transition-delay: 0.45s; }
.services-grid .reveal:nth-child(17) { transition-delay: 0.48s; }
.services-grid .reveal:nth-child(18) { transition-delay: 0.51s; }
.services-grid .reveal:nth-child(19) { transition-delay: 0.54s; }
.services-grid .reveal:nth-child(20) { transition-delay: 0.57s; }

/* Hero entrance animations */
.anim-1 { animation: fadeUp 0.7s ease-out both; }
.anim-2 { animation: fadeUp 0.7s ease-out 0.12s both; }
.anim-3 { animation: fadeUp 0.7s ease-out 0.24s both; }
.anim-4 { animation: fadeUp 0.7s ease-out 0.36s both; }
.anim-5 { animation: fadeUp 0.7s ease-out 0.50s both; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
