/* =========================================================
   Variables & base
   ========================================================= */
:root {
  /* Thème clair — bleu du logo TIT Outsourcing */
  --bg: #f7f9fc;
  --bg-alt: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f1b2d;
  --muted: #5b6b82;
  --primary: #1167e8;
  --primary-2: #06b6d4;
  --success: #059669;
  --warning: #b45309;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.18);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(17, 103, 232, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(17, 103, 232, 0.75); }
.btn--ghost { border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(17, 103, 232, 0.35); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.badge,
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.badge {
  padding: 6px 14px;
  border: 1px solid rgba(17, 103, 232, 0.35);
  border-radius: 999px;
  background: rgba(17, 103, 232, 0.08);
  margin-bottom: 22px;
}
.eyebrow { margin-bottom: 12px; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo span { color: var(--primary); }
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gradient);
}
.logo__mark svg { width: 22px; fill: rgba(255, 255, 255, 0.9); }
.logo__mark svg circle { fill: var(--primary); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { color: var(--muted); font-weight: 500; position: relative; transition: color 0.2s; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.lang__link {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.lang__link:hover { color: var(--text); }
.lang__link.is-current { background: var(--surface-2); color: var(--text); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 9px;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  right: -150px; top: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 65%);
  filter: blur(40px);
  animation: glow 10s ease-in-out infinite alternate;
}
@keyframes glow {
  to { transform: translate(-120px, 80px) scale(1.15); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
#typed::after {
  content: "";
  display: inline-block;
  width: 3px; height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--primary);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__text { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__brands { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-weight: 600; font-size: 0.95rem; opacity: 0.75; }

/* Rack illustré */
.hero__visual { position: relative; justify-self: center; width: min(420px, 100%); }
.rack {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1c2740, #111a30);
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
  transform: perspective(1000px) rotateY(-10deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}
.hero__visual:hover .rack { transform: perspective(1000px) rotateY(0) rotateX(0); }
.rack__unit {
  display: flex; align-items: center; gap: 8px;
  height: 52px;
  padding: 0 14px;
  border-radius: 8px;
  background: #0a1020;
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.rack__bays { margin-left: auto; display: flex; gap: 6px; }
.rack__bays i { width: 26px; height: 32px; border-radius: 3px; background: linear-gradient(180deg, #1c2747, #121a31); border: 1px solid rgba(148, 163, 184, 0.12); }
.rack__ports { margin-left: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rack__ports i { width: 16px; height: 12px; border-radius: 2px; background: #1a2442; position: relative; }
.rack__ports i:nth-child(3n)::after,
.rack__ports i:nth-child(5n)::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--success);
  animation: blink 0.9s steps(1) infinite;
}
.rack__ports i:nth-child(5n)::after { animation-duration: 1.4s; }

.led { width: 8px; height: 8px; border-radius: 50%; }
.led--ok { background: var(--success); box-shadow: 0 0 10px var(--success); }
.led--act { background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: blink 0.7s steps(1) infinite; }

.float-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { font-size: 1.4rem; font-weight: 800; }
.float-card span { font-size: 0.8rem; color: var(--muted); }
.float-card--a { top: -24px; left: -40px; }
.float-card--a strong { color: var(--success); }
.float-card--b { bottom: -24px; right: -30px; animation-delay: -3s; }
.float-card--b strong { color: var(--primary); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* =========================================================
   Statistiques
   ========================================================= */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 0.95rem; }

/* =========================================================
   Sections génériques
   ========================================================= */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(17, 103, 232, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(17, 103, 232, 0.4); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card--featured { background: linear-gradient(180deg, rgba(6, 182, 212, 0.14), var(--surface) 60%); border-color: rgba(6, 182, 212, 0.4); }

.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(17, 103, 232, 0.1);
  border: 1px solid rgba(17, 103, 232, 0.25);
  margin-bottom: 24px;
}
.card__icon svg { width: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 22px; }

.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; font-weight: 500; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Onglets pièces */
.tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tab {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--gradient); color: #fff; }

.panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.panel.is-active { animation: fadeUp 0.5s var(--ease); }
.panel[hidden] { display: none; }
.panel h3 { font-size: 1.6rem; margin-bottom: 14px; }
.panel p { color: var(--muted); margin-bottom: 24px; font-size: 1.05rem; }
.panel__icon { justify-self: center; width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%); }
.panel__icon svg { width: 120px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Consulting */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.split__text p { color: var(--muted); margin: 18px 0 30px; font-size: 1.05rem; }

.steps { display: grid; gap: 16px; position: relative; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: rgba(6, 182, 212, 0.5); transform: translateX(6px); }
.step__num {
  flex-shrink: 0;
  font-size: 1.4rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); }

/* Pourquoi nous */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-image: none;
  position: relative;
}
.feature::before {
  content: "";
  position: absolute; top: -1px; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gradient);
}
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact__info > p { color: var(--muted); margin: 18px 0 30px; font-size: 1.05rem; }
.contact__list li { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-weight: 500; }
.contact__list a:hover { color: var(--primary); }
.contact__list svg {
  width: 44px; height: 44px; padding: 11px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.form {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17, 103, 232, 0.15); }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; min-height: 1em; }
.field__error:empty { display: none; }
.form__status { margin-top: 14px; text-align: center; font-weight: 500; color: var(--success); min-height: 1.5em; }

/* =========================================================
   Footer & retour haut
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-alt); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a { color: var(--muted); transition: color 0.2s; }
.footer__nav a:hover { color: var(--text); }
.footer p { color: var(--muted); font-size: 0.9rem; }

.to-top {
  position: fixed; right: 30px; bottom: 98px; z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--gradient);
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(17, 103, 232, 0.6);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Animations d'apparition
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner, .split, .contact { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 12px 4px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 10px; }
  .nav .lang { align-self: flex-start; margin-top: 6px; }
}

@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .panel { grid-template-columns: 1fr; padding: 32px; }
  .panel__icon { grid-row: 1; width: 130px; height: 130px; }
  .panel__icon svg { width: 84px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .cards, .features, .form__row { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .form { padding: 24px; }
  .float-card--a { left: -6px; }
  .float-card--b { right: -6px; }
  .rack__bays i { width: 18px; height: 26px; }
  .tab { padding: 8px 14px; font-size: 0.9rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   Liens de cartes & CTA catalogue
   ========================================================= */
.card__link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--primary); transition: transform 0.2s; }
.card__link:hover { transform: translateX(4px); }
.panels__cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; text-align: center; }
.panels__cta p { color: var(--muted); }
.center { text-align: center; margin-top: 48px; }

/* =========================================================
   Section VMware
   ========================================================= */
.products { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 940px; margin: 0 auto 80px; }
.products li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.products li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.products li:hover { border-color: rgba(17, 103, 232, 0.45); transform: translateY(-2px); }

.subhead { font-size: clamp(1.35rem, 2.4vw, 1.7rem); text-align: center; margin: 0 0 28px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tier:hover { transform: translateY(-4px); border-color: rgba(17, 103, 232, 0.4); }
.tier--featured { background: linear-gradient(180deg, rgba(6, 182, 212, 0.18), var(--surface) 70%); border-color: rgba(6, 182, 212, 0.5); }
.tier__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--primary);
  background: rgba(17, 103, 232, 0.1);
  border: 1px solid rgba(17, 103, 232, 0.3);
}
.tier h4 { font-size: 1.15rem; margin-bottom: 8px; }
.tier p { color: var(--muted); }

.sla {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px;
  margin: 20px 0 80px;
  padding: 20px 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(17, 103, 232, 0.35);
  background: rgba(17, 103, 232, 0.04);
}
.sla__label { font-weight: 700; }
.sla__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sla__list li { padding: 6px 14px; border-radius: 8px; font-weight: 800; background: var(--gradient); color: #fff; }
.sla p { color: var(--muted); margin-left: auto; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 80px; }
.vm-block { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.vm-block h3 { margin-bottom: 12px; }
.vm-block > p { color: var(--muted); margin-bottom: 18px; }
.vm-block > p strong { color: var(--text); }
.vm-block__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary) !important; margin: 20px 0 12px !important; }
.vm-block .tags { margin-bottom: 4px; }
.vm-block__note { font-size: 0.92rem; margin: 18px 0 0 !important; }

.levels { display: grid; gap: 12px; }
.levels li { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.levels li > span {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-weight: 800;
  background: var(--gradient); color: #fff;
}
.levels p { color: var(--muted); font-size: 0.95rem; }

.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.certs li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--primary); }
.certs strong { display: block; font-size: 1.05rem; }
.certs span { color: var(--muted); font-size: 0.85rem; }

