/* ============================================================
   LARUGA.FR — index.css  (v2 — animations enrichies)
   Hiérarchie visuelle : pôles > projets
   Dépend de : main.css
   ============================================================ */

/* ------------------------------------------------------------
   1. PROJECT INDEX wrapper (Démarrage direct sous le header fixe)
   ------------------------------------------------------------ */
.project-index {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-height, 60px) + 2.5rem);
  padding-bottom: var(--space-3xl);
}

/* ------------------------------------------------------------
   2. PREVIEW BACKGROUND SYSTEM — EFFET TÉLÉVISION CATHODIQUE VINTAGE (CRT TV)
   ------------------------------------------------------------ */
.preview-bg-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Trame cathodique continue — scanlines denses + masque de phosphore RVB (Trinitron) */
.preview-bg-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Lignes de balayage cathodique horizontales */
    repeating-linear-gradient(
      to bottom,
      rgba(10, 10, 8, 0.28) 0px,
      rgba(10, 10, 8, 0.28) 1.5px,
      transparent 1.5px,
      transparent 3.5px
    ),
    /* Grille de phosphore verticale RVB */
    repeating-linear-gradient(
      to right,
      rgba(255, 30, 30, 0.045) 0px,
      rgba(30, 255, 30, 0.045) 1px,
      rgba(30, 50, 255, 0.045) 2px,
      rgba(10, 10, 8, 0.16) 3px
    );
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Grain / bruit cathodique dynamique de vieille télévision (Static TV Snow Grain) */
.preview-crt-grain {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='crtNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23crtNoise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.4s ease;
  animation: crtGrainJitter 0.08s steps(3) infinite;
}

@keyframes crtGrainJitter {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.5%, 1.2%); }
  50%  { transform: translate(1.8%, -1.4%); }
  75%  { transform: translate(-1.2%, -1.8%); }
  100% { transform: translate(1.4%, 1.6%); }
}

/* Vignettage et courbure optique du tube en verre cathodique */
.preview-crt-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(15, 12, 10, 0.3) 75%,
    rgba(10, 8, 6, 0.65) 100%
  );
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Voile d'exposition chaud parchemin pour une lisibilité parfaite des textes */
.preview-bg-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(232, 228, 220, 0.35) 0%,
    rgba(232, 228, 220, 0.52) 50%,
    rgba(232, 228, 220, 0.85) 100%
  );
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.preview-bg-container.is-active::before,
.preview-bg-container.is-active::after,
.preview-bg-container.is-active .preview-crt-grain,
.preview-bg-container.is-active .preview-crt-vignette {
  opacity: 1;
}

/* Image d'archive : colorimétrie et phosphore CRT avec fondu enchaîné pur */
.preview-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  filter: contrast(1.10) brightness(0.96) saturate(1.15);
  transition:
    opacity 0.48s cubic-bezier(0.2, 0.8, 0.25, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.48s ease;
  will-change: opacity, transform;
  z-index: 1;
}

/* Image active : s'affiche par-dessus l'ancienne en fondu enchaîné doux */
.preview-bg.active {
  opacity: 1;
  transform: scale(1);
  filter: contrast(1.12) brightness(1) saturate(1.2);
  z-index: 3;
}

/* Image précédente en cours d'estompage : reste visible sous la nouvelle sans écran noir */
.preview-bg.fading-out {
  opacity: 0;
  transform: scale(1.008);
  filter: contrast(1.08) brightness(0.98) saturate(1.1);
  z-index: 2;
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.8, 0.25, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
/* ------------------------------------------------------------
   3. CHROMATIC IDENTITIES & POLE SECTIONS
   ------------------------------------------------------------ */
[data-pole="p01"] { --pole-accent: var(--color-p01); }
[data-pole="p02"] { --pole-accent: var(--color-p02); }
[data-pole="p03"] { --pole-accent: var(--color-p03); }
[data-pole="p04"] { --pole-accent: var(--color-p04); }
[data-pole="p05"] { --pole-accent: var(--color-p05); }
[data-pole="p06"] { --pole-accent: var(--color-p06); }
[data-pole="p07"] { --pole-accent: var(--color-p07); }
[data-pole="p08"] { --pole-accent: var(--color-p08); }
[data-pole="p09"] { --pole-accent: var(--color-p09); }

.pole-section {
  margin-bottom: 0;
  border-top: 1px solid rgba(26, 26, 24, 0.9);
  position: relative;
}

.pole-section:last-of-type {
  border-bottom: 1px solid rgba(26, 26, 24, 0.9);
}

/* — Pole Header — */
.pole-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2.25rem 2.5rem 2rem;
  border-top: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

/* Ligne colorée au survol */
.pole-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--pole-accent, var(--cardinal));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pole-header:hover::before {
  width: 100%;
}

