/* ---- Déploiement page-specific ---- */
.steps { grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }

/* ---- Visuel image qui se déplie au survol (spécifique déploiement) ---- */
.step__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .45s cubic-bezier(.25,.8,.25,1), max-height .45s cubic-bezier(.25,.8,.25,1), opacity .4s ease;
}
.step:hover .step__visual,
.step:focus-within .step__visual {
  max-width: 180px;
  max-height: 120px;
  opacity: 1;
}
.step__visual img {
  max-height: 100px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

/* Listes : surcharges propres à la page (retrait en drapeau) */
.step__body ul { padding-left: 1.3em; list-style: disc outside; }
.step__body li { margin-top: 4px; padding-left: .25em; }
.step__body li::marker { color: var(--ink); }
.step__body strong { font-weight: 600; color: var(--ink); }

/* ---- Tablet: 1 column steps ---- */
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- Mobile: always expanded ---- */
@media (max-width: 768px) {
  .step__body {
    max-height: none;
    opacity: 1;
    padding: 4px clamp(18px, 4vw, 32px) clamp(18px, 4vw, 32px);
  }
  .step__visual,
  .step__corner-img {
    display: none !important;
  }
  .step--corner { min-height: auto; }
  .step--corner-flush .step__body {
    max-width: 100%;
  }
  .step__top {
    padding: 14px clamp(18px, 4vw, 32px);
    padding-bottom: 10px;
  }
  .step__info h3 { font-size: 1rem; }
  .step__num { font-size: 1.8rem; }
}

/* ---- Small mobile ---- */
@media (max-width: 480px) {
  .step__visual img {
    max-height: 70px;
    max-width: 100px;
  }
  .step__corner-img {
    max-height: 70px;
  }
}

/* Skip link */



/* Corner image variant */
.step--corner { position: relative; min-height: 200px; }
.step__corner-img {
  position: absolute;
  bottom: 12px; right: 16px;
  max-height: 120px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.step:hover .step__corner-img,
.step:focus-within .step__corner-img {
  opacity: .85;
}
/* Card 03: image collée dans le coin */
.step--corner-flush .step__corner-img {
  bottom: 0; right: 0;
}
.step--corner-flush .step__body {
  max-width: 80%;
}

/* ---- Presence / maps responsive ---- */
@media (max-width: 920px) {
  .presence { grid-template-columns: 1fr; gap: 40px; }
  .map--france { max-width: 340px; }
  .map { max-width: 400px; }
}
@media (max-width: 480px) {
  .map--france { max-width: 100%; }
  .map { max-width: 100%; }
  .map__panel { padding: 12px 16px; }
  .map__panel h4 { font-size: 1rem; }
}

/* ---- Footer responsive fix ---- */
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ---- CTA band responsive ---- */
@media (max-width: 768px) {
  .cta-band p { font-size: 1rem; padding-inline: 8px; }
}


/* ===== Hero déploiement — chariot, camion, avion ===== */
.page-hero { overflow: visible; }
.depl-scene {
  position: absolute;
  right: clamp(8px, 4vw, 64px); top: 50%;
  transform: translateY(-42%);
  width: clamp(280px, 32vw, 420px); aspect-ratio: 1 / 1;
  z-index: 0; pointer-events: none;
  animation: deplAppear .6s ease .4s both;
}
.depl-scene svg { width: 100%; height: 100%; display: block; overflow: visible; position: relative; z-index: 1; }
.depl-scene__glow {
  position: absolute; left: -13%; top: 6%; width: 80%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,27,31,.18), rgba(155,27,31,0) 68%);
  filter: blur(26px); z-index: 0;
  animation: deplGlow 5s ease-in-out infinite;
}
.depl-fill { fill: #fff; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
.depl-line { stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.depl-wheel { fill: #fff; stroke: var(--red); stroke-width: 2.5; }
.depl-hub { fill: var(--red); }
.depl-origin { fill: var(--red); }
.depl-pin { fill: var(--red); stroke: none; }
.depl-pin-eye { fill: #fff; }

/* route : les pointillés défilent → le camion roule */
.depl-ground { stroke: rgba(155,27,31,.18); stroke-width: 2; }
.depl-road { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 20 16; animation: deplRoad 1s linear infinite; }

/* caisse du chariot : montée / descente */
.depl-crate { animation: deplLift 3.2s ease-in-out infinite; }

/* avion : traînée pointillée (révélée par le clip à l'intro) */
.depl-trail { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 9 9; opacity: .8; }

@keyframes deplAppear { from { opacity: 0; } to { opacity: 1; } }
@keyframes deplGlow { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes deplRoad { to { stroke-dashoffset: -36; } }
@keyframes deplLift { 0%,100% { transform: translateY(6px); } 50% { transform: translateY(-16px); } }

@media (max-width: 860px) { .depl-scene { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .depl-scene, .depl-scene__glow, .depl-road, .depl-crate { animation: none; }
}

/* ===== Lot 3d — paddings de sections (ex-inline) ===== */
#phases { padding-top: clamp(36px,5vw,60px); }

/* ===== Lot 3e ===== */
.step__visual img.depl-param-img { max-height: 90px; margin-top: -1px; }
