/* =========================================================
   SOLUTION TECHNOLOGIE HUB — index.css (Page Accueil)
   ========================================================= */

/* ── HERO OPTIMIZE POU BLOKE BAR BLAN ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Sove lajè a nèt */
  background: var(--navy-deep);
  padding-top: 90px;
  padding-bottom: 60px;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('building.jpg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 991px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 43, 0.92) 0%,
    rgba(13, 31, 60, 0.82) 50%,
    rgba(26, 60, 110, 0.70) 100%
  );
  z-index: 1;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--apricot);
  opacity: 0;
  animation: floatUp var(--dur-p) ease-in-out infinite;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 0.6; transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.4); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 15px;
  max-width: 100%;
  overflow: hidden;
}

/* Title wrap */
.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  min-height: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 3.5rem); /* Redui pou ti ekran */
  font-weight: 900;
  color: var(--apricot);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Horizontal bar FIXED */
.hero-bar {
  width: 60%;
  max-width: 200px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  margin: 16px auto;
}

/* Slogan */
.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Sub */
.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
@media (max-height: 650px) {
  .hero-scroll { display: none; }
}
.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--apricot);
  border-radius: 50%;
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.4; }
}

/* ── SERVICES CARDS ── */
.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--apricot);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.service-card:hover {
  border-color: var(--apricot);
  box-shadow: 0 12px 48px rgba(255,170,91,0.15);
  transform: translateY(-6px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card--accent {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  border-color: var(--navy-mid);
}
.service-card--accent h3,
.service-card--accent p { color: var(--white); }
.service-card--accent .service-icon { background: rgba(255,170,91,0.15); color: var(--apricot); }
.service-card--accent .service-link { color: var(--apricot); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--apricot-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--apricot);
  margin-bottom: 20px;
  transition: background 0.3s var(--ease);
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  background: var(--apricot);
  color: var(--navy-deep);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.service-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--apricot);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease);
  margin-top: auto;
}
.service-link:hover { gap: 10px; }

/* ── WHY US ── */
.why-title { 
  font-family: var(--font-display); 
  font-size: clamp(1.6rem, 4vw, 2.4rem); 
  font-weight: 800; 
  color: var(--navy); 
  margin-bottom: 16px; 
  line-height: 1.2; 
}
.why-title span { color: var(--apricot); }
.why-desc { color: var(--gray-text); line-height: 1.7; margin-bottom: 24px; }

.why-item { 
  display: flex; 
  gap: 16px; 
  align-items: flex-start; 
  padding: 24px 20px; 
  background: var(--white); 
  border-radius: var(--radius-md); 
  border: 1px solid var(--gray-light); 
  transition: all 0.3s var(--ease); 
  height: 100%;
}
.why-item:hover { border-color: var(--apricot); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-icon { width: 44px; height: 44px; background: var(--apricot-glow); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--apricot); font-size: 1.1rem; flex-shrink: 0; }
.why-item h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.why-item p { font-size: 0.85rem; color: var(--gray-text); line-height: 1.6; margin: 0; }

/* ── PARTNERS LOGOS ── */
.partner-logo-placeholder {
  width: 100%;
  max-width: 240px;
  height: 120px;
  margin: 0 auto;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  background: var(--white);
  padding: 15px;
}
.partner-logo-placeholder img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.partner-logo-placeholder:hover {
  border-color: var(--apricot);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Adaptasyon mobil pour les sections */
@media (max-width: 768px) {
  .hero { padding-top: 80px; }
  .why-item { padding: 18px; }
}