.pole-header:hover {
  background-color: rgba(221, 216, 206, 0.32);
}

.pole-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.pole-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* — Archive technical index badge — */
.pole-code {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  color: var(--pole-accent, var(--cardinal));
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
}

.pole-code::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: var(--pole-accent, var(--cardinal));
  box-shadow: 0 0 8px var(--pole-accent, var(--cardinal));
}

/* — Compteur de projets masqué selon demande — */
.pole-count {
  display: none !important;
}

/* — Titre du pôle — Uniforme pour tous les pôles, retour à la responsive initiale — */
.pole-title,
.pole-label {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(28px, 5.5vw, 82px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--anthracite);
  text-transform: uppercase;
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  transition: color 0.25s ease;
}

.pole-header:hover .pole-title,
.pole-header:hover .pole-label {
  color: var(--pole-accent, var(--cardinal));
}

/* — Bouton toggle + / − sur la droite — */
.pole-toggle {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1;
  color: var(--anthracite);
  user-select: none;
  margin-left: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s ease;
}

.pole-header:hover .pole-toggle {
  color: var(--pole-accent, var(--cardinal));
}

.pole-header[aria-expanded="true"] .pole-toggle {
  color: var(--pole-accent, var(--cardinal));
}

/* ------------------------------------------------------------
   4. POLE PROJECTS LIST — Enroulé par défaut (Collapsed)
   ------------------------------------------------------------ */
.pole-projects {
  overflow: hidden;
  max-height: 4000px;
  opacity: 1;
  transition:
    max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
  padding-bottom: 2rem;
}

.pole-projects.collapsed {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.pole-projects li:first-child {
  border-top: 1px solid rgba(192, 187, 176, 0.35);
}

/* ------------------------------------------------------------
   5. PROJECT ENTRY ROW — plus discret que les titres de pôles
   ------------------------------------------------------------ */
.project-entry {
  display: grid;
  grid-template-columns: 130px 1fr auto auto;
  align-items: center;
  gap: 0 1.25rem;
  padding: 0.45rem 2rem;
  border-bottom: 1px solid rgba(192, 187, 176, 0.3);
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* Flash de fond depuis la gauche */
  background-image: linear-gradient(to right, var(--parchemin-mid) 0%, transparent 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease;
}

.project-entry:hover {
  background-size: 100% 100%;
}

.project-entry:last-child {
  border-bottom: none;
}

/* — Indicateur vertical coloré à gauche au survol — */
.project-entry::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 0%;
  background: var(--pole-accent, var(--cardinal));
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-entry:hover::before {
  height: 100%;
}

/* — Child projects — */
.project-entry.is-child {
  padding-left: calc(2.5rem + 130px + 1.25rem);
  background-color: rgba(232, 228, 220, 0.3);
}

.project-entry.is-child .project-entry-code { font-size: 9px; opacity: 0.6; }
.project-entry.is-child .project-entry-title { font-size: clamp(14px, 2vw, 28px); }
.project-entry.is-child:hover { background-size: 100% 100%; }

/* — Archive code — */
.project-entry-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mono-grey);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.project-entry:hover .project-entry-code {
  color: var(--pole-accent, var(--cardinal));
}

/* — Titre du projet — moins dominant que le titre de pôle — */
.project-entry-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 44px);
  color: var(--anthracite);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transition:
    color 0.3s ease,
    letter-spacing 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Soulignement qui grandit sous le titre au survol */
.project-entry-title::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pole-accent, var(--cardinal));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-entry:hover .project-entry-title {
  color: var(--pole-accent, var(--cardinal));
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(139, 26, 26, 0.35), 0.5px 0 0 rgba(220, 40, 40, 0.3), -0.5px 0 0 rgba(30, 90, 200, 0.2);
}

.project-entry:hover .project-entry-title::after {
  width: 100%;
}

/* Indicateur enfants */
.project-entry.has-children .project-entry-title::before {
  content: '';
}
.project-entry.has-children .project-entry-code::after {
  content: ' +';
  color: var(--pole-accent, var(--cardinal));
  font-size: 1.1em;
  font-weight: 700;
}

/* — Discipline — Pastille chic, affirmée & bien visible — */
.project-entry-discipline {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--anthracite);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(175, 170, 160, 0.9);
  padding: 0.32rem 0.95rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Pas de pastille vide quand la discipline n'est pas renseignée */
