/* ===== FRICATECH PAGE STYLES ===== */
:root {
  --brand: #1e40af;
  --brand-light: #3b82f6;
  --brand-dark: #1e3a8a;
  --brand-pale: #eff6ff;
  --accent: #3b82f6;
  --accent2: #6366f1;
}

/* ===== FRICATECH HERO ===== */
.ft-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0f1f4a 50%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.ft-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(59,130,246,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(0,200,150,0.1) 0%, transparent 70%);
}

.ft-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.ft-hero-content {
  position: relative;
  max-width: 700px;
}

.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ft-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.ft-hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ft-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.ft-hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
}

.code-window {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,0.25);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  font-family: 'Consolas', 'Monaco', monospace;
}

.code-window-bar {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-window-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.code-window-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.code-line { margin-bottom: 4px; }
.code-keyword { color: #c084fc; }
.code-func { color: #60a5fa; }
.code-string { color: #86efac; }
.code-comment { color: rgba(255,255,255,0.3); }
.code-var { color: #f9a8d4; }
.code-num { color: #fb923c; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #60a5fa;
  animation: blink 1.2s infinite;
  vertical-align: middle;
  margin-left: 2px;
  border-radius: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== PLATEFORMES ===== */
.ft-platforms { background: #fff; }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.platform-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1.5px solid #e8eef8;
  border-top: 4px solid #e8eef8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(30,64,175,0.04);
}

.platform-card:hover {
  border-color: var(--brand-light);
  border-top-color: var(--brand-light);
  box-shadow: 0 10px 40px rgba(30,64,175,0.12);
  transform: translateY(-6px);
}

.platform-icon-wrap {
  width: 64px; height: 64px;
  background: var(--brand-pale);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}

.platform-icon { font-size: 32px; }

.platform-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0;
}

.platform-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.platform-os {
  display: flex;
  gap: 10px;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--brand-pale);
  color: var(--brand);
  border: 1px solid rgba(59,130,246,0.2);
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pbadge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: #e0eaff;
  color: var(--brand);
  border: none;
}

/* ===== SERVICES ===== */
.ft-services { background: #f8faff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1.5px solid #e8eef8;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--brand-light);
  box-shadow: 0 8px 32px rgba(30,64,175,0.12);
  transform: translateY(-6px);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--brand-pale);
  color: var(--brand);
  border-radius: 100px;
}

/* ===== PROCESS ===== */
.ft-process { background: #fff; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-light), #a78bfa);
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(30,64,175,0.3);
}

.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* ===== TECH STACK ===== */
.ft-stack { background: #f8faff; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.stack-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  border: 1.5px solid #e8eef8;
  transition: all 0.3s ease;
}

.stack-item:hover {
  border-color: var(--brand-light);
  box-shadow: 0 4px 16px rgba(30,64,175,0.1);
  transform: translateY(-4px);
}

.stack-icon { font-size: 32px; margin-bottom: 8px; }
.stack-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* ===== CTA SECTION ===== */
.ft-cta {
  background: linear-gradient(135deg, var(--brand-dark), #1e40af);
  color: #fff;
  text-align: center;
  padding: 96px 5%;
}

.ft-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.ft-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

.btn-white {
  background: #fff;
  color: var(--brand);
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white:hover {
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== OVERRIDES COULEUR : remplace le vert par le bleu brand ===== */
.section-tag { color: var(--brand-light); }

.nav-logo .logo-icon { background: linear-gradient(135deg, var(--brand), #6366f1); }

.nav-cta:hover { background: var(--brand-light); }

.hero-badge {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.3);
}

.hero h1 .highlight { background: linear-gradient(135deg, var(--brand-light), #a78bfa); }

.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.value-item:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
}

.contact-item .ci-icon { background: rgba(59,130,246,0.1); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.btn-submit:hover {
  background: var(--brand-light);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.scroll-top:hover { background: var(--brand-light); }

/* ===== NAVBAR FRICATECH ===== */
.navbar-tech {
  background: rgba(10, 22, 40, 0.97);
}

.navbar-tech .nav-logo img {
  filter: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .ft-hero-visual { display: none; }
  .platforms-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .ft-hero { padding: 100px 5% 56px; }
  .ft-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .ft-hero p { font-size: 16px; margin-bottom: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
