/* STCONSEIL — enrichissement visuel 1.19
   Des touches graphiques sobres, sans modifier la charte ni le positionnement. */

.visual-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(155,111,190,.23) 0 12%, transparent 38%),
    radial-gradient(circle at 12% 110%, rgba(123,79,158,.18) 0 14%, transparent 40%),
    linear-gradient(135deg, #4a4650 0%, #39343f 72%, #312b38 100%);
}

.visual-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 58%, #000 100%);
}

.visual-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 64px;
  align-items: center;
}

.visual-hero__content h1 {
  max-width: 720px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 54px);
}

.visual-hero__content .lead {
  max-width: 700px;
  color: rgba(255,255,255,.78);
}

.visual-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.visual-panel {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  color: #2a2730;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(18,14,22,.24);
  transform: rotate(1.4deg);
}

.visual-panel::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(123,79,158,.09);
}

.visual-panel__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: #7b4f9e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.visual-panel__title {
  position: relative;
  z-index: 1;
  max-width: 290px;
  margin-bottom: 24px;
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}

.visual-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e0dde3;
  color: #6e6a73;
  font-size: 12px;
}

.visual-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #7b4f9e;
  box-shadow: 0 0 0 5px rgba(123,79,158,.1);
}

/* Accueil : cartographie des activités */
.network-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  grid-template-rows: 1fr 76px 1fr;
  min-height: 190px;
  align-items: center;
  justify-items: center;
}

.network-map::before,
.network-map::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 1px;
  background: #d7c8e3;
}

.network-map::after { transform: rotate(90deg); }

.network-map__core {
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #7b4f9e;
  box-shadow: 0 0 0 10px #f4eef8, 0 12px 24px rgba(123,79,158,.24);
  font-family: 'DM Serif Display', serif;
  font-size: 23px;
}

.network-map__node {
  z-index: 2;
  width: 100%;
  max-width: 118px;
  padding: 9px 10px;
  border: 1px solid #e0dde3;
  border-radius: 8px;
  background: #fff;
  color: #4a4650;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 6px 18px rgba(74,70,80,.08);
}

.network-map__node:nth-child(2) { grid-column: 1; grid-row: 1; }
.network-map__node:nth-child(3) { grid-column: 3; grid-row: 1; }
.network-map__node:nth-child(4) { grid-column: 1; grid-row: 3; }
.network-map__node:nth-child(5) { grid-column: 3; grid-row: 3; }