.project-entry-discipline:empty { display: none; }
.project-entry-discipline:empty + .project-entry-year { grid-column: -2 / -1; }

.project-entry:hover .project-entry-discipline {
  background: var(--white-warm);
  border-color: var(--pole-accent, var(--cardinal));
  color: var(--pole-accent, var(--cardinal));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* — Année — */
.project-entry-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--anthracite-light);
  letter-spacing: 0.06em;
  min-width: 55px;
  text-align: right;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.project-entry:hover .project-entry-year {
  color: var(--cardinal);
}

/* ------------------------------------------------------------
   6. ANIMATION D'ENTRÉE — les lignes arrivent en décalé
   ------------------------------------------------------------ */
@keyframes slideInRow {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealPole {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pole-section {
  animation: revealPole 0.6s var(--ease-out-expo) both;
}

/* Délai en cascade pour chaque pôle — JS peut aussi setter --delay */
.pole-section:nth-child(1) { animation-delay: 0.05s; }
.pole-section:nth-child(2) { animation-delay: 0.12s; }
.pole-section:nth-child(3) { animation-delay: 0.19s; }
.pole-section:nth-child(4) { animation-delay: 0.26s; }
.pole-section:nth-child(5) { animation-delay: 0.33s; }
.pole-section:nth-child(6) { animation-delay: 0.40s; }
.pole-section:nth-child(7) { animation-delay: 0.47s; }
.pole-section:nth-child(8) { animation-delay: 0.54s; }

.project-entry {
  animation: slideInRow 0.4s var(--ease-out-expo) both;
}

/* Décalage par position dans la liste */
.project-entry:nth-child(1)  { animation-delay: 0.0s; }
.project-entry:nth-child(2)  { animation-delay: 0.04s; }
.project-entry:nth-child(3)  { animation-delay: 0.08s; }
.project-entry:nth-child(4)  { animation-delay: 0.12s; }
.project-entry:nth-child(5)  { animation-delay: 0.16s; }
.project-entry:nth-child(6)  { animation-delay: 0.20s; }
.project-entry:nth-child(7)  { animation-delay: 0.24s; }
.project-entry:nth-child(8)  { animation-delay: 0.28s; }
.project-entry:nth-child(n+9){ animation-delay: 0.32s; }

/* ------------------------------------------------------------
   7. ÉTAT ACTIF — projet ouvert dans le tiroir
   ------------------------------------------------------------ */
.project-entry.active-entry {
  background-size: 100% 100%;
}

.project-entry.active-entry .project-entry-title {
  color: var(--pole-accent, var(--cardinal));
}

.project-entry.active-entry::before {
  height: 100%;
  background: var(--pole-accent, var(--cardinal));
}

.project-entry.active-entry .project-entry-code {
  color: var(--pole-accent, var(--cardinal));
}

/* ------------------------------------------------------------
   8. INTRO DU SITE — texte décoratif en haut de page
   ------------------------------------------------------------ */
.page-intro {
  padding: calc(var(--header-height) + 2rem) 2rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.page-intro-text {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cardinal);
  opacity: 0.7;
  display: block;
  animation: fadeIn 1s ease 0.3s both;
}

/* ------------------------------------------------------------
   9. LOADING STATE
   ------------------------------------------------------------ */
.loading-state {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 6rem 2rem;
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40%           { transform: translateY(-6px); opacity: 1; }
}

.loading-dot {
  width: 6px; height: 6px;
  background: var(--cardinal);
  border-radius: 50%;
  animation: dotBounce 1.2s ease infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.30s; }

/* Skeleton rows */
.project-entry-skeleton {
  display: grid;
  grid-template-columns: 130px 1fr auto auto;
  align-items: center;
  gap: 0 1.25rem;
  padding: 0.45rem 2rem;
  border-bottom: 1px solid rgba(192, 187, 176, 0.3);
}

.skeleton-block {
  height: 1em;
  background: linear-gradient(
    90deg,
    var(--parchemin-mid) 25%,
    var(--parchemin-dark) 50%,
    var(--parchemin-mid) 75%
  );
  background-size: 200% 100%;
  animation: pulse 1.4s ease infinite;
  border-radius: 1px;
}

.skeleton-block.wide   { width: 60%; }
.skeleton-block.narrow { width: 40%; }
.skeleton-block.short  { width: 30px; }

/* Empty pole */
.pole-projects-empty {
  padding: var(--space-lg) 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mono-grey);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   10. ADMIN ACCESS — lien discret dans le footer
   ------------------------------------------------------------ */
.footer-admin-link {
  font-family: var(--font-mono);
  font-size: 9px;
  color: transparent;
  letter-spacing: 0.05em;
  text-decoration: none;
  user-select: none;
  transition: color 0.5s ease;
  padding: 0.25rem;
}

.footer-admin-link:hover {
  color: var(--mono-grey);
}

/* ------------------------------------------------------------
   11. MOBILE — max-width 767px
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .project-entry {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.85rem 1.25rem;
    align-items: flex-start;
  }

  .project-entry-discipline {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 0.22rem 0.7rem;
    align-self: flex-start;
    margin-top: 0.25rem;
    border-radius: 3px;
  }

  .project-entry-title {
    font-size: clamp(18px, 6vw, 36px);
    line-height: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .project-entry-code { font-size: 10px; }
  .project-entry-year { text-align: left; min-width: unset; font-size: 11px; }

  .project-entry.is-child {
    padding-left: 1.5rem;
  }

  .project-entry.is-child .project-entry-title {
    font-size: clamp(15px, 5vw, 28px);
    line-height: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .pole-section {
    margin-bottom: 0;
    border-top: 1px solid rgba(26, 26, 24, 0.9);
  }

  .pole-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 0.95rem 1.25rem 0.85rem;
    row-gap: 0.25rem;
    column-gap: 0.75rem;
    align-items: center;
    scroll-margin-top: var(--header-height, 60px);
  }

  .pole-header-left {
    display: contents;
  }

  .pole-meta {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .pole-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
    color: var(--pole-accent, var(--cardinal));
  }

  .pole-toggle {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    justify-self: end;
    font-size: 20px;
    line-height: 1;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
  }

  /* Catégories discrètes, équilibrées et raffinées pour smartphones */
  .pole-title,
  .pole-label {
    grid-column: 1 / -1;
    grid-row: 2;
    font-family: var(--font-display);
    font-size: clamp(20px, 5.8vw, 30px);
    line-height: 0.96;
    letter-spacing: 0.02em;
    width: 100%;
    text-transform: uppercase;
    color: var(--anthracite);
    margin: 0;
    word-break: normal;
    overflow-wrap: break-word;
    opacity: 0.95;
  }

  .preview-bg-container { display: none; }
  .project-index { 
    padding-top: 70px;
    padding-bottom: 8rem;
  }

  .project-entry-skeleton {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ------------------------------------------------------------
   12. TABLET — 768px – 1024px
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1024px) {
  .project-entry {
    grid-template-columns: 110px 1fr auto auto;
    padding: 0.45rem 1.5rem;
  }

  .project-entry-title { font-size: clamp(18px, 2.8vw, 40px); }
  .project-entry-discipline { font-size: 12.5px; padding: 0.25rem 0.8rem; }

  .pole-code { font-size: 14px; }
}

/* ------------------------------------------------------------
   13. ÉCHOS & PRESSE SECTION (Indépendante des pôles créatifs)
   ------------------------------------------------------------ */
.echos-section {
  position: relative;
  z-index: 10;
  border-top: 2px solid var(--anthracite);
  padding: 4.5rem 2rem 6rem;
  background-color: var(--parchemin);
}

.echos-container {
  max-width: 1600px;
  margin: 0 auto;
}

.echos-header {
  margin-bottom: 3rem;
  max-width: 820px;
}

.echos-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cardinal);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.echos-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--cardinal);
}

