/* ==========================================================================
   SWVERTEX : composants des pages secondaires (Services, Réalisations,
   À propos, Mentions légales). Étend style.css, ne redéfinit aucun token.
   ========================================================================== */

/* ---------- Page header (fil d'Ariane + titre) ---------- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: 176px;
  padding-bottom: 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 18ch; }
.page-hero h1 .hl { color: var(--blue); }
.page-hero .lede { margin-top: 20px; max-width: 58ch; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.7; }

@media (max-width: 860px) {
  .page-hero { padding-top: 140px; padding-bottom: 48px; }
}

/* ---------- Variante hero avec photo de fond (ex. Services) ---------- */
.page-hero--photo {
  position: relative;
  background: linear-gradient(125deg, var(--blue-ink) 0%, #152066 38%, var(--blue-dark) 72%, var(--blue) 100%);
  border-bottom: none;
  color: #fff;
  overflow: hidden;
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px circle at 12% 18%, rgba(108, 147, 255, 0.4), transparent 60%),
    radial-gradient(520px circle at 92% 82%, rgba(255, 255, 255, 0.12), transparent 55%);
}
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: url("/favicon/favicon.svg") center / 480px no-repeat;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-hero--photo .wrap { position: relative; z-index: 1; }

.page-hero__panel {
  display: inline-block;
  max-width: 620px;
  padding: 36px 42px;
  border-radius: var(--radius-l);
  background: rgba(8, 11, 22, 0.42);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.page-hero--photo .breadcrumb, .page-hero--photo .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero--photo .breadcrumb .current { color: #fff; }
.page-hero--photo .breadcrumb a:hover { color: #fff; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .lede { color: rgba(255,255,255,0.82); }

@media (max-width: 640px) {
  .page-hero__panel { padding: 28px 24px; max-width: 100%; }
}

.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.page-hero--photo .hero__visual { height: 340px; }
@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero--photo .hero__visual { height: 300px; max-width: 360px; margin: 0 auto; }
}

/* ---------- Service card (numbered) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.service-card:hover::before { opacity: 1; }
.service-card__num { font-size: 0.82rem; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; }
.service-card h3 { font-size: 1.25rem; margin-top: 14px; }
.service-card p { color: var(--muted); margin-top: 10px; line-height: 1.6; font-size: 0.96rem; }
.service-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.service-card__go svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.service-card:hover .service-card__go svg { transform: translate(3px, -3px); }

/* ---------- Sous-points numérotés d'une page Service (01.1, 01.2...) ---------- */
.service-subitems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .service-subitems { grid-template-columns: 1fr; } }

.service-subitem {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 28px 28px 32px;
}
.service-subitem::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.service-subitem__num { font-size: 0.8rem; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; }
.service-subitem h3 { font-size: 1.1rem; margin-top: 10px; }
.service-subitem p { color: var(--muted); margin-top: 8px; line-height: 1.6; font-size: 0.92rem; }

/* ---------- Encart "Pour qui / Technologies" (hero des pages Service) ---------- */
.service-hero { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
@media (max-width: 860px) { .service-hero { grid-template-columns: 1fr; } }

/* ---------- Renvoi vers les autres expertises ---------- */
.other-services { display: flex; flex-wrap: wrap; gap: 10px; }
.other-services a {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.other-services a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Secteurs d'intervention (sur fond .section-dark) ---------- */
.sectors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .sectors__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sectors__grid { grid-template-columns: 1fr; } }

.sector-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.sector-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.sector-card h3 { color: #fff; font-size: 1.05rem; }
.sector-card p { color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; line-height: 1.6; margin-top: 10px; }
.sector-card__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sector-card__links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #6c93ff;
  text-decoration: none;
}
.sector-card__links a:hover { color: #fff; }

/* ---------- Réalisation card (fusion Produits + Réalisations) ---------- */
.real-grid { display: grid; gap: 22px; }

.real-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  transition: border-color 0.2s, box-shadow 0.3s;
}
.real-card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -32px rgba(10,14,26,0.2); }
.real-card--reverse { grid-template-columns: 0.95fr 1.05fr; }
.real-card--reverse .real-card__media { order: 2; }
.real-card--reverse .real-card__body { order: 1; }

.real-card__media { position: relative; background: #eeece6; min-height: 280px; }
.real-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.real-card__media.icon-forward { background: var(--blue-ink); display: flex; align-items: center; justify-content: center; }
.real-card__media.icon-forward img { width: 72px; height: 72px; border-radius: 18px; }

.real-card__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.real-card__meta { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.real-card__body h3 { font-size: 1.5rem; }
.real-card__body p.desc { color: var(--muted); font-size: 1.02rem; line-height: 1.65; margin-top: 12px; }

.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.stack-pills span {
  font-size: 0.8rem; font-weight: 600; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft);
}

.real-card__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 860px) {
  .real-card, .real-card--reverse { grid-template-columns: 1fr; }
  .real-card--reverse .real-card__media,
  .real-card--reverse .real-card__body { order: initial; }
  .real-card__media { min-height: 200px; }
  .real-card__body { padding: 28px; }
}

/* ---------- Réalisation detail: hero + sidebar fact sheet ---------- */
.real-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.real-hero__shot { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: #eeece6; aspect-ratio: 16 / 9; }
.real-hero__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-hero__shot.icon-forward {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 60%), var(--blue-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.real-hero__shot.icon-forward::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: url("/favicon/favicon.svg") center / 260px no-repeat;
  opacity: 0.08;
  filter: brightness(0) invert(1);
}
.real-hero__shot.icon-forward img { width: 120px; height: 120px; object-fit: contain; border-radius: 24px; position: relative; z-index: 1; box-shadow: 0 20px 50px -14px rgba(0,0,0,0.5); }
.fact-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.fact-sheet dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 20px; }
.fact-sheet dt:first-child { margin-top: 0; }
.fact-sheet dd { font-size: 1rem; font-weight: 600; margin-top: 4px; }
.fact-sheet .btn { width: 100%; justify-content: center; margin-top: 24px; }

@media (max-width: 960px) {
  .real-hero { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 22px 2px; font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none; position: relative;
}
.faq-item .plus::before, .faq-item .plus::after { content: ""; position: absolute; background: var(--ink); transition: transform 0.25s var(--ease); }
.faq-item .plus::before { width: 9px; height: 1.5px; }
.faq-item .plus::after { width: 1.5px; height: 9px; }
.faq-item[open] .plus::after { transform: scaleY(0); }
.faq-item p { padding: 0 2px 24px; color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* ---------- CTA band (bleu plein, équivalent du jaune Neotic) ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-l);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -60px;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  background: url("/favicon/favicon.svg") center / contain no-repeat;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 22ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 14px; max-width: 48ch; margin-inline: auto; line-height: 1.6; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--blue); }
.cta-band .btn-primary:hover { background: #f1f1f1; box-shadow: none; }
.cta-band .btn-ghost-light:hover { border-color: #fff; }

/* ---------- Prose (mentions légales) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; font-size: 1rem; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin-top: 10px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Section tone variants ---------- */
.section-surface {
  background: var(--surface);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.section-surface::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(27,59,240,0.5) 50%, transparent);
}

.section-dark {
  background: var(--blue-ink);
  color: #fff;
  position: relative;
}
.section-dark::before,
.section-dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--blue-ink);
  pointer-events: none;
}
.section-dark::before { top: -39px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.section-dark::after { bottom: -39px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.section-dark .eyebrow { color: #6c93ff; }
.section-dark .eyebrow::before { background: #6c93ff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.68); }

@media (max-width: 960px) {
  .section-dark { padding-top: calc(76px + 20px); padding-bottom: calc(76px + 20px); }
}
