/*
 * Zvoon Transparence — styles du hub /transparence/ et pages du service.
 * Charte : @.agents/sources/charte.md (tokens repris du thème zvoon-v2).
 * Police Caveat (annotations manuscrites) déclarée par le thème.
 */

/* Page : le hero touche le header. */
.tr-accueil { padding-top: 0; }

/* ============ HERO ============ */
.tr-hero {
  position: relative;
  overflow: hidden;
  margin-top: -28px;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 54px 0 50px;
  background: var(--bg);
}
.tr-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 85% 30%;
}
.tr-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #121319 24%, rgba(18, 19, 25, .82) 40%, rgba(18, 19, 25, .18) 62%, rgba(18, 19, 25, 0) 78%),
    linear-gradient(180deg, rgba(18, 19, 25, .35) 0%, rgba(18, 19, 25, 0) 26%, rgba(18, 19, 25, 0) 72%, #121319 100%);
}
.tr-hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 20px;
  width: 100%;
}
.tr-hero-copy { max-width: 700px; }

.tr-pill {
  display: inline-block;
  padding: 7px 17px; border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, .55);
  background: rgba(26, 20, 48, .55);
  color: #c9baff;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
}
.tr-hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.06; letter-spacing: -.015em;
  margin: 20px 0 18px;
}
.tr-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #8f74ff, #ff3d71);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tr-hero-sub {
  color: #c7cbdc; font-size: 16.5px; line-height: 1.6;
  max-width: 600px; margin: 0 0 26px;
}
.tr-hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 24px;
}
.tr-hero-points li { display: flex; align-items: center; gap: 11px; }
.tr-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(124, 92, 255, .14);
  border: 1px solid rgba(124, 92, 255, .5);
  color: #b9a8ff;
}
.tr-hero-points strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tr-hero-points small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* Scène droite : cartes de marque en verre + note manuscrite. */
.tr-hero-scene { position: absolute; top: 0; bottom: 0; right: 0; width: 55%; pointer-events: none; }
@media (min-width: 901px) {
  /* L'image est calée à droite, dimensionnée par la hauteur du hero :
     la zone gauche unie du visuel se fond dans le fond de page. */
  .tr-hero-img {
    inset: 0 0 0 auto; width: auto; max-width: none;
    object-fit: fill; object-position: right top;
  }
  .tr-hero-scene { left: 30%; width: 70%; }
  .tr-hand-hero { left: 30%; top: 9%; }
}
.tr-glass {
  position: absolute;
  padding: 15px 20px; border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .1em; color: #eef0f8; white-space: nowrap;
  animation: tr-float 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.tr-glass.is-far { opacity: .8; filter: blur(1.1px); font-size: 12.5px; }
@keyframes tr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .tr-glass { animation: none; }
}

.tr-hand {
  font-family: "Caveat", "Segoe Script", cursive;
  color: #cdbcff; font-weight: 600; line-height: 1.1;
}
.tr-hand-hero {
  position: absolute; top: 10%; left: 0;
  font-size: 26px; transform: rotate(-6deg);
  display: flex; flex-direction: column; gap: 2px;
}
.tr-hand-hero svg { color: #b9a8ff; transform: rotate(18deg); margin: -2px 0 0 10px; }

/* ============ MODULES ============ */
.tr-modules {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 38px;
}
.tr-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  transition: border-color .18s, transform .18s;
}
.tr-card:hover { border-color: rgba(124, 92, 255, .5); }
.tr-mod-head { display: flex; align-items: center; gap: 15px; margin-bottom: 13px; }
.tr-mod-ico {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(124, 92, 255, .15);
  border: 1px solid rgba(124, 92, 255, .45);
  color: #b9a8ff;
}
.tr-eyebrow {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase; color: #9f8bff;
  margin-bottom: 3px;
}
.tr-mod-head h2 { font-size: 20px; margin: 0; }
.tr-mod-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 17px; }

.tr-search { display: flex; gap: 10px; }
.tr-search input[type="search"] {
  flex: 1; min-width: 0; height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 0 16px; font-size: 14.5px;
  transition: border-color .15s;
}
.tr-search input[type="search"]:focus { outline: none; border-color: var(--accent); }
.tr-search input[type="search"]::placeholder { color: var(--faint); }
.tr-search-btn {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  border: 0; border-radius: 10px;
  transition: filter .15s, transform .15s;
}
.tr-search-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.tr-mod-note { font-size: 12px; color: var(--faint); margin: 12px 0 0; line-height: 1.5; }