.echos-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 110px);
  line-height: 0.88;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.echos-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--anthracite-light);
  max-width: 680px;
}

.echos-list {
  border-top: 1px solid rgba(192, 187, 176, 0.45);
}

@media (max-width: 767px) {
  .echos-section {
    padding: 3rem var(--space-md) 4rem;
  }
  .echos-title {
    font-size: clamp(36px, 12vw, 64px);
  }
}

/* ------------------------------------------------------------
   8. INTRO CURTAIN (SPLASH SCREEN AVEC GRILLE DE GLYPHES & CRT)
   ------------------------------------------------------------ */
/* Session-based splash skip (quand l'internaute est déjà entré sur le site) */
html.splash-already-dismissed #intro-curtain {
  display: none !important;
}
html.splash-already-dismissed body.has-intro-curtain {
  overflow: auto !important;
}
html.splash-already-dismissed .site-header {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.has-intro-curtain {
  overflow: hidden !important;
}

body.has-intro-curtain .site-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.site-header {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.site-header.revealed {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.intro-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #b63a3a 0%, #9e2a2a 50%, #7e1e1e 100%);
  color: #ffffff;
  user-select: none;
  cursor: pointer;
  overflow: hidden;
  transform-origin: center center;
  transition: opacity 0.3s ease;
}

/* Scanlines subtiles */
.intro-curtain-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(35, 8, 8, 0.24) 0px,
    rgba(35, 8, 8, 0.24) 1.5px,
    transparent 1.5px,
    transparent 3.5px
  );
  pointer-events: none;
  z-index: 4;
}

