/* ============================================
   50 GSM — STYLE CUSTOM
   Vibe : hardware / pro / téléphonie
   Palette : #E31B23 + #FFFFFF + #0A0A0A
   Polices : Jost (proxy Futura Bold) + Cabin (proxy Gill Sans Bold)
   ============================================ */

:root {
  --red: #E31B23;
  --red-deep: #B81219;
  --black: #0A0A0A;
  --bone: #F4F2EE;
  --grid: rgba(10, 10, 10, 0.06);
  --grid-red: rgba(227, 27, 35, 0.10);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cabin', 'Gill Sans', system-ui, sans-serif;
  font-weight: 500;
  color: var(--black);
  background: #fff;
  overflow-x: hidden;
}

.font-futura { font-family: 'Jost', 'Futura', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.font-gill   { font-family: 'Cabin', 'Gill Sans', system-ui, sans-serif; font-weight: 600; }
.font-mono   { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Grille hardware en background ---------------------- */
.bg-grid {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-fine {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Tag technique --------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
}
.tag--red { color: var(--red); border-color: var(--red); }
.tag--ghost { background: transparent; }
.tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  display: inline-block;
}

/* Bouton primaire — design "module hardware" ---------- */
.btn-hw {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  background: var(--red);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border: 1.5px solid var(--red);
  position: relative;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.btn-hw::before, .btn-hw::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border: 1.5px solid var(--red);
  background: #fff;
}
.btn-hw::before { top: -5px; left: -5px; }
.btn-hw::after  { bottom: -5px; right: -5px; }
.btn-hw:hover {
  background: var(--black);
  border-color: var(--black);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red);
}
.btn-hw:hover::before, .btn-hw:hover::after { border-color: var(--black); }

.btn-hw--ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-hw--ghost::before, .btn-hw--ghost::after { border-color: var(--black); }
.btn-hw--ghost:hover {
  background: var(--black);
  color: #fff;
}

/* Carte service "module" ------------------------------ */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--black);
  padding: 2rem;
  transition: background .3s, color .3s, transform .3s;
}
.service-card::before {
  content: attr(data-ref);
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--red);
}
.service-card:hover {
  background: var(--black);
  color: #fff;
  transform: translateY(-4px);
}
.service-card:hover .service-card__icon { background: var(--red); border-color: var(--red); }
.service-card:hover .service-card__icon svg { stroke: #fff; }

.service-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1.5px solid var(--black);
  background: #fff;
  margin-bottom: 1.4rem;
  transition: background .3s, border-color .3s;
}
.service-card__icon svg { stroke: var(--black); transition: stroke .3s; }

/* Sticker "diagnostic gratuit" ------------------------ */
.sticker {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--red);
  color: #fff;
  padding: 0.4rem 0.9rem;
  display: inline-block;
  font-size: 0.85rem;
}

/* Trait technique "vers le bas" ----------------------- */
.tech-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
}
.tech-divider::before, .tech-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--black);
}

/* Ticker (bande défilante) ---------------------------- */
.ticker {
  overflow: hidden;
  background: var(--black);
  color: #fff;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  padding: 0.85rem 0;
}
.ticker__track > span {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin: 0 2.2rem;
}
.ticker__track > span > i {
  color: var(--red);
  font-style: normal;
  margin: 0 0.5rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* PCB / motif technique pour le hero ------------------ */
.pcb-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--grid-red) 0, transparent 22%),
    radial-gradient(circle at 80% 70%, var(--grid-red) 0, transparent 18%);
  pointer-events: none;
}

/* Hero numéro géant ----------------------------------- */
.hero-big {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 6.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-big em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
.hero-big em::after {
  content: '';
  position: absolute;
  bottom: 0.08em;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--red);
  opacity: 0.18;
}

/* Card hover lift pour vitrine ------------------------ */
.prod-card {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.12);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.prod-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -15px rgba(227,27,35,0.35);
}

/* Stat block ----------------------------------------- */
.stat-num {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--red);
}

/* Section number label ------------------------------- */
.section-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-ref::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--red);
  display: inline-block;
}

/* Step number style hardware -------------------------- */
.step-num {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}

/* Header (sticky) ------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,10,10,0.08);
}

/* Logo 50 GSM (typographique) ------------------------- */
.logo-50 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  letter-spacing: -0.03em;
  font-size: 1.45rem;
}
.logo-50 .num {
  background: var(--red);
  color: #fff;
  padding: 0.05em 0.25em;
}
.logo-50 .dot {
  width: 6px; height: 6px;
  background: var(--red);
  display: inline-block;
  align-self: center;
  margin: 0 0.15rem 0.1rem;
}