/* Infogérance : état de l'informatique */
.status-stack { display: grid; gap: 10px; }
.status-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e7e2ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(74,70,80,.05);
}
.status-row__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: #7b4f9e;
  background: #f2eaf7;
  font-weight: 700;
}
.status-row strong { display: block; font-size: 13px; line-height: 1.25; }
.status-row small { display: block; color: #6e6a73; font-size: 11px; line-height: 1.35; }
.status-row__state {
  padding: 4px 8px;
  border-radius: 999px;
  color: #176c51;
  background: #e1f5ee;
  font-size: 10px;
  font-weight: 700;
}

/* Conseil : trajectoire lisible */
.route-map { position: relative; display: grid; gap: 12px; }
.route-map::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 20px;
  width: 2px;
  background: linear-gradient(#d8c9e4, #7b4f9e);
}
.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 0;
}
.route-step__number {
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d7c8e3;
  border-radius: 50%;
  color: #7b4f9e;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.route-step:last-child .route-step__number { color: #fff; background: #7b4f9e; }
.route-step strong { display: block; font-size: 14px; }
.route-step span { display: block; color: #6e6a73; font-size: 11px; }

/* Management de transition : séquence de mission */
.mission-sequence { display: grid; gap: 12px; }
.mission-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0dde3;
  border-radius: 10px;
  background: #fff;
}
.mission-item:nth-child(2) {
  margin-left: 14px;
  border-color: #c9abd9;
  background: #f7f3fb;
}
.mission-item:nth-child(3) { margin-left: 28px; }
.mission-item__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #7b4f9e;
  font-weight: 700;
}
.mission-item strong { display: block; font-size: 14px; }
.mission-item small { display: block; color: #6e6a73; font-size: 11px; }

/* À propos : présence humaine */
.visual-panel--portrait { padding: 0; background: #f7f3fb; }
.visual-panel--portrait::before { display: none; }
.visual-panel--portrait img {
  display: block;
  width: 100%;
  height: 258px;
  object-fit: cover;
  object-position: center 34%;
}
.portrait-caption { padding: 20px 24px 22px; }
.portrait-caption strong { display: block; font-size: 16px; }
.portrait-caption span { color: #6e6a73; font-size: 12px; }
.portrait-caption p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0dde3;
  color: #4a4650;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  line-height: 1.35;
}

/* Contact : engagements de réponse */
.contact-promises { display: grid; gap: 10px; }
.contact-promise {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e0dde3;
}
.contact-promise:last-child { border-bottom: 0; }
.contact-promise__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #7b4f9e;
  background: #ede5f4;
  font-size: 13px;
  font-weight: 700;
}
.contact-promise strong { display: block; font-size: 14px; }
.contact-promise span { display: block; color: #6e6a73; font-size: 11px; }

/* Rythme visuel des sections */
.surface-section { position: relative; overflow: hidden; }
.surface-section::before {
  content: "";
  position: absolute;
  right: -130px;
  top: 40px;
  width: 310px;
  height: 310px;
  pointer-events: none;
  border: 1px solid rgba(123,79,158,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(123,79,158,.025), 0 0 0 84px rgba(123,79,158,.018);
}
.surface-section > .container { position: relative; z-index: 1; }

.campaign-callout {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 24px 26px;
  border: 1px solid #d7c8e3;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff 0%, #f7f3fb 100%);
  box-shadow: 0 12px 30px rgba(74,70,80,.06);
}
.campaign-callout__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #7b4f9e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.campaign-callout strong { display: block; margin-bottom: 3px; font-size: 16px; }
.campaign-callout p { color: #6e6a73; font-size: 13px; line-height: 1.5; }
.campaign-callout a { color: #7b4f9e; font-size: 13px; font-weight: 700; white-space: nowrap; }

.section-label { display: flex; align-items: center; gap: 10px; }
.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: 0 0 26px;
  background: currentColor;
  opacity: .7;
}

@media (prefers-reduced-motion: no-preference) {
  .visual-panel { transition: transform .25s ease, box-shadow .25s ease; }
  .visual-panel:hover { transform: rotate(.4deg) translateY(-3px); box-shadow: 0 30px 68px rgba(18,14,22,.28); }
}

@media (max-width: 900px) {
  .visual-hero { padding: 62px 0; }
  .visual-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .visual-panel { width: min(100%, 520px); transform: none; }
  .visual-panel:hover { transform: translateY(-3px); }
}

@media (max-width: 700px) {
  nav { padding: 0 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 9px 13px !important; }
  .container { padding-right: 22px; padding-left: 22px; }
  .visual-hero { padding: 50px 0; }
  .visual-hero__content h1 { font-size: 39px; }
  .visual-panel { min-height: 0; padding: 22px; border-radius: 14px; }
  .network-map { min-height: 184px; }
  .visual-panel--portrait { padding: 0; }
  .visual-panel--portrait img { height: 300px; }
  .surface-section::before { display: none; }
  .section [style*="grid-template-columns:1fr 1fr 1fr"],
  .section [style*="grid-template-columns:1fr 1fr"],
  .section [style*="grid-template-columns:300px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  footer { padding: 42px 22px; }
  .campaign-callout { grid-template-columns: 50px 1fr; }
  .campaign-callout__mark { width: 50px; height: 50px; }
  .campaign-callout a { grid-column: 1 / -1; white-space: normal; }
}

@media (max-width: 420px) {
  .visual-hero__content h1 { font-size: 35px; }
  .network-map { grid-template-columns: 1fr 64px 1fr; }
  .network-map__core { width: 60px; height: 60px; font-size: 19px; }
  .network-map__node { font-size: 10px; }
  .mission-item:nth-child(2), .mission-item:nth-child(3) { margin-left: 0; }
}