/* Vignettage bombé doux */
.intro-curtain-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    rgba(65, 12, 12, 0.32) 75%,
    rgba(45, 8, 8, 0.82) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* Grille matricielle ultra-dense de glyphes */
.intro-glyph-matrix {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  grid-auto-rows: 28px;
  gap: 3px;
  padding: 0.75rem;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  font-family: var(--font-mono, 'Space Mono');
  font-size: 11px;
  color: rgba(255, 235, 230, 0.32);
}

.intro-glyph-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.28;
  transition: color 0.14s ease, opacity 0.14s ease, text-shadow 0.14s ease, transform 0.14s ease;
}

/* Variations d'animation des glyphes */
.intro-glyph-cell.is-flash {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 12px #ffffff, 0 0 22px rgba(255, 255, 255, 0.8);
  transform: scale(1.35);
  font-weight: 700;
}

.intro-glyph-cell.is-dark {
  color: #2b0808;
  opacity: 0.95;
  font-weight: 700;
  text-shadow: none;
}

.intro-glyph-cell.is-gold {
  color: #fff0aa;
  opacity: 0.92;
  text-shadow: 0 0 10px #ffd055;
  transform: scale(1.15);
}

.intro-glyph-cell.is-ghost {
  opacity: 0.06;
}

.intro-glyph-cell.is-title-exclusion {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.intro-glyph-cell.is-pulse {
  animation: glyphPulsePop 0.35s ease;
}

@keyframes glyphPulsePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.45); color: #ffffff; opacity: 1; }
  100% { transform: scale(1); }
}

/* Cœur d'accroche visuelle */
.intro-curtain-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90vw;
  pointer-events: none;
  padding: 0 1rem;
}

.intro-brand-title {
  font-family: var(--font-display, 'Bebas Neue');
  font-size: clamp(74px, 18vw, 220px);
  line-height: 0.82;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 1rem;
  text-shadow:
    0 0 45px rgba(255, 255, 255, 0.6),
    4px 4px 0 rgba(45, 8, 8, 0.8),
    -3px -3px 0 rgba(255, 180, 180, 0.4);
  position: relative;
  transition: transform 0.1s ease, filter 0.1s ease, text-shadow 0.1s ease;
}

/* Varied & chaotic title animations */
.intro-brand-title.glitch-twitch-a {
  transform: translate(-5px, 2px) skewX(-2.5deg);
  filter: drop-shadow(4px 0 rgba(255, 30, 30, 0.9)) drop-shadow(-3px 0 rgba(255, 220, 100, 0.7));
}

.intro-brand-title.glitch-twitch-b {
  transform: translate(4px, -3px) skewX(3deg);
  filter: drop-shadow(-4px 0 rgba(255, 255, 255, 0.95)) drop-shadow(3px 2px rgba(80, 10, 10, 0.85));
}

.intro-brand-title.glitch-flash {
  filter: brightness(2.3) contrast(1.6);
  text-shadow:
    0 0 60px #ffffff,
    0 0 120px rgba(255, 230, 200, 0.95),
    4px 4px 0 rgba(45, 8, 8, 0.9);
}

.intro-brand-title.glitch-chromatic {
  text-shadow:
    -6px 0 rgba(255, 50, 50, 0.9),
    6px 0 rgba(255, 255, 255, 0.95),
    0 0 35px rgba(255, 200, 200, 0.7);
}

.intro-brand-title.glitch-slice {
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%, 0 47%, 100% 47%, 100% 100%, 0 100%);
  transform: translateX(-4px);
}

.intro-brand-sub {
  font-family: var(--font-mono, 'Space Mono');
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.28em;
  color: #faede6;
  text-transform: uppercase;
  margin-bottom: 0;
}

@keyframes actionDotPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}

.intro-action-arrow {
  font-size: 15px;
  color: #ffdede;
  animation: actionArrowBounce 1.2s infinite ease-in-out;
}

