/*
Theme Name: ETG Digital
Theme URI:  https://etgbusiness.eu/etg-digital/
Description: Tema propi per al hub ETG Digital. Disseny minimalista, cap page builder.
Version:    1.0.0
Author:     ETG Digital
Text Domain: etg-digital-theme
*/

/* ============================================================
   TOKENS — variables originals del sistema de disseny ETG
   ============================================================ */
:root {
  --etg-bg:           #f5f7fc;
  --etg-panel:        #f8faff;
  --etg-white:        rgba(255,255,255,.88);
  --etg-white-strong: #ffffff;
  --etg-border:       rgba(33, 48, 77, .115);
  --etg-border-soft:  rgba(33, 48, 77, .075);
  --etg-text:         #0f1520;
  --etg-muted:        #44526a;
  --etg-blue:         #2f6fdf;
  --etg-purple:       #7d4ee8;
  --etg-yellow:       #fee91e;
  --etg-shadow:       0 16px 42px rgba(35, 48, 84, .060);
  --etg-shadow-soft:  0 10px 26px rgba(35, 48, 84, .042);
  --etg-radius-xl:    28px;
  --etg-radius-lg:    22px;
  --etg-radius-md:    16px;
  --etg-gap:          22px;
  --etg-pad:          30px;
  --etg-font:         Inter, "SF Pro Display", "SF Pro Text", ui-sans-serif,
                      system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   RESET BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--etg-bg);
  font-family: var(--etg-font);
  color: var(--etg-text);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
}

/* Fons blanc net — el color viu dins les targetes */
body {
  background: #ffffff;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

/* ============================================================
   HEADER STICKY
   ============================================================ */
.etg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--etg-border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo + Digital + slogan */
.etg-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.etg-header-divider {
  width: 1px;
  height: 22px;
  background: var(--etg-border);
  flex-shrink: 0;
}

.etg-header-digital {
  font-size: 15px;
  font-weight: 700;
  color: var(--etg-purple);
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.etg-header-slogan {
  font-size: 12px;
  font-weight: 400;
  color: var(--etg-muted);
  line-height: 1.35;
  white-space: nowrap;
}

/* Navegació */
.etg-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.etg-header-nav a {
  height: 34px;
  padding: 0 15px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--etg-text);
  transition: background .16s ease, color .16s ease;
  white-space: nowrap;
}

.etg-header-nav a:hover {
  background: rgba(126,84,236,.07);
  color: var(--etg-purple);
}

.etg-header-nav a.is-active {
  background: rgba(126,84,236,.10);
  color: var(--etg-purple);
  font-weight: 600;
}

/* Avatar */
.etg-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(126,84,236,.18), rgba(126,84,236,.32));
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--etg-purple);
  border: 1px solid rgba(126,84,236,.22);
}

/* ============================================================
   WRAPPER PRINCIPAL
   ============================================================ */
.etg-page-wrap {
  max-width: 1640px;
  margin: 0 auto;
}

/* ============================================================
   PAGE HEADER — títol + eslògan en línia
   ============================================================ */
.etg-page-header {
  padding: 18px 22px 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.etg-page-title {
  font-size: 21px;
  font-weight: 500;
  color: var(--etg-purple);
  line-height: 1;
  flex-shrink: 0;
}

.etg-page-slogan {
  font-size: 12px;
  font-weight: 400;
  color: var(--etg-muted);
  max-width: 460px;
  line-height: 1.45;
}

/* ============================================================
   DOS BLOCS PRINCIPALS
   ============================================================ */
.etg-blocs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--etg-gap);
  padding: 24px 22px 20px;
}

.etg-bloc {
  border-radius: var(--etg-radius-xl);
  overflow: hidden;
  border: 1px solid var(--etg-border);
  box-shadow: 0 8px 32px rgba(35,48,84,.12), 0 2px 8px rgba(35,48,84,.06), 0 1px 2px rgba(35,48,84,.04);
  background: var(--etg-white-strong);
}

/* ——————————————————————————————————————
   HERO de cada bloc
   —————————————————————————————————————— */
.etg-bloc-hero {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 26px 22px 22px;
  min-height: 190px;
}

.etg-hero-ia {
  background: linear-gradient(135deg, rgba(126,84,236,.22) 0%, rgba(162,120,255,.12) 50%, rgba(255,255,255,.95) 100%);
}