/* ============ RECHERCHES RAPIDES ============ */
.tr-quick {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-top: 26px;
}
.tr-quick-label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--faint);
  margin-right: 8px;
}
.tr-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: border-color .15s, color .15s, transform .15s;
}
.tr-chip svg { flex-shrink: 0; }
.tr-chip:hover { border-color: var(--accent); color: #fff; transform: translateY(-1px); }

/* ============ BANDE ZYO ============ */
.tr-banner {
  position: relative; overflow: hidden;
  margin-top: 32px; border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, .45);
  background: linear-gradient(120deg, #1a1533 0%, #261736 52%, #1a1533 100%);
  padding: 26px 168px 24px 24px;
  display: flex; align-items: center; gap: 28px;
}
.tr-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 180px at 10% 0%, rgba(124, 92, 255, .22), transparent 62%),
    radial-gradient(520px 180px at 55% 120%, rgba(255, 61, 113, .16), transparent 62%);
}
.tr-banner > * { position: relative; z-index: 1; }
.tr-banner-zyo {
  height: 185px; width: auto; flex-shrink: 0;
  align-self: flex-end;
  margin: 0 -10px -24px -4px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45));
  user-select: none;
}
.tr-banner-copy { flex: 1; min-width: 200px; }
.tr-banner-copy h2 { font-size: 20px; margin: 0 0 5px; }
.tr-banner-copy strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.tr-banner-copy p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 430px; }
.tr-banner-feats { display: flex; gap: 24px; flex-shrink: 0; }
.tr-banner-feats span {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100px; text-align: center; color: #b9a8ff;
}
.tr-banner-feats small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tr-banner-cta { flex-shrink: 0; }
.tr-banner-hand {
  position: absolute; top: 14px; right: 24px;
  font-size: 21px; transform: rotate(-4deg); color: #d27dff;
}

/* ============ DERNIÈRES ALERTES ============ */
.tr-alerts { margin-top: 48px; }
.tr-alert-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px;
}
.tr-alert {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: 12px;
  overflow: hidden;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.tr-alert:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, .55);
  box-shadow: var(--shadow);
}
.tr-alert-media {
  position: relative; aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(130% 130% at 18% 0%, rgba(124, 92, 255, .17), rgba(255, 61, 113, .07) 58%, transparent),
    var(--surface-2);
  color: #b9a8ff;
}
.tr-flag {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 9.5px;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; color: #fff;
}
.tr-flag--rappel { background: #e5484d; }
.tr-flag--securite { background: #ff9f2e; color: #231503; }
.tr-alert-body {
  display: flex; flex-direction: column; gap: 6px; flex: 1;
  padding: 11px 12px 13px;
}
.tr-alert-body h3 {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-alert:hover h3 { color: #fff; }
.tr-alert-body time { font-size: 11.5px; color: var(--faint); }
.tr-alert-cat {
  align-self: flex-start; margin-top: auto;
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px;
}

/* ============ NOS PRINCIPES ============ */
.tr-values { margin-top: 48px; }
.tr-value-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 18px;
}
.tr-value {
  background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px 20px 18px;
  transition: border-color .16s;
}
.tr-value:hover { border-color: rgba(124, 92, 255, .45); }
.tr-value-head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.tr-value-head svg { flex-shrink: 0; }
.tr-value-head h3 { font-size: 15.5px; margin: 0; color: var(--text); }
.tr-value p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============ CITATION ZYO ============ */
.tr-quote {
  display: flex; align-items: center; gap: 16px;
  margin: 34px 0 0;
  background: var(--surface);
  border: 1px solid rgba(124, 92, 255, .35); border-radius: var(--radius);
  padding: 15px 24px 15px 18px;
}
.tr-quote img { height: 62px; width: auto; flex-shrink: 0; user-select: none; }
.tr-quote p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.tr-quote strong { color: #fff; }
.tr-quote-hand { margin-left: auto; flex-shrink: 0; font-size: 20px; transform: rotate(-4deg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .tr-alert-grid { grid-template-columns: repeat(3, 1fr); }
  .tr-value-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-banner { padding-right: 24px; }
  .tr-banner-hand { position: static; order: 5; align-self: flex-start; margin: -6px 0 0; }
  .tr-banner { flex-wrap: wrap; }
}
@media (max-width: 1024px) {
  .tr-hero-scene { width: 62%; }
  .tr-glass, .tr-hand-hero { display: none; }
}
@media (max-width: 900px) {
  .tr-hero { min-height: 0; padding: 46px 0 40px; }
  .tr-hero-img { object-position: 88% 38%; }
  .tr-hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 19, 25, .96) 30%, rgba(18, 19, 25, .72) 60%, rgba(18, 19, 25, .3)),
      linear-gradient(180deg, rgba(18, 19, 25, .3) 0%, rgba(18, 19, 25, 0) 30%, #121319 100%);
  }
  .tr-hand-hero { display: none; }
  .tr-hero-sub {
    color: #b9bdcf;
  }
  .tr-hero-points { gap: 12px 20px; }
  .tr-hero-points strong { font-size: 13.5px; }
  .tr-hero-points small { font-size: 12px; }
}
@media (max-width: 860px) {
  .tr-modules { grid-template-columns: 1fr; }
  .tr-banner-feats { width: 100%; justify-content: space-between; gap: 10px; }
  .tr-banner-feats span { width: auto; flex: 1; }
  .tr-banner-cta { margin-top: 4px; }
  .tr-banner-zyo { height: 120px; margin-bottom: -24px; }
}
@media (max-width: 660px) {
  .tr-alert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tr-value-grid { grid-template-columns: 1fr; }
  .tr-hero-points { gap: 14px 18px; }
  .tr-quote { flex-wrap: wrap; }
  .tr-quote-hand { margin-left: 78px; }
}
@media (max-width: 420px) {
  .tr-alert-grid { grid-template-columns: 1fr; }
  .tr-hero-title { font-size: 32px; }
}