@keyframes actionArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Faisceau d'extinction cathodique rétro */
.intro-curtain-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
}

/* Animation de fermeture rétro avec conservation de la teinte rouge riche */
.intro-curtain.dismissing {
  pointer-events: none;
  animation: crtPowerOff 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.intro-curtain.dismissing .intro-curtain-beam {
  opacity: 1;
  animation: crtBeamFlash 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.intro-curtain.dismissing .intro-curtain-center,
.intro-curtain.dismissing .intro-glyph-matrix {
  opacity: 0;
  transition: opacity 0.16s ease;
}

@keyframes crtPowerOff {
  0% {
    transform: scale(1, 1);
    filter: contrast(1.08) brightness(1);
    opacity: 1;
  }
  38% {
    transform: scale(1, 0.004);
    filter: contrast(1.2) brightness(0.92);
    opacity: 0.98;
  }
  75% {
    transform: scale(0.04, 0.004);
    filter: contrast(1.25) brightness(0.85);
    opacity: 0.92;
  }
  100% {
    transform: scale(0, 0);
    opacity: 0;
  }
}

@keyframes crtBeamFlash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.85;
    background: linear-gradient(90deg, transparent, rgba(165, 32, 32, 0.85) 25%, #ffffff 50%, rgba(165, 32, 32, 0.85) 75%, transparent);
    box-shadow: 0 0 25px rgba(110, 20, 20, 0.95);
  }
  70% {
    opacity: 0.55;
    background: linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.7) 35%, #ffffff 50%, rgba(139, 26, 26, 0.7) 65%, transparent);
  }
  100% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------
   9. SITE EDITORIAL INTRO SECTION (PLEIN ÉCRAN / HERO VIEWPORT)
   ------------------------------------------------------------ */
.site-intro-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-height, 60px) + 2rem);
  padding-bottom: 2rem;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  background-color: var(--parchemin);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  scroll-margin-top: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Calque de glyphes discrets d'arrière-plan aux 4 coins */
.site-intro-bg-glyphs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  user-select: none;
}

.intro-corner-cluster {
  position: absolute;
  display: grid;
  gap: 6px 12px;
  font-family: var(--font-mono, 'Space Mono');
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.22em;
  color: var(--anthracite);
  pointer-events: none;
  line-height: 1.3;
}

.intro-corner-cluster.corner-tl {
  top: calc(var(--header-height, 60px) + 0.85rem);
  left: 2rem;
  grid-template-columns: repeat(4, auto);
}

.intro-corner-cluster.corner-tr {
  top: calc(var(--header-height, 60px) + 0.85rem);
  right: 2rem;
  grid-template-columns: repeat(4, auto);
  text-align: right;
}

.intro-corner-cluster.corner-bl {
  bottom: 1.75rem;
  left: 2rem;
  grid-template-columns: repeat(4, auto);
}

.intro-corner-cluster.corner-br {
  bottom: 1.75rem;
  right: 2rem;
  grid-template-columns: repeat(4, auto);
  text-align: right;
}

/* Bandes horizontales de télémétrie en haut et en bas de l'écran d'introduction */
.intro-glyphs-band {
  position: absolute;
  left: 20%;
  right: 20%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, 'Space Mono');
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.25em;
  color: var(--anthracite);
  pointer-events: none;
  z-index: 1;
}

.intro-glyphs-band.band-top {
  top: calc(var(--header-height, 60px) + 1rem);
}

.intro-glyphs-band.band-bottom {
  bottom: 1.85rem;
}

/* Flux verticaux de glyphes le long des bordures gauche et droite */
.intro-glyphs-stream {
  position: absolute;
  top: 25%;
  bottom: 25%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-family: var(--font-mono, 'Space Mono');
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: 0.2em;
  color: var(--anthracite);
  pointer-events: none;
  z-index: 1;
}

.intro-glyphs-stream.stream-left {
  left: 1.75rem;
}

.intro-glyphs-stream.stream-right {
  right: 1.75rem;
  text-align: right;
}

/* Nœuds de données ambiants — positionnés dans les marges extrêmes, jamais sous le texte */
.intro-ambient-nodes {
  position: absolute;
  top: 30%;
  bottom: 30%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.intro-ambient-node {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono, 'Space Mono');
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--anthracite);
}

/* Place first node at the far left and second at the far right */
.intro-ambient-node:first-child {
  margin-left: 1.75rem;
}

.intro-ambient-node:last-child {
  margin-right: 1.75rem;
}