.etg-hero-digital {
  background: linear-gradient(135deg, rgba(47,111,223,.20) 0%, rgba(80,140,255,.11) 50%, rgba(255,255,255,.96) 100%);
}

/* Contingut hero */
.etg-bloc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

.etg-bloc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.75);
  box-shadow: var(--etg-shadow-soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--etg-border-soft);
}

.etg-bloc-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.etg-hero-ia .etg-bloc-icon { color: var(--etg-purple); }
.etg-hero-digital .etg-bloc-icon { color: var(--etg-blue); }

.etg-bloc-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--etg-text);
  margin-bottom: 9px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.etg-bloc-desc {
  font-size: 15px;
  color: var(--etg-muted);
  line-height: 1.62;
  margin-bottom: 16px;
  letter-spacing: 0.008em;
  font-weight: 450;
}

/* Botó pill hero */
.etg-bloc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid var(--etg-border);
  background: var(--etg-white-strong);
  font-size: 14px;
  font-weight: 600;
  transition: transform .20s ease, box-shadow .20s ease;
  cursor: pointer;
  text-decoration: none;
}

.etg-hero-ia .etg-bloc-cta    { color: var(--etg-purple); }
.etg-hero-digital .etg-bloc-cta { color: var(--etg-blue); }

.etg-bloc-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--etg-shadow-soft);
}

/* Badge hover "clic → resum" */
.etg-bloc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--etg-border);
  color: var(--etg-muted);
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transition: opacity .20s ease;
  pointer-events: none;
  z-index: 2;
}

.etg-bloc-hero:hover .etg-bloc-badge { opacity: 1; }

/* ——————————————————————————————————————
   IL·LUSTRACIONS HERO
   —————————————————————————————————————— */
.etg-hero-illustration {
  position: absolute;
  right: -18px;
  bottom: -12px;
  width: 52%;
  height: 110%;
  pointer-events: none;
  opacity: .88;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.etg-hero-illustration svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.etg-hero-illustration .line       { fill: none; stroke: rgba(37,48,72,.44); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.etg-hero-illustration .line.soft  { stroke: rgba(37,48,72,.28); stroke-width: 2.35; }
.etg-hero-illustration .node       { fill: rgba(255,255,255,.88); stroke: rgba(37,48,72,.36); stroke-width: 2; }
.etg-hero-illustration .node.purple { fill: rgba(126,84,236,.22); stroke: rgba(126,84,236,.62); }
.etg-hero-illustration .node.blue   { fill: rgba(47,111,223,.20); stroke: rgba(47,111,223,.62); }
.etg-hero-illustration .spark       { fill: rgba(126,84,236,.18); stroke: rgba(126,84,236,.50); stroke-width: 2.2; stroke-linejoin: round; }
.etg-hero-illustration .spark.tiny  { fill: rgba(126,84,236,.14); opacity: .90; }
.etg-hero-illustration .chart       { fill: none; stroke: rgba(47,111,223,.56); stroke-width: 5; stroke-linecap: round; }

/* ——————————————————————————————————————
   SEPARADOR + LABEL SUBSECCIÓ
   —————————————————————————————————————— */
.etg-bloc-divider {
  height: 1px;
  background: var(--etg-border-soft);
  margin: 0 16px;
}

.etg-bloc-section-label {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.etg-bloc-ia    .etg-bloc-section-label { color: var(--etg-purple); }
.etg-bloc-digital .etg-bloc-section-label { color: var(--etg-blue); }

/* ——————————————————————————————————————
   TARGETES PETITES (tiles 2×2)
   —————————————————————————————————————— */
.etg-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.etg-tile {
  border: 1px solid var(--etg-border);
  border-radius: var(--etg-radius-md);
  padding: 12px 10px 10px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--etg-text);
  box-shadow: 0 2px 8px rgba(35,48,84,.055);
}

/* Color dins les tiles per bloc */
.etg-bloc-ia .etg-tile {
  background: linear-gradient(145deg, rgba(126,84,236,.07) 0%, rgba(255,255,255,.98) 100%);
}

.etg-bloc-digital .etg-tile {
  background: linear-gradient(145deg, rgba(47,111,223,.07) 0%, rgba(255,255,255,.98) 100%);
}

.etg-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(35,48,84,.10);
}

.etg-bloc-ia .etg-tile:hover     { border-color: rgba(126,84,236,.30); }
.etg-bloc-digital .etg-tile:hover { border-color: rgba(47,111,223,.30); }

.etg-tile-icon {
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.etg-tile-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.etg-bloc-ia .etg-tile-icon     { color: var(--etg-purple); }
.etg-bloc-digital .etg-tile-icon { color: var(--etg-blue); }

.etg-tile-label {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--etg-text);
  letter-spacing: 0.008em;
}

.etg-tile-arrow {
  font-size: 14px;
  color: var(--etg-muted);
  margin-top: 2px;
}

/* ============================================================
   MODAL FLOTANT
   ============================================================ */
.etg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,40,.45);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.etg-modal-overlay.open { display: flex; }

