:root {
  --bg: #071023;
  --bg-elevated: #0c1a33;
  --text: #f8fbff;
  --muted: #b2bfd7;
  --accent: #00c2ff;
  --accent-soft: #00e0b8;
  --card: rgba(13, 28, 52, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 8, 30, 0.35);
}

body.light-mode {
  --bg: #f4f8ff;
  --bg-elevated: #ffffff;
  --text: #04112b;
  --muted: #53627b;
  --accent: #008dd8;
  --accent-soft: #00a98b;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(9, 27, 58, 0.11);
  --shadow: 0 20px 45px rgba(15, 32, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  background: radial-gradient(circle at 15% 10%, #12325f 0%, var(--bg) 46%);
  color: var(--text);
  scroll-behavior: smooth;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(#fff 0.6px, transparent 0.6px);
  background-size: 2px 2px;
  z-index: 0;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 44px;
  width: 100%;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(4, 11, 25, 0.75), transparent);
  backdrop-filter: blur(8px);
}

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(0, 194, 255, 0.18), rgba(0, 224, 184, 0.16));
  backdrop-filter: blur(10px);
}

.top-banner-wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.top-banner-wrap p {
  margin: 0;
  color: #e6f5ff;
}

.nav-wrap {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1.1rem);
  padding: 0.78rem 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  justify-self: start;
  min-width: 0;
  margin-left: 0;
}

.logo-wrap span {
  white-space: nowrap;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
}

.logo {
  width: clamp(140px, 12vw, 168px);
  height: clamp(44px, 3.8vw, 52px);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 19, 39, 0.5);
  backdrop-filter: blur(9px);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #d9e8ff;
  padding: 0.1rem;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  min-width: 44px;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.flag-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.flag-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-code {
  line-height: 1;
  color: #d8e6ff;
}

.lang-btn.active {
  color: #fff;
}

.lang-btn.active .flag-avatar {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 0 5px rgba(0, 194, 255, 0.5),
    0 0 14px rgba(0, 194, 255, 0.8),
    0 0 24px rgba(0, 194, 255, 0.5);
}

.lang-btn.active .lang-code {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 194, 255, 0.85);
  border-bottom: 2px solid rgba(0, 194, 255, 0.95);
  padding-bottom: 1px;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 1.1vw, 1.25rem);
  justify-self: center;
  align-items: center;
  flex-wrap: nowrap;
  min-width: max-content;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.nav-links a {
  font-size: clamp(0.95rem, 1vw, 1.04rem);
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(130deg, rgba(0, 194, 255, 0.32), rgba(0, 224, 184, 0.28));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 0 2px rgba(0, 194, 255, 0.28),
    0 0 20px rgba(0, 194, 255, 0.5);
}

.header-actions {
  display: flex;
  gap: clamp(0.45rem, 0.75vw, 0.7rem);
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: nowrap;
  margin-left: auto;
}

.site-header .btn {
  padding: 0.62rem 0.98rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.icon-btn,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.icon-btn {
  width: 38px;
  height: 38px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 194, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 8.2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(2, 13, 34, 0.72), rgba(2, 13, 34, 0.5)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.9s ease;
}

.hero-bg-next {
  opacity: 0;
}

#particles {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.2rem;
}

.pill {
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: #d9efff;
  font-size: 0.85rem;
}

h1,
h2,
h3,
h4 {
  font-family: Sora, sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  max-width: 16ch;
}

.hero-subtitle {
  max-width: 58ch;
  color: #d6e3f4;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.social-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.social-badge.linkedin .social-icon {
  background: #0a66c2;
}

.social-badge.whatsapp .social-icon {
  background: #18c964;
}

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 720px;
}

.stats article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(9px);
}

.stats h3 {
  font-size: 1.8rem;
}

.stats p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 1.7rem;
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
.project-card,
.contact-card,
.contact-form,
.slide {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.card,
.project-card {
  padding: 1.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 255, 0.46);
}

.card h3,
.project-card h3 {
  margin-top: 0.7rem;
}

.card p,
.project-card p,
.about p,
.contact-card p {
  color: var(--muted);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.4rem;
}

.timeline article {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem 1rem 1rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.timeline span {
  font-weight: 700;
}

.rating {
  color: var(--accent-soft);
  font-weight: 700;
}

.slider {
  position: relative;
  min-height: 180px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  padding: 1.35rem 1.3rem;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.quote-futuristic {
  position: relative;
  margin: 0 0 0.9rem;
  color: #d6e5f8;
  line-height: 1.7;
  font-size: 0.97rem;
  padding: 0.4rem 0.2rem 0.2rem 2.2rem;
}

.quote-futuristic::before {
  content: "“";
  position: absolute;
  left: 0.2rem;
  top: -0.25rem;
  font-size: 2.4rem;
  line-height: 1;
  color: #62d7ff;
  text-shadow: 0 0 14px rgba(0, 194, 255, 0.7);
}

.quote-futuristic::after {
  content: "”";
  position: absolute;
  right: 0.1rem;
  bottom: -0.6rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(98, 215, 255, 0.88);
  text-shadow: 0 0 12px rgba(0, 194, 255, 0.58);
}

.slide h4 {
  margin-top: 0.55rem;
  color: #f0f7ff;
  font-size: 0.95rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: min(1040px, 100%);
  margin-inline: auto;
}

.masonry-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: saturate(1.03);
}

.masonry-grid img:hover {
  transform: scale(1.015);
  filter: saturate(1.18);
}

.contact-form {
  padding: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

label {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 194, 255, 0.35);
  border-color: transparent;
}

.contact-card {
  padding: 1.2rem;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  color: var(--muted);
}

.map-frame iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 14px;
}

