/* ============================================================
   JSI Consulting – Professional Static Site Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --mid: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --groupama: #e55b13;
  --edf: #009c4e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,.12);
  --transition: .25s ease;
  --font: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }

.btn-ghost {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.15); transform: translateY(-2px); }

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}
.btn-nav:hover { background: var(--primary-dark); }

.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── INTRO CAROUSEL ─────────────────────────────────────────── */
.intro-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.intro-track {
  display: flex;
  width: 200%;
  transition: transform .65s cubic-bezier(.77,0,.18,1);
}

.intro-slide {
  width: 50%;
  flex-shrink: 0;
}

.intro-slide {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  min-height: 100vh;
}

.slide-societe {
  display: flex;
  align-items: center;
  padding: 100px 0;
  background: var(--white);
}

.slide-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c2340 100%);
}

/* Boutons prev/next */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Sur le slide societe, les boutons passent en sombre */
.intro-carousel.on-light .carousel-btn {
  background: rgba(15,23,42,.1);
  border-color: rgba(15,23,42,.2);
  color: var(--dark);
}
.intro-carousel.on-light .carousel-btn:hover { background: rgba(15,23,42,.18); }

/* Indicateurs */
.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.dot.active { background: var(--white); transform: scale(1.3); }
.intro-carousel.on-light .dot { background: rgba(15,23,42,.2); }
.intro-carousel.on-light .dot.active { background: var(--primary); }

/* ── HERO ────────────────────────────────────────────────────── */
.slide-hero {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c2340 100%);
  z-index: 0;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 760px;
}

.hero-tag {
  display: inline-block;
  background: rgba(6,182,212,.15);
  border: 1px solid rgba(6,182,212,.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header.light h2,
.section-header.light p { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.65); }

.section-tag {
  display: inline-block;
  background: rgba(37,99,235,.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header.light .section-tag {
  background: rgba(6,182,212,.15);
  color: var(--accent);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); }

.card-icon { font-size: 2.4rem; margin-bottom: 20px; }
.card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--mid); font-size: .95rem; line-height: 1.65; }

/* ── TECH CAROUSEL ────────────────────────────────────────────── */
.tech-carousel { overflow: hidden; }

.tech-track {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tech-item span {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 500;
}

.tech-logo {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.5px;
  transition: all var(--transition);
}
.tech-logo:hover { transform: scale(1.1); }

.tech-logo.php    { background: linear-gradient(135deg, #7a86b8, #4f5b93); color: #fff; }
.tech-logo.symfony { background: linear-gradient(135deg, #1a1a2e, #4a4a7e); color: #fff; }
.tech-logo.python  { background: linear-gradient(135deg, #3776ab, #ffd343); color: #fff; }
.tech-logo.rpa     { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.tech-logo.uipath  { background: linear-gradient(135deg, #fa4616, #c43e12); color: #fff; }
.tech-logo.powerbi { background: linear-gradient(135deg, #f2c811, #e8b800); color: #1a1a1a; }
.tech-logo.api     { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.tech-logo.mysql      { background: linear-gradient(135deg, #4479a1, #336791); color: #fff; }
.tech-logo.javascript { background: linear-gradient(135deg, #f7df1e, #e6c700); color: #1a1a1a; }
.tech-logo.typescript { background: linear-gradient(135deg, #3178c6, #235a9e); color: #fff; }
.tech-logo.react      { background: linear-gradient(135deg, #23272f, #149eca); color: #61dafb; }
.tech-logo.vue        { background: linear-gradient(135deg, #42b883, #35495e); color: #fff; }
.tech-logo.docker     { background: linear-gradient(135deg, #2496ed, #1a6fad); color: #fff; }
.tech-logo.vbnet      { background: linear-gradient(135deg, #512bd4, #6a3de8); color: #fff; }

/* ── TIMELINE ─────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary), var(--shadow);
  margin-top: 8px;
}
.timeline-dot.edf { background: var(--edf); box-shadow: 0 0 0 2px var(--edf), var(--shadow); }

.timeline-content {
  flex: 1;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.mission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mission-client {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.mission-client.groupama { background: rgba(229,91,19,.1); color: var(--groupama); }
.mission-client.edf      { background: rgba(0,156,78,.1); color: var(--edf); }

.mission-date {
  color: var(--mid);
  font-size: .82rem;
  font-weight: 500;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content > p {
  color: var(--mid);
  font-size: .92rem;
  margin-bottom: 16px;
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.mission-list li {
  color: var(--dark-3);
  font-size: .9rem;
  padding-left: 20px;
  position: relative;
}
.mission-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.highlight-stat {
  background: linear-gradient(135deg, rgba(6,182,212,.1), rgba(37,99,235,.1));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--dark);
  font-size: .9rem;
  margin-bottom: 16px;
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  background: var(--light);
  color: var(--dark-3);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: none;
  filter: grayscale(20%) contrast(1.05);
}

.contact-email {
  display: inline-block;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(6,182,212,.35);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.contact-email:hover { color: var(--white); border-color: var(--white); }

.map-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: background var(--transition);
}
.map-directions:hover { background: var(--primary-dark); }

.contact-block {
  margin-bottom: 32px;
}
.contact-block h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.contact-block p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; }
.legal-info { margin-top: 8px; color: rgba(255,255,255,.4) !important; font-size: .82rem !important; }

.contact-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(8px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(6,182,212,.05);
  box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}

.form-note {
  text-align: center;
  margin-top: 12px;
  font-size: .88rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: #080f1e;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p { color: rgba(255,255,255,.4); font-size: .85rem; }

.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .cards-3 { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15,23,42,.97);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .hamburger { display: flex; }

  .timeline::before { left: 14px; }
  .timeline-dot { width: 30px; height: 30px; }
  .timeline-item { gap: 20px; }
  .timeline-content { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }

  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .contact-grid { gap: 32px; }
}