.etg-modal {
  width: 390px;
  max-width: 93%;
  border-radius: var(--etg-radius-xl);
  overflow: hidden;
  background: var(--etg-white-strong);
  border: 1px solid var(--etg-border);
  box-shadow: var(--etg-shadow);
  animation: etg-modal-in .22s ease;
}

@keyframes etg-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Zona visual superior */
.etg-modal-header {
  height: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}

.etg-modal-ia     { background: linear-gradient(135deg, rgba(126,84,236,.18), rgba(126,84,236,.35)); }
.etg-modal-digital { background: linear-gradient(135deg, rgba(47,111,223,.15), rgba(47,111,223,.32)); }

.etg-modal-deco {
  position: absolute;
  inset: 0;
  opacity: .15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
}

.etg-modal-deco svg {
  width: 120px;
  height: 80px;
}

.etg-modal-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 1;
}

.etg-modal-ia .etg-modal-badge     { background: var(--etg-purple); }
.etg-modal-digital .etg-modal-badge { background: var(--etg-blue); }

.etg-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--etg-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--etg-muted);
  line-height: 1;
  z-index: 2;
  transition: background .16s ease;
}

.etg-modal-close:hover { background: var(--etg-white-strong); }

/* Cos del modal */
.etg-modal-body {
  padding: 20px 20px 22px;
}

.etg-modal-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--etg-text);
  margin-bottom: 8px;
}

.etg-modal-body p {
  font-size: 13px;
  color: var(--etg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Tags */
.etg-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.etg-modal-tag {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--etg-border);
}

.etg-modal-ia .etg-modal-tag,
.etg-modal-tag.ia   { background: rgba(126,84,236,.08); color: var(--etg-purple); border-color: rgba(126,84,236,.18); }
.etg-modal-digital .etg-modal-tag,
.etg-modal-tag.dig  { background: rgba(47,111,223,.08); color: var(--etg-blue);   border-color: rgba(47,111,223,.18); }

/* Botons del modal */
.etg-modal-actions {
  display: flex;
  gap: 10px;
}

.etg-modal-btn-primary {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  transition: opacity .16s ease, transform .16s ease;
}

.etg-modal-btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.etg-modal-ia .etg-modal-btn-primary     { background: var(--etg-purple); }
.etg-modal-digital .etg-modal-btn-primary { background: var(--etg-blue); }

.etg-modal-btn-secondary {
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid var(--etg-border);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--etg-muted);
  transition: background .16s ease;
}

.etg-modal-btn-secondary:hover { background: rgba(0,0,0,.04); }

/* ============================================================
   BARRA DE ROLS (comunitat)
   ============================================================ */
.etg-community {
  margin: 0 22px 22px;
  background: rgba(255,255,255,.83);
  border: 1px solid var(--etg-border);
  border-radius: var(--etg-radius-xl);
  box-shadow: var(--etg-shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.etg-community-info {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.etg-community-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--etg-white-strong);
  border: 1px solid var(--etg-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--etg-text);
}

.etg-community-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.etg-community-copy h3 {
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.etg-community-copy p {
  font-size: 14px;
  color: var(--etg-muted);
}

/* Pills de rols */
.etg-role-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.etg-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--etg-border);
  border-left-width: 3px;
  box-shadow: var(--etg-shadow-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--etg-text);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.etg-role-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(35,48,84,.09);
}

.etg-role-chip svg { width: 17px; height: 17px; fill: currentColor; }

.etg-role-chip.professorat  { border-left-color: rgba(126,84,236,.55); }
.etg-role-chip.professorat svg { color: var(--etg-purple); fill: var(--etg-purple); }

