:root {
  --ink: var(--hw-color-elephant-800);
  --text: var(--hw-color-text);
  --muted: var(--hw-color-text-muted);
  --line: var(--hw-color-border);
  --paper: var(--hw-color-surface-soft);
  --soft: var(--hw-color-surface-muted);
  --green: var(--hw-color-action);
  --green-dark: var(--hw-color-action-strong);
  --mint: var(--hw-color-action-soft);
  --yellow: var(--hw-color-sun);
  --aqua: var(--hw-color-elephant-600);
  --blue: var(--hw-color-elephant-700);
  --shadow: var(--hw-shadow-lg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--hw-color-bg);
  font-family: var(--hw-font-body);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--hw-shadow-sm);
  backdrop-filter: saturate(180%) blur(10px);
}

.hw-suite-banner-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.hw-suite-brand-mark {
  display: grid;
  width: 148px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
}

.brand-logo,
.hw-suite-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hw-suite-brand-text {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.15;
}

.hw-suite-brand-text strong {
  color: var(--ink);
  font-family: var(--hw-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.hw-suite-brand-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.header-note,
.eyebrow {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  display: grid;
  min-height: 200px;
  align-items: center;
  padding: 36px 0 30px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--hw-font-heading);
  font-weight: 600;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 0;
  color: #51655c;
  font-size: 1rem;
  line-height: 1.6;
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--hw-color-border-soft);
  border-radius: var(--hw-radius);
  background: #ffffff;
  box-shadow: var(--hw-shadow-sm);
}

.tool-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: var(--accent, var(--green));
}

.offer-logo,
.mini-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--hw-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68)),
    var(--accent, var(--green));
}

.offer-logo {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  padding: 9px;
  box-shadow: inset 0 0 0 1px rgba(14, 53, 65, 0.08);
}

.offer-logo img,
.mini-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.tool-card p {
  min-height: 46px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.launch-tile {
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: auto;
  place-items: center;
  border: 0;
  border-radius: var(--hw-radius);
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.launch-tile span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.launch-tile svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.tool-card:not(.is-disabled) .launch-tile:hover,
.tool-card:not(.is-disabled) .launch-tile:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 12px 24px rgba(14, 53, 65, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.is-insight {
  --accent: var(--hw-color-action);
  --accent-dark: var(--hw-color-action-strong);
}

.is-connect {
  --accent: var(--hw-color-elephant-600);
  --accent-dark: var(--hw-color-elephant-800);
}

.is-deploy {
  --accent: var(--hw-color-solar);
  --accent-dark: var(--hw-color-sun);
}

.is-optimize {
  --accent: var(--hw-color-elephant-700);
  --accent-dark: var(--hw-color-elephant-900);
}

.is-georgette,
.is-disabled,
.is-muted {
  --accent: #9aa8a1;
  --accent-dark: #68756f;
}

.is-disabled {
  background: rgba(243, 246, 244, 0.82);
  box-shadow: none;
}

.is-disabled .offer-logo,
.detail-item.is-muted .mini-logo {
  filter: grayscale(0.6);
}

.is-disabled h2,
.is-disabled p {
  color: #79847f;
}

.is-disabled .launch-tile {
  background: #aab5af;
  cursor: not-allowed;
}

.details {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--hw-radius);
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--hw-color-border-soft);
  border-radius: var(--hw-radius);
  background: #ffffff;
}

.detail-item.is-muted {
  background: #f4f6f5;
}

.mini-logo {
  width: 52px;
  height: 52px;
  padding: 7px;
}

.detail-item h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.detail-item p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
}

@media (max-width: 1060px) {
  .tool-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hw-suite-banner-inner,
  main {
    width: min(100% - 28px, 1180px);
  }

  .hw-suite-banner-inner {
    display: grid;
    padding: 14px 0;
  }

  .header-note {
    display: none;
  }

  .hw-suite-brand-mark {
    width: 132px;
    height: 34px;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 34px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .tool-strip,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 220px;
  }

  .details {
    padding: 26px 18px;
  }

  .detail-item {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .mini-logo {
    width: 44px;
    height: 44px;
  }
}

/* Unreleased tools reveal neither their identity nor their description. */
.tool-card.is-disabled {
  align-items: center;
  justify-content: center;
  background: #edf0ef;
  border: 1px dashed #cbd3d0;
  box-shadow: none;
}
.tool-card.is-disabled::before { display: none; }
.tool-card.is-disabled h2 { margin: 0; color: #667570; font-size: 1rem; }
.launch-tile:focus-visible { outline: 3px solid #195c71; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .launch-tile { transition: none; }
}

/* Right side of the banner: "Portail outils" chip with the session badge beneath. */
.header-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.header-side .header-note {
  margin: 0;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 320px;
  margin: 0;
  padding: 3px 10px 3px 8px;
  border: 1px solid rgba(45, 128, 95, 0.28);
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-row[hidden] {
  display: none;
}

.session-logout {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.session-logout:hover,
.session-logout:focus-visible {
  border-color: var(--green-dark);
  background: var(--mint);
  color: var(--green-dark);
  outline: none;
}

.session-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 128, 95, 0.18);
}

.session-label::after {
  content: "·";
  margin-left: 6px;
  color: var(--muted);
}

.session-email {
  overflow: hidden;
  color: var(--ink);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header-side {
    justify-items: start;
  }

  .session-row {
    flex-wrap: wrap;
  }

  .session-badge {
    max-width: 100%;
  }
}