/* Cellule de glyphe : visibilité nettement rehaussée (présente sans saturer le texte) */
.intro-corner-glyph,
.intro-band-glyph,
.intro-stream-glyph,
.intro-ambient-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  opacity: 0.42;
  font-weight: 500;
  transition: opacity 0.24s ease, color 0.24s ease, transform 0.24s ease, text-shadow 0.24s ease;
}

/* Variations d'animation dynamiques et vibrantes */
.intro-corner-glyph.is-glow,
.intro-band-glyph.is-glow,
.intro-stream-glyph.is-glow,
.intro-ambient-glyph.is-glow {
  opacity: 0.95;
  color: var(--cardinal);
  text-shadow: 0 0 8px rgba(139, 26, 26, 0.65), 0 0 16px rgba(139, 26, 26, 0.35);
  transform: scale(1.15);
  font-weight: 700;
}

.intro-corner-glyph.is-accent,
.intro-band-glyph.is-accent,
.intro-stream-glyph.is-accent,
.intro-ambient-glyph.is-accent {
  opacity: 0.90;
  color: var(--anthracite);
  font-weight: 700;
  transform: scale(1.10);
}

.intro-corner-glyph.is-cyan,
.intro-band-glyph.is-cyan,
.intro-stream-glyph.is-cyan,
.intro-ambient-glyph.is-cyan {
  opacity: 0.92;
  color: #0e7085;
  text-shadow: 0 0 7px rgba(14, 112, 133, 0.6);
  transform: scale(1.12);
  font-weight: 700;
}

.intro-corner-glyph.is-gold,
.intro-band-glyph.is-gold,
.intro-stream-glyph.is-gold,
.intro-ambient-glyph.is-gold {
  opacity: 0.88;
  color: #b85226;
  text-shadow: 0 0 6px rgba(184, 82, 38, 0.5);
  transform: scale(1.08);
}

.intro-corner-glyph.is-dim,
.intro-band-glyph.is-dim,
.intro-stream-glyph.is-dim,
.intro-ambient-glyph.is-dim {
  opacity: 0.18;
}

.intro-corner-glyph.is-pulse,
.intro-band-glyph.is-pulse,
.intro-stream-glyph.is-pulse,
.intro-ambient-glyph.is-pulse {
  animation: introGlyphPulse 0.45s ease;
}

@keyframes introGlyphPulse {
  0%   { opacity: 0.42; transform: scale(1); }
  50%  { opacity: 1; color: var(--cardinal); text-shadow: 0 0 10px rgba(139, 26, 26, 0.7); transform: scale(1.22); }
  100% { opacity: 0.42; transform: scale(1); }
}

.site-intro-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: auto auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 2.75rem;
  /* Solid background to mask any glyphs that might appear behind the text area */
  background: var(--parchemin);
  padding: 2rem 2.5rem;
  margin-left: 3rem;
  margin-right: 3rem;
  width: calc(100% - 6rem);
}

.site-intro-center {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
}

.site-intro-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.8vw, 108px);
  line-height: 0.98;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 1300px;
  position: relative;
  transition: transform 0.14s ease, text-shadow 0.14s ease, filter 0.14s ease;
  user-select: text;
}

/* Interférences analogiques dynamiques sur le titre d'introduction */
.site-intro-title.has-interference-tear-a {
  transform: translate(-4px, 1px) skewX(-1.8deg);
  text-shadow: -4px 0 rgba(139, 26, 26, 0.8), 4px 0 rgba(40, 110, 210, 0.6);
  filter: contrast(1.2);
}

.site-intro-title.has-interference-tear-b {
  transform: translate(4px, -2px) skewX(2.2deg);
  text-shadow: 5px 0 rgba(139, 26, 26, 0.85), -4px -1px rgba(255, 255, 255, 0.95);
  filter: contrast(1.25);
}

.site-intro-title.has-interference-slice {
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 42%, 0 54%, 100% 54%, 100% 100%, 0 100%);
  transform: translateX(-5px);
  filter: contrast(1.35) brightness(1.05);
}

.site-intro-body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.85;
  color: var(--anthracite-light);
  max-width: 860px;
}

.site-intro-body p {
  transition: opacity 0.14s ease, transform 0.14s ease, text-shadow 0.14s ease;
}

.site-intro-body p.has-interference-flicker {
  opacity: 0.65;
  transform: translateX(3px);
  text-shadow: 1px 0 rgba(139, 26, 26, 0.5), -1px 0 rgba(40, 90, 180, 0.35);
}

