/* ==========================================================================
   SISOFT CI — Design system "Dark Tech Premium"
   Fond quasi-noir, accents rouge signature #ee3640 en lueur ("glow"),
   typographie Sora / Inter. Écrit intégralement pour ce thème — même
   structure de classes que la version précédente, pour rester compatible
   avec tous les templates PHP existants.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --red: #ee3640;
  --red-dark: #c92630;
  --red-light: #ff5c65;
  --navy: #0a1622;
  --navy-soft: #101f30;
  --ink: #05090e;

  /* Surfaces sombres */
  --bg: #05090e;
  --bg-soft: #0a121c;
  --bg-elevated: #101924;
  --bg-elevated-2: #15202d;
  --bg-navy-tint: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Texte */
  --text: #e7ecf2;
  --text-muted: #8b98a9;
  --heading: #ffffff;
  --white: #ffffff;

  /* Typo */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Ombres / rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow-red: 0 0 0 1px rgba(238,54,64,0.25), 0 12px 40px rgba(238,54,64,0.18);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-weight: 800; }
h2 { font-weight: 800; letter-spacing: -0.03em; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-light); }

.container { max-width: 1200px; }

::selection { background: var(--red); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--red-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 9, 14, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), top var(--transition), background var(--transition);
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 0; }
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(5, 9, 14, 0.94);
}
.site-header .navbar { padding: 14px 0; }
.site-header .navbar-brand img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.site-header .navbar-toggler { border-color: var(--border-strong); }
.site-header .navbar-toggler-icon { filter: invert(1); }

.site-header .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  padding: 10px 4px !important;
  margin: 0 14px;
  position: relative;
  transition: color var(--transition);
}
.site-header .nav-link::before {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.65,.3,1);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--heading);
  background: transparent;
}
.site-header .nav-link:hover::before,
.site-header .nav-link.active::before {
  transform: scaleX(1);
}

/* La flèche du menu déroulant (::after, fournie par Bootstrap) doit rester
   bien visible et cohérente avec le thème, indépendamment du soulignement. */
.site-header .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 2px;
}
.site-header .nav-link.active.dropdown-toggle::after {
  border-top-color: var(--red-light);
}

.site-header .dropdown-menu {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 8px;
}
.site-header .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item.active {
  background: rgba(238,54,64,0.12);
  color: var(--red-light);
}

.nav-cta::after { display: none; }
.nav-cta {
  font-family: var(--font-display);
  font-weight: 700 !important;
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  margin-left: 20px;
  box-shadow: 0 0 0 1px rgba(238,54,64,0.3);
}
.nav-cta:hover { background: var(--red-dark) !important; box-shadow: var(--glow-red); color: #fff !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 28px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-red, a.btn-red {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-red:hover, a.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-red);
}
.btn-outline-navy {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-strong);
}
.btn-outline-navy:hover {
  border-color: var(--text);
  color: var(--heading);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-light);
  background: rgba(238,54,64,0.12);
  border: 1px solid rgba(238,54,64,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}
.hero::before {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(238,54,64,0.35) 0%, transparent 70%);
  top: -220px; right: -160px;
}
.hero::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(60,110,180,0.22) 0%, transparent 70%);
  bottom: -220px; left: -140px;
}
.hero .hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--red-light); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.hero .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-bar .trust-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.trust-bar .industry-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 36px;
}
.trust-bar .industry-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.trust-bar .industry-pill i { color: var(--red-light); font-size: 1.3rem; }

/* ---------- Section shell ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy {
  background: radial-gradient(ellipse 100% 100% at 50% 0%, var(--navy-soft) 0%, var(--ink) 65%);
  color: #fff;
  position: relative;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.65); }

.section-head {
  max-width: 100%;
  margin: 0 0 56px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  counter-increment: section-index;
}
.section-head::before {
  content: counter(section-index, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
  letter-spacing: 0.05em;
  align-self: start;
  padding-top: 4px;
}
.section-head > h2 { grid-column: 2; grid-row: 1; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 8px; }
.section-head > p { grid-column: 2; grid-row: 2; color: var(--text-muted); font-size: 1.05rem; margin: 0; max-width: 560px; }
body { counter-reset: section-index; }
.section-navy .section-head { border-bottom-color: rgba(255,255,255,0.12); }

/* ---------- Service cards (grille accueil / services) ---------- */
.service-card {
  display: block;
  height: 100%;
  padding: 34px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-red);
  border-color: rgba(238,54,64,0.35);
}
.service-card .icon-tile {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(238,54,64,0.14);
  color: var(--red-light);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  color: var(--text); margin-top: 16px;
}
.service-card:hover .card-link { color: var(--red-light); }

