/* ============================================================ */
/* PARALLAX — Section Mission / Impact                            */
/* ============================================================ */

.parallax-impact {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* effet parallax */
  overflow: hidden;
  isolation: isolate;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,16,.80) 0%, rgba(8,10,16,.62) 40%, rgba(8,10,16,.90) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(227,28,61,.14), transparent 55%);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 110px 24px;
}

.pi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 26px;
  justify-content: center;
  width: 100%;
}

/* Titre éditorial — police serif chaleureuse et variable, contraste
   volontaire avec le Bricolage Grotesque utilisé partout ailleurs.
   L'italique sert uniquement le mot clé pour créer une inflexion vocale. */
.pi-titre-serif {
  font-family: "Fraunces", "Bricolage Grotesque", serif;
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.22;
  color: #fff;
  max-width: 780px;
  margin: 0 auto 22px;
  letter-spacing: -.01em;
}
.pi-titre-serif em {
  font-style: italic;
  font-weight: 500;
  color: var(--rouge, #E31C3D);
}

.pi-sub {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
  max-width: 540px;
  margin: 0 auto 48px;
}

/* --- Console d'impact : lecture "système actif" en direct --- */
.pi-console {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  background: rgba(12,15,22,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.10);
  border-left: 3px solid var(--rouge, #E31C3D);
  border-radius: 12px;
  padding: 22px 28px 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  overflow: hidden;
}

/* balayage lumineux discret, façon écran de contrôle */
.pi-console::before {
  content: "";
  position: absolute;
  inset: -50% 0 auto 0;
  height: 200%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.035) 45%, transparent 55%);
  animation: consoleScan 7s linear infinite;
  pointer-events: none;
}
@keyframes consoleScan {
  from { transform: translateY(-15%); }
  to   { transform: translateY(65%); }
}

.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: consolePulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes consolePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.console-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: #fff;
}
.console-title-dim { color: rgba(255,255,255,.4); }

.console-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  padding: 9px 0;
}
.console-line + .console-line { border-top: 1px dashed rgba(255,255,255,.06); }

.console-prompt {
  color: var(--rouge, #E31C3D);
  font-weight: 600;
}
.console-metric {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.console-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
}
.console-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--rouge, #E31C3D);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================================ */
/* PARALLAX — Section CTA "Passons à l'action"                    */
/* ============================================================ */

.parallax-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* effet parallax */
  background-color: transparent !important; /* neutralise bg-alt hérité */
  isolation: isolate;
  overflow: hidden;
}

.parallax-overlay-cta {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(8,10,16,.88) 0%, rgba(20,10,14,.72) 55%, rgba(8,10,16,.90) 100%);
}

.parallax-cta .container { position: relative; z-index: 2; }

/* La carte CTA devient un panneau vitré flottant au-dessus de la photo */
.cta-glass {
  background: rgba(14,16,22,.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65);
}
.parallax-cta .cta-titre,
.parallax-cta .cta-desc,
.parallax-cta .s-label { color: #fff; }
.parallax-cta .cta-desc { color: rgba(255,255,255,.7); }

/* ============================================================ */
/* Fallback mobile — background-attachment:fixed est instable      */
/* sur iOS/Android : on repasse en scroll normal sous 768px.        */
/* ============================================================ */
@media (max-width: 768px) {
  .parallax-impact, .parallax-cta {
    background-attachment: scroll;
  }
  .parallax-impact { min-height: auto; }
  .parallax-content { padding: 76px 20px; }
  .pi-console { padding: 18px 20px 20px; }
  .console-line { gap: 8px; }
  .console-desc { font-size: 12.5px; }
}