/* Footer — touches aux couleurs du drapeau de la Gambie (rouge · bleu · vert) */
.site-footer {
  --gm-red: #ce1126;
  --gm-blue: #0c1c8c;
  --gm-green: #3a7728;
  --gm-white: #ffffff;
  --gm-hover-green: #8ae59a;
  --gm-hover-blue: #8ab4ff;
  --gm-stripe: linear-gradient(
    90deg,
    var(--gm-red) 0%,
    var(--gm-red) 30%,
    var(--gm-white) 30%,
    var(--gm-white) 33%,
    var(--gm-blue) 33%,
    var(--gm-blue) 67%,
    var(--gm-white) 67%,
    var(--gm-white) 70%,
    var(--gm-green) 70%,
    var(--gm-green) 100%
  );
  --footer-text: var(--text);
  --footer-muted: var(--muted);
  --footer-line: var(--border);
  position: relative;
  border-top: none;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 58%);
  color: var(--footer-text);
  margin-top: 0;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: var(--gm-stripe);
}

.footer-main {
  padding: 3rem 0 2.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 2.25rem 1.75rem;
  align-items: start;
}

.footer-col-heading {
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem;
}

.footer-brand-title {
  font-family: Sora, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.9rem;
  line-height: 1.2;
}

.footer-brand-it {
  display: inline-block;
  margin: 0 0.04em;
  padding: 0.12em 0.38em 0.1em;
  border-radius: 6px;
  background: var(--gm-stripe);
  box-shadow:
    0 6px 18px rgba(12, 28, 140, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
  vertical-align: baseline;
}

.footer-brand-it-inner {
  color: #fff;
  font-weight: 800;
  font-size: 0.95em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.footer-about {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--footer-muted);
  max-width: 32ch;
}

.footer-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--footer-line);
  border-radius: 6px;
  color: var(--footer-text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-icon-btn:hover {
  background: rgba(12, 28, 140, 0.22);
  border-color: rgba(58, 119, 40, 0.55);
  color: #bfe9c9;
}

.footer-nav a,
.footer-linkedin {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-linkedin:hover {
  color: var(--gm-hover-green);
}

.footer-contact-line {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-contact-line a {
  color: var(--text);
  text-decoration: none;
}

.footer-contact-line a:hover {
  color: var(--gm-hover-blue);
}

.footer-contact-muted {
  color: var(--footer-muted);
  font-size: 0.86rem;
}

.footer-linkedin {
  margin-top: 0.6rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  background: var(--card);
  padding: 1rem 0 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--footer-muted);
}

.footer-bottom-sep {
  letter-spacing: 0.02em;
  opacity: 0.45;
  user-select: none;
}

.footer-powered {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-powered:hover {
  color: var(--gm-hover-green);
}

.floating-whatsapp,
.chatbot-icon {
  position: fixed;
  z-index: 70;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  font-size: 1.35rem;
  cursor: pointer;
  text-decoration: none;
}

.floating-whatsapp {
  right: 1.2rem;
  background: #18c964;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.chatbot-icon {
  right: 4.8rem;
  background: linear-gradient(130deg, var(--accent), #6f8cff);
  color: #fff;
}

.mobile-sticky-cta {
  display: none;
}

dialog#lightbox {
  border: 0;
  background: rgba(4, 10, 26, 0.88);
  width: min(95vw, 1100px);
  max-height: 95vh;
  padding: 0.5rem;
  position: relative;
}

dialog#lightbox[open] {
  display: grid;
  place-items: center;
}

dialog#lightbox::backdrop {
  background: rgba(4, 10, 26, 0.78);
}

#lightboxClose {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(5, 20, 45, 0.82);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
}

dialog#lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
  }

  .nav-links {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .stats {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 72px;
  }

  .top-banner-wrap {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.45rem 0;
    line-height: 1.2;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 50%;
    bottom: 0.6rem;
    transform: translateX(-50%);
    z-index: 80;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(130deg, var(--accent), var(--accent-soft));
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  }

  .floating-whatsapp,
  .chatbot-icon {
    bottom: 4.2rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-col-brand {
    grid-column: auto;
  }
}
