/* Enterprise : plan interactif de l'organisation (pièces, postes, salle serveur), registre, règles, appel au pilote. */

/* ---------- Hero ---------- */

.ep-hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(244, 81, 30, 0.28), transparent 66%),
    var(--ps-ember);
}

.ep-hero-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 104px;
}

.ep-hero-copy {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.ep-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid rgba(255, 138, 76, 0.4);
  border-radius: var(--ps-radius-pill);
  background: rgba(255, 138, 76, 0.14);
  color: var(--ps-peach-light);
  font-size: 14px;
}

.ep-pill-tag {
  padding: 3px 10px;
  border-radius: var(--ps-radius-pill);
  background: var(--ps-orange-light);
  color: var(--ps-ember);
  font-weight: 700;
}

.ep-h1 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-family: var(--ps-font-sans);
  font-size: clamp(46px, 5.4vw, 86px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.ep-lead {
  max-width: 30em;
  color: var(--ps-muted-dark);
  font-size: 20px;
  line-height: 1.5;
}

.ep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.ep-btn {
  min-height: 56px;
  padding: 17px 28px;
  font-size: 17px;
}

.ps-page main .ep-more {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.ps-page main .ep-more:hover {
  color: var(--ps-peach-light);
}

/* ---------- Plan de l'organisation ---------- */

/* Base de 640 px : la colonne passe sous le texte avant d'être plus étroite que le plan. */
.ep-hero-scene {
  flex: 1 1 640px;
  min-width: 0;
}

.ep-scene {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.ep-plan {
  position: relative;
  width: 640px;
  height: 430px;
  margin: 0 auto;
}

.ep-wall {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 500px;
  height: 350px;
  border: 3px solid var(--ps-orange-light);
  border-radius: 6px;
  background-image:
    linear-gradient(rgba(255, 138, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 76, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 0 0 40px rgba(255, 138, 61, 0.15);
}

.ep-wl {
  position: absolute;
  top: -11px;
  left: 14px;
  padding: 0 8px;
  background: var(--ps-ember);
  color: var(--ps-orange-light);
  font-family: var(--ps-font-mono);
  font-size: 11px;
}

.ep-room {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 138, 76, 0.3);
  border-radius: 4px;
  background: rgba(18, 10, 6, 0.6);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

.ep-room[aria-pressed="true"] {
  border-color: var(--ps-orange-light);
  background: rgba(255, 138, 61, 0.12);
}

.ep-room--redac { top: 40px; left: 30px; width: 250px; height: 150px; }
.ep-room--studio { top: 40px; left: 300px; width: 190px; height: 150px; }
.ep-room--conf { top: 210px; left: 30px; width: 180px; height: 140px; }
.ep-room--srv { top: 210px; left: 230px; width: 260px; height: 140px; }

.ep-rn {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 14px;
  font-weight: 800;
}

.ep-rs {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: var(--ps-peach);
  font-family: var(--ps-font-mono);
  font-size: 10px;
}

.ep-desk {
  position: absolute;
  top: 56px;
  left: 18px;
  width: 44px;
  height: 30px;
  border: 1.5px solid var(--ps-orange-light);
  border-radius: 4px;
  background: var(--ps-ember-card);
}

.ep-desk--2 { left: 76px; }
.ep-desk--3 { left: 134px; }

.ep-desk::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 14px;
  width: 14px;
  height: 6px;
  border-radius: 1px;
  background: var(--ps-orange-light);
}

.ep-hsm {
  position: absolute;
  top: 46px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 50px;
  border-radius: 6px;
  background: var(--ps-orange-light);
  box-shadow: 0 0 24px rgba(255, 138, 61, 0.6);
  color: var(--ps-ember);
  font-family: var(--ps-font-mono);
  font-size: 12px;
  font-weight: 700;
}

.ep-con {
  position: absolute;
  top: 46px;
  left: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border: 1.5px solid rgba(255, 220, 200, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

/* Paquets qui circulent entre les pièces, sans jamais franchir le mur. */
.ep-pk {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ps-orange-light);
  box-shadow: 0 0 10px 2px rgba(255, 138, 61, 0.7);
  pointer-events: none;
}

.ep-pk1 { top: 180px; left: 150px; animation: ep-a 3.2s ease-in-out infinite; }
.ep-pk2 { top: 180px; left: 390px; animation: ep-b 3.2s ease-in-out 0.8s infinite; }
.ep-pk3 { top: 270px; left: 180px; animation: ep-c 3.2s ease-in-out 1.6s infinite; }

@keyframes ep-a {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  80% { opacity: 1; transform: translate(170px, 80px); }
  100% { opacity: 0; transform: translate(170px, 80px); }
}

@keyframes ep-b {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  80% { opacity: 1; transform: translate(-40px, 80px); }
  100% { opacity: 0; transform: translate(-40px, 80px); }
}

@keyframes ep-c {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  80% { opacity: 1; transform: translate(120px, 0); }
  100% { opacity: 0; transform: translate(120px, 0); }
}

.ep-out {
  position: absolute;
  top: 120px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 110px;
  padding: 12px;
  border: 1.5px dashed rgba(255, 211, 189, 0.35);
  border-radius: 12px;
  color: #c7ab9d;
  font-size: 12px;
  text-align: center;
}

.ep-out strong {
  color: #fff;
  font-size: 14px;
}

.ep-x {
  color: #ef6f88;
  font-family: var(--ps-font-mono);
  font-weight: 700;
}

/* Fiche de la pièce sélectionnée. */
.ep-details {
  box-sizing: border-box;
  max-width: 600px;
  min-height: 130px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-radius-md);
  background: var(--ps-ink);
}

.ep-detail-sub {
  display: block;
  color: var(--ps-orange-light);
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.ep-detail-name {
  display: block;
  margin: 2px 0 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.ep-detail-text {
  color: var(--ps-muted-dark);
  font-size: 19px;
  line-height: 1.55;
}

/* ---------- Règles ---------- */

.ep-rules-section {
  gap: 36px;
}

.ep-rules-title {
  max-width: 11em;
  font-size: clamp(48px, 6.4vw, 104px);
}

.ep-rules {
  border-bottom: 1.5px solid #fff;
}

.ep-rules li {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1.5px solid #fff;
}

.ep-rules .f-rules-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ep-rules .f-rules-text {
  max-width: 40em;
  color: var(--ps-muted-dark);
  font-size: 19px;
  line-height: 1.55;
}


/* ---------- Appel au pilote ---------- */

.ep-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.ep-cta-title {
  max-width: 12em;
  min-width: 0;
  color: #fff;
  font-size: clamp(48px, 7vw, 116px);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.ep-cta-side {
  display: flex;
  max-width: 34em;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ep-cta-lead {
  color: var(--ps-muted-dark);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.ep-cta-side .ep-btn {
  align-self: flex-start;
}

.ep-cta-more {
  color: var(--ps-faint-dark);
  font-size: 17px;
}

.ps-page main .ep-cta-more a {
  color: var(--ps-peach);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.ps-page main .ep-cta-more a:hover {
  color: #fff;
}

/* ---------- Règles de la revue (accueil = référence) ---------- */

/* Titre puis sous-titre empilés, comme sur toutes les sections. */
.ep-head {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
}

.ep-head > .ep-sub {
  flex: none;
  max-width: 34em;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

/* Texte des lignes du registre au gabarit des sous-titres. */
.ps-page main .f-led-text {
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}



/* Lien secondaire : même forme que « Voir le process » de l'accueil. */
.ps-page main .ep-link {
  align-self: flex-start;
  color: var(--ps-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.ps-page main .ep-link:hover {
  color: var(--ps-orange-dark);
}

/* Note sous un bloc : liste à coches de l'accueil, version fond clair. */
.ep-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--ps-muted-light);
  font-size: 16px;
  list-style: none;
}

.ep-note li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 46em;
}

/* Même pastille à coche que les notes de l'accueil. */
.ep-note li::before {
  content: "✓";
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(244, 81, 30, 0.14);
  color: var(--ps-orange-dark);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Mobile et mouvement réduit ---------- */

@media (max-width: 900px), (hover: none) {
  .ep-pk {
    animation: none;
    opacity: 0.6;
  }
}

/* Le plan rétrécit avec zoom ; la fiche reste à taille réelle pour rester lisible. */
@media (max-width: 900px) {
  .ep-hero-wrap {
    padding-top: 32px;
  }

  .ep-h1 {
    font-size: clamp(42px, 12.5vw, 64px);
  }

  .ep-zoom {
    zoom: 0.62;
  }
}

@media (max-width: 480px) {
  .ep-zoom {
    zoom: 0.52;
  }
}

@media (max-width: 380px) {
  .ep-zoom {
    zoom: 0.48;
  }
}

@media (max-width: 340px) {
  .ep-zoom {
    zoom: 0.43;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-pk {
    animation: none;
    opacity: 0.6;
  }

  .ep-room {
    transition: none;
  }
}

/* ---------- Revue : couleurs de marque, fond sans carreaux, liste « n'est pas » ---------- */
