/* Pages /apps : complète site.css. Chaque appli fournit --app-color et --app-accent. */

.header-apps,
.lang-switch {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.header-apps:hover,
.lang-switch:hover {
  color: var(--signal-text);
  text-decoration: underline;
}
.lang-switch {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
}
.header-inner {
  gap: 1.25rem;
}

/* Accueil des applis : un index à grande typo, pas une grille de cartes */
.hub-head {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
}
.hub-head h1 {
  max-width: 14ch;
  font-size: var(--step-4);
  font-weight: 740;
  line-height: 1.02;
}
.hub-head p {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.4;
}
.hub-list {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  list-style: none;
}
.hub-row {
  position: relative;
  border-top: 1px solid var(--line);
}
.hub-row:last-child {
  border-bottom: 1px solid var(--line);
}
.hub-row::before {
  content: "";
  position: absolute;
  inset-block: -1px;
  left: 0;
  width: 0;
  background: var(--app-accent);
  transition: width 0.18s ease-out;
}
.hub-row:hover::before,
.hub-row:focus-within::before {
  width: 6px;
}
.hub-row a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name platform"
    "icon tagline platform";
  column-gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: 1.35rem 0 1.35rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.hub-row img {
  grid-area: icon;
  border-radius: 16px;
}
.hub-name {
  grid-area: name;
  align-self: end;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.1;
}
.hub-tagline {
  grid-area: tagline;
  align-self: start;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.hub-platform {
  grid-area: platform;
  color: var(--ink-soft);
  font-size: var(--step--1);
  text-align: right;
}

/* Page marketing */
.app-hero {
  overflow: hidden;
  background: var(--app-color);
  color: #fff;
}
.app-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.app-hero-text {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.app-name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}
.app-name img {
  border-radius: 12px;
}
.app-hero h1 {
  max-width: 16ch;
  margin-top: 1.5rem;
  color: #fff;
  font-size: var(--step-4);
  font-weight: 740;
  line-height: 1.03;
}
.app-intro {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.45;
  opacity: 0.88;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.store-badges img {
  display: block;
  width: auto;
  height: 48px;
}
.store-badges a:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}
/* Image coupée par le bas du bandeau : le téléphone semble sortir de la page */
.app-hero-shot {
  align-self: end;
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
  margin-bottom: -22%;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.app-shelf {
  display: flex;
  gap: 1rem;
  padding: 1.5rem max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  list-style: none;
  background: var(--paper-deep);
}
.app-shelf:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}
.app-shelf li {
  flex: 0 0 clamp(170px, 19vw, 236px);
  scroll-snap-align: center;
}
.app-shelf img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-plate);
}

.app-body {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.app-section:first-child {
  border-top: 0;
}
.app-section h2 {
  grid-row: 1 / span 40;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.15;
}
.app-section > :not(h2) {
  grid-column: 2;
  max-width: 44rem;
}
.app-section p + p,
.app-section ul + p,
.app-section ol + p,
.app-section p + ul,
.app-section p + ol {
  margin-top: 0.9rem;
}
.app-section ul,
.app-section ol {
  padding-left: 1.1rem;
}
.app-section li + li {
  margin-top: 0.5rem;
}
.app-section li::marker {
  color: var(--app-accent);
}
.app-section h3 {
  margin-top: 1.5rem;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 600;
}
.app-section h3:first-of-type {
  margin-top: 0;
}
.app-section h3 + p {
  margin-top: 0.25rem;
}

.app-cta {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--app-color);
  color: #fff;
}
.app-cta p {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.1;
}
.app-cta .store-badges {
  margin-top: 1.25rem;
}

/* Pages légales */
.legal-app a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.legal-app img {
  border-radius: 9px;
}
.prose.legal h1 {
  margin-top: 1rem;
  font-size: var(--step-3);
  line-height: 1.1;
}
.legal-updated {
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.legal-summary {
  padding: 1rem 1.15rem;
  background: var(--plate);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius-ui);
}
.legal ul {
  padding-left: 1.1rem;
}
.legal li + li {
  margin-top: 0.5rem;
}
.legal h3 {
  margin-top: 1.75rem;
  font-size: var(--step-1);
}
.legal h2 + h3 {
  margin-top: 1rem;
}
.legal code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.footer-links {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .app-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .app-hero-text {
    padding-bottom: 0;
  }
  .app-hero-shot {
    width: min(78%, 320px);
    justify-self: center;
    margin-bottom: -38%;
  }
  .app-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-section h2 {
    grid-row: auto;
    margin-bottom: 0.9rem;
  }
  .app-section > :not(h2) {
    grid-column: 1;
  }
  .hub-row a {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "icon tagline"
      "icon platform";
    padding-left: 0.9rem;
  }
  .hub-row img {
    width: 56px;
    height: 56px;
    align-self: start;
  }
  .hub-platform {
    margin-top: 0.3rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-row::before {
    transition: none;
  }
}