/* Marquee diagonale animée discrète -------------------- */
.scan-line {
  position: relative;
  overflow: hidden;
}
.scan-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 8px,
    rgba(227,27,35,0.05) 8px, rgba(227,27,35,0.05) 9px
  );
  pointer-events: none;
}

/* Fiche d'inspection atelier (hero image) ------------- */
.atelier-frame {
  position: relative;
  background: var(--bone);
  border: 1px solid rgba(10,10,10,0.85);
  padding: 14px;
}

/* Barre de scan rouge qui balaye l'image */
.scan-bar {
  position: absolute;
  left: -1%;
  right: -1%;
  height: 1.5px;
  top: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(227,27,35,0) 6%,
    rgba(255,90,95,0.95) 35%,
    rgba(255,255,255,1) 50%,
    rgba(255,90,95,0.95) 65%,
    rgba(227,27,35,0) 94%,
    transparent 100%);
  box-shadow:
    0 0 4px rgba(255,90,95,0.95),
    0 0 10px rgba(227,27,35,0.75),
    0 0 22px rgba(227,27,35,0.40),
    0 0 44px rgba(227,27,35,0.18),
    0 0 80px rgba(227,27,35,0.08);
  z-index: 4;
  pointer-events: none;
  animation: scanBar 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: top, opacity;
  filter: brightness(1.05);
}
@keyframes scanBar {
  0%    { top: -3%;  opacity: 0; }
  3%    { opacity: 0.4; }
  6%    { opacity: 1; }
  24%   { opacity: 1; }
  26%   { opacity: 0.85; }   /* léger flicker */
  28%   { opacity: 1; }
  48%   { top: 100%; opacity: 1; }
  53%   { top: 100%; opacity: 0; }
  100%  { top: -3%;  opacity: 0; }
}

/* Trace fantôme sous la barre (lueur résiduelle) */
.scan-bar::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 6%; right: 6%;
  height: 90px;
  background: linear-gradient(180deg,
    rgba(227,27,35,0.22) 0%,
    rgba(227,27,35,0.08) 35%,
    rgba(227,27,35,0.0) 100%);
  pointer-events: none;
  filter: blur(2px);
}

