/* ═══════════════════════════════════════════════════ */
/* ═══ Pages R&D, Signature & Composants (a2i-rd-*) ═══ */
/* ═══════════════════════════════════════════════════ */

/* Accroche signature dans le footer : pas de justification ni césure */
.a2i-page .a2i-footer-e__brand-desc .a2i-footer-sig {
  display: block;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Tokens de signature du pitch (Hero accueil & Footer) */
.a2i-sig-tok {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 5px;
  vertical-align: baseline;
}

.a2i-sig-tok--v {
  background: rgba(102, 126, 234, 0.22);
  color: #c4b5fd;
}

.a2i-sig-tok--g {
  background: rgba(134, 239, 172, 0.16);
  color: var(--a2-corp-green-light, #86efac);
}

.a2i-hero__sig {
  margin: 14px auto 18px;
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.a2i-hero__sig em {
  font-style: italic;
  color: #f8fafc;
}

/* Conteneur centré pour les sections R&D sur l'accueil (ex. #a2i-axes) */
.a2i-rd-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  box-sizing: border-box;
}

/* Grille générique R&D (3 colonnes desktop, 1 colonne mobile) */
.a2i-rd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.a2i-rd-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a2i-rd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  background: linear-gradient(160deg, rgba(20, 20, 30, 0.76), rgba(12, 12, 20, 0.56));
  border: 1px solid var(--a2-corporate-border);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.a2i-rd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a2-corporate-2), transparent);
  opacity: 0.7;
}

.a2i-rd-card--vert {
  border-color: var(--a2-corp-green-border);
}

.a2i-rd-card--vert::before {
  background: linear-gradient(90deg, transparent, var(--a2-corp-green-light), transparent);
}

.a2i-rd-card:hover {
  transform: translateY(-3px);
  border-color: var(--a2-corporate-2);
  box-shadow: 0 12px 34px var(--a2-corporate-glow);
}

.a2i-rd-card--vert:hover {
  border-color: var(--a2-corp-green-light);
  box-shadow: 0 12px 34px var(--a2-corp-green-bg);
}

.a2i-rd-card__code {
  align-self: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--a2-corporate-2);
  background: rgba(102, 126, 234, 0.14);
  border: 1px solid var(--a2-corporate-border);
}

.a2i-rd-card--vert .a2i-rd-card__code {
  color: var(--a2-corp-green-light);
  background: var(--a2-corp-green-bg);
  border-color: var(--a2-corp-green-border);
}

.a2i-rd-card__titre {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.a2i-page .a2i-rd-card__texte {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.62;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

.a2i-rd-card__lien {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--a2-corp-green-light);
  text-decoration: none;
}

.a2i-rd-card__lien:hover {
  text-decoration: underline;
}

/* Pastilles langues / axes */
.a2i-rd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.a2i-rd-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(102, 126, 234, 0.14);
  border: 1px solid var(--a2-corporate-border);
}

.a2i-rd-pill--vert {
  color: var(--a2-corp-green-light);
  background: var(--a2-corp-green-bg);
  border-color: var(--a2-corp-green-border);
}

/* Encart passerelle (lien vidéo, lien veille sécurité, lien JSON-LD) */
.a2i-rd-bridge {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(16, 36, 28, 0.65), rgba(14, 15, 24, 0.72));
  border: 1px solid var(--a2-corp-green-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.a2i-page .a2i-rd-bridge__texte {
  margin: 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.55;
  flex: 1 1 280px;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

.a2i-rd-bridge__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Boutons d'action (alignés sur le style corporate des boutons du site) */
.a2i-rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--a2-corporate-border);
  background: rgba(102, 126, 234, 0.08);
  color: #c7b9ff;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s, background 0.25s;
}

.a2i-rd-btn:hover {
  border-color: var(--a2-corporate-2);
  background: rgba(102, 126, 234, 0.18);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--a2-corporate-glow);
}

.a2i-rd-btn--primaire {
  border-color: var(--a2-corp-green-border);
  background: var(--a2-corp-green-bg);
  color: var(--a2-corp-green-light);
}

.a2i-rd-btn--primaire:hover {
  border-color: var(--a2-corp-green-light);
  background: rgba(74, 222, 128, 0.22);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--a2-corp-green-bg);
}