.pricing { counter-reset: price; display: grid; gap: 12px; }
.pricing li { counter-increment: price; position: relative; padding-left: 44px; min-height: 30px; }
.pricing li::before {
  content: counter(price);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.85rem; font-weight: 800;
  color: var(--primary);
  border: 1px solid rgba(17, 103, 232, 0.4);
}

.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guarantees li {
  position: relative;
  padding: 22px 22px 22px 56px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
}
.guarantees li::before {
  content: "";
  position: absolute; left: 20px; top: 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.guarantees .guarantee--highlight { border-color: rgba(5, 150, 105, 0.45); background: linear-gradient(180deg, rgba(5, 150, 105, 0.08), var(--surface)); }

@media (max-width: 1024px) {
  .tiers, .guarantees { grid-template-columns: 1fr 1fr; }
  .tiers .tier--featured { grid-column: span 2; }
  .vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tiers, .guarantees, .certs { grid-template-columns: 1fr; }
  .tiers .tier--featured { grid-column: auto; }
  .vm-block { padding: 24px; }
  .sla p { margin-left: 0; }
}

/* =========================================================
   Parts Finder
   ========================================================= */
.pf-hero { padding: calc(var(--header-h) + 60px) 0 50px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.pf-hero .hero__grid { mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
.pf-hero__inner { position: relative; max-width: 760px; }
.pf-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.pf-hero p { color: var(--muted); font-size: 1.1rem; }

.pf { padding: 40px 0 100px; }
.pf__layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

.pf__sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 4px; }
.pf__group h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pf__cats { display: grid; gap: 2px; }
.pf__cat {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 500; text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pf__cat:hover { background: var(--surface); color: var(--text); }
.pf__cat.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
.pf__cat small { font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); }

.pf__checks { display: grid; gap: 8px; }
.pf__checks label { display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.pf__checks input { width: 16px; height: 16px; accent-color: var(--primary); }
.pf__reset { justify-self: start; background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; }

.pf__toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.pf__search { flex: 1 1 280px; position: relative; }
.pf__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.pf__search input,
.pf__toolbar select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pf__search input { padding-left: 44px; }
.pf__search input:focus,
.pf__toolbar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17, 103, 232, 0.15); }
.pf__toolbar select { width: auto; }
.pf__count { width: 100%; color: var(--muted); font-size: 0.92rem; }
.pf__filters-btn { display: none; }

.pf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.part {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.45s var(--ease) both;
}
.part:hover { transform: translateY(-4px); border-color: rgba(17, 103, 232, 0.4); box-shadow: var(--shadow); }
.part__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.22), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.part__media svg { width: 42%; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.part__media { overflow: hidden; }
.part__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.part:hover .part__media img { transform: scale(1.05); }
.part__media--product img { object-fit: contain; padding: 12px; background: #fff; }
.part__cond { z-index: 1; }
.part__photo-note { margin-top: 28px; font-size: 0.82rem; color: var(--muted); text-align: center; }

.pf-credits { padding: 0 0 60px; }
.pf-credits details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 22px; }
.pf-credits summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.pf-credits ul { display: grid; gap: 6px; margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.pf-credits a { color: var(--primary); }
.pf-credits a:hover { text-decoration: underline; }
.part__cond {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
}
.part__cond--new { color: var(--success); border-color: rgba(5, 150, 105, 0.45); }
.part__cond--refurb { color: var(--warning); border-color: rgba(180, 83, 9, 0.45); }
.part__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.part__brand { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.part__name { font-size: 1.02rem; line-height: 1.3; }
.part__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.part__specs li { font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.part__cta { margin-top: auto; padding: 10px 14px; font-size: 0.88rem; }

.pf__empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.pf__more { display: flex; justify-content: center; margin-top: 32px; }
.pf__more[hidden] { display: none; }

@media (max-width: 900px) {
  .pf__layout { grid-template-columns: 1fr; }
  .pf__filters-btn { display: inline-flex; }
  .pf__sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 120;
    width: min(320px, 85vw); max-height: none;
    padding: 24px 20px;
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
  }
  .pf__sidebar.is-open { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5); }
}
@media (max-width: 600px) {
  .pf__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .part__body { padding: 14px; }
  .part__specs { display: none; }
  .pf__toolbar select { flex: 1; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.footer__credits { color: var(--muted); font-size: 0.85rem; }
.footer__credits:hover { color: var(--text); }
.credits-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 20px 0 12px; }
.credits-page h1 span { color: var(--muted); font-weight: 500; }
.credits-page p { color: var(--muted); margin-bottom: 24px; }
.credits-page ul { display: grid; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.credits-page ul a { color: var(--primary); }

/* =========================================================
   Logos constructeurs
   ========================================================= */
.vendors { padding: 70px 0 60px; border-top: 1px solid var(--border); }
.vendors__title { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; }
.vendors__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.vendor {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 112px;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.vendor:hover { border-color: rgba(17, 103, 232, 0.4); transform: translateY(-3px); box-shadow: var(--shadow); }
.vendor__mark { display: flex; align-items: center; justify-content: center; gap: 14px; height: 40px; }
.vendor__mark svg { height: 34px; width: auto; max-width: 112px; fill: currentColor; }
.vendor__word { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.vendor > span { font-size: 0.82rem; font-weight: 600; }
.vendors__note { margin-top: 26px; text-align: center; font-size: 0.78rem; color: var(--muted); opacity: 0.8; }

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

/* Logo de la société */
.logo__img { height: 64px; width: auto; }
.logo__img--footer { height: 56px; }
@media (max-width: 600px) { .logo__img { height: 52px; } }

/* Petits logos constructeurs dans le hero */
.hero__brands { align-items: center; gap: 14px 22px; max-width: 600px; opacity: 1; }
.hero__brands li { display: flex; align-items: center; gap: 6px; color: var(--muted); transition: transform 0.2s; }
.hero__brands li:hover { transform: translateY(-2px); }
.hero__brands svg { height: 18px; width: auto; max-width: 64px; fill: currentColor; }
.hero__brands span { font-size: 0.8rem; font-weight: 600; }
.hero__brands b { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }

/* Couleurs officielles des constructeurs */
svg[aria-label="Dell EMC"] { fill: #007db8; }
svg[aria-label="Cisco"] { fill: #1ba0d7; }
svg[aria-label="NetApp"] { fill: #0067c5; }
svg[aria-label="Lenovo"] { fill: #e2231a; }
svg[aria-label="VMware"] { fill: #607078; }
svg[aria-label="Broadcom"] { fill: #e31837; }
svg[aria-label="Nutanix"] { fill: #024da1; }
svg[aria-label="Proxmox"] { fill: #e57000; }
[data-brand="hpe"] { color: #01a982; }
[data-brand="ibm"] { color: #1f70c1; }
[data-brand="microsoft"] { color: #737373; }

/* =========================================================
   Effets de survol (souris uniquement, désactivés si
   l'utilisateur préfère réduire les animations)
   ========================================================= */
@media (hover: hover) {
  .card, .tier, .vm-block, .feature, .step, .guarantees li, .vendor, .part,
  .certs li, .levels li, .stat, .products li, .tags li, .sla__list li,
  .hero__brands li, .contact__list li, .btn, .card__icon, .tier__badge,
  .levels li > span, .vendor__mark, .contact__list svg, .part__name, .feature h3, .stat strong {
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s,
                background-color 0.3s, color 0.3s, stroke 0.3s;
  }

  /* Cartes : se soulèvent et s'agrandissent légèrement, liseré bleu */
  .card:hover, .tier:hover, .feature:hover, .guarantees li:hover, .vendor:hover, .part:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(17, 103, 232, 0.45);
    box-shadow: 0 22px 45px -20px rgba(17, 103, 232, 0.35);
  }
  .vm-block:hover {
    transform: scale(1.01);
    border-color: rgba(17, 103, 232, 0.35);
    box-shadow: 0 22px 45px -24px rgba(17, 103, 232, 0.3);
  }
  .step:hover {
    transform: translateX(6px) scale(1.01);
    background-color: #f5f9ff;
    border-color: rgba(17, 103, 232, 0.45);
    box-shadow: 0 16px 34px -20px rgba(17, 103, 232, 0.35);
  }

  /* Icônes et titres qui prennent la couleur de la marque */
  .card:hover .card__icon { background: var(--gradient); border-color: transparent; transform: scale(1.08) rotate(-4deg); }
  .card:hover .card__icon svg { stroke: #fff; }
  .feature:hover h3, .part:hover .part__name { color: var(--primary); }
  .tier:hover .tier__badge { background: var(--gradient); border-color: transparent; color: #fff; }
  .levels li:hover { border-color: rgba(17, 103, 232, 0.4); background-color: #f5f9ff; }
  .levels li:hover > span { transform: scale(1.1); }
  .certs li:hover { transform: translateX(4px); border-left-color: var(--primary-2); box-shadow: 0 10px 24px -16px rgba(17, 103, 232, 0.4); }
  .vendor:hover .vendor__mark { transform: scale(1.08); }
  .stat:hover strong { transform: scale(1.08); }

  /* Pastilles et petits éléments */
  .products li:hover, .tags li:hover {
    transform: translateY(-2px) scale(1.05);
    color: var(--primary);
    border-color: rgba(17, 103, 232, 0.45);
    background-color: #f0f6ff;
  }
  .sla__list li:hover, .hero__brands li:hover { transform: translateY(-2px) scale(1.1); }
  .contact__list li:hover svg { background: var(--gradient); border-color: transparent; stroke: #fff; transform: scale(1.06); }

  /* Boutons */
  .btn:hover { transform: translateY(-2px) scale(1.03); }
  .btn:active { transform: scale(0.98); }
}

/* Accessibilité : même repère visuel au clavier */
.btn:focus-visible, .nav__link:focus-visible, .tab:focus-visible, .pf__cat:focus-visible, .card__link:focus-visible {
  outline: 3px solid rgba(17, 103, 232, 0.45);
  outline-offset: 3px;
}

/* =========================================================
   Assistant (chatbot)
   ========================================================= */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 150; }
.chat__toggle {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px -10px rgba(17, 103, 232, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chat__toggle:hover { transform: scale(1.08); box-shadow: 0 18px 40px -10px rgba(17, 103, 232, 0.7); }
.chat__toggle svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat:not(.is-open) .chat__toggle::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--success); border: 2px solid #fff;
}

.chat__panel {
  position: absolute; right: 0; bottom: 76px;
  width: 370px; height: min(560px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  animation: chatIn 0.3s var(--ease);
}
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--gradient); color: #fff; }
.chat__avatar { width: 38px; height: 38px; padding: 4px; border-radius: 50%; background: #fff; }
.chat__head strong { display: block; font-size: 0.98rem; }
.chat__head small { display: block; font-size: 0.75rem; opacity: 0.85; }
.chat__close { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer; }
.chat__close:hover { background: rgba(255, 255, 255, 0.28); }
.chat__close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; animation: fadeUp 0.3s var(--ease); }
.chat__msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat__msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat__msg a { color: var(--primary); font-weight: 600; }
.chat__msg a:hover { text-decoration: underline; }
.chat__msg ul { list-style: disc; padding-left: 18px; margin: 6px 0; }
.chat__msg li { margin-bottom: 4px; }
.chat__msg .chat__parts { list-style: none; padding: 0; display: grid; gap: 8px; }
.chat__parts li { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.chat__parts small { color: var(--muted); }

.chat__typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatDot 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat__chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; background: var(--surface); scrollbar-width: none; }
.chat__chips:empty { display: none; }
.chat__chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 103, 232, 0.35);
  background: #f0f6ff;
  color: var(--primary);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chat__chip:hover { background: var(--primary); color: #fff; }

.chat__form { display: flex; gap: 8px; padding: 12px; background: var(--surface); border-top: 1px solid var(--border); }
.chat__input { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 0.9rem; }
.chat__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17, 103, 232, 0.15); }
.chat__send { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gradient); color: #fff; cursor: pointer; transition: transform 0.2s; }
.chat__send:hover { transform: scale(1.08); }
.chat__send svg { width: 18px; fill: currentColor; }

@media (max-width: 600px) {
  .chat { right: 16px; bottom: 16px; }
  .chat__panel { position: fixed; inset: auto 8px 88px 8px; width: auto; height: min(70vh, 560px); }
  .to-top { right: 22px; bottom: 88px; }
}

/* Onglets du catalogue avec icônes (9 catégories) */
.tabs {
  width: auto; max-width: 980px;
  padding: 0; border: 0; border-radius: 0; background: none;
  gap: 10px;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.25);
  transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tab__icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--primary); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.tab.is-active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(17, 103, 232, 0.6); }
.tab.is-active .tab__icon { stroke: #fff; }
@media (hover: hover) {
  .tab:not(.is-active):hover { transform: translateY(-2px) scale(1.04); border-color: rgba(17, 103, 232, 0.45); color: var(--primary); background-color: #f5f9ff; }
}
@media (max-width: 600px) {
  .tabs { gap: 8px; }
  .tab { padding: 8px 12px; font-size: 0.85rem; }
  .tab__icon { width: 17px; height: 17px; }
}

/* Logos officiels (images) et nouveaux constructeurs */
svg[aria-label="Red Hat"] { fill: #ee0000; }
.vendors__list { grid-template-columns: repeat(6, 1fr); }
.vendor__img { height: 30px; width: auto; max-width: 130px; object-fit: contain; }
.vendor__img--wide { height: 22px; }
.brand__img { height: 18px; width: auto; }
.brand__img--wide { height: 13px; }
@media (max-width: 1024px) { .vendors__list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .vendors__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .vendors__list { grid-template-columns: repeat(2, 1fr); } }
svg[aria-label="Huawei"] { fill: #ff0000; }
svg[aria-label="Supermicro"] { fill: #151f6d; }
/* 14 constructeurs : 7 par ligne sur grand écran */
@media (min-width: 1200px) { .vendors__list { grid-template-columns: repeat(7, 1fr); } }
/* colonnes de largeur égale, même avec des logos larges */
.vendors__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vendor__mark { max-width: 100%; }
.vendor__mark svg, .vendor__img { max-width: 100%; }
@media (min-width: 1200px) { .vendors__list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .vendors__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .vendors__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .vendors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vendor__mark svg[aria-label="VMware"] { width: 66%; height: auto; flex: 0 1 auto; }
.vendor__mark svg[aria-label="Broadcom"] { flex-shrink: 0; height: 26px; }
.vendor__mark:has(svg[aria-label="VMware"]) { gap: 8px; }

/* =========================================================
   v1.2 — Logos du hero sur 2 lignes régulières (7 par ligne)
   ========================================================= */
.hero__brands {
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: start;
  align-items: center;
  gap: 16px 20px;
  max-width: none;
}
.hero__brands li { justify-content: flex-start; white-space: nowrap; }
.hero__brands span { font-size: 0.74rem; }
@media (max-width: 1180px) { .hero__brands { grid-template-columns: repeat(5, auto); } }
@media (max-width: 600px) { .hero__brands { grid-template-columns: repeat(3, auto); gap: 14px 16px; } }
/* Les logos images du hero gardent leur largeur naturelle dans la grille */
.hero__brands .brand__img, .hero__brands svg { max-width: none; flex-shrink: 0; }
.hero__content { min-width: 0; }
.hero__brands { gap: 14px 18px; }
.hero__brands svg { height: 17px; max-width: 58px; }
.hero__brands svg[aria-label="VMware"] { max-width: 56px; }
.hero__brands .brand__img { height: 16px; }
.hero__brands .brand__img--wide { height: 11px; }

/* =========================================================
   v1.2 — Couleurs et mouvement
   Palette : bleu du logo + cyan, violet, sarcelle, vert
   ========================================================= */
:root {
  --c-blue: #1167e8;
  --c-cyan: #06b6d4;
  --c-violet: #7c3aed;
  --c-teal: #0d9488;
  --c-green: #16a34a;
  --gradient-wide: linear-gradient(110deg, var(--c-blue), var(--c-cyan), var(--c-violet), var(--c-blue));
}
@keyframes shift { to { background-position: 300% 0; } }
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Barre de progression de lecture */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 3px;
  background: var(--gradient-wide); background-size: 300% 100%;
  transform-origin: left; transform: scaleX(0);
  animation: shift 6s linear infinite;
}

/* Hero : halos colorés qui dérivent lentement */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  animation: blob 18s ease-in-out infinite alternate;
}
.hero::before { width: 420px; height: 420px; left: -120px; top: 18%; background: rgba(17, 103, 232, 0.16); }
.hero::after { width: 380px; height: 380px; right: 8%; bottom: -80px; background: rgba(124, 58, 237, 0.13); animation-duration: 22s; animation-delay: -6s; }
.hero__glow { background: radial-gradient(circle, rgba(6, 182, 212, 0.28), transparent 65%); }

/* Textes en dégradé animé */
.gradient-text, .stat strong {
  background-image: var(--gradient-wide);
  background-size: 300% 100%;
  animation: shift 8s linear infinite;
}

/* Bouton principal : dégradé qui glisse + reflet au survol */
.btn--primary { position: relative; overflow: hidden; background-image: var(--gradient-wide); background-size: 300% 100%; background-position: 0 0; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.8s var(--ease); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
}
@media (hover: hover) {
  .btn--primary:hover { background-position: 100% 0; }
  .btn--primary:hover::after { animation: shine 0.8s var(--ease); }
}
@keyframes shine { to { left: 130%; } }

/* Titres de section : trait coloré qui se dessine à l'apparition */
.section__head h2::after {
  content: ""; display: block; width: 72px; height: 4px; margin: 18px auto 0; border-radius: 4px;
  background: var(--gradient-wide); background-size: 300% 100%;
  transform: scaleX(0); transition: transform 0.9s 0.25s var(--ease);
  animation: shift 6s linear infinite;
}
.section__head.is-visible h2::after { transform: scaleX(1); }
.eyebrow { background: var(--gradient-wide); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 10s linear infinite; }

/* Fonds de section légèrement teintés */
.section--alt { background: linear-gradient(180deg, #eef4fd 0%, #f4f2fe 100%); }
.stats { background: linear-gradient(90deg, #eef4ff, #ecfbfd 50%, #f3f0ff); }

/* Cartes services : une couleur par métier */
.cards .card:nth-child(1) { --c: var(--c-blue);   --c-soft: rgba(17, 103, 232, 0.1); }
.cards .card:nth-child(2) { --c: var(--c-violet); --c-soft: rgba(124, 58, 237, 0.1); }
.cards .card:nth-child(3) { --c: var(--c-teal);   --c-soft: rgba(13, 148, 136, 0.1); }
.cards .card__icon { background: var(--c-soft); border-color: transparent; }
.cards .card__icon svg { stroke: var(--c); }
.cards .card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.cards .card .card__link { color: var(--c); }
.card--featured { background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), var(--surface) 60%); border-color: rgba(124, 58, 237, 0.3); }
@media (hover: hover) {
  .cards .card:hover::after { transform: scaleX(1); }
  .cards .card:hover .card__icon { background: var(--c); }
  .cards .card:hover { border-color: var(--c); }
}

/* « Pourquoi nous » : une couleur par argument */
.features .feature:nth-child(1) { --c: var(--c-blue); }
.features .feature:nth-child(2) { --c: var(--c-violet); }
.features .feature:nth-child(3) { --c: var(--c-teal); }
.features .feature:nth-child(4) { --c: var(--c-green); }
.features .feature::before { background: var(--c); height: 4px; }
@media (hover: hover) { .features .feature:hover h3 { color: var(--c); } .features .feature:hover { border-color: var(--c); } }

/* Pastilles produits VMware : points de couleurs variées */
.products li:nth-child(4n+1)::before { background: var(--c-blue); }
.products li:nth-child(4n+2)::before { background: var(--c-cyan); }
.products li:nth-child(4n+3)::before { background: var(--c-violet); }
.products li:nth-child(4n+4)::before { background: var(--c-teal); }

/* Niveaux de support : badge coloré, bordure animée sur Mission Critical */
.tiers .tier:nth-child(1) .tier__badge { color: var(--c-blue); background: rgba(17, 103, 232, 0.1); border-color: rgba(17, 103, 232, 0.3); }
.tiers .tier:nth-child(2) .tier__badge { color: var(--c-violet); background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.3); }
.tiers .tier:nth-child(3) .tier__badge { color: #fff; background: var(--gradient-wide); background-size: 300% 100%; border-color: transparent; animation: shift 6s linear infinite; }
.tier--featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient-wide) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: shift 6s linear infinite;
}

/* L1 / L2 / L3, certifications, étapes, chiffrage : couleurs en alternance */
.levels li:nth-child(1) > span { background: var(--c-blue); }
.levels li:nth-child(2) > span { background: var(--c-violet); }
.levels li:nth-child(3) > span { background: var(--c-teal); }
.certs li:nth-child(1) { border-left-color: var(--c-blue); }
.certs li:nth-child(2) { border-left-color: var(--c-cyan); }
.certs li:nth-child(3) { border-left-color: var(--c-violet); }
.certs li:nth-child(4) { border-left-color: var(--c-teal); }
.steps .step:nth-child(1) .step__num { background: linear-gradient(135deg, var(--c-blue), var(--c-cyan)); -webkit-background-clip: text; background-clip: text; }
.steps .step:nth-child(2) .step__num { background: linear-gradient(135deg, var(--c-cyan), var(--c-teal)); -webkit-background-clip: text; background-clip: text; }
.steps .step:nth-child(3) .step__num { background: linear-gradient(135deg, var(--c-violet), var(--c-blue)); -webkit-background-clip: text; background-clip: text; }
.steps .step:nth-child(4) .step__num { background: linear-gradient(135deg, var(--c-teal), var(--c-green)); -webkit-background-clip: text; background-clip: text; }
.pricing li:nth-child(5n+1)::before { color: var(--c-blue); border-color: rgba(17, 103, 232, 0.4); }
.pricing li:nth-child(5n+2)::before { color: var(--c-cyan); border-color: rgba(6, 182, 212, 0.4); }
.pricing li:nth-child(5n+3)::before { color: var(--c-violet); border-color: rgba(124, 58, 237, 0.4); }
.pricing li:nth-child(5n+4)::before { color: var(--c-teal); border-color: rgba(13, 148, 136, 0.4); }
.pricing li:nth-child(5n+5)::before { color: var(--c-green); border-color: rgba(22, 163, 74, 0.4); }

/* Icônes du catalogue qui flottent doucement */
.panel__icon svg { animation: float 6s ease-in-out infinite; }
.panel__icon { background: radial-gradient(circle, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.08) 45%, transparent 70%); }

/* Formulaire et pied de page : liseré dégradé */
.form { position: relative; overflow: hidden; }
.form::before, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--gradient-wide); background-size: 300% 100%; animation: shift 8s linear infinite;
}
.footer { position: relative; border-top: 0; }
.footer::before { height: 3px; }

/* Lien de menu actif : soulignement dégradé */
.nav__link::after { background: var(--gradient-wide); background-size: 300% 100%; animation: shift 6s linear infinite; }

/* Bouton de l'assistant : onde discrète toutes les quelques secondes */
.chat:not(.is-open) .chat__toggle::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(17, 103, 232, 0.5);
  animation: ring 3.5s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.chat__toggle, .chat__head, .chat__send { background-image: var(--gradient-wide); background-size: 300% 100%; animation: shift 8s linear infinite; }

/* =========================================================
   v1.2 — Sélecteur de langue avec drapeaux
   ========================================================= */
.lang__link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; }
.flag { display: inline-flex; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); flex-shrink: 0; }
.flag svg { width: 100%; height: 100%; display: block; }
.lang__link:not(.is-current) .flag { opacity: 0.75; transition: opacity 0.2s; }
.lang__link:hover .flag { opacity: 1; }

/* =========================================================
   v1.2 — Version arabe : police et sens de lecture (RTL)
   ========================================================= */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; line-height: 1.75; }
/* L'espacement entre lettres casse la liaison des lettres arabes */
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
html[lang="ar"] .hero__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
/* Les éléments latins (marques, références, e-mail, téléphone) restent de gauche à droite */
html[lang="ar"] .lang__link, html[lang="ar"] .tags li, html[lang="ar"] .part__specs li,
html[lang="ar"] .sla__list li, html[lang="ar"] .certs strong, html[lang="ar"] a[href^="tel:"],
html[lang="ar"] a[href^="mailto:"], html[lang="ar"] .products li { unicode-bidi: isolate; }
html[lang="ar"] a[href^="tel:"] { direction: ltr; }

[dir="rtl"] .lang__link { padding: 4px 6px 4px 10px; }
[dir="rtl"] .nav__link::after { transform-origin: right; }
[dir="rtl"] .card__link:hover { transform: translateX(-4px); }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .guarantees li { padding: 22px 56px 22px 22px; }
[dir="rtl"] .guarantees li::before { left: auto; right: 20px; }
[dir="rtl"] .pricing li { padding-left: 0; padding-right: 44px; }
[dir="rtl"] .pricing li::before { left: auto; right: 0; }
[dir="rtl"] .certs li { border-left: 1px solid var(--border); border-right: 3px solid var(--primary); }
[dir="rtl"] .certs li:nth-child(1) { border-right-color: var(--c-blue); }
[dir="rtl"] .certs li:nth-child(2) { border-right-color: var(--c-cyan); }
[dir="rtl"] .certs li:nth-child(3) { border-right-color: var(--c-violet); }
[dir="rtl"] .certs li:nth-child(4) { border-right-color: var(--c-teal); }
[dir="rtl"] .sla p { margin-left: 0; margin-right: auto; }
[dir="rtl"] .field select { background-position: left 14px center; }
[dir="rtl"] .feature::before { left: 24px; right: 24px; }
[dir="rtl"] .cards .card::after { transform-origin: right; }
[dir="rtl"] .float-card--a { left: auto; right: -40px; }
[dir="rtl"] .float-card--b { right: auto; left: -30px; }
[dir="rtl"] .rack { transform: perspective(1000px) rotateY(10deg) rotateX(4deg); }
@media (hover: hover) {
  [dir="rtl"] .step:hover { transform: translateX(-6px) scale(1.01); }
  [dir="rtl"] .certs li:hover { transform: translateX(-4px); }
}

/* Parts Finder */
[dir="rtl"] .pf__cat { text-align: right; }
[dir="rtl"] .pf__cat.is-active { box-shadow: inset -3px 0 0 var(--primary); }
[dir="rtl"] .pf__search svg { left: auto; right: 16px; }
[dir="rtl"] .pf__search input { padding-left: 16px; padding-right: 44px; }
[dir="rtl"] .pf__reset { justify-self: end; }
[dir="rtl"] .part__cond { left: auto; right: 10px; }
@media (max-width: 900px) {
  [dir="rtl"] .pf__sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--border); transform: translateX(100%); }
  [dir="rtl"] .pf__sidebar.is-open { transform: none; box-shadow: -30px 0 60px rgba(0, 0, 0, 0.25); }
}

/* Assistant et bouton « haut de page » à gauche en arabe */
[dir="rtl"] .chat { right: auto; left: 24px; }
[dir="rtl"] .chat__panel { right: auto; left: 0; }
[dir="rtl"] .chat__close { margin-left: 0; margin-right: auto; }
[dir="rtl"] .chat__msg--bot { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat__msg--user { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .chat__msg ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .chat__send svg { transform: scaleX(-1); }
[dir="rtl"] .chat:not(.is-open) .chat__toggle::after { right: auto; left: 4px; }
[dir="rtl"] .to-top { right: auto; left: 30px; }
@media (max-width: 600px) {
  [dir="rtl"] .chat { left: 16px; }
  [dir="rtl"] .to-top { left: 22px; }
}
/* Sens de lecture déterminé par le contenu (« 2 sockets » reste lisible en page arabe) */
html[lang="ar"] .tags li, html[lang="ar"] .part__specs li, html[lang="ar"] .products li,
html[lang="ar"] .part__name, html[lang="ar"] .part__brand, html[lang="ar"] .chat__parts small,
html[lang="ar"] .chat__parts b { unicode-bidi: plaintext; }
/* Chiffres clés (+10, +1 000, 24/7) toujours lus de gauche à droite */
html[lang="ar"] .stat strong, html[lang="ar"] .float-card strong { direction: ltr; unicode-bidi: isolate; }

/* Champ piège anti-robots : invisible pour les visiteurs et les lecteurs d'écran */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