/* Scanline CRT subtile en permanence sur l'image */
.atelier-frame .scan-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(10,10,10,0.045) 3px,
    rgba(10,10,10,0.045) 4px
  );
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
}
/* 4 équerres rouges aux coins (style viseur) */
.atelier-frame .corner {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
}
.atelier-frame .corner.tl { top: -3px; left: -3px;  border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.atelier-frame .corner.tr { top: -3px; right: -3px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.atelier-frame .corner.bl { bottom: -3px; left: -3px;  border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); }
.atelier-frame .corner.br { bottom: -3px; right: -3px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }

.atelier-frame .corner {
  opacity: 0;
  /* Clip-path qui révèle d'abord la barre horizontale, puis la verticale */
  animation: cornerDraw 0.65s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.atelier-frame .corner.tl { animation-delay: 0.10s; clip-path: inset(0 100% 100% 0); }
.atelier-frame .corner.tr { animation-delay: 0.22s; clip-path: inset(0 0 100% 100%); }
.atelier-frame .corner.bl { animation-delay: 0.34s; clip-path: inset(100% 100% 0 0); }
.atelier-frame .corner.br { animation-delay: 0.46s; clip-path: inset(100% 0 0 100%); }

@keyframes cornerDraw {
  0%   { opacity: 1; clip-path: inset(0 100% 100% 0); }
  50%  { opacity: 1; clip-path: inset(0 0 100% 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
/* L-draw différent par coin pour vraie sensation "trace" */
.atelier-frame .corner.tr { animation-name: cornerDrawTR; }
@keyframes cornerDrawTR {
  0%   { opacity: 1; clip-path: inset(0 0 100% 100%); }
  50%  { opacity: 1; clip-path: inset(0 0 100% 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
.atelier-frame .corner.bl { animation-name: cornerDrawBL; }
@keyframes cornerDrawBL {
  0%   { opacity: 1; clip-path: inset(100% 100% 0 0); }
  50%  { opacity: 1; clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
.atelier-frame .corner.br { animation-name: cornerDrawBR; }
@keyframes cornerDrawBR {
  0%   { opacity: 1; clip-path: inset(100% 0 0 100%); }
  50%  { opacity: 1; clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* Respect prefers-reduced-motion : on coupe toutes les animations du bloc fiche */
@media (prefers-reduced-motion: reduce) {
  .scan-bar,
  .pin, .pin .dot,
  .stamp,
  .atelier-head .dot-red,
  .atelier-foot span,
  .atelier-frame .corner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .stamp { transform: rotate(-8deg) !important; }
}

/* Header dossier */
.atelier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(10,10,10,0.3);
  margin-bottom: 12px;
}
.atelier-head .dot-red {
  width: 6px; height: 6px;
  background: var(--red);
  display: inline-block;
  margin-right: 6px;
  position: relative;
  border-radius: 1px;
  box-shadow: 0 0 0 0 rgba(227,27,35,0.5);
  animation: ledBreathing 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes ledBreathing {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(227,27,35,0.0), 0 0 4px rgba(227,27,35,0.6);
  }
  45% {
    opacity: 0.35;
    box-shadow: 0 0 0 3px rgba(227,27,35,0.15), 0 0 8px rgba(227,27,35,0.4);
  }
  55% {
    opacity: 0.35;
    box-shadow: 0 0 0 3px rgba(227,27,35,0.15), 0 0 8px rgba(227,27,35,0.4);
  }
}

/* Footer checklist */
.atelier-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px dashed rgba(10,10,10,0.3);
  margin-top: 12px;
}
.atelier-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  clip-path: inset(0 100% 0 0);
  animation: footTextReveal 0.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.atelier-foot span:nth-child(1) { animation-delay: 2.95s; }
.atelier-foot span:nth-child(2) { animation-delay: 3.15s; }
.atelier-foot span:nth-child(3) { animation-delay: 3.35s; }
.atelier-foot span:nth-child(4) { animation-delay: 3.55s; }
@keyframes footTextReveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.atelier-foot span::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transform: scale(0);
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.atelier-foot span:nth-child(1)::before { animation-delay: 3.05s; }
.atelier-foot span:nth-child(2)::before { animation-delay: 3.25s; }
.atelier-foot span:nth-child(3)::before { animation-delay: 3.45s; }
.atelier-foot span:nth-child(4)::before { animation-delay: 3.65s; }
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.4) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Tampon TESTÉ en oblique */
.stamp {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 6;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 6px 10px 5px;
  background: rgba(244,242,238,0.55);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  /* État final : rotation -8°, scale 1 */
  transform: rotate(-8deg) scale(1);
  animation: stampImpact 1.1s 2.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: blur(0);
  transform-origin: center center;
}
@keyframes stampImpact {
  /* Phase 1 : approche depuis le haut avec rotation et flou */
  0%   { opacity: 0;    transform: rotate(-32deg) scale(2.4) translateY(-40px); filter: blur(10px); }
  18%  { opacity: 0.6;  transform: rotate(-18deg) scale(1.65) translateY(-12px); filter: blur(4px); }
  /* Phase 2 : impact (compression) */
  32%  { opacity: 1;    transform: rotate(-4deg)  scale(0.86) translateY(2px);  filter: blur(0); }
  /* Phase 3 : rebond + oscillation amortie */
  44%  { transform: rotate(-11deg) scale(1.08); }
  56%  { transform: rotate(-6.5deg) scale(0.97); }
  68%  { transform: rotate(-8.8deg) scale(1.02); }
  80%  { transform: rotate(-7.5deg) scale(0.995); }
  92%  { transform: rotate(-8.1deg) scale(1.003); }
  100% { opacity: 1;    transform: rotate(-8deg) scale(1); filter: blur(0); }
}
.stamp::before {
  content: '';
  display: block;
  position: absolute;
  inset: 3px;
  border: 1px solid var(--red);
  opacity: 0.5;
  pointer-events: none;
}

/* Graduation latérale style règle */
.ruler-left {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: -14px;
  width: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.ruler-left span {
  display: block;
  height: 1px;
  background: var(--black);
}
.ruler-left span:nth-child(odd) { width: 8px; }
.ruler-left span:nth-child(even) { width: 5px; }

/* Pin annotation (point + ligne + label) */
.pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  z-index: 5;
}
.pin .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  position: relative;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.4),
    0 0 0 2px rgba(227,27,35,0.25),
    0 0 6px rgba(227,27,35,0.55);
  opacity: 0;
  transform: scale(0);
  animation: dotPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* Onde concentrique qui se propage (radar) */
.pin .dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(227,27,35,0.85);
  opacity: 0;
  animation: radarWave 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: inherit;
}
.pin .dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(227,27,35,0.45);
  opacity: 0;
  animation: radarWave 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: calc(var(--radar-delay, 0s) + 1.3s);
}
@keyframes dotPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes radarWave {
  0%   { transform: scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: scale(3.6); opacity: 0; }
}

.pin .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: #fff;
  border: 1px solid var(--black);
  padding: 3px 7px;
  white-space: nowrap;
  position: relative;
  clip-path: inset(0 100% 0 0);
  animation: lblReveal 0.55s 0.18s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.pin.right .lbl { clip-path: inset(0 0 0 100%); }
@keyframes lblReveal {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Cadence d'apparition par pin */
.pin:nth-of-type(1) .dot { animation-delay: 1.1s; }
.pin:nth-of-type(1) .dot::before,
.pin:nth-of-type(1) .dot::after { animation-delay: 1.5s; }
.pin:nth-of-type(1) .lbl { animation-delay: 1.28s; }

.pin:nth-of-type(2) .dot { animation-delay: 1.35s; }
.pin:nth-of-type(2) .dot::before,
.pin:nth-of-type(2) .dot::after { animation-delay: 1.75s; }
.pin:nth-of-type(2) .lbl { animation-delay: 1.53s; }

.pin:nth-of-type(3) .dot { animation-delay: 1.6s; }
.pin:nth-of-type(3) .dot::before,
.pin:nth-of-type(3) .dot::after { animation-delay: 2.0s; }
.pin:nth-of-type(3) .lbl { animation-delay: 1.78s; }

/* Pin annotation foncé (pour fiche atelier sur fond noir) */
.abs-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}
.abs-pin.right { flex-direction: row-reverse; }
.abs-pin .dot-tech {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #E31B23;
  box-shadow:
    0 0 0 3px rgba(227,27,35,0.25),
    0 0 0 7px rgba(227,27,35,0.10);
  flex-shrink: 0;
  position: relative;
}
.abs-pin .dot-tech::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
.abs-pin .lbl-tech {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,10,10,0.92);
  border: 1px solid #E31B23;
  padding: 4px 8px 3px;
  white-space: nowrap;
  position: relative;
}

/* Panne card (fond noir) ---------------------------------- */
.panne-card {
  position: relative;
  background: #0A0A0A;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 1.5rem;
  transition: border-color .25s, background .25s, transform .25s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.panne-card::before {
  content: attr(data-num);
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}
.panne-card:hover {
  background: #fff;
  color: var(--black);
  border-color: var(--red);
  transform: translateY(-3px);
}
.panne-card:hover .panne-icon { border-color: var(--red); background: var(--red); }
.panne-card:hover .panne-icon svg { stroke: #fff; }
.panne-card:hover .panne-meta { color: rgba(10,10,10,0.55); }

.panne-icon {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
  transition: border-color .25s, background .25s;
}
.panne-icon svg { stroke: #fff; transition: stroke .25s; }
.panne-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
}
.panne-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color .25s;
}

/* Timeline horizontale protocole ----------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.timeline__step {
  position: relative;
  text-align: left;
  padding: 0 1rem 0 0;
  z-index: 1;
}
.timeline__step .ts-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink, #0A0A0A);
  border: 1.5px solid #fff;
  display: grid;
  place-items: center;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}
.timeline__step .ts-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(227,27,35,0.5);
  border-radius: 50%;
}
.timeline__step .ts-circle .num {
  position: relative;
}
.timeline__step .ts-circle .ref {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline__step { padding-bottom: 1.5rem; }
}

/* Brand chips (Samsung, Apple, Xiaomi...) ------------- */
.brand-chip {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--black);
  font-size: 0.85rem;
  transition: background .2s, color .2s;
}
.brand-chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Schedule row ---------------------------------------- */
.sched-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(10,10,10,0.15);
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
}
.sched-row.is-today {
  color: var(--red);
}
.sched-row.is-today::before {
  content: '●';
  margin-right: 0.5rem;
}

/* Animation fade-up ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* Responsive tweaks ----------------------------------- */
@media (max-width: 768px) {
  .hero-big { font-size: clamp(2.4rem, 10vw, 4rem); }
  .step-num { font-size: 3rem; }
}