.etg-role-chip.admin        { border-left-color: rgba(100,116,139,.45); }
.etg-role-chip.admin svg    { color: #64748b; fill: #64748b; }

.etg-role-chip.direccio     { border-left-color: rgba(47,111,223,.55); }
.etg-role-chip.direccio svg { color: var(--etg-blue); fill: var(--etg-blue); }

.etg-role-chip.coordinadors     { border-left-color: rgba(5,150,105,.50); }
.etg-role-chip.coordinadors svg { color: #059669; fill: none; stroke: #059669; stroke-width: 2; }

/* ============================================================
   LOGO HEADER (imatge)
   ============================================================ */
.etg-header-logo-img {
  width: auto;
  height: 32px;
  max-width: 88px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   INFO CARDS (bottom grid)
   ============================================================ */
.etg-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 22px 18px;
}

.etg-info-card {
  min-height: 100px;
  border-radius: 20px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--etg-border);
  box-shadow: var(--etg-shadow-soft);
  padding: 20px 52px 20px 22px;
  position: relative;
  text-decoration: none;
  color: var(--etg-text);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: block;
}

.etg-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(35,48,84,.09);
  border-color: rgba(47,111,223,.22);
}

.etg-info-card strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 9px;
  line-height: 1.35;
}

.etg-info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--etg-muted);
}

.etg-info-card em {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(126,84,236,.13);
  color: var(--etg-purple);
  font-size: 11.5px;
}

.etg-info-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #3d4758;
  transition: transform .18s ease, color .18s ease;
}

.etg-info-card:hover .etg-info-arrow {
  transform: translateY(-50%) translateX(3px);
  color: var(--etg-blue);
}

/* Indicadors de punt amb pulse */
@keyframes etg-pulse-purple {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125,78,232,.50); }
  60%       { box-shadow: 0 0 0 5px rgba(125,78,232,.0); }
}
@keyframes etg-pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,111,223,.50); }
  60%       { box-shadow: 0 0 0 5px rgba(47,111,223,.0); }
}

.etg-status {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.etg-status-purple {
  background: var(--etg-purple);
  animation: etg-pulse-purple 2.8s ease-in-out infinite;
}

.etg-status-blue {
  background: var(--etg-blue);
  animation: etg-pulse-blue 2.8s ease-in-out infinite;
  animation-delay: .9s;
}

/* ============================================================
   FOOTER PRIVAT
   ============================================================ */
.etg-private-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 22px 22px;
  padding: 16px 2px 2px;
  border-top: 1px solid rgba(48,62,93,.08);
  color: #6b7484;
  font-size: 13px;
  line-height: 1.5;
}

.etg-private-footer p      { margin: 0; }
.etg-private-footer strong { color: #2b3344; font-weight: 700; }
.etg-private-footer a      { color: #214977; text-decoration: none; font-weight: 700; }
.etg-private-footer a:hover { text-decoration: underline; }

.etg-footer-note    { justify-self: start; }
.etg-footer-support { justify-self: end; text-align: right; white-space: nowrap; }

.etg-footer-logos {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-wrap: nowrap;
}

.etg-school-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.etg-school-logo img {
  width: auto;
  height: 28px;
  max-width: 88px;
  object-fit: contain;
  display: block;
}

.etg-logo-cta img,
.etg-logo-ctv img,
.etg-logo-racing img,
.etg-logo-automocio img {
  height: 32px;
  max-width: 80px;
  padding: 3px 6px;
  box-sizing: content-box;
}

/* ============================================================
   FOCUS ACCESSIBILITY
   ============================================================ */
.etg-tile:focus-visible,
.etg-bloc-cta:focus-visible,
.etg-role-chip:focus-visible,
.etg-header-nav a:focus-visible,
.etg-modal-btn-primary:focus-visible,
.etg-modal-btn-secondary:focus-visible {
  outline: 2px solid var(--etg-blue);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .etg-blocs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .etg-bottom-grid {
    grid-template-columns: 1fr;
  }
  .etg-private-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }
  .etg-footer-note,
  .etg-footer-support { justify-self: center; text-align: center; white-space: normal; }
  .etg-footer-logos   { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .etg-header {
    padding: 8px 14px;
    flex-wrap: wrap;
  }

  .etg-header-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .etg-header-nav::-webkit-scrollbar { display: none; }

  .etg-page-header {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 10px;
  }

  .etg-blocs-grid {
    padding: 0 14px 14px;
    gap: 14px;
  }

  .etg-community {
    margin: 0 14px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .etg-hero-illustration {
    opacity: .06;
    transform: scale(.65);
    transform-origin: bottom right;
  }

  .etg-bloc-hero-content {
    max-width: 100%;
  }
}