.site-intro-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-intro-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--anthracite);
  background: var(--parchemin-mid);
  padding: 0.95rem 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.site-intro-scroll-btn:hover {
  background: var(--cardinal);
  color: var(--white-warm);
  border-color: var(--cardinal);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.25);
}

.scroll-btn-arrow {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.site-intro-scroll-btn:hover .scroll-btn-arrow {
  transform: translateY(4px);
}

/* Effet de transition d'écran lors du basculement intro -> pôles */
.intro-transition-shutter {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.35);
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.intro-transition-shutter.active {
  opacity: 1;
  animation: retroShutterSweep 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes retroShutterSweep {
  0% { opacity: 0; transform: scaleY(0); }
  50% { opacity: 1; transform: scaleY(1); background: rgba(139, 26, 26, 0.2); }
  100% { opacity: 0; transform: scaleY(0); }
}

/* Ajustement du project-index quand intro-section est présente */
.site-intro-section + .project-index {
  padding-top: 0;
  scroll-margin-top: var(--header-height, 60px);
}

@media (max-width: 767px) {
  .site-intro-section {
    padding: calc(var(--header-height, 60px) + 1.25rem) var(--space-md) 1.5rem;
  }
  .site-intro-inner {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 1.25rem 0.5rem 1.5rem;
    gap: 1.5rem;
  }
  .site-intro-center {
    gap: 1.25rem;
  }
  .site-intro-title {
    font-size: clamp(34px, 10.5vw, 50px);
    line-height: 0.94;
    letter-spacing: 0.015em;
  }
  .site-intro-body {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
    line-height: 1.65;
  }
  .site-intro-scroll-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  .retro-divider-dots {
    display: none;
  }
  .intro-brand-title {
    font-size: clamp(54px, 20vw, 110px);
  }
  .intro-brand-sub {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  /* Version mobile allégée de fermeture du rideau d'accueil (0 lag GPU sur mobile) */
  .intro-curtain.dismissing {
    animation: mobileSplashDismiss 0.25s ease-out forwards !important;
  }
  .intro-curtain.dismissing .intro-curtain-beam {
    display: none !important;
  }
  .intro-curtain-scanlines {
    opacity: 0.15;
  }
  @keyframes mobileSplashDismiss {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(0.97);
    }
  }

  /* Transition écran allégée entre intro et pôles sur smartphone */
  .intro-transition-shutter.active {
    animation: mobileShutterSweep 0.22s ease-out forwards;
  }
  @keyframes mobileShutterSweep {
    0% { opacity: 0; }
    50% { opacity: 0.35; }
    100% { opacity: 0; }
  }
}

/* ============================================================
   SOUS-SITES (PORTFOLIOS CIBLÉS & SÉLECTIONS THÉMATIQUES)
   ============================================================ */
.subsite-banner {
  background: var(--anthracite);
  color: var(--white-warm);
  border-bottom: 2px solid var(--cardinal);
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  position: relative;
  z-index: 80;
  box-shadow: 0 4px 18px rgba(26, 26, 24, 0.12);
  margin-top: var(--header-height, 60px);
}

.subsite-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.subsite-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subsite-banner-tag {
  background: var(--cardinal);
  color: var(--white-warm);
  padding: 0.25rem 0.65rem;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.subsite-banner-title {
  color: var(--white-warm);
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 12px;
}

.subsite-banner-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.subsite-banner-count {
  color: var(--border);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subsite-banner-return {
  color: var(--cardinal-light);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(165, 32, 32, 0.4);
  transition: all 0.2s ease;
}

.subsite-banner-return:hover {
  background: var(--cardinal);
  color: var(--white-warm);
  border-color: var(--cardinal);
}

.subsite-contact-box {
  margin-top: 1.75rem;
  padding: 1.15rem 1.5rem;
  background: rgba(139, 26, 26, 0.05);
  border-left: 3px solid var(--cardinal);
  border-top: 1px solid rgba(192, 187, 176, 0.35);
  border-right: 1px solid rgba(192, 187, 176, 0.35);
  border-bottom: 1px solid rgba(192, 187, 176, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--anthracite);
  line-height: 1.7;
}

.subsite-contact-box a {
  color: var(--cardinal);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s;
}

.subsite-contact-box a:hover {
  color: var(--cardinal-dark);
}

.subsite-badge-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(139, 26, 26, 0.12);
  color: var(--cardinal);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .subsite-banner {
    padding: 0.75rem 1rem;
  }
  .subsite-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .subsite-banner-right {
    width: 100%;
    justify-content: space-between;
  }
}