/* ---------- Orbit (signature IA) ---------- */
.orbit-section { padding: 100px 0; background: var(--ink); overflow: hidden; position: relative; }
.orbit-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 14px rgba(238,54,64,0.14), 0 0 80px rgba(238,54,64,0.55);
  z-index: 2;
}
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-node {
  position: absolute;
  width: 96px;
  text-align: center;
  transform: translate(-50%, -50%);
}
.orbit-node .node-dot {
  width: 46px; height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.orbit-node span { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.7); font-weight: 600; }

/* ---------- Process steps ---------- */
.process-step { text-align: center; }
.process-step .step-num {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  position: relative;
}
.process-step h5 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }
.process-row { position: relative; }
.process-row::before {
  content: '';
  position: absolute;
  top: 27px; left: 12%; right: 12%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-row .process-step { position: relative; z-index: 1; }

/* ---------- Solution blocks (pages détail service) ---------- */
.solution-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.solution-card:hover { box-shadow: var(--glow-red); transform: translateY(-4px); border-color: rgba(238,54,64,0.3); }
.solution-card .subtitle {
  color: var(--red-light);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.solution-card p.desc { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 18px; }
.tech-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

.solution-card-image {
  margin: -30px -30px 20px -30px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: 180px;
}
.solution-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.solution-card-visual {
  margin: -30px -30px 20px -30px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
}
.solution-card-visual::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(26px);
  top: -30px; right: -30px;
}
.solution-card-visual i {
  font-size: 2.6rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ---------- Why choose us ---------- */
.reason-item { text-align: center; padding: 0 10px; }
.reason-item .icon-tile {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(238,54,64,0.14);
  color: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.section-navy .reason-item .icon-tile { background: rgba(255,255,255,0.08); color: var(--red-light); }
.reason-item h5 { font-size: 1.05rem; margin-bottom: 10px; }
.reason-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Stats ---------- */
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--red-light);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(238,54,64,0.4);
}
.stat-item .stat-label { color: rgba(255,255,255,0.7); font-size: 0.92rem; font-weight: 600; }

/* ---------- Values / mission cards ---------- */
.value-card { text-align: center; padding: 30px 20px; }
.value-card .icon-tile {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(238,54,64,0.14);
  color: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.value-card h5 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.team-card:hover { box-shadow: var(--glow-red); transform: translateY(-4px); border-color: rgba(238,54,64,0.3); }
.team-card .avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid var(--bg-soft);
}
.team-card .avatar-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.team-card h5 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .position { color: var(--red-light); font-weight: 600; font-size: 0.88rem; margin-bottom: 12px; }
.team-card p.bio { color: var(--text-muted); font-size: 0.9rem; }
.team-card .team-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  margin: 0 4px;
}
.team-card .team-social a:hover { background: var(--red); color: #fff; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.project-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.project-card:hover { box-shadow: var(--glow-red); transform: translateY(-6px); border-color: rgba(238,54,64,0.3); }
.project-card .thumb {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated-2);
  font-size: 3rem;
}
.project-card .thumb i { color: var(--red-light) !important; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 26px; }
.project-card .cat-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red-light);
  background: rgba(238,54,64,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.project-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
}
.testimonial-card .stars { color: var(--red-light); margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-card p.quote { font-size: 1rem; color: var(--text); margin-bottom: 22px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elevated-2); border: 1px solid var(--border-strong); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.testimonial-card .author-name { font-weight: 700; font-size: 0.92rem; color: var(--heading); }
.testimonial-card .author-role { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Technology grid ---------- */
.tech-grid-item { text-align: center; padding: 18px 10px; }
.tech-grid-item i { font-size: 2.2rem; color: var(--text-muted); margin-bottom: 10px; transition: color var(--transition); }
.tech-grid-item:hover i { color: var(--red-light); }
.tech-grid-item p { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  box-shadow: 0 30px 80px rgba(238,54,64,0.25);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.92); margin-bottom: 28px; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.95rem;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(238,54,64,0.16);
}
.form-select option { background: var(--bg-elevated); color: var(--text); }
label.form-label { font-weight: 600; font-size: 0.9rem; color: var(--heading); margin-bottom: 6px; }
.form-check-input { background-color: var(--bg-elevated); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--red); border-color: var(--red); }
.form-check-label { color: var(--text-muted); }

