/**
 * Culture Congo Tech — couche moderne (thème Agency conservé)
 * Couleur primaire : #ffc800 | Fond sombre : #212529
 */

:root {
  --cct-primary: #ffc800;
  --cct-primary-dark: #e6b400;
  --cct-dark: #212529;
  --cct-muted: #6c757d;
  --cct-surface: #ffffff;
  --cct-surface-alt: #f8f9fa;
  --cct-radius: 14px;
  --cct-shadow: 0 12px 40px rgba(33, 37, 41, 0.08);
  --cct-shadow-hover: 0 20px 50px rgba(33, 37, 41, 0.14);
}

html {
  scroll-padding-top: 5.5rem;
}

body.cc-tech-modern {
  font-family: "Roboto Slab", Georgia, serif;
  color: #343a40;
  background: var(--cct-surface);
}

/* Navigation */
.cc-tech-modern #mainNav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.cc-tech-modern #mainNav.navbar-shrink {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cc-tech-modern #mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cc-tech-modern #mainNav .navbar-brand img {
  height: 2.25rem;
  width: auto;
  border-radius: 8px;
}

.cc-tech-modern #mainNav .brand-text {
  font-size: 0.85rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.cc-tech-modern #mainNav .nav-link {
  position: relative;
  padding-bottom: 0.35rem !important;
}

.cc-tech-modern #mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  background: var(--cct-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.cc-tech-modern #mainNav .nav-link:hover::after,
.cc-tech-modern #mainNav .nav-link.active::after {
  transform: scaleX(1);
}

/* Hero */
.cc-tech-modern header.masthead {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.cc-tech-modern header.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(33, 37, 41, 0.88) 0%, rgba(33, 37, 41, 0.55) 45%, rgba(33, 37, 41, 0.75) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 200, 0, 0.18), transparent 45%);
  z-index: -1;
}

.cc-tech-modern .masthead-subheading {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  opacity: 0.95;
}

.cc-tech-modern .masthead-heading {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.cc-tech-modern .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

.cc-tech-modern .btn-outline-light {
  border-width: 2px;
}

.cc-tech-modern .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cc-tech-modern .hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cct-radius);
  padding: 1rem 0.75rem;
  backdrop-filter: blur(6px);
}

.cc-tech-modern .hero-stat strong {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--cct-primary);
}

.cc-tech-modern .hero-stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Sections */
.cc-tech-modern .page-section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.cc-tech-modern .section-heading {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.cc-tech-modern .section-subheading {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* Service cards */
.cc-tech-modern .service-card {
  height: 100%;
  background: var(--cct-surface);
  border: 1px solid #eceff3;
  border-radius: var(--cct-radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--cct-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cc-tech-modern .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cct-shadow-hover);
  border-color: rgba(255, 200, 0, 0.45);
}

.cc-tech-modern .service-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 200, 0, 0.16);
  color: #b38600;
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.cc-tech-modern .service-card h4 {
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Portfolio */
.cc-tech-modern .portfolio-item {
  border-radius: var(--cct-radius);
  overflow: hidden;
  box-shadow: var(--cct-shadow);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cc-tech-modern .portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--cct-shadow-hover);
}

.cc-tech-modern .portfolio-item .portfolio-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.cc-tech-modern .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cc-tech-modern .portfolio-item .portfolio-link--static {
  display: block;
  cursor: default;
}

.cc-tech-modern .portfolio-item:hover img {
  transform: scale(1.04);
}

.cc-tech-modern .portfolio-caption {
  padding: 1.1rem 1.15rem 1.25rem;
}

.cc-tech-modern .portfolio-caption-heading {
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
}

/* Timeline polish */
.cc-tech-modern .timeline > li .timeline-panel {
  border-radius: var(--cct-radius);
  box-shadow: var(--cct-shadow);
}

.cc-tech-modern .timeline > li .timeline-image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Team */
.cc-tech-modern .team-member {
  background: #fff;
  border-radius: var(--cct-radius);
  padding: 2rem 1.25rem;
  box-shadow: var(--cct-shadow);
  height: 100%;
  transition: transform 0.25s ease;
}

.cc-tech-modern .team-member:hover {
  transform: translateY(-4px);
}

.cc-tech-modern .team-member img {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
}

/* Partners strip */
.cc-tech-modern .partners-strip {
  background: linear-gradient(180deg, #fff 0%, var(--cct-surface-alt) 100%);
}

.cc-tech-modern .partners-strip .img-brand {
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.cc-tech-modern .partners-strip a:hover .img-brand {
  opacity: 1;
  filter: none;
}

/* Contact */
.cc-tech-modern section#contact {
  background-image:
    linear-gradient(rgba(33, 37, 41, 0.92), rgba(33, 37, 41, 0.92)),
    url("../assets/img/map-image.png");
  background-size: cover;
}

.cc-tech-modern .contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.cc-tech-modern .contact-card {
  display: block;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cct-radius);
  padding: 1.35rem 1.25rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cc-tech-modern .contact-card:hover {
  color: #fff;
  background: rgba(255, 200, 0, 0.12);
  border-color: rgba(255, 200, 0, 0.45);
  transform: translateY(-2px);
}

.cc-tech-modern .contact-card strong {
  display: block;
  font-family: Montserrat, sans-serif;
  color: var(--cct-primary);
  margin-bottom: 0.35rem;
}

.cc-tech-modern .contact-card span {
  word-break: break-word;
}

/* Footer */
.cc-tech-modern .footer {
  background: #181b1f;
  color: rgba(255, 255, 255, 0.75);
}

.cc-tech-modern .footer .link-dark {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Reveal animation */
.cc-tech-modern .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cc-tech-modern .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .cc-tech-modern .hero-stats {
    grid-template-columns: 1fr;
  }

  .cc-tech-modern header.masthead {
    min-height: auto;
    padding-top: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-tech-modern .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cc-tech-modern .service-card:hover,
  .cc-tech-modern .portfolio-item:hover,
  .cc-tech-modern .team-member:hover,
  .cc-tech-modern .contact-card:hover {
    transform: none;
  }
}
