/* ===== Tata Consulting — feuille de style principale (v3, thème sombre) ===== */

:root {
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --blue-light: #60a5fa;
  --teal: #0d9488;
  --teal-light: #2dd4bf;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --orange: #f97316;
  --orange-light: #fb923c;
  --pink: #db2777;
  --pink-light: #f472b6;
  --green: #16a34a;

  --bg: #080d18;
  --surface: #121a2c;
  --surface-2: #19233a;
  --text: #eef2fb;
  --muted: #96a2bd;
  --line: rgba(255, 255, 255, 0.1);
  --white: #ffffff;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Image frame with colorful fallback ===== */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  box-shadow: var(--shadow);
}

.img-frame.tone-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.img-frame.tone-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.img-frame.tone-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.img-frame.tone-orange { background: linear-gradient(135deg, #fdba74, #f97316); }
.img-frame.tone-pink { background: linear-gradient(135deg, #f9a8d4, #db2777); }

.img-frame img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 24, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 40px;
  width: auto;
  background: var(--white);
  padding: 5px;
  border-radius: 10px;
}

.brand-text { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--text); }
.brand-text span {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  background: linear-gradient(90deg, var(--blue-light), var(--teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: var(--text); padding: 6px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--blue-light); }

.nav-cta {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* ===== Hero with photo ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f20, #0a1a22 55%, #150f28);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 76px 24px 88px;
  max-width: 1180px;
  margin: 0 auto;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  z-index: 0;
}
.blob-1 { width: 420px; height: 420px; background: var(--blue-light); top: -140px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: var(--teal-light); bottom: -160px; right: -100px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-light), var(--teal-light), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin: 0 0 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: var(--white);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.46); }

.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); }

.btn-dark { background: var(--blue-dark); color: var(--white); }
.btn-dark:hover { background: var(--blue); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue-light), var(--purple-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat span { font-size: 0.82rem; color: var(--muted); }

.hero-visual .img-frame { aspect-ratio: 4 / 4.4; }
.hero-visual { position: relative; }

.floating-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.floating-card .dot {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: var(--white); flex-shrink: 0;
}
.floating-card .dot svg { width: 20px; height: 20px; }
.floating-card b { display: block; font-size: 0.92rem; color: var(--text); }
.floating-card span { font-size: 0.78rem; color: var(--muted); }

/* ===== Sections ===== */
section { padding: 88px 0; }
.section-light { background: var(--bg); }
.section-tint { background: var(--surface); }
.section-soft { background: var(--surface-2); }
.section-dark { background: linear-gradient(160deg, #05070f, #0d1424); color: var(--white); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}
.section-dark .kicker { color: var(--teal-light); }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-dark .section-head p { color: rgba(255,255,255,0.68); }

/* ===== Service cards (home teaser, with photo) ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(96, 165, 250, 0.3); }

.svc-card .img-frame { border-radius: 0; aspect-ratio: 16 / 10; }

.svc-card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin: -46px 0 16px 20px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.blue { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.icon-badge.purple { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.icon-badge.teal { background: linear-gradient(135deg, var(--teal-light), var(--teal)); }
.icon-badge.orange { background: linear-gradient(135deg, var(--orange-light), var(--orange)); }
.icon-badge.pink { background: linear-gradient(135deg, var(--pink-light), var(--pink)); }

.svc-card h3 { font-size: 1.14rem; margin: 0 0 10px; font-weight: 800; color: var(--text); }
.svc-card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 16px; flex: 1; }

.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.card-link.blue { color: var(--blue-light); }
.card-link.purple { color: var(--purple-light); }
.card-link.teal { color: var(--teal-light); }
.card-link.orange { color: var(--orange-light); }
.card-link.pink { color: var(--pink-light); }

/* ===== Steps / process ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--teal-light), var(--blue-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.step h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--white); }
.step p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ===== Detailed service sections (services.html) ===== */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: none; }
.svc-detail.reverse .svc-detail-media { order: 2; }
.svc-detail.reverse .svc-detail-text { order: 1; }

.svc-detail-media .img-frame { aspect-ratio: 4 / 3.1; }

.svc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.svc-tag.blue { background: rgba(96,165,250,0.14); color: var(--blue-light); }
.svc-tag.purple { background: rgba(167,139,250,0.14); color: var(--purple-light); }
.svc-tag.teal { background: rgba(45,212,191,0.14); color: var(--teal-light); }
.svc-tag.orange { background: rgba(251,146,60,0.14); color: var(--orange-light); }
.svc-tag.pink { background: rgba(244,114,182,0.14); color: var(--pink-light); }

.svc-detail-text h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 16px; font-weight: 800; color: var(--text); }
.svc-detail-text > p.desc { color: var(--muted); font-size: 1rem; margin: 0 0 22px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 22px; }
.feature-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text); }
.feature-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.feature-item.blue svg { color: var(--blue-light); }
.feature-item.purple svg { color: var(--purple-light); }
.feature-item.teal svg { color: var(--teal-light); }
.feature-item.orange svg { color: var(--orange-light); }
.feature-item.pink svg { color: var(--pink-light); }