/* ---------- Contact info list ---------- */
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon-tile {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(238,54,64,0.14);
  color: var(--red-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item h6 { font-size: 0.95rem; margin-bottom: 4px; color: var(--heading); }
.contact-info-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item { background: var(--bg-elevated); border: 1px solid var(--border); }
.accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-elevated);
}
.accordion-button::after { filter: invert(1) brightness(1.8); }
.accordion-button:not(.collapsed) {
  color: var(--red-light);
  background: rgba(238,54,64,0.08);
}
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(238,54,64,0.16); border-color: var(--red-light); }
.accordion-body { color: var(--text-muted); background: var(--bg-elevated); }

/* ---------- Pagination ---------- */
.page-link { color: var(--text); background: var(--bg-elevated); border-color: var(--border); }
.page-item.active .page-link { background-color: var(--red); border-color: var(--red); color: #fff; }
.page-link:hover { color: var(--red-light); background: var(--bg-elevated-2); border-color: var(--border-strong); }

/* ---------- Alerts (messages formulaire) ---------- */
.alert { border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text); }
.alert-success { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.1); color: #86efac; }
.alert-danger { border-color: rgba(238,54,64,0.35); background: rgba(238,54,64,0.1); color: #ffb3b7; }
.btn-close { filter: invert(1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 70px 0 0; border-top: 1px solid var(--border); }
.site-footer h6 { color: #fff; font-family: var(--font-display); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--red-light); }
.site-footer .footer-links li { margin-bottom: 10px; }
.site-footer .social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  margin-right: 8px;
}
.site-footer .social-link:hover { background: var(--red); color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 24px 0; font-size: 0.85rem; }

/* ---------- Révélation au scroll (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.65,.3,1), transform 0.7s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 560ms; }

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

/* ---------- Bouton retour en haut ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 900;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); border-color: var(--red); }

/* ---------- Page 404 ---------- */
.error-404-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px 20px 100px;
}
.error-404-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 0 60px rgba(238,54,64,0.35);
}

/* ---------- Utility ---------- */
.text-red { color: var(--red-light) !important; }
.bg-navy { background: var(--navy) !important; }
.fw-800 { font-weight: 800; }
.text-muted { color: var(--text-muted) !important; }
.text-white-50 { color: rgba(255,255,255,0.6) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 140px 0 60px; }
  .section { padding: 60px 0; }
  .trust-bar .industry-pills-wrap { gap: 14px 24px; }
  .process-row::before { display: none; }
  .orbit-node { position: static; transform: none; display: inline-block; width: 45%; margin: 10px 2%; }
  .orbit-ring { display: none; }
  .orbit-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 100%; aspect-ratio: auto; padding: 40px 0; }
  .orbit-core { position: static; transform: none; margin: 0 auto 20px; }
}

/* ---------- Liste éditoriale de services (accueil) ---------- */
.service-list { border-top: 1px solid var(--border); }
.service-list-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition), padding-left var(--transition);
  position: relative;
}
.service-list-row:hover {
  background: var(--bg-elevated);
  padding-left: 20px;
}
.service-list-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
  width: 36px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.service-list-row:hover .service-list-num { color: var(--red); }
.service-list-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(238,54,64,0.12);
  color: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.service-list-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.service-list-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--heading);
}
.service-list-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 480px; }
.service-list-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.service-list-row:hover .service-list-arrow {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateX(6px);
}
@media (max-width: 767px) {
  .service-list-row { flex-wrap: wrap; gap: 16px; padding: 24px 4px; }
  .service-list-text { order: 3; flex-direction: column; gap: 4px; }
  .service-list-arrow { display: none; }
}

/* ---------- Hero asymétrique (accueil) ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-col-text { text-align: left; }
.hero-col-text .eyebrow { margin-bottom: 22px; }
.hero-col-text h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin-bottom: 22px; }
.hero-col-text p.lead { margin: 0 0 36px; max-width: 540px; }
.hero-col-text .hero-actions { justify-content: flex-start; }

.hero-col-visual { position: relative; }
.hero-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-panel-row { display: flex; gap: 6px; margin-bottom: 22px; }
.hero-panel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.hero-panel-dot:first-child { background: var(--red); }
.hero-panel-line { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.08); margin-bottom: 14px; }
.hero-panel-line.accent { background: rgba(238,54,64,0.4); margin-bottom: 0; }
.hero-float-stat {
  position: absolute;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  text-align: left;
}
.hero-float-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--red-light); }
.hero-float-stat span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.hero-float-stat-1 { top: -18px; right: -18px; }
.hero-float-stat-2 { bottom: -18px; left: -18px; }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-col-text { text-align: center; }
  .hero-col-text .hero-actions { justify-content: center; }
  .hero-col-text p.lead { margin-left: auto; margin-right: auto; }
  .hero-col-visual { max-width: 420px; margin: 30px auto 0; }
  .hero-float-stat { display: none; }
}

/* ---------- Lightbox (affichage image en plein écran) ---------- */
.lightbox-enabled img {
  cursor: zoom-in;
  transition: opacity var(--transition);
}
.lightbox-enabled img:hover { opacity: 0.88; }