/* Page /graphe — visualisation KG interactive */
.a2i-graph-stage {
  margin-top: 22px;
  background: rgba(9, 10, 18, 0.86);
  border: 1px solid var(--a2-corporate-border);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.a2i-graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.a2i-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.a2i-graph-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 126, 234, 0.25);
  background: rgba(15, 17, 28, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.76rem;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.a2i-graph-legend__item:hover,
.a2i-graph-legend__item.is-active {
  border-color: var(--a2-corp-green-light);
  background: rgba(134, 239, 172, 0.14);
  color: #ffffff;
}

.a2i-graph-legend__item.is-dim {
  opacity: 0.45;
}

.a2i-graph-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.a2i-graph-page .a2i-wrap:has(.a2i-graph-stage--full) {
  z-index: 1001;
}

.a2i-graph-stage--full {
  position: fixed;
  inset: 0;
  z-index: 950;
  margin: 0;
  border-radius: 0;
  border: none;
  background: #07080f;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: auto;
}

.a2i-graph-stage--full .a2i-graph-svg {
  flex: 1 1 auto;
  height: min(74dvh, 760px);
}

.a2i-graph-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.a2i-graph-svg {
  width: 100%;
  height: 520px;
  display: block;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, rgba(102, 126, 234, 0.09), transparent 62%), #080911;
  touch-action: none;
}

.a2i-graph-info {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(20, 22, 36, 0.82);
  border: 1px solid var(--a2-corporate-border);
  font-size: 0.84rem;
  color: #e2e8f0;
  min-height: 54px;
  overflow-wrap: anywhere;
}

.a2i-graph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Tableau registre Veille sécurité */
.a2i-veille-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--a2-corporate-border);
}

.a2i-veille-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: rgba(14, 15, 24, 0.75);
}

.a2i-veille-table th,
.a2i-veille-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(102, 126, 234, 0.18);
  vertical-align: top;
}

.a2i-veille-table thead th {
  background: rgba(102, 126, 234, 0.14);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a2i-veille-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--a2-corp-green-bg);
  color: var(--a2-corp-green-light);
  border: 1px solid var(--a2-corp-green-border);
}

/* Ligne du temps verticale graduée — page Genèse (.a2i-genese-flow) */
.a2i-genese-flow {
  position: relative;
  margin: 34px 0 12px;
  padding: 0 0 0 54px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.a2i-genese-flow::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 19px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--a2-corporate-2) 0%,
    var(--a2-corporate-2) 45%,
    var(--a2-corp-green-light) 100%
  );
  opacity: 0.7;
}

.a2i-genese-flow__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.a2i-genese-flow__node {
  position: absolute;
  left: -54px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--a2-corporate-2);
  background: #0d0f1a;
  border: 2px solid var(--a2-corporate-2);
  box-shadow: 0 0 18px rgba(102, 126, 234, 0.28);
  z-index: 2;
}

.a2i-genese-flow__node::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--a2-corporate-border);
}

.a2i-genese-flow__item--vert .a2i-genese-flow__node {
  color: var(--a2-corp-green-light);
  border-color: var(--a2-corp-green-light);
  box-shadow: 0 0 18px rgba(134, 239, 172, 0.25);
}

.a2i-genese-flow__item--vert .a2i-genese-flow__node::after {
  background: var(--a2-corp-green-border);
}

.a2i-genese-flow__card {
  flex: 1;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(20, 20, 32, 0.78), rgba(12, 12, 20, 0.56));
  border: 1px solid var(--a2-corporate-border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.a2i-genese-flow__item--vert .a2i-genese-flow__card {
  border-color: var(--a2-corp-green-border);
  background: linear-gradient(155deg, rgba(16, 36, 28, 0.62), rgba(12, 14, 22, 0.66));
}

.a2i-genese-flow__card:hover {
  transform: translateX(4px);
  border-color: var(--a2-corporate-2);
  box-shadow: 0 10px 30px var(--a2-corporate-glow);
}

.a2i-genese-flow__item--vert .a2i-genese-flow__card:hover {
  border-color: var(--a2-corp-green-light);
  box-shadow: 0 10px 30px var(--a2-corp-green-bg);
}

.a2i-genese-flow__titre {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.a2i-page .a2i-genese-flow__texte {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Vignettes haute résolution cliquables → lightbox (#a2i-lightbox) */
.a2i-rd-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.a2i-rd-shots--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

.a2i-rd-shot {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(14, 16, 26, 0.82);
  border: 1px solid var(--a2-corporate-border);
  cursor: zoom-in;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.a2i-rd-shot:hover {
  transform: translateY(-2px);
  border-color: var(--a2-corp-green-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.a2i-rd-shot__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #090a12;
}

.a2i-rd-shot__zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(10, 12, 20, 0.86);
  border: 1px solid var(--a2-corp-green-border);
  color: var(--a2-corp-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  pointer-events: none;
}

.a2i-rd-shot figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #cbd5e1;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}

@media (max-width: 900px) {
  .a2i-rd-shots {
    grid-template-columns: 1fr;
  }
  .a2i-rd-grid,
  .a2i-rd-grid--2 {
    grid-template-columns: 1fr;
  }
  .a2i-graph-svg {
    height: 400px;
  }
}