/* ===== About / values ===== */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.about-grid .img-frame { aspect-ratio: 4 / 3.4; }
.about-grid h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 18px; font-weight: 800; color: var(--text); }
.about-grid p { color: var(--muted); margin: 0 0 16px; }

.value-list { display: grid; gap: 16px; }
.value-item { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.value-item .icon-badge { margin: 0; flex-shrink: 0; }
.value-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--text); }
.value-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--purple));
  border-radius: 28px;
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: var(--white); flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 220px at 85% 20%, rgba(45, 212, 191, 0.35), transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h3 { font-size: 1.5rem; margin: 0 0 8px; }
.cta-banner p { margin: 0; color: rgba(255,255,255,0.78); max-width: 420px; }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: start; }

.contact-info-card {
  background: linear-gradient(160deg, var(--blue-dark), #4c1d95);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.contact-info-card p.sub { color: rgba(255,255,255,0.65); margin: 0 0 28px; font-size: 0.94rem; }

.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-row:first-of-type { border-top: none; }
.contact-row .icon-badge { margin: 0; background: rgba(255,255,255,0.14); flex-shrink: 0; box-shadow: none; }
.contact-row a, .contact-row span.value { font-weight: 700; font-size: 1rem; }
.contact-row .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-bottom: 3px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 0.95rem; font-family: inherit; background: var(--surface-2); color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(238, 242, 251, 0.35); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-light); background: var(--surface); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0f20, #10182c 55%, #170f28);
  padding: 80px 24px 60px; text-align: center;
}
.page-hero .kicker { color: var(--blue-light); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 14px; font-weight: 800; color: var(--text); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue-light); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: #04060c; color: rgba(255,255,255,0.68); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; background: var(--white); padding: 4px; border-radius: 8px; }
.footer-brand span { font-weight: 800; color: var(--white); font-size: 1rem; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ===== Mini gallery strip ===== */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-strip .img-frame { aspect-ratio: 1 / 1; }

/* ===== Clients strip ===== */
.clients-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.client-badge {
  padding: 13px 26px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-weight: 700; font-size: 0.94rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.client-badge span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); flex-shrink: 0; }

/* ===== Project cards ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 24px; transition: transform 0.2s ease, border-color 0.2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.3); }
.project-card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 10px;
}
.project-card h4 { margin: 0 0 10px; color: var(--text); font-size: 1.02rem; font-weight: 700; }
.project-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ===== Certification badges ===== */
.cert-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-badge {
  padding: 10px 20px; border-radius: 999px; background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3); color: var(--blue-light); font-weight: 700; font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .steps, .gallery-strip { grid-template-columns: 1fr 1fr; }
  .grid-2, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-detail, .svc-detail.reverse { grid-template-columns: 1fr; }
  .svc-detail.reverse .svc-detail-media, .svc-detail.reverse .svc-detail-text { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .grid-3, .steps, .footer-grid, .gallery-strip, .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  section { padding: 60px 0; }
  .floating-card { position: static; margin-top: 16px; max-width: none; }
}