.sisoft-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sisoft-lightbox.is-open { opacity: 1; visibility: visible; }
.sisoft-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  cursor: default;
}
.sisoft-lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.sisoft-lightbox-close:hover { background: var(--red); border-color: var(--red); }

.sisoft-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1;
}
.sisoft-lightbox-nav:hover { background: var(--red); border-color: var(--red); }
.sisoft-lightbox-prev { left: 20px; }
.sisoft-lightbox-next { right: 20px; }

.sisoft-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 999px;
}

@media (max-width: 575px) {
  .sisoft-lightbox-nav { width: 42px; height: 42px; font-size: 0.95rem; }
  .sisoft-lightbox-prev { left: 8px; }
  .sisoft-lightbox-next { right: 8px; }
}

/* ---------- Galerie d'images (page projet) ---------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 575px) {
  .project-gallery { grid-template-columns: 1fr; }
}

/* ---------- Fiche projet (format étude de cas) ---------- */
.project-meta-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 10px; }
.project-meta-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  padding: 7px 16px; border-radius: 999px;
}
.project-meta-badge i { color: var(--text-muted); font-size: 0.8rem; }
.project-meta-badge-status i { color: #4ade80; font-size: 0.6rem; }

.case-section { margin-bottom: 42px; }
.case-section h3 { font-size: 1.25rem; margin-bottom: 14px; }
.case-section p { line-height: 1.75; }
.case-section-highlight {
  background: var(--bg-elevated);
  border: 1px solid rgba(238,54,64,0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.case-section-highlight p { color: var(--text); font-size: 1.05rem; }

.case-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.case-feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.case-feature-list li i { color: var(--red-light); margin-top: 4px; flex-shrink: 0; }

.case-realisations { display: flex; flex-wrap: wrap; gap: 10px; }
.case-realisation-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600; color: #4ade80;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25);
  padding: 7px 14px; border-radius: 999px;
}

/* Colonne latérale "collante" : suit le défilement pour que le CTA reste
   visible au lieu d'être repoussé tout en bas par une longue fiche. */
.project-sidebar-sticky { position: sticky; top: 110px; }
@media (max-width: 991px) {
  .project-sidebar-sticky { position: static; }
}

/* ---------- Liens légaux du footer ---------- */
.footer-legal-links { font-size: 0.85rem; }
.footer-legal-links .list-inline-item:not(:last-child) { margin-right: 20px; }

/* ---------- Assistant IA (chatbot) ---------- */
.sisoft-chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 94px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-red);
  cursor: pointer;
  z-index: 950;
  transition: transform var(--transition), background var(--transition);
}
.sisoft-chatbot-toggle:hover { background: var(--red-dark); transform: scale(1.05); }
.sisoft-chatbot.is-open .sisoft-chatbot-toggle { display: none; }

.sisoft-chatbot-window {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 100px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 960;
}
.sisoft-chatbot.is-open .sisoft-chatbot-window { display: flex; }

.sisoft-chatbot-header {
  background: var(--ink);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.sisoft-chatbot-header strong { color: #fff; font-size: 0.95rem; display: block; }
.sisoft-chatbot-status { font-size: 0.75rem; color: #4ade80; }
.sisoft-chatbot-status i { font-size: 0.5rem; margin-right: 4px; }
.sisoft-chatbot-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }

.sisoft-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sisoft-chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.sisoft-chatbot-msg-bot {
  background: var(--bg-elevated-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.sisoft-chatbot-msg-user {
  background: var(--red);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.sisoft-chatbot-msg-error {
  background: rgba(238,54,64,0.1);
  color: #ffb3b7;
  align-self: flex-start;
  border: 1px solid rgba(238,54,64,0.3);
}

.sisoft-chatbot-typing {
  padding: 0 16px 8px;
  display: flex;
  gap: 4px;
}
.sisoft-chatbot-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: sisoft-typing 1.2s infinite ease-in-out;
}
.sisoft-chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.sisoft-chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sisoft-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.sisoft-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
}
.sisoft-chatbot-form input {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.88rem;
}
.sisoft-chatbot-form input:focus { outline: none; border-color: var(--red); }
.sisoft-chatbot-form button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sisoft-chatbot-form button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .sisoft-chatbot-toggle { right: 20px; bottom: 90px; }
  .sisoft-chatbot-window { right: 12px; bottom: 12px; width: calc(100vw - 24px); height: calc(100vh - 100px); }
}
