@font-face {
  font-family: "HDF Display";
  src: url("/assets/italiana-400.ttf") format("truetype");
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Vitrines métier réelles : aperçus fixes, sans zoom ni redimensionnement.    */
/* Ces classes sont volontairement isolées de l'ancien rail promotionnel.      */
/* -------------------------------------------------------------------------- */

body.home-viewport .profession-pages {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.5vh, 18px);
  min-width: 0;
  min-height: 0;
}

body.home-viewport .profession-pages-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

body.home-viewport .profession-pages-heading > div {
  display: grid;
  gap: 5px;
}

body.home-viewport .profession-pages-heading small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

body.home-viewport .profession-pages-heading strong {
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

body.home-viewport .profession-pages-heading p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

body.home-viewport .profession-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.home-viewport .profession-page-card {
  display: grid;
  grid-template-rows: minmax(76px, 1fr) auto auto;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-elevated) 96%, var(--blue-soft));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.home-viewport .profession-page-card:hover,
body.home-viewport .profession-page-card:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 70%, var(--line));
  box-shadow: 0 15px 34px color-mix(in srgb, var(--blue) 13%, transparent);
}

body.home-viewport .profession-page-preview {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 76px;
  padding: 10px;
  overflow: hidden;
  border-radius: 11px;
  background: #071321;
  color: #fff;
  isolation: isolate;
}

body.home-viewport .profession-page-preview::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("/assets/hdf-promotions-panorama-v1.png");
  background-position: var(--profession-photo-position, 0%) 50%;
  background-repeat: no-repeat;
  background-size: 500% auto;
  content: "";
}

body.home-viewport .profession-page-preview::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 14, 26, 0.05), rgba(4, 14, 26, 0.9));
  content: "";
}

body.home-viewport .profession-page-card.is-commerce { --profession-photo-position: 0%; }
body.home-viewport .profession-page-card.is-artisan { --profession-photo-position: 25%; }
body.home-viewport .profession-page-card.is-restaurant { --profession-photo-position: 50%; }
body.home-viewport .profession-page-card.is-services,
body.home-viewport .profession-page-card.is-information { --profession-photo-position: 75%; }
body.home-viewport .profession-page-card.is-events { --profession-photo-position: 100%; }

body.home-viewport .profession-page-preview i,
body.home-viewport .profession-page-preview b,
body.home-viewport .profession-page-preview em {
  display: block;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-viewport .profession-page-preview i {
  margin-bottom: auto;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

body.home-viewport .profession-page-preview b {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 27px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

body.home-viewport .profession-page-preview em {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
}

body.home-viewport .profession-page-card > strong,
body.home-viewport .profession-page-card > small {
  overflow: hidden;
  padding-inline: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-viewport .profession-page-card > strong {
  font-size: 12px;
}

body.home-viewport .profession-page-card > small {
  color: var(--muted);
  font-size: 8px;
}

body.home-viewport .showcase-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* Le panneau Vitrines ne contient qu'un seul composant interne. Il occupe donc
   toute la scène, contrairement aux panneaux dont les trois lignes sont des
   enfants directs. Cela évite une grande zone vide sous les six démonstrations. */
body.home-viewport #home-panel-vitrines {
  grid-template-rows: minmax(0, 1fr);
}

body.home-viewport #home-panel-vitrines > .home-panel-inner {
  grid-row: 1;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.home-viewport .showcase-demo-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-elevated);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--ink) 7%, transparent);
}

body.home-viewport .showcase-demo-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 8px 8px 5px;
  color: var(--ink);
  text-decoration: none;
}

body.home-viewport .showcase-demo-card:hover,
body.home-viewport .showcase-demo-card:focus-within {
  border-color: color-mix(in srgb, var(--showcase-accent, var(--blue)) 74%, var(--line));
  box-shadow: 0 17px 38px color-mix(in srgb, var(--showcase-accent, var(--blue)) 13%, transparent);
}

body.home-viewport .showcase-demo-card.is-commerce { --showcase-accent: #2b6de0; --showcase-soft: #e8f1ff; }
body.home-viewport .showcase-demo-card.is-services { --showcase-accent: #0e7798; --showcase-soft: #e5f6f7; }
body.home-viewport .showcase-demo-card.is-artisan { --showcase-accent: #9d6238; --showcase-soft: #f7eee6; }
body.home-viewport .showcase-demo-card.is-restaurant { --showcase-accent: #b43d39; --showcase-soft: #fff0e7; }
body.home-viewport .showcase-demo-card.is-events { --showcase-accent: #6c43c4; --showcase-soft: #f1eaff; }
body.home-viewport .showcase-demo-card.is-information { --showcase-accent: #246895; --showcase-soft: #e8f2f7; }

body.home-viewport .showcase-demo-miniature {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--showcase-accent) 20%, var(--line));
  border-radius: 12px;
  background: var(--showcase-soft);
  color: var(--ink);
}

body.home-viewport .showcase-demo-miniature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
}

body.home-viewport .showcase-demo-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 1px 10px;
  min-width: 0;
}

body.home-viewport .showcase-demo-content small,
body.home-viewport .showcase-demo-content strong,
body.home-viewport .showcase-demo-content span,
body.home-viewport .showcase-demo-content b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.home-viewport .showcase-demo-content small {
  grid-column: 1;
  color: var(--showcase-accent);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

body.home-viewport .showcase-demo-content strong {
  grid-column: 1;
  margin-top: 2px;
  font-family: var(--display);
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

body.home-viewport .showcase-demo-content span {
  grid-column: 1;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

body.home-viewport .showcase-demo-content b {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--showcase-accent) 34%, var(--line));
  border-radius: 999px;
  background: var(--showcase-soft);
  color: var(--showcase-accent);
  font-size: 8px;
  white-space: nowrap;
}

body.home-viewport .showcase-demo-card > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  list-style: none;
}

body.home-viewport .showcase-demo-card > ul li {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--showcase-soft) 70%, var(--surface-elevated));
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
}

body.home-viewport .showcase-demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-elevated);
}

body.home-viewport .showcase-demo-foot p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

body.home-viewport .showcase-demo-foot p strong {
  color: var(--ink);
}

body.home-viewport .showcase-demo-foot .button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 13px;
  font-size: 9px;
}

@media (max-width: 1100px) {
  body.home-viewport .profession-pages-heading p {
    display: none;
  }

  body.home-viewport .profession-page-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  body.home-viewport .showcase-demo-grid {
    grid-template-columns: repeat(3, minmax(285px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 760px) {
  body.home-viewport .profession-pages {
    min-height: 0;
  }

  body.home-viewport .profession-pages-heading strong {
    font-size: 24px;
  }

  body.home-viewport .profession-pages-heading p {
    display: none;
  }

  body.home-viewport .profession-page-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 74vw);
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(122px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  body.home-viewport .profession-page-card {
    scroll-snap-align: start;
  }

  body.home-viewport .showcase-demo-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 82vw);
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(170px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  body.home-viewport .showcase-demo-card {
    scroll-snap-align: start;
  }

  body.home-viewport .showcase-demo-link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body.home-viewport .showcase-demo-foot p {
    max-width: 58%;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  body.home-viewport .profession-pages-heading strong {
    font-size: 24px;
  }

  body.home-viewport .profession-pages-heading p,
  body.home-viewport .showcase-demo-content span {
    display: none;
  }

  body.home-viewport .profession-page-card {
    grid-template-rows: minmax(58px, 1fr) auto;
    padding: 7px;
  }

  body.home-viewport .profession-page-card > small {
    display: none;
  }

  body.home-viewport .profession-page-preview {
    min-height: 58px;
    padding: 8px;
  }

  body.home-viewport .showcase-demo-link {
    grid-template-columns: minmax(96px, 0.74fr) minmax(0, 1.26fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 9px;
    padding: 7px;
  }

  body.home-viewport .showcase-demo-miniature {
    min-height: 70px;
  }

  body.home-viewport .showcase-demo-card > ul {
    padding: 5px 7px 7px;
  }

  body.home-viewport .showcase-demo-content b {
    padding: 5px 7px;
  }
}

@font-face {
  font-family: "HDF Sans";
  src: url("/assets/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HDF Sans";
  src: url("/assets/dm-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #081425;
  --ink-soft: #12223a;
  --blue: #1756d8;
  --blue-dark: #0f3fae;
  --aqua: #58dfd0;
  --paper: #f6f8fc;
  --white: #ffffff;
  --mist: #e9eef7;
  --line: #d9e0eb;
  --muted: #475569;
  --success: #13795b;
  --warning: #f2b84b;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 70px rgba(8, 20, 37, 0.13);
  --shadow-soft: 0 8px 28px rgba(8, 20, 37, 0.055);
  --font-sans: "HDF Sans", Arial, sans-serif;
  --font-display: "HDF Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.nav-is-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.skip:focus {
  top: 18px;
}

:focus-visible {
  outline: 3px solid #0b6f64;
  outline-offset: 4px;
}

.section-dark :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--aqua);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 82px;
  padding: 12px clamp(20px, 4.5vw, 76px);
  border-bottom: 1px solid rgba(217, 224, 235, 0.9);
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  filter: drop-shadow(0 8px 14px rgba(8, 20, 37, 0.13));
}

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.1vw, 34px);
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  padding: 12px 0;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--blue);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font: 700 12px/1 "HDF Sans", Arial, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button span:last-child,
.button i {
  font-style: normal;
  font-size: 17px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(8, 20, 37, 0.18);
}

.button-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(45, 108, 255, 0.26);
}

.button-blue:hover {
  background: var(--blue-dark);
}

.button-white,
.button-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(8, 20, 37, 0.14);
}

.portal-button {
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 6vw, 110px);
  width: min(1680px, 100%);
  min-height: min(850px, calc(100svh - 82px));
  margin: 0 auto;
  padding: clamp(76px, 8vw, 130px) clamp(24px, 5vw, 90px);
}

.hero::before {
  position: absolute;
  top: 7%;
  left: -15%;
  width: 55vw;
  height: 55vw;
  max-width: 820px;
  max-height: 820px;
  border: 1px solid rgba(45, 108, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-copy,
.product-preview {
  position: relative;
  z-index: 1;
}

.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker > span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.section-intro h2,
.builder-copy h2,
.security-copy h2,
.contact h2,
.legal h1,
.error-page h1,
dialog h2 {
  margin: 22px 0 24px;
  font: 400 clamp(58px, 6vw, 104px)/0.96 "HDF Display", Georgia, serif;
  letter-spacing: -0.045em;
}

.hero h1 em,
.section-intro h2 em {
  color: var(--blue);
  font-style: normal;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.contact-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0 10px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font: 700 12px "HDF Sans", Arial, sans-serif;
  cursor: pointer;
}

.quiet-link.light {
  color: var(--white);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 42px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.hero-points li::before {
  margin-right: 9px;
  color: var(--success);
  content: "✓";
  font-weight: 700;
}

.product-preview {
  margin: 0;
}

.preview-glow {
  position: absolute;
  top: -12%;
  right: -6%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(88, 223, 208, 0.34);
  filter: blur(70px);
}

.app-window {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(151, 167, 190, 0.45);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 35px 100px rgba(8, 20, 37, 0.2);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.app-top .mini-brand {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--aqua);
}

.app-top b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: #dfe9ff;
  color: var(--blue-dark);
  font-size: 9px;
}

.app-layout {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 496px;
}

.app-layout aside {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 16px;
  background: var(--ink);
  color: #93a3b9;
  font-size: 10px;
}

.app-layout aside strong {
  margin: 0 10px 24px;
  color: var(--aqua);
  font-size: 19px;
}

.app-layout aside span {
  padding: 12px 11px;
  border-radius: 8px;
}

.app-layout aside .selected {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.app-content {
  padding: clamp(24px, 3vw, 44px);
  background: #f8faff;
}

.app-content > p {
  margin: 0;
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.app-content > h2 {
  margin: 8px 0 28px;
  font: 400 clamp(26px, 2.5vw, 42px) "HDF Display", Georgia, serif;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-row article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.stat-row small,
.stat-row i {
  overflow: hidden;
  color: #77859a;
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-row strong {
  font-size: 24px;
}

.stat-row strong.online {
  color: var(--success);
  font-size: 16px;
}

.project-list {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.project-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  border-bottom: 1px solid var(--mist);
  font-size: 9px;
}

.project-list > div:last-child {
  border: 0;
}

.project-list .list-head {
  min-height: 30px;
}

.list-head span {
  margin-left: auto;
  color: var(--blue);
}

.project-list > div > i {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #ccdcff, #e9f9f7);
}

.project-list > div > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-list > div > span b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list > div > span small {
  color: #8290a2;
}

.project-list em {
  margin-left: auto;
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

.security-chip {
  position: absolute;
  right: -24px;
  bottom: -28px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 285px;
  padding: 17px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 45px rgba(8, 20, 37, 0.3);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(88, 223, 208, 0.14);
  color: var(--aqua);
}

.security-chip > span:last-child {
  display: grid;
  gap: 4px;
}

.security-chip small {
  color: var(--aqua);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.security-chip strong {
  font-size: 10px;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-size: 11px;
}

.status-strip p {
  margin: 0;
  color: var(--muted);
}

.status-dot,
.security-state span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.15);
}

.pilot {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(600px, 1.2fr);
  align-items: center;
  gap: clamp(54px, 8vw, 130px);
  background: var(--white);
}

.pilot-copy {
  max-width: 680px;
  justify-self: end;
}

.pilot-copy .kicker {
  margin-bottom: 22px;
}

.pilot-copy h2 {
  margin: 0;
  font: 400 clamp(48px, 5vw, 82px)/0.98 "HDF Display", Georgia, serif;
  letter-spacing: -0.04em;
}

.pilot-copy h2 em {
  color: var(--blue);
  font-style: normal;
}

.pilot-copy > p:last-child {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.pilot-facts {
  display: grid;
  border-top: 1px solid var(--line);
}

.pilot-facts article {
  display: grid;
  grid-template-columns: 42px minmax(170px, 0.45fr) minmax(220px, 1fr);
  align-items: baseline;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.pilot-facts span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.pilot-facts h3 {
  margin: 0;
  font: 400 27px "HDF Display", Georgia, serif;
}

.pilot-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.section {
  padding: clamp(88px, 9vw, 150px) clamp(24px, 6vw, 110px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 6vw;
  width: min(1480px, 100%);
  margin: 0 auto clamp(50px, 6vw, 88px);
}

.section-intro .kicker {
  grid-column: 1 / -1;
}

.section-intro h2,
.builder-copy h2,
.security-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 82px);
}

.section-intro > p:last-child,
.split-intro > p,
.builder-copy > p,
.security-copy > p,
.contact > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-intro.compact {
  grid-template-columns: 1fr;
}

.section-intro.compact h2 {
  max-width: 850px;
}

.principle-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  width: min(1480px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-card {
  min-height: 390px;
  padding: clamp(28px, 3vw, 46px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.principle-main {
  background: var(--blue);
  color: var(--white);
}

.card-number {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.principle-main .card-number {
  color: var(--aqua);
}

.principle-card h3 {
  margin: clamp(70px, 7vw, 110px) 0 20px;
  font: 400 clamp(26px, 2.5vw, 40px)/1.12 "HDF Display", Georgia, serif;
}

.principle-card p {
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.principle-main p {
  color: #dbe5ff;
}

.role-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.role-pills span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.role-pills i {
  color: var(--aqua);
  font-style: normal;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.kicker-light {
  color: var(--aqua);
}

.section-dark .section-intro h2 em {
  color: var(--aqua);
}

.role-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1480px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.role-flow article {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.role-flow article > span {
  color: var(--aqua);
  font-size: 10px;
}

.role-flow article > div {
  margin-top: 95px;
}

.role-flow small {
  color: #7f91a8;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.role-flow h3 {
  margin: 10px 0 16px;
  font: 400 29px "HDF Display", Georgia, serif;
}

.role-flow p {
  margin: 0;
  color: #9dacbf;
  font-size: 11px;
  line-height: 1.75;
}

.split-intro {
  grid-template-columns: 1.4fr 0.6fr;
}

.split-intro > div .kicker {
  margin-bottom: 22px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.payment-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(32px, 4vw, 60px);
  border-radius: var(--radius);
}

.payment-card::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.12;
}

.connect-card {
  background: var(--blue);
  color: var(--white);
}

.billing-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.billing-card .payment-head {
  border-color: var(--line);
}

.payment-head span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.payment-head b {
  font-size: 13px;
}

.payment-card h3 {
  max-width: 520px;
  margin: 64px 0 20px;
  font: 400 clamp(32px, 3.3vw, 52px)/1.05 "HDF Display", Georgia, serif;
}

.payment-card > p {
  max-width: 590px;
  font-size: 13px;
  line-height: 1.75;
}

.connect-card > p,
.connect-card > small {
  color: #dbe5ff;
}

.billing-card > p,
.billing-card > small {
  color: var(--muted);
}

.payment-card ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 38px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
}

.payment-card li::before {
  margin-right: 10px;
  color: var(--aqua);
  content: "✓";
}

.billing-card li::before {
  color: var(--blue);
}

.payment-card > small {
  display: block;
  max-width: 500px;
  font-size: 9px;
  line-height: 1.6;
}

.builder {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(620px, 1.3fr);
  align-items: center;
  gap: clamp(55px, 8vw, 130px);
  background: #eaf0fb;
}

.builder-copy {
  max-width: 610px;
  justify-self: end;
}

.builder-copy .kicker {
  margin-bottom: 22px;
}

.builder-copy > p {
  margin-top: 26px;
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
}

.check-list li::before {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 11px;
  border-radius: 50%;
  background: rgba(45, 108, 255, 0.1);
  color: var(--blue);
  content: "✓";
}

.editor-mockup {
  display: grid;
  grid-template-columns: 145px 220px minmax(300px, 1fr);
  min-height: 530px;
  overflow: hidden;
  border: 1px solid #cdd7e7;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 24px 12px;
  background: var(--ink);
  color: #8293aa;
  font-size: 9px;
}

.editor-sidebar b {
  margin: 0 8px 28px;
  color: var(--white);
  font-size: 11px;
}

.editor-sidebar span {
  padding: 11px 8px;
  border-radius: 7px;
}

.editor-sidebar .active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.editor-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 22px;
  border-right: 1px solid var(--line);
}

.editor-controls small {
  margin-top: 12px;
  color: #77859a;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatches i {
  width: 32px;
  height: 32px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.swatches i:nth-child(2) { background: var(--blue); }
.swatches i:nth-child(3) { background: #c46c43; }
.swatches i:nth-child(4) { background: #f0e9dc; }

.fake-select {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
}

.fake-range {
  position: relative;
  height: 4px;
  margin: 13px 0;
  border-radius: 4px;
  background: #dce3ee;
}

.fake-range span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.fake-range i {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.editor-controls button {
  margin-top: auto;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font: 700 9px "HDF Sans";
}

.editor-page {
  padding: 24px;
  background: #f6f2e8;
}

.page-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.page-nav i {
  width: 30px;
  height: 12px;
  margin-right: auto;
  border-radius: 2px;
  background: #173d35;
}

.page-nav span {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: #a69e8e;
}

.page-hero {
  position: relative;
  margin-top: 65px;
}

.page-hero small {
  color: #b45b35;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.page-hero strong {
  display: block;
  margin-top: 15px;
  font: 400 clamp(25px, 2.8vw, 48px)/1.06 "HDF Display";
}

.page-hero i {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #173d35, #317866);
}

.steps {
  background: var(--white);
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.steps li {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps li > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.steps li > div {
  margin-top: 95px;
}

.steps h3 {
  margin: 0 0 14px;
  font: 400 27px "HDF Display", Georgia, serif;
}

.steps li p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(60px, 9vw, 160px);
}

.security-copy {
  max-width: 750px;
  justify-self: end;
}

.security-copy .kicker {
  margin-bottom: 23px;
}

.security-copy > p {
  margin-top: 28px;
  color: #9dacc0;
}

.security-state {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
}

.security-list article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.security-list article > span {
  color: var(--aqua);
  font-size: 9px;
  font-weight: 700;
}

.security-list h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.security-list p {
  margin: 0;
  color: #8fa0b5;
  font-size: 11px;
  line-height: 1.7;
}

.contact {
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--blue);
  color: var(--white);
}

.contact .kicker {
  color: var(--aqua);
}

.contact > p:not(.kicker) {
  max-width: 700px;
  color: #dbe5ff;
}

.contact h2 {
  margin: 22px 0;
}

.faq {
  background: #eef3fb;
}

.faq-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 1px solid #c8d3e3;
}

.faq-list details {
  border-bottom: 1px solid #c8d3e3;
}

.faq-list summary {
  position: relative;
  padding: 26px 54px 26px 0;
  cursor: pointer;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #9eacc0;
  border-radius: 50%;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 900px;
  margin: -5px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.faq-list details a,
.legal-content a:not(.button),
.subpage-content a:not(.button) {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-more {
  width: max-content;
  margin: 34px auto 0;
}

.contact-note {
  margin-top: 22px !important;
  font-size: 10px !important;
}

.site-footer {
  padding: 50px clamp(24px, 5vw, 84px) 30px;
  background: #050c16;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 38px;
}

.footer-main > p {
  max-width: 420px;
  margin: 0;
  color: #8392a6;
  font-size: 11px;
  line-height: 1.6;
}

.footer-main nav,
.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 25px;
  border-top: 1px solid #1b2738;
  color: #728198;
  font-size: 10px;
}

.subpage-footer {
  padding-top: 20px;
}

dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: clamp(28px, 5vw, 58px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}

dialog::backdrop {
  background: rgba(4, 10, 18, 0.78);
  backdrop-filter: blur(6px);
}

dialog h2 {
  margin: 20px 0;
  font-size: clamp(42px, 5vw, 64px);
}

dialog > p:not(.kicker) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.portal-routes {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.portal-routes article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.portal-routes article > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.portal-routes article > div {
  display: grid;
  gap: 6px;
}

.portal-routes small {
  color: var(--muted);
  font-size: 10px;
}

.legal-page,
.error-page,
.subpage {
  min-height: 100svh;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 74px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.subpage-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
}

.subpage-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 0;
}

.subpage-intro {
  max-width: 820px;
  margin-bottom: 54px;
}

.subpage-intro h1 {
  margin: 20px 0 22px;
  font: 400 clamp(48px, 7vw, 84px)/0.98 "HDF Display", Georgia, serif;
  letter-spacing: -0.04em;
}

.subpage-intro > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.content-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-card > span {
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.content-card h2,
.content-card h3 {
  margin: 26px 0 14px;
  font: 400 clamp(28px, 3vw, 42px)/1.08 "HDF Display", Georgia, serif;
}

/* Les adresses de support sont de vraies informations, pas des titres
   décoratifs : elles doivent rester lisibles sans traverser la carte voisine. */
.content-card .support-address {
  max-width: 100%;
  font-size: clamp(25px, 2vw, 32px);
  overflow-wrap: anywhere;
  word-break: normal;
}

.content-card p,
.content-card li,
.subpage-section p,
.subpage-section li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.content-card ul,
.subpage-section ul,
.release-checklist {
  padding-left: 20px;
}

.subpage-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.subpage-section h2 {
  margin: 0 0 16px;
  font: 400 clamp(30px, 4vw, 48px) "HDF Display", Georgia, serif;
}

.pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid #d5a32b;
  border-radius: 999px;
  background: #fff8e6;
  color: #60430a;
  font-size: 10px;
  font-weight: 700;
}

.pilot-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  content: "";
}

.offers-catalog {
  display: grid;
  gap: 28px;
}

.offers-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 36px;
}

.offers-heading > div > span,
.cost-separation > header > span {
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.offers-heading h2 {
  max-width: 710px;
  margin: 12px 0 0;
  font: 400 clamp(34px, 4.5vw, 58px)/1.02 "HDF Display", Georgia, serif;
  letter-spacing: -0.035em;
}

.offers-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.pack-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(83, 223, 207, 0.1), transparent 170px),
    var(--white);
  box-shadow: 0 20px 55px rgba(8, 20, 37, 0.08);
}

.pack-card.is-featured {
  border-color: rgba(23, 86, 216, 0.48);
  background:
    radial-gradient(circle at 100% 0, rgba(83, 223, 207, 0.2), transparent 210px),
    linear-gradient(180deg, #f8fbff 0%, var(--white) 42%);
  box-shadow: 0 26px 72px rgba(15, 63, 174, 0.16);
  transform: translateY(-10px);
}

.pack-card.is-featured::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
  content: "";
}

.pack-index {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pack-index > span {
  color: var(--blue-dark);
  font: 400 22px/1 "HDF Display", Georgia, serif;
}

.pack-index > small {
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.pack-index > em {
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 999px;
  color: #075f51;
  background: #ddf8f2;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.pack-card h3 {
  margin: 24px 0 12px;
  font: 400 clamp(28px, 3vw, 38px)/1.05 "HDF Display", Georgia, serif;
  letter-spacing: -0.03em;
}

.pack-card header > p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.pack-commercial {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin: 24px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pack-commercial > strong {
  color: var(--ink);
  font-size: 12px;
}

.pack-commercial > span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 9px;
}

.pack-scope {
  margin-bottom: 22px;
}

.pack-scope h4 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.pack-scope ul,
.cost-columns ul,
.proposal-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack-scope li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid #eef1f5;
  color: #3d4b5f;
  font-size: 11px;
  line-height: 1.55;
}

.pack-scope li:last-child {
  border-bottom: 0;
}

.pack-scope li::before,
.proposal-checklist li::before {
  position: absolute;
  left: 0;
  color: #087a67;
  font-weight: 900;
  content: "✓";
}

.pack-options {
  margin: auto 0 22px;
  padding: 16px;
  border-radius: 13px;
  background: var(--paper);
}

.pack-options small {
  color: var(--blue-dark);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.pack-options p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.pack-cta {
  width: 100%;
}

.pack-card .button-outline {
  border: 1px solid #b8c5d6;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 20, 37, 0.07);
}

.pack-card .button-outline:hover {
  border-color: var(--ink);
  background: #f8fafc;
}

.pack-availability {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid #cdd8e6;
  border-radius: 13px;
  background: #f7faff;
}

.pack-availability > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.pack-availability strong {
  color: var(--ink);
}

.context-help {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  display: inline-flex;
  vertical-align: middle;
}

.context-help summary {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #aab9cc;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--white);
  font: 850 10px/1 "HDF Sans", Arial, sans-serif;
  cursor: help;
  list-style: none;
}

.context-help summary::-webkit-details-marker {
  display: none;
}

.context-help summary:hover,
.context-help summary:focus-visible,
.context-help[open] summary {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.context-help > p {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 12;
  width: min(280px, calc(100vw - 48px));
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #b9c7d8;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(8, 20, 37, 0.24);
  font: 400 10px/1.55 "HDF Sans", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
}

.context-help:hover > p,
.context-help:focus-within > p,
.context-help[open] > p {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.cost-separation {
  margin-top: clamp(58px, 8vw, 92px);
  padding: clamp(30px, 5vw, 56px);
  border-radius: 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 5%, rgba(83, 223, 207, 0.22), transparent 310px),
    var(--ink);
  box-shadow: 0 28px 80px rgba(8, 20, 37, 0.18);
}

.cost-separation > header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.6fr);
  align-items: end;
  gap: 12px 36px;
}

.cost-separation > header > span {
  grid-column: 1 / -1;
  color: var(--aqua);
}

.cost-separation > header h2 {
  max-width: 760px;
  margin: 0;
  font: 400 clamp(34px, 5vw, 58px)/1.02 "HDF Display", Georgia, serif;
  letter-spacing: -0.035em;
}

.cost-separation > header p {
  margin: 0;
  color: #c0ccdb;
  font-size: 11px;
  line-height: 1.65;
}

.cost-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.cost-columns article {
  min-width: 0;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.cost-columns article > small {
  color: var(--aqua);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.cost-columns h3 {
  margin: 10px 0 0;
  font-size: 19px;
}

.cost-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-help-dark summary {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.cost-columns ul {
  margin-top: 20px;
}

.cost-columns li {
  position: relative;
  padding: 9px 0 9px 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfdae7;
  font-size: 10px;
  line-height: 1.55;
}

.cost-columns li::before {
  position: absolute;
  left: 0;
  color: var(--aqua);
  content: "•";
}

.proposal-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin-top: 22px;
}

.proposal-checklist li {
  position: relative;
  padding: 14px 16px 14px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.proposal-checklist li::before {
  top: 14px;
  left: 12px;
}

@media (max-width: 980px) {
  .offers-heading,
  .cost-separation > header {
    grid-template-columns: 1fr;
  }

  .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-card.is-featured {
    transform: none;
  }

  .pack-card:last-child {
    grid-column: 1 / -1;
  }

  .pack-card:last-child header > p {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .offers-heading {
    gap: 16px;
  }

  .pack-grid,
  .cost-columns,
  .proposal-checklist ul {
    grid-template-columns: 1fr;
  }

  .pack-card:last-child {
    grid-column: auto;
  }

  .pack-card header > p {
    min-height: 0;
  }

  .pack-index {
    flex-wrap: wrap;
  }

  .pack-index > em {
    margin-left: 0;
  }

  .pack-availability {
    align-items: flex-start;
  }

  .pack-availability > p {
    text-align: left;
  }

  .context-help > p {
    right: -10px;
    left: auto;
    transform: translateY(5px);
  }

  .context-help:hover > p,
  .context-help:focus-within > p,
  .context-help[open] > p {
    transform: translateY(0);
  }

  .cost-card-title {
    align-items: flex-start;
  }
}

.subpage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 54px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.subpage-cta h2 {
  margin: 0 0 9px;
  font: 400 clamp(30px, 4vw, 50px) "HDF Display", Georgia, serif;
}

.subpage-cta p {
  max-width: 650px;
  margin: 0;
  color: #b6c2d2;
  font-size: 12px;
  line-height: 1.7;
}

.legal {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(50px, 8vw, 110px) 0;
}

.legal-navigation {
  margin-bottom: 50px;
  color: var(--blue);
  font-weight: 700;
}

.legal h1,
.error-page h1 {
  font-size: clamp(48px, 7vw, 84px);
}

.legal-warning {
  padding: 20px;
  border: 1px solid #e5b85a;
  border-radius: 12px;
  background: #fff8e9;
  color: #684a12;
  line-height: 1.65;
}

.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font: 400 30px "HDF Display";
}

.legal-section p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-section a {
  color: var(--blue);
  text-decoration: underline;
}

.error-page {
  display: grid;
  place-items: center;
  background: var(--blue);
}

.error-page-content {
  width: 100%;
  min-height: 100svh;
  align-content: center;
  padding: 40px 20px;
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 17px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
    gap: 45px;
  }

  .app-layout {
    grid-template-columns: 135px 1fr;
  }

  .builder {
    grid-template-columns: 1fr;
  }

  .builder-copy {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .topbar {
    min-height: 74px;
    padding-inline: 20px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 12px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
    visibility: hidden;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav a {
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 88px;
  }

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

  .product-preview {
    width: min(820px, 100%);
    margin: 15px auto 25px;
  }

  .app-window {
    transform: none;
  }

  .section-intro,
  .split-intro,
  .security,
  .pilot {
    grid-template-columns: 1fr;
  }

  .pilot-copy {
    justify-self: start;
  }

  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principle-main {
    grid-row: span 2;
  }

  .role-flow,
  .steps ol {
    grid-template-columns: 1fr 1fr;
  }

  .security-copy {
    justify-self: start;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 78px;
  }

  .topbar {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .brand-name strong {
    font-size: 15px;
  }

  .brand-name small {
    font-size: 7px;
  }

  .nav-toggle {
    width: 43px;
    height: 43px;
    margin-left: auto;
  }

  .primary-nav {
    top: 68px;
    right: 10px;
    left: 10px;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
  }

  .primary-nav a {
    min-height: 50px;
  }

  .portal-button {
    width: 43px;
    min-height: 43px;
    padding: 0;
  }

  .portal-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    gap: 52px;
    padding: 68px 18px 70px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 70px);
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .hero-actions .button,
  .contact-actions .button,
  .dialog-actions .button {
    width: 100%;
  }

  .quiet-link {
    justify-content: space-between;
  }

  .hero-points {
    display: grid;
    gap: 11px;
    margin-top: 30px;
  }

  .app-window {
    min-height: 440px;
    border-radius: 20px;
    transform: none;
  }

  .app-top {
    height: 54px;
    padding: 0 12px;
  }

  .app-layout {
    grid-template-columns: 70px 1fr;
    min-height: 386px;
  }

  .app-layout aside {
    padding: 15px 7px;
  }

  .app-layout aside strong {
    margin: 0 5px 15px;
    font-size: 14px;
  }

  .app-layout aside span {
    overflow: hidden;
    padding: 9px 4px;
    font-size: 7px;
    text-overflow: ellipsis;
  }

  .app-content {
    padding: 20px 12px;
  }

  .app-content > h2 {
    font-size: 25px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-row article:nth-child(n + 2) {
    display: none;
  }

  .project-list {
    padding: 12px;
  }

  .security-chip {
    position: relative;
    right: auto;
    bottom: auto;
    min-width: 0;
    width: calc(100% - 22px);
    margin: -18px auto 0;
  }

  .status-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 16px 20px;
  }

  .status-strip p {
    width: 100%;
    padding-left: 21px;
    line-height: 1.5;
  }

  .section {
    padding: 82px 18px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 42px;
  }

  .section-intro .kicker {
    grid-column: auto;
  }

  .section-intro h2,
  .builder-copy h2,
  .security-copy h2,
  .contact h2 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .principle-grid,
  .role-flow,
  .payment-grid,
  .steps ol {
    grid-template-columns: 1fr;
  }

  .pilot-facts article {
    grid-template-columns: 32px 1fr;
  }

  .pilot-facts p {
    grid-column: 2;
  }

  .principle-main {
    grid-row: auto;
  }

  .principle-card,
  .role-flow article,
  .steps li {
    min-height: 260px;
  }

  .principle-card h3,
  .role-flow article > div,
  .steps li > div {
    margin-top: 55px;
  }

  .payment-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .payment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-card h3 {
    margin-top: 48px;
  }

  .builder {
    gap: 50px;
  }

  .editor-mockup {
    grid-template-columns: 82px 1fr;
    min-height: 460px;
  }

  .editor-controls {
    padding: 20px 15px;
  }

  .editor-page {
    display: none;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-bottom div {
    display: grid;
    gap: 12px;
  }

  .subpage-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px 18px;
  }

  .subpage-header nav {
    gap: 12px 18px;
  }

  /* Les liens de navigation des pages longues restent de vraies cibles
     tactiles. Cette règle ne grossit pas les liens insérés dans les textes. */
  .subpage-header nav a,
  .subpage-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .subpage-content {
    width: min(100% - 32px, 1120px);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .subpage-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .subpage-cta .button {
    width: 100%;
  }

  dialog {
    padding: 34px 22px;
  }

  dialog .kicker {
    padding-right: 40px;
  }
}

@media (max-width: 390px) {
  .brand-name {
    display: none;
  }

  .app-top > span {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Catalogue des six vitrines : une lecture par besoin, sans vocabulaire technique. */
.showcase-catalog {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 5%, rgba(41, 207, 190, .14), transparent 30%),
    linear-gradient(180deg, #f7fafc, #eef3f8);
}

.showcase-catalog::before {
  content: "06";
  position: absolute;
  top: 46px;
  right: 4vw;
  color: rgba(14, 41, 70, .045);
  font-family: var(--font-display);
  font-size: clamp(150px, 18vw, 310px);
  line-height: .72;
  pointer-events: none;
}

.showcase-family-grid {
  width: min(1320px, 100%);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.showcase-family-card {
  min-height: 310px;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(25, 53, 82, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 46px rgba(8, 20, 37, .06);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.showcase-family-card::after {
  content: "";
  width: 54px;
  height: 4px;
  position: absolute;
  top: 0;
  left: 34px;
  border-radius: 0 0 5px 5px;
  background: var(--aqua);
}

.showcase-family-card:nth-child(2)::after { background: #e16b3d; }
.showcase-family-card:nth-child(3)::after { background: #b47b4e; }
.showcase-family-card:nth-child(4)::after { background: #bd374d; }
.showcase-family-card:nth-child(5)::after { background: #7a55d1; }
.showcase-family-card:nth-child(6)::after { background: #2f6cbc; }
.showcase-family-card:hover { transform: translateY(-4px); border-color: rgba(22, 83, 207, .28); box-shadow: 0 22px 54px rgba(8, 20, 37, .1); }
.showcase-family-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.showcase-family-card header span { color: var(--blue); font-size: 13px; font-weight: 800; }
.showcase-family-card header small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: right; }
.showcase-family-card h3 { margin: 45px 0 12px; font-family: var(--font-display); font-size: clamp(29px, 2.4vw, 40px); font-weight: 400; line-height: 1.02; }
.showcase-family-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.showcase-family-card ul { margin: auto 0 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.showcase-family-card li { padding: 7px 10px; border: 1px solid rgba(25, 53, 82, .11); border-radius: 999px; color: #405066; background: #f7f9fb; font-size: 11px; font-weight: 700; }
.showcase-catalog-foot { width: min(1320px, 100%); margin: 28px auto 0; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid rgba(41, 207, 190, .3); border-radius: 18px; background: rgba(236, 251, 248, .82); }
.showcase-catalog-foot p { max-width: 760px; margin: 0; color: #36534f; font-size: 13px; line-height: 1.6; }
.showcase-catalog-foot .button { flex: 0 0 auto; background: white; }
.showcase-offer-link { margin: 22px 0 0; padding: 18px 20px; border-left: 3px solid var(--aqua); border-radius: 0 12px 12px 0; color: #405066; background: #f1f8f7; font-size: 14px; line-height: 1.65; }
.showcase-offer-link a { color: var(--blue); font-weight: 800; }

@media (max-width: 960px) {
  .showcase-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-family-card { min-height: 290px; }
}

@media (max-width: 620px) {
  .showcase-family-grid { margin-top: 36px; grid-template-columns: 1fr; }
  .showcase-family-card { min-height: 0; }
  .showcase-family-card h3 { margin-top: 34px; }
  .showcase-family-card ul { margin-top: 26px; }
  .showcase-catalog-foot { align-items: stretch; flex-direction: column; }
  .showcase-catalog-foot .button { width: 100%; }
}

/* Les écrans de bureau très larges conservent une densité de lecture confortable
   sans agrandir artificiellement l'interface sur les formats courants. */
@media (min-width: 1900px) {
  .topbar {
    padding-inline: max(56px, calc((100vw - 1940px) / 2));
  }

  .hero {
    width: min(1940px, calc(100% - 72px));
    grid-template-columns: minmax(0, .9fr) minmax(700px, 1.1fr);
    gap: clamp(80px, 6vw, 132px);
  }

  .app-window {
    min-height: 640px;
  }

  .section-intro,
  .principle-grid,
  .role-flow {
    width: min(1680px, 100%);
  }

  .payment-grid {
    width: min(1480px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #9aa9bd;
    --muted: #2f3b4d;
  }

  .button,
  .content-card,
  .payment-card,
  .principle-card {
    border: 2px solid currentColor;
  }
}

/* --------------------------------------------------------------------------
   Interface produit 2026-08-26 : surfaces sémantiques, thème et secours

   Le plein écran reste la présentation nominale. Quand le contenu ne tient
   plus (zoom, grande police, faible hauteur), seul le panneau actif défile ;
   le document ne devient jamais une longue page pendant l'usage par onglets.
   Sans JavaScript, les panneaux redeviennent volontairement linéaires.
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --surface-page: #f3f6fb;
  --surface-elevated: #ffffff;
  --surface-soft: #edf2f8;
  --surface-frost: rgba(248, 250, 255, 0.94);
  --surface-accent: #eaf7f5;
  --text-on-dark: #f7fbff;
  --muted-on-dark: #bdc9d9;
  --focus-outer: #071321;
  --focus-inner: #59f1df;
  --surface-inverse: #071321;
  --text-inverse: #f7fbff;
  --muted-inverse: #bdc9d9;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f8fc;
  --ink-soft: #dbe6f4;
  --blue: #78a8ff;
  --blue-dark: #a7c5ff;
  --aqua: #62e7d8;
  --paper: #071321;
  --mist: #15243a;
  --line: #304159;
  --muted: #bdc9d9;
  --success: #5ee0b5;
  --surface-page: #071321;
  --surface-elevated: #0e1c2e;
  --surface-soft: #13243a;
  --surface-frost: rgba(8, 20, 37, 0.94);
  --surface-accent: #0d2d31;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f5f8fc;
    --ink-soft: #dbe6f4;
    --blue: #78a8ff;
    --blue-dark: #a7c5ff;
    --aqua: #62e7d8;
    --paper: #071321;
    --mist: #15243a;
    --line: #304159;
    --muted: #bdc9d9;
    --success: #5ee0b5;
    --surface-page: #071321;
    --surface-elevated: #0e1c2e;
    --surface-soft: #13243a;
    --surface-frost: rgba(8, 20, 37, 0.94);
    --surface-accent: #0d2d31;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.22);
  }
}

body {
  background-color: var(--surface-page);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font: 700 18px/1 var(--font-sans);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

:focus-visible {
  outline: 3px solid var(--focus-inner);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-outer);
}

.section-dark :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.community-hero :focus-visible,
.community-participation :focus-visible,
.community-business-cta :focus-visible,
.home-panel-contact :focus-visible,
.cost-separation :focus-visible,
.subpage-cta :focus-visible {
  outline-color: var(--focus-inner);
  box-shadow: 0 0 0 6px #ffffff;
}

.topbar,
.subpage-header,
body.home-viewport .home-topbar {
  padding-left: max(clamp(20px, 4.5vw, 76px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 4.5vw, 76px), env(safe-area-inset-right));
  background: var(--surface-frost);
  border-color: var(--line);
}

.subpage-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer,
.subpage-footer {
  padding-left: max(clamp(20px, 4.5vw, 76px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 4.5vw, 76px), env(safe-area-inset-right));
}

.content-card,
.pack-card,
.faq-list details,
.legal-section,
.community-publication,
.community-state,
.community-participation,
.community-business-cta,
.community-account-action,
.community-share-fallback,
.community-native-share,
.community-share-intent,
.community-social-link {
  background-color: var(--surface-elevated);
  border-color: var(--line);
  color: var(--ink);
}

body.home-viewport {
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--aqua) 18%, transparent), transparent 26%),
    linear-gradient(135deg, var(--surface-page), var(--surface-soft));
}

body.home-viewport .home-panel {
  overflow-y: auto;
}

body.home-viewport .home-topbar,
body.home-viewport .home-footer,
body.home-viewport .home-tabs button[aria-selected="true"],
body.home-viewport .solution-path-grid article,
body.home-viewport .home-showcase-grid .showcase-family-card,
body.home-viewport .home-pack-grid article,
body.home-viewport .payment-compact-grid article,
body.home-viewport .showcase-catalog-foot,
body.home-viewport .home-steps li,
body.home-viewport .launch-proof-grid article,
body.home-viewport .home-more-card {
  background: var(--surface-elevated);
  border-color: var(--line);
  color: var(--ink);
}

body.home-viewport .home-boundary,
body.home-viewport .security-banner {
  background: var(--surface-accent);
  color: var(--ink-soft);
}

body.home-viewport .promo-heading p {
  color: var(--muted);
  font-size: 11px;
}

/* Le panneau Solutions combine une vraie miniature d'interface et quatre
   bénéfices courts ; aucune donnée d'entreprise n'est simulée. */
body.home-viewport .solution-showcase {
  width: min(1540px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(430px, 0.9fr);
  gap: 10px;
}

body.home-viewport .solution-console-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #2b3d56;
  border-radius: 20px;
  background: #091628;
  color: var(--text-on-dark);
  box-shadow: 0 20px 58px rgba(3, 10, 20, 0.28);
}

body.home-viewport .solution-console-preview > header {
  min-height: 48px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #2b3d56;
}

body.home-viewport .solution-console-preview > header > span {
  display: flex;
  gap: 5px;
}

body.home-viewport .solution-console-preview > header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58dfd0;
}

body.home-viewport .solution-console-preview > header i:nth-child(2) { background: #78a8ff; }
body.home-viewport .solution-console-preview > header i:nth-child(3) { background: #f2b84b; }
body.home-viewport .solution-console-preview > header strong { font-size: 10px; }
body.home-viewport .solution-console-preview > header small { color: #b7c4d6; font-size: 8px; }

body.home-viewport .solution-console-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.27fr) minmax(0, 1fr);
}

body.home-viewport .solution-console-body nav {
  padding: clamp(13px, 1.7vw, 25px) 10px;
  display: grid;
  align-content: start;
  gap: 7px;
  border-right: 1px solid #2b3d56;
}

body.home-viewport .solution-console-body nav span {
  min-height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #aebcd0;
  font-size: 8px;
}

body.home-viewport .solution-console-body nav span.is-active {
  background: #17376b;
  color: #ffffff;
}

body.home-viewport .solution-console-main {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 82% 20%, rgba(88, 223, 208, 0.15), transparent 30%),
    linear-gradient(150deg, #0d1c31, #091628);
}

body.home-viewport .solution-console-main > p {
  margin: 0;
  color: #62e7d8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.home-viewport .solution-console-main h3 {
  margin: 10px 0 clamp(18px, 3vh, 32px);
  font: 400 clamp(26px, 3vw, 44px)/0.98 var(--font-display);
}

body.home-viewport .solution-console-main > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body.home-viewport .solution-console-main > div span {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid #31435d;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

body.home-viewport .solution-console-main small { color: #9caec4; font-size: 7px; }
body.home-viewport .solution-console-main strong { font-size: 8px; }

body.home-viewport .solution-path-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.home-viewport .solution-path-grid article {
  min-width: 0;
  padding: clamp(13px, 1.5vw, 22px);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

body.home-viewport .solution-path-grid article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface-soft));
  color: var(--blue-dark);
  font-size: 8px;
  font-weight: 700;
}

body.home-viewport .solution-path-grid h3 {
  margin: 0 0 5px;
  font: 400 clamp(19px, 1.6vw, 25px)/1 var(--font-display);
}

body.home-viewport .solution-path-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

body.home-viewport .solution-path-grid small {
  grid-column: 2;
  color: var(--blue-dark);
  font-size: 8px;
  font-weight: 700;
}

body.home-viewport .home-boundary button {
  min-height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font: 700 10px/1 var(--font-sans);
  cursor: pointer;
}

/* Six vraies miniatures de pages : chaque famille conserve sa composition et
   sélectionne un aperçu au clic ou au clavier. */
body.home-viewport .home-showcase-grid .showcase-family-card {
  position: relative;
  padding: clamp(10px, 1.15vw, 17px);
  display: grid;
  grid-template-columns: minmax(108px, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 4px 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.home-viewport .home-showcase-grid .showcase-family-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--blue) 18%, transparent);
  transform: translateY(-1px);
}

body.home-viewport .showcase-miniature {
  min-width: 0;
  min-height: 0;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: 18px minmax(68px, 1fr) 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, #071321);
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(7, 19, 33, 0.14);
}

body.home-viewport .mini-browser {
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: #e8edf5;
}

body.home-viewport .mini-browser i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7f8ea3;
}

body.home-viewport .mini-hero {
  position: relative;
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(4, 10, 17, 0.08), rgba(4, 10, 17, 0.82)), url("/assets/hdf-promotions-panorama-v1.png");
  background-repeat: no-repeat;
  background-size: cover, 500% auto;
  background-position: center, 0% center;
  color: #ffffff;
}

body.home-viewport [data-showcase-family="services"] .mini-hero { background-position: center, 75% center; }
body.home-viewport [data-showcase-family="artisan"] .mini-hero { background-position: center, 25% center; }
body.home-viewport [data-showcase-family="restaurant"] .mini-hero { background-position: center, 50% center; }
body.home-viewport [data-showcase-family="events"] .mini-hero { background-position: center, 100% center; }
body.home-viewport [data-showcase-family="information"] .mini-hero { background-position: center, 73% center; }

body.home-viewport .mini-hero b {
  font: 400 clamp(12px, 1vw, 17px)/1 var(--font-display);
}

body.home-viewport .mini-hero em {
  width: max-content;
  max-width: 100%;
  padding: 4px 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
  color: #0b1a2c;
  font: normal 700 6px/1 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-viewport .mini-layout {
  padding: 5px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4px;
}

body.home-viewport .mini-layout i {
  border-radius: 3px;
  background: #d8e2ef;
}

body.home-viewport .showcase-family-card header,
body.home-viewport .showcase-family-card h3,
body.home-viewport .showcase-family-card p,
body.home-viewport .showcase-family-card ul {
  grid-column: 2;
}

body.home-viewport .showcase-family-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

body.home-viewport .showcase-family-card header > span {
  color: var(--blue-dark);
  font-size: 7px;
  font-weight: 700;
}

body.home-viewport .showcase-card-hitarea {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

body.home-viewport .showcase-family-card:has(.showcase-card-hitarea:focus-visible) {
  border-color: var(--focus-inner);
  box-shadow: 0 0 0 5px var(--focus-outer);
}

body.home-viewport .showcase-card-hitarea:focus-visible {
  outline-offset: -4px;
  box-shadow: none;
}

/* Les packs reprennent une comparaison commerciale familière, sans recopier
   une marque ni inventer un prix avant le cadrage écrit. */
body.home-viewport .home-pack-grid {
  width: min(1540px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.home-viewport .home-pack-grid article {
  position: relative;
  padding: clamp(14px, 1.55vw, 23px);
}

body.home-viewport .home-pack-grid article.is-featured {
  background: linear-gradient(150deg, color-mix(in srgb, var(--blue) 10%, var(--surface-elevated)), var(--surface-elevated));
}

body.home-viewport .pack-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  border-radius: 6px;
  background: #13795b;
  color: #ffffff;
  font: normal 700 7px/1 var(--font-sans);
}

body.home-viewport .pack-mark {
  width: 31px;
  height: 31px;
  margin-top: 7px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #62e7d8);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

body.home-viewport .home-pack-grid h3 {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.05vw, 34px);
}

body.home-viewport .home-pack-grid strong {
  margin-top: 6px;
}

body.home-viewport .home-pack-grid ul {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  list-style: none;
}

body.home-viewport .home-pack-grid li::before {
  margin-right: 6px;
  color: var(--success);
  content: "✓";
  font-weight: 700;
}

body.home-viewport .home-pack-grid .button {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding-inline: 10px;
  justify-content: center;
  font-size: 9px;
}

body.home-viewport .home-pack-grid small.pack-secure {
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0;
  text-align: center;
}

body.home-viewport .home-pack-grid small.pack-secure::before {
  margin-right: 4px;
  content: "▣";
}

/* Le contenu reste entièrement lisible si le contrôleur ne démarre pas. */
html:has(> body.home-viewport:not(.home-is-ready)) {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body.home-viewport:not(.home-is-ready) {
  height: auto;
  min-height: 100vh;
  display: block;
  overflow: visible;
}

body.home-viewport:not(.home-is-ready) .home-topbar {
  position: sticky;
  top: 0;
}

body.home-viewport:not(.home-is-ready) .home-stage,
body.home-viewport:not(.home-is-ready) .home-panel {
  height: auto;
  min-height: min(760px, 100vh);
  overflow: visible;
}

body.home-viewport:not(.home-is-ready) .home-panel + .home-panel {
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  body.home-viewport .solution-showcase {
    grid-template-columns: minmax(330px, 1fr) minmax(360px, 0.95fr);
  }

  body.home-viewport .home-showcase-grid .showcase-family-card {
    grid-template-columns: minmax(92px, 0.78fr) minmax(0, 1.22fr);
  }
}

@media (max-width: 900px) {
  body.home-viewport .solution-showcase {
    grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 0.95fr);
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  body.home-viewport .solution-console-preview,
  body.home-viewport .solution-path-grid {
    scroll-snap-align: start;
  }

  body.home-viewport .home-pack-grid {
    grid-template-columns: repeat(4, minmax(205px, 1fr));
  }
}

@media (max-width: 760px) {
  body.home-viewport .home-actions {
    gap: 6px;
  }

  body.home-viewport .home-actions > a:not(.button) {
    display: none;
  }

  body.home-viewport .theme-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  body.home-viewport .solution-showcase {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    grid-template-columns: none;
    gap: 8px;
  }

  body.home-viewport .solution-path-grid {
    min-width: 340px;
  }

  body.home-viewport .home-showcase-grid .showcase-family-card {
    grid-template-columns: minmax(105px, 0.86fr) minmax(0, 1.14fr);
  }
}

@media (max-height: 720px) {
  body.home-viewport .home-panel-standard,
  body.home-viewport .home-panel-inner {
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  body.home-viewport .solution-showcase,
  body.home-viewport .home-showcase-grid,
  body.home-viewport .home-pack-grid {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  body.home-viewport .solution-showcase {
    min-height: 0;
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  body.home-viewport .home-showcase-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 72%);
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  body.home-viewport .home-showcase-grid .showcase-family-card {
    scroll-snap-align: start;
  }
}

@media (forced-colors: active) {
  .theme-toggle,
  .button,
  .showcase-family-card,
  .home-pack-grid article,
  .solution-path-grid article,
  .content-card,
  .pack-card,
  .context-help summary {
    border: 2px solid ButtonText;
    forced-color-adjust: auto;
  }

  body.home-viewport .mini-hero,
  body.home-viewport .solution-console-preview {
    background: Canvas;
    color: CanvasText;
  }
}

/* ========================================================================== 
   Catalogue Vitrines 2026-08-28

   Les six cartes ne partagent volontairement pas le même gabarit intérieur.
   Chaque vignette reste une capture de la vraie page d'accueil de sa démo :
   catalogue, dispatch, portfolio, menu, affiche et hub vidéo.
   ========================================================================== */
body.home-viewport #home-panel-vitrines .showcase-demo-grid {
  gap: clamp(9px, 1vw, 15px);
}

body.home-viewport #home-panel-vitrines .showcase-demo-card {
  position: relative;
  isolation: isolate;
  border: 0;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 10%, transparent);
}

body.home-viewport #home-panel-vitrines .showcase-demo-card::before {
  display: none;
}

body.home-viewport #home-panel-vitrines .showcase-demo-link {
  position: relative;
  z-index: 1;
  min-height: 0;
  text-decoration: none;
}

body.home-viewport #home-panel-vitrines .showcase-demo-miniature {
  align-self: stretch;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
}

body.home-viewport #home-panel-vitrines .showcase-demo-miniature::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

body.home-viewport #home-panel-vitrines .showcase-demo-card > ul {
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
  overflow: hidden;
  border: 0;
}

body.home-viewport #home-panel-vitrines .showcase-demo-card > ul li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 1. Marketplace : grand écran marchand, colonne d'action franche. */
body.home-viewport #home-panel-vitrines .is-commerce {
  border-radius: 24px 8px 24px 8px;
  background: #eaf2ff;
}

body.home-viewport #home-panel-vitrines .is-commerce .showcase-demo-link {
  grid-template-columns: minmax(0, 1.45fr) minmax(145px, 0.72fr);
  padding: 9px;
  gap: 12px;
}

body.home-viewport #home-panel-vitrines .is-commerce .showcase-demo-miniature {
  border-radius: 17px 5px 17px 5px;
}

body.home-viewport #home-panel-vitrines .is-commerce .showcase-demo-content {
  align-content: end;
  padding: 10px 8px 7px 0;
}

body.home-viewport #home-panel-vitrines .is-commerce > ul {
  justify-content: flex-end;
  padding: 4px 10px 9px;
}

/* 2. Intervention : la capture devient le fond, comme un tableau de dispatch. */
body.home-viewport #home-panel-vitrines .is-services {
  overflow: hidden;
  border-radius: 8px;
  background: #071d2a;
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-services .showcase-demo-link {
  display: block;
  padding: 0;
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-services .showcase-demo-miniature {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

body.home-viewport #home-panel-vitrines .is-services .showcase-demo-miniature::after {
  background: linear-gradient(90deg, rgba(4, 22, 32, 0.96), rgba(4, 22, 32, 0.68) 47%, rgba(4, 22, 32, 0.12));
  box-shadow: none;
}

body.home-viewport #home-panel-vitrines .is-services .showcase-demo-content {
  position: relative;
  z-index: 1;
  width: min(58%, 310px);
  height: 100%;
  padding: clamp(16px, 1.8vw, 26px);
  align-content: center;
}

body.home-viewport #home-panel-vitrines .is-services .showcase-demo-content small,
body.home-viewport #home-panel-vitrines .is-services .showcase-demo-content strong,
body.home-viewport #home-panel-vitrines .is-services .showcase-demo-content span {
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-services .showcase-demo-content b {
  color: #071d2a;
  background: #71e3dc;
  border-color: transparent;
}

body.home-viewport #home-panel-vitrines .is-services > ul {
  justify-content: flex-start;
  padding: 7px 10px;
  color: #fff;
  background: #071d2a;
}

body.home-viewport #home-panel-vitrines .is-services > ul li {
  color: #dffaf7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* 3. Portfolio : lecture éditoriale à gauche, matière plein cadre à droite. */
body.home-viewport #home-panel-vitrines .is-artisan {
  border-radius: 0 26px 0 26px;
  background: #f2e8da;
}

body.home-viewport #home-panel-vitrines .is-artisan .showcase-demo-link {
  grid-template-columns: minmax(135px, 0.72fr) minmax(0, 1.28fr);
  padding: 0;
  gap: 0;
}

body.home-viewport #home-panel-vitrines .is-artisan .showcase-demo-miniature {
  grid-column: 2;
  grid-row: 1;
  border-radius: 0 26px 0 0;
}

body.home-viewport #home-panel-vitrines .is-artisan .showcase-demo-content {
  grid-column: 1;
  grid-row: 1;
  align-content: center;
  padding: clamp(14px, 1.6vw, 24px);
}

body.home-viewport #home-panel-vitrines .is-artisan .showcase-demo-content strong {
  font-family: var(--font-display);
}

body.home-viewport #home-panel-vitrines .is-artisan > ul {
  padding: 7px 12px;
  background: #3a2a21;
}

body.home-viewport #home-panel-vitrines .is-artisan > ul li {
  color: #fff3e4;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

/* 4. Restaurant : visuel en assiette ronde et bloc menu terracotta. */
body.home-viewport #home-panel-vitrines .is-restaurant {
  border-radius: 999px 26px 26px 999px;
  background: #fff4e8;
}

body.home-viewport #home-panel-vitrines .is-restaurant .showcase-demo-link {
  grid-template-columns: minmax(125px, 0.78fr) minmax(0, 1.22fr);
  padding: 10px 16px 10px 10px;
  gap: 15px;
}

body.home-viewport #home-panel-vitrines .is-restaurant .showcase-demo-miniature {
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(113, 42, 30, 0.18);
}

body.home-viewport #home-panel-vitrines .is-restaurant .showcase-demo-content {
  align-content: center;
}

body.home-viewport #home-panel-vitrines .is-restaurant > ul {
  justify-content: flex-end;
  padding: 3px 18px 8px 28%;
}

/* 5. Événement : affiche verticale et panneau de programme sombre. */
body.home-viewport #home-panel-vitrines .is-events {
  border-radius: 14px;
  background: linear-gradient(135deg, #110b2e, #32127a);
}

body.home-viewport #home-panel-vitrines .is-events .showcase-demo-link {
  grid-template-columns: minmax(110px, 0.62fr) minmax(0, 1.38fr);
  padding: 10px;
  gap: 15px;
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-events .showcase-demo-miniature {
  border-radius: 6px;
}

body.home-viewport #home-panel-vitrines .is-events .showcase-demo-miniature img {
  object-position: 10% top;
}

body.home-viewport #home-panel-vitrines .is-events .showcase-demo-content {
  align-content: end;
  padding: 8px 6px 8px 0;
}

body.home-viewport #home-panel-vitrines .is-events .showcase-demo-content small,
body.home-viewport #home-panel-vitrines .is-events .showcase-demo-content strong,
body.home-viewport #home-panel-vitrines .is-events .showcase-demo-content span {
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-events .showcase-demo-content b {
  color: #160c32;
  background: #ff75b8;
  border-color: transparent;
}

body.home-viewport #home-panel-vitrines .is-events > ul {
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.18);
}

body.home-viewport #home-panel-vitrines .is-events > ul li {
  color: #f4eaff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

/* 6. Hub vidéo : écran panoramique au-dessus d'une barre de chaîne. */
body.home-viewport #home-panel-vitrines .is-information {
  border-radius: 26px 26px 8px 8px;
  background: #090e18;
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-link {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 8px;
  gap: 6px;
  color: #fff;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-miniature {
  grid-row: 1;
  border-radius: 19px 19px 5px 5px;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-content {
  grid-row: 2;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  padding: 4px 5px;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-content small {
  grid-column: 1;
  grid-row: 1 / 3;
  color: #65e6d7;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-content strong {
  grid-column: 2;
  grid-row: 1;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 750;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-content span {
  grid-column: 2;
  grid-row: 2;
  color: #aebcd0;
}

body.home-viewport #home-panel-vitrines .is-information .showcase-demo-content b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #fff;
  border-color: #6572ff;
  background: #6572ff;
}

body.home-viewport #home-panel-vitrines .is-information > ul {
  justify-content: flex-start;
  padding: 6px 12px;
  background: #111a2b;
}

body.home-viewport #home-panel-vitrines .is-information > ul li {
  color: #dce6f5;
  border-color: #2b3850;
  background: #172338;
}

/* ========================================================================== 
   Communauté en écran fixe

   L'en-tête, l'introduction, les garanties, le panneau et le pied restent
   immobiles. Seule .community-wall-main (le mur) accepte un défilement.
   ========================================================================== */
html:has(> body.community-page) {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.community-page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  overscroll-behavior: none;
}

body.community-page > .site-header,
body.community-page > .site-footer {
  position: relative;
  z-index: 20;
  flex: none;
}

body.community-page > .community-stage {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: clamp(8px, 1.35vh, 14px) clamp(10px, 2vw, 30px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(7px, 1vh, 11px);
  overflow: hidden;
  scrollbar-gutter: auto;
}

body.community-page .community-hero {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(10px, 1.5vh, 16px) clamp(16px, 2.2vw, 30px);
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 3vw, 50px);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(8, 20, 37, 0.13);
}

body.community-page .community-hero::before {
  right: -75px;
  bottom: -170px;
  width: 290px;
  height: 290px;
}

body.community-page .community-hero .kicker {
  margin: 0 0 4px;
  font-size: 8px;
}

body.community-page .community-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(25px, 2.55vw, 42px);
  line-height: 0.98;
}

body.community-page .community-hero-copy > p:last-of-type {
  max-width: 760px;
  margin-top: 6px;
  font-size: clamp(9px, 0.85vw, 12px);
  line-height: 1.4;
}

body.community-page .community-hero-actions {
  margin-top: 4px;
  gap: 8px;
}

body.community-page .community-hero-actions .quiet-link {
  min-height: 24px;
  font-size: 9px;
}

body.community-page .community-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body.community-page .community-trust article {
  min-height: 0;
  padding: 9px 10px 9px 34px;
  border-radius: 12px;
}

body.community-page .community-trust article > .community-trust-mark {
  top: 11px;
  left: 12px;
  width: auto;
  height: auto;
  font-size: 9px;
}

body.community-page .community-trust h2 {
  margin: 0 0 2px;
  font-size: 10px;
}

body.community-page .community-trust p {
  font-size: 8px;
  line-height: 1.3;
}

body.community-page .community-wall-section {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: clamp(20px, 2vw, 30px);
  background: color-mix(in srgb, var(--surface-elevated) 94%, transparent);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--ink) 10%, transparent);
}

body.community-page .community-wall-heading {
  min-height: 52px;
  padding: 8px clamp(14px, 1.7vw, 24px);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

body.community-page .community-wall-heading .kicker {
  margin: 0;
  font-size: 7px;
}

body.community-page .community-wall-heading h2 {
  margin: 1px 0 0;
  font-size: clamp(20px, 1.8vw, 29px);
}

body.community-page .community-wall-meta {
  gap: 2px;
}

body.community-page .community-wall-meta > p:last-child {
  margin: 0;
  font-size: 8px;
}

body.community-page .community-source-status {
  min-height: 26px;
  margin: 0;
  padding: 5px 9px 5px 25px;
  font-size: 8px;
}

body.community-page .community-source-status::before {
  left: 9px;
}

body.community-page .community-wall-layout {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 10px;
  overflow: hidden;
}

body.community-page .community-wall-main {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--blue) 56%, var(--line)) transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

body.community-page .community-wall-main::-webkit-scrollbar {
  width: 8px;
}

body.community-page .community-wall-main::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 56%, var(--line));
  background-clip: padding-box;
}

body.community-page .community-feed {
  min-height: 0;
  padding: 9px;
  overflow: visible;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.community-page .community-state {
  min-height: 100%;
  border: 0;
  border-radius: 17px;
  box-shadow: none;
}

body.community-page .community-participation {
  position: static;
  top: auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(13px, 1.5vw, 20px);
  overflow: hidden;
  border-radius: 18px;
}

body.community-page .community-participation h2 {
  font-size: clamp(22px, 2vw, 30px);
}

body.community-page .community-participation > p:not(.community-aside-kicker) {
  margin: 8px 0 10px;
  font-size: 9px;
  line-height: 1.4;
}

body.community-page .community-participation .button {
  min-height: 36px;
  font-size: 9px;
}

body.community-page .community-participation ul {
  margin-top: 8px;
  padding-top: 4px;
}

body.community-page .community-participation li {
  padding: 5px 0 5px 13px;
  font-size: 8px;
}

body.community-page .community-participation li::before {
  top: 9px;
}

body.community-page .community-business-cta {
  width: 100%;
  min-height: 45px;
  margin: 0;
  padding: 6px clamp(14px, 1.7vw, 24px);
  gap: 16px;
  border-radius: 0;
  box-shadow: none;
}

body.community-page .community-business-cta > div {
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: baseline;
  gap: 11px;
}

body.community-page .community-business-cta .kicker {
  flex: 0 0 auto;
  font-size: 7px;
}

body.community-page .community-business-cta h2 {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
}

body.community-page .community-business-cta p:last-child {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.community-page .community-business-cta .button {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 8px;
}

body.community-page > .site-footer {
  min-height: 38px;
  padding: 0 clamp(12px, 2vw, 30px);
  border-top: 1px solid var(--line);
  background: var(--surface-elevated);
}

body.community-page > .site-footer .footer-main {
  display: none;
}

body.community-page > .site-footer .footer-bottom {
  min-height: 38px;
  padding: 0;
  align-items: center;
  border: 0;
  font-size: 8px;
}

/* Le master de l'icône est transparent : aucune tuile CSS ne doit le recréer. */
.site-header .brand-mark,
.site-footer .brand-mark,
body.home-viewport .brand-mark {
  object-fit: contain;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

@media (max-width: 900px) {
  body.community-page .community-hero {
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  }

  body.community-page .community-trust p {
    display: none;
  }

  body.community-page .community-wall-layout {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 215px);
  }

  body.community-page .community-participation li span {
    display: none;
  }
}

@media (max-width: 680px) {
  body.community-page .community-stage {
    padding: 7px;
    gap: 6px;
  }

  body.community-page .community-hero {
    padding: 8px 10px;
    grid-template-columns: 1fr;
    gap: 6px;
    border-radius: 14px;
  }

  body.community-page .community-hero .kicker,
  body.community-page .community-hero-copy > p:last-of-type,
  body.community-page .community-hero-actions {
    display: none;
  }

  body.community-page .community-hero h1 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  body.community-page .community-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  body.community-page .community-trust article {
    padding: 6px 5px 6px 19px;
    border-radius: 8px;
  }

  body.community-page .community-trust article > .community-trust-mark {
    top: 7px;
    left: 7px;
    font-size: 7px;
  }

  body.community-page .community-trust h2 {
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.community-page .community-wall-section {
    border-radius: 15px;
  }

  body.community-page .community-wall-heading {
    min-height: 42px;
    padding: 6px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  body.community-page .community-wall-heading .kicker,
  body.community-page .community-wall-meta > p:last-child {
    display: none;
  }

  body.community-page .community-wall-heading h2 {
    font-size: 16px;
  }

  body.community-page .community-source-status {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.community-page .community-wall-layout {
    padding: 6px;
    grid-template-columns: minmax(0, 1fr);
  }

  body.community-page .community-participation {
    display: none;
  }

  body.community-page .community-feed {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  body.community-page .community-state {
    min-height: 100%;
    padding: 14px;
  }

  body.community-page .community-business-cta {
    min-height: 39px;
    padding: 4px 8px;
  }

  body.community-page .community-business-cta .kicker,
  body.community-page .community-business-cta p:last-child {
    display: none;
  }

  body.community-page .community-business-cta h2 {
    font-size: 10px;
  }

  body.community-page .community-business-cta .button {
    min-height: 30px;
  }

  body.community-page > .site-footer .footer-bottom {
    justify-content: center;
  }

  body.community-page > .site-footer .footer-bottom > div {
    display: none;
  }

  body.home-viewport #home-panel-vitrines .showcase-demo-grid {
    grid-template-rows: repeat(2, minmax(185px, 1fr));
  }

  body.home-viewport #home-panel-vitrines .showcase-demo-card {
    min-width: 0;
  }

  body.home-viewport #home-panel-vitrines .showcase-demo-content span {
    display: none;
  }

  body.home-viewport #home-panel-vitrines .is-restaurant {
    border-radius: 100px 20px 20px 100px;
  }
}

@media (max-height: 680px) {
  body.community-page .community-hero-copy > p:last-of-type,
  body.community-page .community-hero-actions,
  body.community-page .community-trust p,
  body.community-page .community-participation > p:not(.community-aside-kicker),
  body.community-page .community-participation li span {
    display: none;
  }

  body.community-page .community-hero {
    padding-block: 7px;
  }

  body.community-page .community-wall-layout {
    padding-block: 6px;
  }
}

@media (forced-colors: active) {
  body.home-viewport #home-panel-vitrines .showcase-demo-card,
  body.community-page .community-hero,
  body.community-page .community-wall-section,
  body.community-page .community-wall-main,
  body.community-page .community-participation {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   Curseurs et sélection HDF

   Les deux curseurs sont des SVG locaux. Ils ne sont chargés que lorsqu'un
   dispositif dispose d'un vrai pointeur fin ; le tactile et les couleurs
   forcées conservent les curseurs natifs du système.
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: url("/assets/hdf-cursor.svg") 5 4, auto;
  }

  a[href],
  button,
  summary,
  select,
  label[for],
  [role="button"],
  [role="tab"],
  [data-showcase-preview],
  [data-promo] {
    cursor: url("/assets/hdf-cursor-action.svg") 5 4, pointer;
  }

  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  [contenteditable="true"] {
    cursor: text;
  }

  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  input[type="checkbox"],
  input[type="radio"] {
    cursor: url("/assets/hdf-cursor-action.svg") 5 4, pointer;
  }

  :disabled,
  [aria-disabled="true"] {
    cursor: not-allowed;
  }
}

/* Les commandes et cartes visuelles ne sélectionnent pas par accident. */
.site-header,
.site-footer nav,
button,
.button,
summary,
[role="button"],
[role="tab"],
.promo-card,
.showcase-family-card,
.pack-card,
.home-pack-grid article,
.community-trust,
.community-participation {
  -webkit-user-select: none;
  user-select: none;
}

/* Ces trois expériences sont des interfaces visuelles. Le texte informatif,
   les publications et les coordonnées utiles restent toutefois copiables. */
body.home-viewport,
body.community-page,
body.offers-page {
  -webkit-user-select: none;
  user-select: none;
}

body.home-viewport p,
body.home-viewport li,
body.community-page .community-publication-copy,
body.community-page .community-comment-body,
body.community-page .community-state-copy p,
body.community-page .community-wall-meta p,
body.offers-page .subpage-intro p,
body.offers-page .pack-card p,
body.offers-page .pack-card li,
body.offers-page .cost-separation p,
body.legal-page,
input,
textarea,
pre,
code,
[contenteditable="true"],
[data-copyable],
.copyable,
a[href^="mailto:"],
a[href^="tel:"] {
  -webkit-user-select: text;
  user-select: text;
}

@media (hover: none), (pointer: coarse) {
  html,
  body {
    cursor: auto;
  }

  a[href],
  button,
  summary,
  select,
  label[for],
  [role="button"],
  [role="tab"] {
    cursor: pointer;
  }
}

@media (forced-colors: active) {
  html,
  body {
    cursor: auto !important;
  }

  a[href],
  button,
  summary,
  select,
  label[for],
  [role="button"],
  [role="tab"] {
    cursor: pointer !important;
  }

  input,
  textarea,
  [contenteditable="true"] {
    cursor: text !important;
  }
}

/* --------------------------------------------------------------------------
   Communauté 2026-08-27 : mur professionnel compact

   Le mur est visible dès le premier écran desktop. La page ne fabrique aucun
   contenu : ces règles organisent uniquement les états rendus par community.js.
   -------------------------------------------------------------------------- */
.community-page {
  background:
    radial-gradient(circle at 88% 6%, color-mix(in srgb, var(--aqua) 12%, transparent), transparent 25%),
    linear-gradient(135deg, var(--surface-page), var(--surface-soft));
}

.community-stage {
  --community-edge: max(clamp(16px, 2.4vw, 42px), env(safe-area-inset-left));
  width: 100%;
  padding: 16px var(--community-edge) 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.community-stage > .community-hero,
.community-stage > .community-wall-section,
.community-stage > .community-business-cta {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.community-stage .community-hero {
  min-height: 0;
  padding: clamp(20px, 2.35vw, 34px);
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 3.2vw, 54px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--aqua) 22%, #1c3552);
  border-radius: 26px;
  background:
    linear-gradient(112deg, rgba(88, 223, 208, 0.14), transparent 38%),
    linear-gradient(145deg, #071321, #0c2746 62%, #0a3d51);
  box-shadow: 0 18px 50px rgba(8, 20, 37, 0.15);
}

.community-stage .community-hero::before {
  right: -90px;
  bottom: -210px;
  width: 360px;
  height: 360px;
  box-shadow: 0 0 0 58px rgba(88, 223, 208, 0.035), 0 0 0 116px rgba(88, 223, 208, 0.02);
}

.community-stage .community-hero .kicker {
  margin: 0;
}

.community-stage .community-hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(45px, 4.15vw, 68px);
  line-height: 0.94;
}

.community-stage .community-hero-copy > p:last-of-type {
  max-width: 720px;
  color: #dbe7f3;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.48;
}

.community-stage .community-hero-actions {
  gap: 16px;
  margin-top: 16px;
}

.community-stage .community-hero-actions .button {
  min-height: 44px;
}

.community-stage .community-trust {
  gap: 7px;
}

.community-stage .community-trust article {
  min-height: 0;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.075);
}

.community-stage .community-trust article > .community-trust-mark {
  position: static;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 223, 208, 0.34);
  border-radius: 11px;
  color: #9bf2e7;
  background: rgba(88, 223, 208, 0.09);
  font-size: 15px;
  letter-spacing: 0;
}

.community-stage .community-trust h2 {
  margin: 0 0 2px;
  color: #f7fbff;
  font-size: 13px;
}

.community-stage .community-trust p {
  color: #c8d7e7;
  font-size: 10px;
  line-height: 1.35;
}

.community-stage .community-wall-section {
  padding: 2px 0 0;
  scroll-margin-top: 14px;
}

.community-stage .community-wall-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: 22px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.community-stage .community-wall-heading .kicker {
  margin: 0;
}

.community-stage .community-wall-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 0.98;
}

.community-wall-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 12px;
  text-align: right;
}

.community-wall-meta > p:last-child {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.community-stage .community-source-status {
  margin: 0;
  padding: 7px 11px 7px 29px;
  border-color: color-mix(in srgb, var(--success) 38%, var(--line));
  color: var(--success);
  background: color-mix(in srgb, var(--success) 9%, var(--surface-elevated));
  font-size: 10px;
}

.community-stage .community-source-status::before {
  left: 11px;
  width: 7px;
  height: 7px;
}

.community-stage .community-source-status[data-state="unavailable"] {
  border-color: color-mix(in srgb, var(--warning) 50%, var(--line));
  color: color-mix(in srgb, var(--warning) 68%, var(--ink));
  background: color-mix(in srgb, var(--warning) 10%, var(--surface-elevated));
}

.community-stage .community-wall-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  gap: 14px;
}

.community-stage .community-state {
  min-height: 230px;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface-soft));
}

.community-stage .community-state[data-state="unavailable"] {
  border-color: color-mix(in srgb, var(--warning) 46%, var(--line));
  background: linear-gradient(145deg, var(--surface-elevated), color-mix(in srgb, var(--warning) 8%, var(--surface-soft)));
}

.community-stage .community-state-symbol {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 10%, var(--surface-elevated));
  font-size: 32px;
}

.community-stage .community-state[data-state="unavailable"] .community-state-symbol {
  color: color-mix(in srgb, var(--warning) 72%, var(--ink));
  background: color-mix(in srgb, var(--warning) 14%, var(--surface-elevated));
}

.community-state-label {
  margin: 0 0 6px !important;
  color: var(--blue-dark) !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-stage .community-state h2 {
  font-size: clamp(27px, 2.6vw, 38px);
  line-height: 1;
}

.community-stage .community-state p:not(.community-state-label) {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.community-stage .community-feed {
  gap: 12px;
}

.community-stage .community-publication {
  border-radius: 19px;
}

.community-stage .community-publication-head {
  gap: 12px;
  padding: 15px 16px 12px;
}

.community-stage .community-publication-media {
  aspect-ratio: 16 / 8;
}

.community-stage .community-publication-copy {
  padding: 16px;
}

.community-stage .community-publication-category {
  margin-bottom: 7px;
}

.community-stage .community-publication-copy h2 {
  font-size: clamp(25px, 2.2vw, 34px);
}

.community-stage .community-publication-body {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.community-stage .community-engagement {
  padding: 0 16px 14px;
}

.community-stage .community-engagement-facts {
  padding: 9px 0;
}

.community-stage .community-engagement-actions {
  padding-top: 10px;
}

.community-stage .community-account-action,
.community-stage .community-native-share,
.community-stage .community-share-fallback,
.community-stage .community-share-intent,
.community-stage .community-social-link {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 10px;
}

.community-stage .community-account-action {
  color: var(--blue-dark);
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface-elevated));
}

.community-stage .community-comments {
  margin: 0 16px 14px;
  padding: 13px;
  background: var(--surface-soft);
}

.community-stage .community-comment-meta strong,
.community-stage .community-sharing-label {
  color: var(--ink);
}

.community-stage .community-sharing {
  padding: 13px 16px 15px;
  background: var(--surface-soft);
}

.community-stage .community-share-fallback,
.community-stage .community-share-intent,
.community-stage .community-social-link {
  color: var(--ink-soft);
  background: var(--surface-elevated);
}

.community-stage .community-participation {
  top: 12px;
  padding: 20px;
  border-radius: 21px;
  color: #f7fbff;
  background:
    linear-gradient(145deg, rgba(88, 223, 208, 0.1), transparent 36%),
    linear-gradient(150deg, #0a1a2d, #103558);
}

.community-stage .community-aside-kicker {
  margin-bottom: 10px;
}

.community-stage .community-participation h2 {
  color: #f7fbff;
  font-size: clamp(27px, 2.4vw, 34px);
}

.community-stage .community-participation > p:not(.community-aside-kicker) {
  margin: 11px 0 14px;
  color: #d0dcea;
  font-size: 11px;
  line-height: 1.5;
}

.community-stage .community-participation .button {
  min-height: 42px;
}

.community-stage .community-participation ul {
  gap: 0;
  margin-top: 14px;
  padding-top: 8px;
}

.community-stage .community-participation li {
  padding: 8px 0 8px 15px;
  display: grid;
  gap: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbe7f3;
  font-size: 10px;
}

.community-stage .community-participation li:last-child {
  border-bottom: 0;
}

.community-stage .community-participation li::before {
  top: 12px;
  width: 5px;
  height: 5px;
}

.community-stage .community-participation li strong {
  color: #f7fbff;
  font-size: 10px;
}

.community-stage .community-participation li span {
  color: #aebfd2;
}

.community-stage .community-business-cta {
  min-height: 88px;
  padding: 16px clamp(20px, 2.4vw, 34px);
  gap: 24px;
  border-radius: 21px;
  box-shadow: 0 12px 34px rgba(8, 20, 37, 0.14);
}

.community-stage .community-business-cta .kicker {
  margin: 0;
}

.community-stage .community-business-cta h2 {
  margin: 4px 0 3px;
  font-size: clamp(27px, 2.5vw, 38px);
}

.community-stage .community-business-cta p:last-child {
  font-size: 11px;
  line-height: 1.4;
}

.community-stage .community-business-cta .button {
  min-height: 44px;
}

@media (max-width: 1100px) {
  .community-stage .community-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  }

  .community-stage .community-wall-layout {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 270px);
  }
}

@media (max-width: 900px) {
  .community-stage .community-hero {
    grid-template-columns: 1fr;
  }

  .community-stage .community-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-stage .community-trust article {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
  }

  .community-stage .community-trust article > .community-trust-mark {
    width: 28px;
    height: 28px;
  }

  .community-stage .community-wall-layout {
    grid-template-columns: 1fr;
  }

  .community-stage .community-participation {
    position: static;
  }
}

@media (max-width: 760px) {
  .community-stage {
    --community-edge: max(14px, env(safe-area-inset-left));
    padding-top: 12px;
    gap: 12px;
  }

  .community-stage .community-hero {
    padding: 26px 20px;
    gap: 22px;
    border-radius: 21px;
  }

  .community-stage .community-hero h1 {
    font-size: clamp(43px, 13.2vw, 60px);
  }

  .community-stage .community-trust {
    grid-template-columns: 1fr;
  }

  .community-stage .community-trust article {
    padding: 10px 12px;
  }

  .community-stage .community-wall-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .community-wall-meta {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .community-stage .community-wall-heading h2 {
    font-size: 34px;
  }

  .community-stage .community-feed {
    grid-template-columns: 1fr;
  }

  .community-stage .community-state {
    min-height: 260px;
  }

  .community-stage .community-business-cta {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .community-stage .community-hero-actions {
    gap: 8px;
  }

  .community-stage .community-state {
    grid-template-columns: 1fr;
  }

  .community-stage .community-state-symbol {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1900px) {
  .community-stage .community-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(560px, 0.8fr);
  }

  .community-stage .community-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .community-stage {
    padding-top: 10px;
    gap: 10px;
  }

  .community-stage .community-hero {
    padding-block: 16px;
  }

  .community-stage .community-hero h1 {
    font-size: clamp(42px, 3.6vw, 56px);
  }

  .community-stage .community-hero-actions {
    margin-top: 10px;
  }

  .community-stage .community-state {
    min-height: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-stage *,
  .community-stage *::before,
  .community-stage *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .community-stage .community-hero,
  .community-stage .community-trust article,
  .community-stage .community-state,
  .community-stage .community-publication,
  .community-stage .community-participation,
  .community-stage .community-business-cta {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  .community-stage .community-hero h1,
  .community-stage .community-hero p,
  .community-stage .community-trust h2,
  .community-stage .community-trust p,
  .community-stage .community-participation h2,
  .community-stage .community-participation p,
  .community-stage .community-participation li,
  .community-stage .community-participation li strong,
  .community-stage .community-business-cta h2,
  .community-stage .community-business-cta p {
    color: CanvasText;
  }
}

/* --------------------------------------------------------------------------
   Communauté publique HDF
   Le mur conserve un état explicite tant que l'API publique n'a rien validé.
   Aucun sélecteur ci-dessous ne dépend d'un faux contenu ou d'un compteur local.
   -------------------------------------------------------------------------- */
.community-page {
  background:
    radial-gradient(circle at 92% 12%, rgba(88, 223, 208, 0.1), transparent 28%),
    var(--paper);
}

.community-page .primary-nav a[aria-current="page"] {
  color: var(--blue-dark);
}

.community-page .primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.community-hero {
  position: relative;
  width: min(100% - 36px, 1480px);
  min-height: 620px;
  margin: 26px auto 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: clamp(46px, 6vw, 110px);
  padding: clamp(64px, 8vw, 112px);
  border-radius: clamp(26px, 4vw, 48px);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(88, 223, 208, 0.13), transparent 42%),
    linear-gradient(145deg, #071321, #0c2746 62%, #0a3d51);
  box-shadow: var(--shadow);
}

.community-hero::before {
  position: absolute;
  right: -105px;
  bottom: -165px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(88, 223, 208, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(88, 223, 208, 0.035), 0 0 0 156px rgba(88, 223, 208, 0.022);
  content: "";
  pointer-events: none;
}

.community-hero-copy,
.community-trust {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.community-hero .kicker {
  color: #b5f8ed;
}

.community-hero h1 {
  max-width: 760px;
  margin: 24px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(52px, 6.2vw, 96px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.community-hero-copy > p:last-of-type {
  max-width: 670px;
  margin: 0;
  color: #dbe7f3;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
}

.community-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}

.community-trust {
  display: grid;
  gap: 12px;
}

.community-trust article {
  position: relative;
  min-height: 138px;
  padding: 24px 26px 22px 84px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(12px);
}

.community-trust article > span {
  position: absolute;
  top: 24px;
  left: 25px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.community-trust h2 {
  margin: 0 0 7px;
  font-size: 17px;
}

.community-trust p {
  margin: 0;
  color: #cbd8e6;
  font-size: 13px;
  line-height: 1.58;
}

.community-wall-section {
  width: min(100% - 36px, 1480px);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 132px) 0;
  scroll-margin-top: 96px;
}

.community-wall-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: end;
  gap: 40px;
  margin-bottom: 26px;
}

.community-wall-heading h2 {
  max-width: 820px;
  margin: 17px 0 0;
  font-family: var(--font-display);
  font-size: clamp(43px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.community-wall-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.community-source-status {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 9px 13px 9px 34px;
  position: relative;
  border: 1px solid #b9d8d2;
  border-radius: 999px;
  color: #24564d;
  background: #eefaf7;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.community-source-status::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  content: "";
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(19, 121, 91, 0.1);
}

.community-source-status[data-state="loading"]::before {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(196, 125, 12, 0.12);
}

.community-source-status[data-state="unavailable"] {
  color: #684811;
  background: #fff6e2;
}

.community-source-status[data-state="unavailable"]::before {
  background: #b56f00;
  box-shadow: 0 0 0 4px rgba(181, 111, 0, 0.12);
}

.community-wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
  gap: 24px;
}

.community-wall-main,
.community-feed,
.community-publication {
  min-width: 0;
}

.community-state {
  min-height: 360px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.community-state[data-state="unavailable"] {
  border-color: #e9c98b;
  background: linear-gradient(145deg, #fff, #fffaf0);
}

.community-state[data-state="empty"] {
  background: linear-gradient(145deg, #fff, #f4f8fc);
}

.community-state-symbol {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--blue-dark);
  background: #edf4ff;
  font-family: var(--font-display);
  font-size: 40px;
}

.community-state[data-state="unavailable"] .community-state-symbol {
  color: #8c5900;
  background: #fff0ce;
}

.community-state h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 400;
}

.community-state p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.community-retry {
  font-family: var(--font-sans);
  cursor: pointer;
}

.community-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.community-publication {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.community-publication:target {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 86, 216, 0.1), var(--shadow);
}

.community-publication-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
}

.community-publisher {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.community-publisher-name {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
}

a.community-publisher-name {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: rgba(23, 86, 216, 0.28);
  text-underline-offset: 4px;
}

.community-verified {
  width: fit-content;
  padding-left: 17px;
  position: relative;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.community-verified::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--success);
  content: "";
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px var(--success);
}

.community-publication-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.community-publication-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--mist);
}

.community-publication-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-publication-copy {
  padding: 22px;
}

.community-publication-category {
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-publication-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.community-publication-body {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.68;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.community-engagement {
  padding: 0 22px 20px;
}

.community-engagement-facts,
.community-engagement-actions,
.community-sharing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.community-engagement-facts {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.community-server-count {
  color: #34445b;
  font-size: 12px;
  font-weight: 700;
}

.community-server-count + .community-server-count::before {
  margin-right: 8px;
  color: #9aa8ba;
  content: "·";
}

.community-engagement-actions {
  padding-top: 14px;
}

.community-account-action,
.community-native-share,
.community-share-fallback,
.community-share-intent,
.community-social-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.community-account-action {
  color: var(--blue-dark);
  border-color: #bdd0f6;
  background: #f1f6ff;
}

.community-comments {
  margin: 0 22px 20px;
  padding: 17px;
  border-radius: 16px;
  background: #f4f7fb;
}

.community-comments h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.community-comment-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-comment {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.community-comment:first-child {
  padding-top: 0;
  border-top: 0;
}

.community-comment-meta {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
}

.community-comment-meta strong {
  color: var(--ink);
}

.community-comment-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.community-sharing {
  padding: 17px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.community-native-share {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  cursor: pointer;
}

.community-native-share:disabled {
  opacity: 0.55;
  cursor: wait;
}

.community-share-fallback,
.community-share-intent,
.community-social-link {
  color: #34445b;
  background: var(--white);
}

.community-sharing-label {
  width: 100%;
  margin: 0 0 2px;
  color: #34445b;
  font-size: 11px;
  font-weight: 700;
}

.community-share-intent {
  border-color: #c9d5e5;
}

.community-share-status {
  width: 100%;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.community-participation {
  position: sticky;
  top: 106px;
  padding: 28px;
  border: 1px solid rgba(88, 223, 208, 0.28);
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(150deg, #0a1a2d, #103558);
  box-shadow: var(--shadow-soft);
}

.community-aside-kicker {
  margin: 0 0 18px;
  color: var(--aqua);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.community-participation h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.04;
}

.community-participation > p:not(.community-aside-kicker) {
  margin: 17px 0 22px;
  color: #d0dcea;
  font-size: 13px;
  line-height: 1.65;
}

.community-participation .button {
  width: 100%;
}

.community-participation ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.community-participation li {
  padding-left: 18px;
  position: relative;
  color: #c5d5e5;
  font-size: 11px;
  line-height: 1.45;
}

.community-participation li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.community-noscript {
  margin: 18px 0 0;
  padding: 15px 17px;
  border-left: 3px solid var(--warning);
  color: #684811;
  background: #fff6e2;
  line-height: 1.55;
}

.community-business-cta {
  width: min(100% - 36px, 1480px);
  margin: 0 auto clamp(70px, 9vw, 130px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(38px, 6vw, 72px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(115deg, #134bb9, #0d347e);
  box-shadow: var(--shadow);
}

.community-business-cta > div {
  max-width: 820px;
}

.community-business-cta .kicker {
  color: #bfeee9;
}

.community-business-cta h2 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 400;
  line-height: 1;
}

.community-business-cta p:last-child {
  margin: 0;
  color: #dce7f7;
  line-height: 1.65;
}

.community-business-cta .button {
  flex: 0 0 auto;
}

/* Le mur passe à une colonne avant que les cartes ou la navigation débordent. */
@media (max-width: 1180px) {
  .community-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .community-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-trust article {
    padding: 58px 22px 22px;
  }

  .community-trust article > span {
    top: 22px;
    left: 22px;
  }

  .community-wall-layout {
    grid-template-columns: 1fr;
  }

  .community-participation {
    position: static;
  }
}

@media (max-width: 820px) {
  .community-hero,
  .community-wall-section,
  .community-business-cta {
    width: min(100% - 28px, 1480px);
  }

  .community-hero {
    margin-top: 14px;
    gap: 38px;
    padding: 56px 30px;
  }

  .community-trust {
    grid-template-columns: 1fr;
  }

  .community-trust article {
    min-height: 0;
    padding: 22px 22px 22px 70px;
  }

  .community-trust article > span {
    top: 24px;
  }

  .community-wall-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .community-feed {
    grid-template-columns: 1fr;
  }

  .community-business-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .community-business-cta .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .community-hero {
    padding: 46px 22px;
  }

  .community-hero h1 {
    font-size: clamp(45px, 15vw, 66px);
  }

  .community-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-hero-actions .button,
  .community-hero-actions .quiet-link {
    width: 100%;
    justify-content: center;
  }

  .community-state {
    min-height: 330px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .community-retry {
    width: 100%;
  }

  .community-publication-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-publication-date {
    flex: auto;
  }

  .community-engagement-actions,
  .community-sharing {
    align-items: stretch;
    flex-direction: column;
  }

  .community-account-action,
  .community-native-share,
  .community-share-fallback,
  .community-share-intent,
  .community-social-link {
    width: 100%;
  }

  .community-participation {
    padding: 24px;
  }
}

@media (min-width: 1900px) {
  .community-hero,
  .community-wall-section,
  .community-business-cta {
    width: min(100% - 96px, 1760px);
  }

  .community-hero {
    grid-template-columns: minmax(0, 1.03fr) minmax(600px, 0.97fr);
  }

  .community-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-contrast: more) {
  .community-publication,
  .community-state,
  .community-participation,
  .community-account-action,
  .community-native-share,
  .community-share-fallback,
  .community-share-intent,
  .community-social-link {
    border: 2px solid currentColor;
  }
}

/* --------------------------------------------------------------------------
   Accueil HDF plein ecran

   Ce bloc reste volontairement borne a body.home-viewport. Les pages
   secondaires conservent ainsi leur lecture verticale traditionnelle.
   -------------------------------------------------------------------------- */

html:has(> body.home-viewport) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
  scroll-padding-top: 0;
}

body.home-viewport {
  --home-edge: clamp(14px, 2.1vw, 34px);
  --home-gap: clamp(12px, 1.5vw, 24px);
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(88, 223, 208, 0.2), transparent 26%),
    linear-gradient(135deg, #f8faff 0%, #f2f6fc 48%, #edf3fb 100%);
}

body.home-viewport .skip:focus {
  top: max(12px, env(safe-area-inset-top));
}

body.home-viewport .skip {
  min-height: 44px;
  display: flex;
  align-items: center;
}

body.home-viewport .home-topbar {
  position: relative;
  z-index: 50;
  min-width: 0;
  min-height: 72px;
  padding: max(8px, env(safe-area-inset-top)) max(var(--home-edge), env(safe-area-inset-right)) 8px max(var(--home-edge), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  border-bottom: 1px solid rgba(151, 167, 190, 0.36);
  background: rgba(248, 250, 255, 0.94);
  box-shadow: 0 10px 34px rgba(8, 20, 37, 0.06);
  backdrop-filter: blur(18px);
}

body.home-viewport .home-brand {
  min-width: 0;
  min-height: 48px;
}

body.home-viewport .home-tab-navigation {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

body.home-viewport .home-tab-navigation::-webkit-scrollbar {
  display: none;
}

body.home-viewport .home-tabs {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

body.home-viewport .home-tabs button {
  min-width: 76px;
  min-height: 44px;
  padding: 0 clamp(11px, 1.2vw, 18px);
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #526075;
  font: 700 11px/1 var(--font-sans);
  cursor: pointer;
  /* Le texte et sa surface changent ensemble lors d'un basculement de thème.
     Ne pas les interpoler séparément : une frame intermédiaire pourrait
     descendre sous le contraste WCAG alors que les deux états finaux passent. */
  transition: border-color 180ms ease, transform 180ms ease;
}

body.home-viewport .home-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

body.home-viewport .home-tabs button[aria-selected="true"] {
  border-color: rgba(23, 86, 216, 0.22);
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 7px 22px rgba(23, 86, 216, 0.11);
}

body.home-viewport .home-tabs button:active {
  transform: translateY(1px);
}

body.home-viewport .home-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

body.home-viewport .home-actions > a:not(.button) {
  min-height: 44px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  color: #3e4d62;
  font-size: 11px;
  font-weight: 700;
}

body.home-viewport .home-actions > a:not(.button):hover,
body.home-viewport .home-actions > a:not(.button):focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.home-viewport .home-actions .portal-button {
  min-height: 46px;
}

body.home-viewport .home-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  outline: none;
}

body.home-viewport .home-panel {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(16px, 2.1vw, 34px) var(--home-edge);
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 86, 216, 0.35) transparent;
}

body.home-viewport .home-panel[hidden] {
  display: none !important;
}

body.home-viewport .home-panel.is-active:not([hidden]) {
  animation: home-panel-enter 260ms ease both;
}

body.home-viewport [data-horizontal-rail]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

body.home-viewport .fragment-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

body.home-viewport .home-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.home-viewport .home-eyebrow > span {
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

body.home-viewport .home-panel h1,
body.home-viewport .home-panel h2,
body.home-viewport .home-panel h3,
body.home-viewport .home-panel p {
  overflow-wrap: anywhere;
}

body.home-viewport .home-panel h1,
body.home-viewport .home-panel h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

body.home-viewport .home-panel h1 em,
body.home-viewport .home-panel h2 em {
  color: var(--blue);
  font-style: normal;
}

/* L'accueil garde deux zones nettes : promesse a gauche, promotions a droite. */
body.home-viewport .home-panel-hero {
  display: grid;
  grid-template-columns: minmax(285px, 0.72fr) minmax(520px, 1.28fr);
  align-items: stretch;
  gap: clamp(24px, 3.4vw, 58px);
  overflow: hidden;
}

body.home-viewport .home-welcome {
  min-width: 0;
  align-self: center;
  padding: clamp(4px, 1.2vh, 14px) 0;
}

body.home-viewport .home-welcome h1 {
  margin: clamp(10px, 1.8vh, 20px) 0 clamp(10px, 1.6vh, 18px);
  font-size: clamp(52px, 5.6vw, 92px);
  line-height: 0.9;
}

body.home-viewport .home-lead {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.62;
}

body.home-viewport .home-hero-actions,
body.home-viewport .contact-focus-actions {
  margin-top: clamp(15px, 2.4vh, 27px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

body.home-viewport .home-text-link {
  min-height: 44px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

body.home-viewport .home-text-link:hover,
body.home-viewport .home-text-link:focus-visible {
  color: var(--blue-dark);
}

body.home-viewport .home-assurances {
  margin: clamp(14px, 2.3vh, 26px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #4d5b70;
  font-size: 10px;
  list-style: none;
}

body.home-viewport .home-assurances li::before {
  margin-right: 7px;
  color: var(--success);
  content: "\2713";
  font-weight: 700;
}

body.home-viewport .home-opening {
  max-width: 610px;
  margin: clamp(12px, 2vh, 22px) 0 0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid rgba(151, 167, 190, 0.42);
  color: #5e6b7e;
  font-size: 9px;
  line-height: 1.45;
}

body.home-viewport .home-opening > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(19, 121, 91, 0.12);
}

body.home-viewport .home-opening strong {
  color: var(--ink);
}

body.home-viewport .promo-experience {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 9px;
}

body.home-viewport .promo-heading {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

body.home-viewport .promo-heading > div {
  display: grid;
  gap: 3px;
}

body.home-viewport .promo-heading small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.home-viewport .promo-heading strong {
  font: 400 clamp(22px, 2vw, 32px)/1 var(--font-display);
}

body.home-viewport .promo-heading p {
  max-width: 310px;
  margin: 0;
  color: #657287;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

body.home-viewport .promo-rail {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(3px, 0.45vw, 7px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(151, 167, 190, 0.45);
  border-radius: clamp(16px, 2vw, 28px);
  background: #071321;
  box-shadow: 0 24px 70px rgba(8, 20, 37, 0.2);
}

body.home-viewport .promo-card {
  position: relative;
  min-width: 52px;
  min-height: 100%;
  padding: clamp(12px, 1.4vw, 21px);
  flex: 0.8 1 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: #0c1928;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: flex-grow 480ms cubic-bezier(0.2, 0.72, 0.2, 1), flex-basis 480ms cubic-bezier(0.2, 0.72, 0.2, 1), clip-path 480ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 220ms ease;
}

/* L'inclinaison porte sur le cadre, pas sur l'image : les photos restent
   droites et les cartes s'ouvrent visuellement de part et d'autre de l'actif. */
body.home-viewport .promo-card.is-before {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

body.home-viewport .promo-card.is-after {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

body.home-viewport .promo-card::before,
body.home-viewport .promo-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

body.home-viewport .promo-card::before {
  z-index: -2;
  background-image: url("/assets/hdf-promotions-panorama-v1.png");
  background-repeat: no-repeat;
  /* La hauteur fixe conserve les proportions du panorama. Le panneau actif
     révèle davantage de la scène, sans étirer les personnes ni les objets. */
  background-size: auto 100%;
  filter: saturate(0.7) brightness(0.58);
  transform: none;
  transition: filter 320ms ease;
}

body.home-viewport .promo-card::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 10, 17, 0.08) 30%, rgba(4, 10, 17, 0.88) 100%);
}

body.home-viewport .promo-card[data-promo="boutique"]::before {
  background-position: 0% center;
}

body.home-viewport .promo-card[data-promo="atelier"]::before {
  background-position: 25% center;
}

body.home-viewport .promo-card[data-promo="table"]::before {
  background-position: 50% center;
}

body.home-viewport .promo-card[data-promo="services"]::before {
  background-position: 75% center;
}

body.home-viewport .promo-card[data-promo="evenements"]::before {
  background-position: 100% center;
}

body.home-viewport .promo-card.is-active,
body.home-viewport .promo-card[aria-pressed="true"] {
  flex: 5.5 1 52%;
  clip-path: none;
}

body.home-viewport .promo-card.is-active::before,
body.home-viewport .promo-card[aria-pressed="true"]::before {
  /* Le panneau choisi révèle davantage du panorama à échelle constante. */
  background-size: auto 100%;
  filter: saturate(1.03) brightness(0.92);
  transform: scale(1);
}

body.home-viewport .promo-card-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: min(86%, 390px);
  display: grid;
  gap: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease 100ms, transform 220ms ease 100ms;
}

body.home-viewport .promo-card-copy small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.home-viewport .promo-card-copy strong {
  font: 400 clamp(22px, 2.5vw, 40px)/1.03 var(--font-display);
}

body.home-viewport .promo-card.is-active .promo-card-copy,
body.home-viewport .promo-card[aria-pressed="true"] .promo-card-copy {
  opacity: 1;
  transform: translateY(0);
}

body.home-viewport .promo-card:hover::before {
  filter: saturate(0.92) brightness(0.76);
}

body.home-viewport .promo-card:focus-visible {
  z-index: 5;
  outline: 3px solid var(--white);
  outline-offset: -6px;
  box-shadow: inset 0 0 0 8px var(--blue);
}

body.home-viewport .promo-live {
  min-height: 18px;
  margin: 0;
  color: #5b687b;
  font-size: 10px;
  line-height: 1.4;
}

/* Les autres panneaux utilisent des grilles courtes adaptees au viewport. */
body.home-viewport .home-panel-standard {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: var(--home-gap);
}

body.home-viewport .home-panel-inner {
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--home-gap);
}

body.home-viewport .home-panel-heading {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
}

body.home-viewport .home-panel-heading h2 {
  margin: clamp(7px, 1vh, 12px) 0 0;
  font-size: clamp(40px, 4.25vw, 70px);
  line-height: 0.93;
}

body.home-viewport .home-panel-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.55;
}

body.home-viewport .solution-compact-grid,
body.home-viewport .trust-compact-grid {
  width: min(1540px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

body.home-viewport .solution-compact-grid article,
body.home-viewport .trust-compact-grid article {
  min-width: 0;
  min-height: 0;
  padding: clamp(16px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

body.home-viewport .solution-compact-grid article > span,
body.home-viewport .trust-compact-grid article > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

body.home-viewport .solution-compact-grid h3,
body.home-viewport .trust-compact-grid h3 {
  margin: auto 0 8px;
  font: 400 clamp(21px, 2vw, 31px)/1.03 var(--font-display);
}

body.home-viewport .solution-compact-grid p,
body.home-viewport .trust-compact-grid p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(10px, 0.8vw, 12px);
  line-height: 1.5;
}

body.home-viewport .solution-compact-grid small {
  margin-top: 13px;
  color: var(--blue-dark);
  font-size: 8px;
  font-weight: 700;
}

body.home-viewport .home-boundary,
body.home-viewport .security-banner {
  width: min(1540px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 7px 14px 7px 18px;
  display: flex;
  align-items: center;
  gap: 10px 16px;
  border-left: 3px solid var(--aqua);
  border-radius: 0 13px 13px 0;
  background: #eaf7f5;
  color: #344b55;
  font-size: 10px;
}

body.home-viewport .home-boundary span {
  min-width: 0;
}

body.home-viewport .home-boundary a {
  min-height: 44px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-weight: 700;
}

body.home-viewport .home-showcase-grid {
  width: min(1540px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.home-viewport .home-showcase-grid .showcase-family-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.45vw, 22px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

body.home-viewport .home-showcase-grid .showcase-family-card::before {
  height: 3px;
}

body.home-viewport .home-showcase-grid .showcase-family-card header {
  min-height: 22px;
}

body.home-viewport .home-showcase-grid .showcase-family-card h3 {
  margin: clamp(8px, 1vh, 13px) 0 5px;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1;
}

body.home-viewport .home-showcase-grid .showcase-family-card p {
  font-size: clamp(9px, 0.72vw, 11px);
  line-height: 1.4;
}

body.home-viewport .home-showcase-grid .showcase-family-card ul {
  margin-top: clamp(7px, 1vh, 12px);
  gap: 5px;
}

body.home-viewport .home-showcase-grid .showcase-family-card li {
  padding: 5px 7px;
  font-size: 9px;
}

body.home-viewport .showcase-catalog-foot {
  width: min(1540px, 100%);
  min-height: 54px;
  margin: 0 auto;
  padding: 6px 8px 6px 16px;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

body.home-viewport .showcase-catalog-foot p {
  font-size: 9px;
}

body.home-viewport .showcase-catalog-foot .button {
  min-height: 44px;
  flex: 0 0 auto;
}

body.home-viewport .home-pack-grid {
  width: min(1440px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.home-viewport .home-pack-grid article {
  min-width: 0;
  min-height: 0;
  padding: clamp(17px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

body.home-viewport .home-pack-grid article.is-featured {
  border-color: rgba(23, 86, 216, 0.48);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  box-shadow: 0 17px 48px rgba(23, 86, 216, 0.13);
}

body.home-viewport .home-pack-grid small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body.home-viewport .home-pack-grid h3 {
  margin: 9px 0 auto;
  font: 400 clamp(28px, 2.7vw, 43px)/1 var(--font-display);
}

body.home-viewport .home-pack-grid strong {
  margin-top: 11px;
  font-size: 11px;
}

body.home-viewport .home-pack-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

body.home-viewport .home-pack-grid article > span {
  margin-top: 11px;
  color: var(--blue-dark);
  font-size: 8px;
  font-weight: 700;
}

body.home-viewport .payment-compact-grid {
  width: min(1440px, 100%);
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  gap: 8px;
}

body.home-viewport .payment-compact-grid article {
  min-width: 0;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

body.home-viewport .payment-compact-grid article small {
  grid-column: 1 / -1;
  color: var(--blue);
  font-size: 7px;
  font-weight: 700;
}

body.home-viewport .payment-compact-grid article strong {
  align-self: center;
  font-size: 11px;
}

body.home-viewport .payment-compact-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

body.home-viewport .payment-compact-grid > div {
  display: flex;
  align-items: center;
}

body.home-viewport .payment-compact-grid .button {
  min-height: 44px;
  white-space: nowrap;
}

body.home-viewport .home-steps {
  width: min(1540px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

body.home-viewport .home-steps li {
  min-width: 0;
  min-height: 0;
  padding: clamp(14px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

body.home-viewport .home-steps li > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

body.home-viewport .home-steps li > div {
  margin-top: auto;
}

body.home-viewport .home-steps h3 {
  margin: 0 0 6px;
  font: 400 clamp(21px, 1.8vw, 29px)/1 var(--font-display);
}

body.home-viewport .home-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
}

body.home-viewport .launch-proof-grid {
  width: min(1540px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.8fr;
  gap: 8px;
}

body.home-viewport .launch-proof-grid article,
body.home-viewport .home-more-card {
  min-width: 0;
  min-height: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

body.home-viewport .launch-proof-grid small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.home-viewport .launch-proof-grid h3 {
  margin: 6px 0 4px;
  font: 400 clamp(17px, 1.4vw, 23px)/1 var(--font-display);
}

body.home-viewport .launch-proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.38;
}

body.home-viewport .home-more-card {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
}

body.home-viewport .home-more-card span {
  color: #a9b8cb;
  font-size: 8px;
}

body.home-viewport .home-more-card strong {
  margin-top: 5px;
  font-size: 11px;
}

body.home-viewport .home-panel-trust {
  color: var(--ink);
}

body.home-viewport .security-banner {
  justify-content: space-between;
}

body.home-viewport .security-banner > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px 9px;
}

body.home-viewport .security-banner > div > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.16);
}

body.home-viewport .security-banner p {
  margin: 0;
  color: #52636e;
  font-size: 8px;
}

body.home-viewport .security-banner nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.home-viewport .security-banner nav a {
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 700;
}

body.home-viewport .security-banner nav a:hover,
body.home-viewport .security-banner nav a:focus-visible {
  background: rgba(255, 255, 255, 0.78);
}

body.home-viewport .home-panel-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 34vw, 680px);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding-inline: max(var(--home-edge), calc((100% - 2100px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(23, 86, 216, 0.3), transparent 31%),
    var(--ink);
  color: var(--white);
}

body.home-viewport .contact-focus {
  min-width: 0;
  width: min(100%, 1040px);
  align-self: center;
  justify-self: center;
  padding: clamp(10px, 3vw, 46px);
}

body.home-viewport .contact-focus .home-eyebrow {
  color: var(--aqua);
}

body.home-viewport .contact-focus h2 {
  margin: clamp(10px, 1.7vh, 18px) 0;
  color: var(--white);
  font-size: clamp(48px, 5.7vw, 92px);
  line-height: 0.91;
}

body.home-viewport .contact-focus h2 em {
  color: var(--aqua);
}

body.home-viewport .contact-focus > p:not(.home-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #b5c1d1;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.6;
}

body.home-viewport .home-text-link-light {
  color: var(--white);
}

body.home-viewport .home-text-link-light:hover,
body.home-viewport .home-text-link-light:focus-visible {
  color: var(--aqua);
}

body.home-viewport .contact-focus > small {
  max-width: 690px;
  margin-top: clamp(12px, 2vh, 21px);
  display: block;
  color: #8190a5;
  font-size: 8px;
  line-height: 1.5;
}

body.home-viewport .contact-explore {
  min-width: 0;
  width: 100%;
  height: 100%;
  max-height: 700px;
  align-self: center;
  padding: clamp(18px, 2.6vw, 38px);
  display: grid;
  grid-template-rows: auto repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

body.home-viewport .contact-explore > small {
  padding-bottom: 11px;
  color: var(--aqua);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

body.home-viewport .contact-explore a {
  min-height: 44px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

body.home-viewport .contact-explore a span {
  color: #a8b5c7;
  font-size: 9px;
}

body.home-viewport .contact-explore a strong {
  font: 400 clamp(17px, 1.6vw, 24px)/1 var(--font-display);
  text-align: right;
}

body.home-viewport .contact-explore a:hover strong,
body.home-viewport .contact-explore a:focus-visible strong {
  color: var(--aqua);
}

body.home-viewport .home-footer {
  position: relative;
  z-index: 40;
  min-width: 0;
  min-height: 46px;
  padding: 0 max(var(--home-edge), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--home-edge), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(151, 167, 190, 0.4);
  background: rgba(248, 250, 255, 0.96);
  color: #5c697b;
  font-size: 9px;
}

body.home-viewport .home-footer p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.home-viewport .home-footer p > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(19, 121, 91, 0.12);
}

body.home-viewport .home-footer nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px 16px;
}

body.home-viewport .home-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

body.home-viewport .home-footer a:hover,
body.home-viewport .home-footer a:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.home-viewport .home-footer > small {
  white-space: nowrap;
}

@keyframes home-panel-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Densite intermediaire : les sept onglets restent une bande horizontale. */
@media (max-width: 1180px) {
  body.home-viewport .home-topbar {
    gap: 12px;
  }

  body.home-viewport .home-actions > a:not(.button) {
    display: none;
  }

  body.home-viewport .home-tabs {
    justify-content: flex-start;
  }

  body.home-viewport .home-panel-hero {
    grid-template-columns: minmax(260px, 0.68fr) minmax(440px, 1.32fr);
    gap: 24px;
  }

  body.home-viewport .solution-compact-grid h3,
  body.home-viewport .trust-compact-grid h3 {
    font-size: 23px;
  }
}

@media (max-width: 900px) {
  body.home-viewport .home-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    gap: 3px 12px;
    padding-bottom: 4px;
  }

  body.home-viewport .home-brand {
    grid-area: brand;
  }

  body.home-viewport .home-tab-navigation {
    grid-area: tabs;
  }

  body.home-viewport .home-actions {
    grid-area: actions;
  }

  body.home-viewport .home-tabs button {
    min-width: 84px;
  }

  body.home-viewport .home-panel-heading {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    gap: 24px;
  }

  body.home-viewport .solution-compact-grid,
  body.home-viewport .trust-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(145px, 1fr));
  }

  body.home-viewport .home-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(145px, 1fr));
  }

  body.home-viewport .home-pack-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    overflow-x: auto;
    scroll-snap-type: inline proximity;
  }

  body.home-viewport .home-pack-grid article {
    scroll-snap-align: start;
  }

  body.home-viewport .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(120px, 1fr));
  }

  body.home-viewport .launch-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile : les cartes passent sur un rail horizontal ; aucun panneau ne
   transforme l'accueil en page verticale. */
@media (max-width: 760px) {
  body.home-viewport {
    --home-edge: 12px;
    --home-gap: 10px;
  }

  body.home-viewport .home-topbar {
    min-height: 98px;
    padding-top: max(5px, env(safe-area-inset-top));
  }

  body.home-viewport .home-brand .brand-mark {
    width: 42px;
    height: 42px;
  }

  body.home-viewport .home-brand .brand-name strong {
    font-size: 14px;
  }

  body.home-viewport .home-actions .portal-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  body.home-viewport .home-actions .portal-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  body.home-viewport .home-tabs button {
    min-width: 82px;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 10px;
  }

  body.home-viewport .home-panel {
    padding: 11px var(--home-edge) 13px;
  }

  body.home-viewport .home-panel-hero,
  body.home-viewport .home-panel-contact {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  body.home-viewport .home-panel-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(280px, 1fr);
    align-content: start;
    gap: 12px;
  }

  body.home-viewport .home-welcome {
    align-self: start;
    padding: 2px 2px 0;
  }

  body.home-viewport .home-welcome h1 {
    margin: 5px 0 7px;
    font-size: clamp(36px, 12vw, 50px);
    line-height: 0.88;
  }

  body.home-viewport .home-lead {
    font-size: 11px;
    line-height: 1.42;
  }

  body.home-viewport .home-hero-actions {
    margin-top: 9px;
    gap: 6px 12px;
  }

  body.home-viewport .home-hero-actions .button {
    min-height: 44px;
  }

  body.home-viewport .home-assurances {
    margin-top: 8px;
    gap: 5px 10px;
    font-size: 8px;
  }

  body.home-viewport .home-opening {
    margin-top: 7px;
    padding-top: 7px;
    font-size: 8px;
  }

  body.home-viewport .promo-experience {
    min-height: 280px;
    grid-template-rows: auto minmax(230px, 1fr) auto;
  }

  body.home-viewport .promo-heading p {
    display: none;
  }

  body.home-viewport .promo-heading strong {
    font-size: 21px;
  }

  body.home-viewport .promo-rail {
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  body.home-viewport .promo-rail::-webkit-scrollbar {
    display: none;
  }

  body.home-viewport .promo-card {
    min-width: 52px;
    padding: 11px;
    flex: 0 0 52px;
    scroll-snap-align: end;
  }

  body.home-viewport .promo-card.is-active,
  body.home-viewport .promo-card[aria-pressed="true"] {
    flex: 0 0 58%;
    scroll-snap-align: center;
  }

  body.home-viewport .promo-card-copy strong {
    font-size: clamp(20px, 7vw, 28px);
  }

  body.home-viewport .home-panel-standard {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
  }

  body.home-viewport .home-panel-inner {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
  }

  body.home-viewport .home-panel-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 7px;
  }

  body.home-viewport .home-panel-heading h2 {
    font-size: clamp(35px, 11.5vw, 48px);
  }

  body.home-viewport .home-panel-heading > p {
    font-size: 10px;
  }

  body.home-viewport .solution-compact-grid,
  body.home-viewport .trust-compact-grid,
  body.home-viewport .home-showcase-grid,
  body.home-viewport .home-pack-grid,
  body.home-viewport .home-steps,
  body.home-viewport .launch-proof-grid {
    min-height: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(218px, 84%);
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  body.home-viewport .solution-compact-grid::-webkit-scrollbar,
  body.home-viewport .trust-compact-grid::-webkit-scrollbar,
  body.home-viewport .home-showcase-grid::-webkit-scrollbar,
  body.home-viewport .home-pack-grid::-webkit-scrollbar,
  body.home-viewport .home-steps::-webkit-scrollbar,
  body.home-viewport .launch-proof-grid::-webkit-scrollbar {
    display: none;
  }

  body.home-viewport .solution-compact-grid article,
  body.home-viewport .trust-compact-grid article,
  body.home-viewport .home-showcase-grid .showcase-family-card,
  body.home-viewport .home-pack-grid article,
  body.home-viewport .home-steps li,
  body.home-viewport .launch-proof-grid article,
  body.home-viewport .launch-proof-grid .home-more-card {
    min-height: 0;
    height: 100%;
    scroll-snap-align: start;
  }

  body.home-viewport .solution-compact-grid h3,
  body.home-viewport .trust-compact-grid h3 {
    margin-top: 28px;
  }

  body.home-viewport .showcase-catalog-foot,
  body.home-viewport .home-boundary,
  body.home-viewport .security-banner {
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding-block: 3px;
    align-items: center;
    flex-direction: row;
  }

  body.home-viewport .showcase-catalog-foot .button,
  body.home-viewport .home-boundary a {
    width: auto;
    min-width: 44px;
    margin-left: auto;
    justify-content: center;
  }

  body.home-viewport .showcase-catalog-foot p,
  body.home-viewport .home-boundary span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.home-viewport .payment-compact-grid {
    min-height: 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 6px;
  }

  body.home-viewport .payment-compact-grid > div,
  body.home-viewport .payment-compact-grid .button {
    width: auto;
  }

  body.home-viewport .payment-compact-grid article {
    padding: 7px 9px;
  }

  body.home-viewport .payment-compact-grid article p {
    display: none;
  }

  body.home-viewport .payment-compact-grid article strong {
    font-size: 11px;
  }

  body.home-viewport .security-banner > div {
    min-width: 0;
    flex: 1 1 0;
    grid-template-columns: auto 1fr;
  }

  body.home-viewport .security-banner > div strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.home-viewport .security-banner p {
    display: none;
  }

  body.home-viewport .security-banner nav {
    width: min(132px, 45%);
    min-width: 0;
    flex: 0 1 132px;
    overflow-x: auto;
  }

  body.home-viewport .security-banner nav a {
    flex: 0 0 auto;
  }

  body.home-viewport .home-panel-contact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 58px;
    align-content: stretch;
    gap: 8px;
  }

  body.home-viewport .contact-focus {
    align-self: center;
    padding: 8px 4px;
  }

  body.home-viewport .contact-focus h2 {
    font-size: clamp(39px, 12.5vw, 55px);
  }

  body.home-viewport .contact-focus-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.home-viewport .contact-focus-actions .button,
  body.home-viewport .contact-focus-actions .home-text-link {
    width: 100%;
    justify-content: center;
  }

  body.home-viewport .contact-explore {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 5px 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 4px;
    border-radius: 14px;
  }

  body.home-viewport .contact-explore > small,
  body.home-viewport .contact-explore a span {
    display: none;
  }

  body.home-viewport .contact-explore a {
    min-width: 0;
    min-height: 44px;
    padding: 4px;
    justify-content: center;
    border-top: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
  }

  body.home-viewport .contact-explore a strong {
    font: 700 9px/1.15 var(--font-sans);
    text-align: center;
  }

  body.home-viewport .home-footer {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: max(8px, env(safe-area-inset-left));
  }

  body.home-viewport .home-footer > p,
  body.home-viewport .home-footer > small {
    display: none;
  }

  body.home-viewport .home-footer nav {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.home-viewport .home-footer nav::-webkit-scrollbar {
    display: none;
  }

  body.home-viewport .home-footer a {
    padding-inline: 8px;
    flex: 0 0 auto;
  }
}

@media (max-width: 390px) {
  body.home-viewport .home-brand .brand-name {
    display: none;
  }

  body.home-viewport .home-topbar {
    min-height: 94px;
  }

  body.home-viewport .home-tabs button {
    min-width: 78px;
  }
}

/* Les ecrans bas restent utilisables sans rendre le document defilable. */
@media (max-height: 720px) and (min-width: 701px) {
  body.home-viewport {
    --home-gap: 9px;
  }

  body.home-viewport .home-panel-hero,
  body.home-viewport .home-panel-contact {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  body.home-viewport .home-topbar {
    min-height: 62px;
    padding-block: 5px;
  }

  body.home-viewport .home-panel {
    padding-block: 11px;
  }

  body.home-viewport .home-welcome h1 {
    font-size: clamp(45px, 5vw, 67px);
  }

  body.home-viewport .home-lead {
    font-size: 12px;
  }

  body.home-viewport .home-assurances,
  body.home-viewport .home-opening {
    margin-top: 9px;
  }

  body.home-viewport .home-panel-heading h2 {
    font-size: clamp(35px, 3.8vw, 51px);
  }

  body.home-viewport .home-panel-heading > p {
    font-size: 10px;
  }

  body.home-viewport .solution-compact-grid article,
  body.home-viewport .trust-compact-grid article,
  body.home-viewport .home-pack-grid article,
  body.home-viewport .home-steps li {
    padding: 14px;
  }

  body.home-viewport .home-footer {
    min-height: 44px;
  }
}

@media (max-width: 760px) and (max-height: 620px) {
  body.home-viewport .home-topbar {
    min-height: 90px;
  }

  body.home-viewport .home-welcome h1 {
    font-size: 34px;
  }

  body.home-viewport .home-panel-hero {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.home-viewport .home-lead,
  body.home-viewport .home-assurances,
  body.home-viewport .home-opening,
  body.home-viewport .home-hero-actions .home-text-link,
  body.home-viewport .contact-focus > p:not(.home-eyebrow),
  body.home-viewport .contact-focus > small,
  body.home-viewport .contact-focus-actions .home-text-link {
    display: none;
  }

  body.home-viewport .home-hero-actions,
  body.home-viewport .contact-focus-actions {
    margin-top: 7px;
  }

  body.home-viewport .home-panel-heading h2 {
    font-size: 31px;
  }

  body.home-viewport .home-panel-heading > p {
    display: none;
  }

  body.home-viewport .solution-console-preview > header {
    min-height: 38px;
    padding: 5px 9px;
    gap: 7px;
  }

  body.home-viewport .solution-console-body {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-viewport .solution-console-body nav {
    display: none;
  }

  body.home-viewport .solution-console-main {
    padding: 9px 10px;
  }

  body.home-viewport .solution-console-main > p {
    font-size: 7px;
  }

  body.home-viewport .solution-console-main h3 {
    margin: 5px 0 7px;
    font-size: 21px;
    line-height: 0.95;
  }

  body.home-viewport .solution-console-main > div {
    gap: 3px;
  }

  body.home-viewport .solution-console-main > div span {
    padding: 4px;
    gap: 1px;
  }

  body.home-viewport .solution-console-main small {
    font-size: 6px;
  }

  body.home-viewport .solution-console-main strong {
    font-size: 7px;
  }

  body.home-viewport .solution-path-grid {
    gap: 5px;
  }

  body.home-viewport .solution-path-grid article {
    padding: 7px;
    gap: 4px 7px;
  }

  body.home-viewport .solution-path-grid article > span {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 7px;
  }

  body.home-viewport .solution-path-grid h3 {
    margin-bottom: 0;
    font-size: 17px;
  }

  body.home-viewport .solution-path-grid p {
    display: none;
  }

  body.home-viewport .solution-path-grid small {
    font-size: 7px;
  }

  body.home-viewport .contact-focus h2 {
    margin-block: 7px;
    font-size: 34px;
  }

  body.home-viewport .promo-experience {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
}

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  body.home-viewport .promo-card:not(.is-active):not([aria-pressed="true"]):hover {
    flex-grow: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-viewport .home-panel.is-active:not([hidden]) {
    animation: none;
  }

  body.home-viewport .home-tabs button,
  body.home-viewport .promo-card,
  body.home-viewport .promo-card::before,
  body.home-viewport .promo-card-copy {
    transition: none;
  }

  body.home-viewport .home-tab-navigation,
  body.home-viewport .home-panel,
  body.home-viewport .home-footer nav {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: more) {
  body.home-viewport .home-topbar,
  body.home-viewport .home-footer,
  body.home-viewport .home-tabs button[aria-selected="true"],
  body.home-viewport .promo-rail,
  body.home-viewport .solution-compact-grid article,
  body.home-viewport .trust-compact-grid article,
  body.home-viewport .home-showcase-grid .showcase-family-card,
  body.home-viewport .home-pack-grid article,
  body.home-viewport .home-steps li,
  body.home-viewport .launch-proof-grid article,
  body.home-viewport .home-more-card {
    border-width: 2px;
    border-color: currentColor;
  }

  body.home-viewport .promo-card::before {
    filter: none;
  }
}

/* Ultime garde responsive, placée après les règles historiques plein écran. */
body.home-viewport.home-is-ready .home-panel.is-active:not([hidden]) {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Dernière couche sémantique : les anciens composants utilisaient --ink à la
   fois comme couleur de texte et comme fond inversé. En thème sombre, ces deux
   usages doivent rester distincts pour éviter tout texte clair sur fond clair. */
.button-ink,
.app-top .mini-brand,
.app-layout aside,
.security-chip,
.section-dark,
.editor-sidebar,
.context-help > p,
.cost-separation,
.subpage-cta,
.community-native-share,
body.home-viewport .home-more-card,
body.home-viewport .home-panel-contact {
  background-color: var(--surface-inverse);
  color: var(--text-inverse);
}

.cost-separation,
body.home-viewport .home-panel-contact {
  background-image: radial-gradient(circle at 18% 18%, rgba(23, 86, 216, 0.3), transparent 31%);
}

.button-white,
.button-light,
.nav-toggle,
.skip,
.community-share-fallback,
.community-share-intent,
.community-social-link {
  background: var(--surface-elevated);
  color: var(--ink);
}

.community-sharing {
  background: var(--surface-soft);
}

body.home-viewport {
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--aqua) 18%, transparent), transparent 26%),
    linear-gradient(135deg, var(--surface-page), var(--surface-soft));
  color: var(--ink);
}

body.home-viewport .home-topbar,
body.home-viewport .home-footer {
  border-color: var(--line);
  background: var(--surface-frost);
  color: var(--muted);
}

body.home-viewport .home-tabs button,
body.home-viewport .home-actions > a:not(.button),
body.home-viewport .home-assurances,
body.home-viewport .home-opening,
body.home-viewport .promo-heading p,
body.home-viewport .promo-live {
  color: var(--muted);
}

body.home-viewport .home-tabs button:hover,
body.home-viewport .security-banner nav a:hover,
body.home-viewport .security-banner nav a:focus-visible {
  background: color-mix(in srgb, var(--surface-elevated) 84%, transparent);
  color: var(--ink);
}

body.home-viewport .home-tabs button[aria-selected="true"],
body.home-viewport .solution-compact-grid article,
body.home-viewport .trust-compact-grid article,
body.home-viewport .home-showcase-grid .showcase-family-card,
body.home-viewport .showcase-catalog-foot,
body.home-viewport .home-pack-grid article,
body.home-viewport .payment-compact-grid article,
body.home-viewport .home-steps li,
body.home-viewport .launch-proof-grid article {
  border-color: var(--line);
  background: var(--surface-elevated);
  color: var(--ink);
}

body.home-viewport .home-pack-grid article.is-featured {
  border-color: color-mix(in srgb, var(--blue) 62%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--blue) 11%, var(--surface-elevated)), var(--surface-elevated));
}

body.home-viewport .home-boundary,
body.home-viewport .security-banner {
  background: var(--surface-accent);
  color: var(--ink-soft);
}

body.home-viewport .security-banner p {
  color: var(--muted);
}

body.home-viewport .home-more-card span,
.section-dark p,
.subpage-cta p,
.cost-separation p {
  color: var(--muted-inverse);
}

/* Les quatre offres restent visibles sur une rangée de comparaison desktop. */
@media (min-width: 901px) {
  body.home-viewport .home-pack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* À 761 px, la grille historique 260 + 440 px dépassait après ajout de la
   gouttière du panneau. Cette transition tablette conserve les deux zones. */
@media (min-width: 761px) and (max-width: 800px) {
  body.home-viewport .home-panel-hero {
    grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
    gap: 16px;
  }
}

@media (forced-colors: active) {
  body.home-viewport .home-pack-grid article {
    border: 2px solid ButtonText !important;
  }
}

/* --------------------------------------------------------------------------
   Contrat de composition publique : un en-tête unique et un écran desktop

   Les pages publiques partagent exactement les trois mêmes zones. Le contenu
   central peut défiler dans sa propre région ; le document et l'en-tête ne
   bougent pas sur ordinateur. Le mobile retrouve une lecture verticale.
   -------------------------------------------------------------------------- */
:root {
  --site-header-height: 74px;
}

.site-header.subpage-header,
.site-header.topbar,
body.home-viewport .site-header.home-topbar {
  position: relative;
  top: auto;
  z-index: 100;
  width: 100%;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  padding: max(7px, env(safe-area-inset-top)) max(clamp(16px, 2.4vw, 46px), env(safe-area-inset-right)) 7px max(clamp(16px, 2.4vw, 46px), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(172px, 0.76fr) minmax(0, 2.6fr) minmax(268px, 0.92fr);
  grid-template-areas: "brand navigation actions";
  align-items: center;
  gap: clamp(10px, 1.35vw, 24px);
  flex: 0 0 var(--site-header-height);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-frost);
  color: var(--ink);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 6%, transparent);
  backdrop-filter: blur(18px);
}

.site-header > .brand {
  grid-area: brand;
  min-width: 0;
  justify-self: start;
}

.site-header .site-primary-nav,
body.home-viewport .site-header .site-primary-nav.home-tab-navigation {
  grid-area: navigation;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

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

.site-header .site-primary-nav > a,
body.home-viewport .site-header .home-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 0 clamp(8px, 0.78vw, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: 700 11px/1 var(--font-sans);
  white-space: nowrap;
}

.site-header .site-primary-nav > a::after {
  display: none;
}

.site-header .site-primary-nav > a:hover,
.site-header .site-primary-nav > a:focus-visible,
.site-header .site-primary-nav > a[aria-current="page"],
body.home-viewport .site-header .home-tabs button:hover,
body.home-viewport .site-header .home-tabs button:focus-visible,
body.home-viewport .site-header .home-tabs button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--blue) 26%, var(--line));
  background: var(--surface-elevated);
  color: var(--blue-dark);
  text-decoration: none;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--blue) 12%, transparent);
}

body.home-viewport .site-header .home-tabs {
  width: max-content;
  min-width: 100%;
  justify-content: center;
  gap: 3px;
}

.site-header-actions,
body.home-viewport .site-header-actions.home-actions {
  grid-area: actions;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(7px, 0.8vw, 12px);
}

.site-header .site-header-community {
  display: contents;
}

.site-header .community-link,
.site-header .site-header-community > a,
body.home-viewport .site-header-actions.home-actions .community-link {
  min-height: 44px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.site-header .community-link:hover,
.site-header .community-link:focus-visible,
.site-header .community-link[aria-current="page"],
.site-header .site-header-community > a:hover,
.site-header .site-header-community > a:focus-visible,
.site-header .site-header-community > a[aria-current="page"] {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-header .theme-toggle {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  box-shadow: none;
}

.site-header .portal-button,
body.home-viewport .site-header .portal-button {
  min-width: 126px;
  min-height: 48px;
  padding-inline: 17px;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-header .portal-button i,
.site-header .portal-button strong {
  font-style: normal;
}

.site-header .portal-button::after {
  content: "→";
  font-style: normal;
}

/* L'en-tête et le pied restent dans le viewport ; seul le contenu central
   reçoit un défilement discret lorsque sa quantité l'exige. */
@media (min-width: 761px) {
  body.subpage,
  body.legal-page,
  body.community-page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.subpage > main,
  body.legal-page > main,
  body.community-page > main {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--blue) 52%, var(--line)) transparent;
    scrollbar-gutter: stable;
  }

  body.subpage > main::-webkit-scrollbar,
  body.legal-page > main::-webkit-scrollbar,
  body.community-page > main::-webkit-scrollbar {
    width: 8px;
  }

  body.subpage > main::-webkit-scrollbar-thumb,
  body.legal-page > main::-webkit-scrollbar-thumb,
  body.community-page > main::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--blue) 54%, var(--line));
    background-clip: padding-box;
  }

  body.subpage > .subpage-footer,
  body.legal-page > .subpage-footer {
    min-height: 48px;
    padding: 5px max(clamp(20px, 4.5vw, 76px), env(safe-area-inset-right));
    flex: 0 0 auto;
  }

  body.subpage > .subpage-footer .footer-bottom,
  body.legal-page > .subpage-footer .footer-bottom {
    min-height: 38px;
    padding-top: 0;
    align-items: center;
    border-top: 0;
  }

  /* Le pied de Communauté conserve toutes ses informations, mais les range
     sur deux lignes denses afin de laisser l'espace utile au mur public. */
  body.community-page > .site-footer {
    padding: 6px max(clamp(20px, 4.5vw, 76px), env(safe-area-inset-right));
    flex: 0 0 auto;
  }

  body.community-page > .site-footer .footer-main {
    min-height: 46px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 30px);
  }

  body.community-page > .site-footer .footer-brand {
    transform: scale(0.76);
    transform-origin: left center;
    margin-right: -22px;
  }

  body.community-page > .site-footer .footer-main > p {
    max-width: 330px;
    font-size: 9px;
    line-height: 1.35;
  }

  body.community-page > .site-footer .footer-main nav {
    margin-left: auto;
    gap: 14px;
    flex-wrap: nowrap;
  }

  body.community-page > .site-footer .footer-bottom {
    min-height: 28px;
    padding-top: 5px;
    align-items: center;
  }
}

/* Vitrines : les miniatures et leurs textes possèdent chacun une vraie colonne.
   Les contenus longs sont tronqués visuellement dans la carte, jamais autorisés
   à recouvrir la carte voisine, le CTA ou le pied du panneau. */
body.home-viewport .home-showcase-grid {
  overflow: hidden;
}

body.home-viewport .home-showcase-grid .showcase-family-card {
  overflow: hidden;
  isolation: isolate;
  grid-template-columns: minmax(96px, 0.84fr) minmax(0, 1.16fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 4px clamp(9px, 1vw, 14px);
}

body.home-viewport .home-showcase-grid .showcase-miniature {
  width: 100%;
  max-width: 100%;
  min-height: 108px;
}

body.home-viewport .home-showcase-grid .showcase-family-card header,
body.home-viewport .home-showcase-grid .showcase-family-card h3,
body.home-viewport .home-showcase-grid .showcase-family-card p,
body.home-viewport .home-showcase-grid .showcase-family-card ul {
  min-width: 0;
  max-width: 100%;
}

body.home-viewport .home-showcase-grid .showcase-family-card header > small,
body.home-viewport .home-showcase-grid .showcase-family-card header > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-viewport .home-showcase-grid .showcase-family-card h3,
body.home-viewport .home-showcase-grid .showcase-family-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

body.home-viewport .home-showcase-grid .showcase-family-card h3 {
  margin-block: 6px 3px;
  -webkit-line-clamp: 2;
}

body.home-viewport .home-showcase-grid .showcase-family-card p {
  -webkit-line-clamp: 2;
}

body.home-viewport .home-showcase-grid .showcase-family-card ul {
  align-content: end;
  padding: 0;
  overflow: hidden;
}

/* Packs : quatre colonnes réellement comparables sur grand écran. Dès qu'une
   colonne deviendrait trop étroite, la comparaison devient un rail horizontal
   nommé et pilotable au clavier plutôt que de comprimer les libellés. */
body.home-viewport .home-pack-grid {
  width: min(1540px, 100%);
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: stretch;
}

body.home-viewport .home-pack-grid article {
  padding: clamp(13px, 1.35vw, 20px);
  overflow: hidden;
}

body.home-viewport .home-pack-grid h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2vw, 32px);
}

body.home-viewport .home-pack-grid strong,
body.home-viewport .home-pack-grid article > span {
  margin-top: 6px;
}

body.home-viewport .home-pack-grid ul {
  margin-block: 7px;
}

body.home-viewport .home-pack-grid .button {
  min-height: 42px;
}

@media (min-width: 761px) and (max-width: 1199px) {
  body.home-viewport .home-showcase-grid {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: clamp(270px, 36vw, 350px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  body.home-viewport .home-showcase-grid .showcase-family-card {
    height: 100%;
    scroll-snap-align: start;
  }
}

@media (max-width: 1199px) {
  body.home-viewport .home-pack-grid {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: clamp(230px, 31vw, 310px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  body.home-viewport .home-pack-grid article {
    height: 100%;
    scroll-snap-align: start;
  }
}

/* Le tiroir mobile garde la même hiérarchie que le header desktop. */
@media (max-width: 980px) {
  .site-header.subpage-header,
  .site-header.topbar,
  body.home-viewport .site-header.home-topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand actions toggle";
    gap: 8px;
    padding-inline: max(14px, env(safe-area-inset-left));
  }

  .site-header > .nav-toggle {
    grid-area: toggle;
    display: block;
    margin: 0;
  }

  .site-header .site-primary-nav,
  body.home-viewport .site-header .site-primary-nav.home-tab-navigation {
    position: fixed;
    top: var(--site-header-height);
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100dvh - var(--site-header-height) - 18px);
    padding: 10px 18px;
    display: grid;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-elevated);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
  }

  .site-header .site-primary-nav.is-open,
  body.home-viewport .site-header .site-primary-nav.home-tab-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-header .site-primary-nav > a {
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  body.home-viewport .site-header .home-tabs {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.home-viewport .site-header .home-tabs button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
    border-bottom-color: var(--line);
  }

  .site-header .site-header-community {
    display: none;
  }

  .site-header-actions,
  body.home-viewport .site-header-actions.home-actions {
    gap: 7px;
  }
}

@media (max-width: 580px) {
  .site-header .brand-name {
    display: none;
  }

  .site-header .portal-button,
  body.home-viewport .site-header .portal-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .site-header .portal-button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* Sur téléphone, le document redevient naturellement vertical. Les zones
   internes ne créent donc pas de piège de défilement tactile. */
@media (max-width: 760px) {
  body.subpage,
  body.legal-page,
  body.community-page {
    height: auto;
    min-height: 100svh;
    max-height: none;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  body.subpage > .site-header,
  body.legal-page > .site-header,
  body.community-page > .site-header {
    position: sticky;
    top: 0;
  }

  body.subpage > main,
  body.legal-page > main,
  body.community-page > main {
    min-height: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  body.home-viewport .home-showcase-grid .showcase-family-card {
    padding: 9px;
  }

  body.home-viewport .home-showcase-grid .showcase-miniature {
    min-height: 82px;
  }

  body.home-viewport .home-showcase-grid .showcase-family-card ul {
    margin-top: 4px;
  }

  body.home-viewport .home-pack-grid article {
    padding: 10px 12px;
  }
}

/* Sur l'accueil, les sept onglets restent directement visibles à toutes les
   largeurs : ils constituent le sélecteur principal de contenu, pas un menu de
   pages. Les autres pages conservent le tiroir responsive ci-dessus. */
@media (max-width: 980px) {
  body.home-viewport .site-header.home-topbar {
    height: auto;
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "navigation navigation";
    gap: 3px 10px;
    padding-bottom: 4px;
  }

  body.home-viewport .site-header.home-topbar > .nav-toggle {
    display: none;
  }

  body.home-viewport .site-header .site-primary-nav.home-tab-navigation {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-height: none;
    padding: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 8px;
    scroll-snap-type: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  body.home-viewport .site-header .home-tabs {
    width: max-content;
    min-width: 100%;
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 3px;
    padding-inline: 4px;
  }

  body.home-viewport .site-header .home-tabs button {
    width: auto;
    min-width: 82px;
    justify-content: center;
    border-radius: 11px;
    border-bottom-color: transparent;
    scroll-snap-align: none;
  }
}

@media (forced-colors: active) {
  .site-header.subpage-header,
  .site-header.topbar,
  body.home-viewport .site-header.home-topbar,
  .site-header .site-primary-nav {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .site-header .site-primary-nav > a,
  .site-header .community-link,
  body.home-viewport .site-header .home-tabs button {
    color: LinkText;
  }

  .site-header .site-primary-nav > a[aria-current="page"],
  .site-header .community-link[aria-current="page"],
  body.home-viewport .site-header .home-tabs button[aria-selected="true"] {
    border: 2px solid Highlight;
    color: Highlight;
  }
}

/* Verrou final de cascade : certains composants historiques définissent leur
   propre cursor:pointer. Le sélecteur ci-dessous conserve le dessin HDF sans
   modifier les curseurs wait, text ou not-allowed plus spécifiques. */
@media (hover: hover) and (pointer: fine) {
  body :is(a[href], button:not(:disabled), summary, select, label[for], [role="button"]:not([aria-disabled="true"]), [role="tab"]:not([aria-disabled="true"]), [data-showcase-preview], [data-promo]) {
    cursor: url("/assets/hdf-cursor-action.svg") 5 4, pointer;
  }

  body :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"]) {
    cursor: text;
  }
}

@media (forced-colors: active) {
  body :is(a[href], button, summary, select, label[for], [role="button"], [role="tab"]) {
    cursor: pointer !important;
  }
}

/* --------------------------------------------------------------------------
   Accueil 2026-08-27 : panorama à ouverture manuelle

   Toutes les cartes utilisent le même panorama à hauteur constante. Changer
   de carte révèle une portion plus large sans agrandir l'image : aucun zoom,
   aucune lecture automatique et aucun asset emprunté à une autre marque.
   -------------------------------------------------------------------------- */
body.home-viewport .promo-experience {
  width: 100%;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  gap: 10px;
}

body.home-viewport .promo-rail {
  min-height: 300px;
  gap: 0;
  perspective: 1200px;
  touch-action: pan-y;
}

body.home-viewport .promo-card {
  min-width: 54px;
  margin-inline: -1px;
  padding: clamp(14px, 1.5vw, 24px);
  flex: 0.82 1 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.12);
  transition: flex 460ms cubic-bezier(0.2, 0.72, 0.2, 1), clip-path 460ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 180ms ease;
}

body.home-viewport .promo-card.is-before {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transform-origin: right center;
}

body.home-viewport .promo-card.is-after {
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transform-origin: left center;
}

body.home-viewport .promo-card::before,
body.home-viewport .promo-card.is-active::before,
body.home-viewport .promo-card[aria-pressed="true"]::before {
  /* `auto 100%` est le verrou anti-zoom : seule la fenêtre change de largeur. */
  background-size: auto 100%;
  transform: none;
}

body.home-viewport .promo-card:not(.is-active):not([aria-pressed="true"])::before {
  filter: saturate(0.62) brightness(0.5);
}

body.home-viewport .promo-card.is-active,
body.home-viewport .promo-card[aria-pressed="true"] {
  flex: 6 1 58%;
  clip-path: none;
}

body.home-viewport .promo-card.is-active::before,
body.home-viewport .promo-card[aria-pressed="true"]::before,
body.home-viewport .promo-card.is-active:hover::before,
body.home-viewport .promo-card[aria-pressed="true"]:hover::before {
  filter: saturate(1.02) brightness(0.9);
}

body.home-viewport .promo-card:not(.is-active):not([aria-pressed="true"]):hover::before {
  filter: saturate(0.82) brightness(0.68);
}

body.home-viewport .promo-live {
  min-height: 46px;
  padding: 5px 6px 5px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-elevated) 90%, transparent);
}

body.home-viewport .promo-live p {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 1px;
}

body.home-viewport .promo-live p small {
  color: var(--blue);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.home-viewport .promo-live p strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-viewport .promo-live > span {
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

body.home-viewport .promo-live .button {
  min-height: 36px;
  padding-inline: 14px;
  background: var(--ink);
  color: var(--surface-elevated);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Vitrines : les captures sont les vraies pages d'accueil des six démos.
   Le cadre de navigateur devient la partie dominante de chaque carte.
   -------------------------------------------------------------------------- */
body.home-viewport .showcase-demo-grid {
  gap: clamp(10px, 1.1vw, 17px);
}

body.home-viewport .showcase-demo-card {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 8%, transparent);
}

body.home-viewport .showcase-demo-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 28px;
  width: 62px;
  height: 4px;
  border-radius: 0 0 7px 7px;
  background: var(--showcase-accent);
  content: "";
  pointer-events: none;
}

body.home-viewport .showcase-demo-link {
  grid-template-columns: minmax(170px, 0.94fr) minmax(0, 1.06fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1.15vw, 18px);
  padding: clamp(11px, 1.1vw, 16px);
}

body.home-viewport .showcase-demo-miniature {
  aspect-ratio: 16 / 9;
  min-height: 0;
  align-self: center;
  border-radius: 14px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 16%, transparent);
}

body.home-viewport .showcase-demo-miniature::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  content: "";
  pointer-events: none;
}

body.home-viewport .showcase-demo-content {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: center;
  gap: 5px;
  padding-block: 4px;
}

body.home-viewport .showcase-demo-content small,
body.home-viewport .showcase-demo-content strong,
body.home-viewport .showcase-demo-content span,
body.home-viewport .showcase-demo-content b {
  grid-column: 1;
}

body.home-viewport .showcase-demo-content strong {
  font-size: clamp(21px, 1.75vw, 30px);
  line-height: 0.98;
}

body.home-viewport .showcase-demo-content span {
  display: -webkit-box;
  align-self: start;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.home-viewport .showcase-demo-content b {
  grid-row: 4;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
}

body.home-viewport .showcase-demo-card > ul {
  padding: 7px 12px 10px;
}

/* --------------------------------------------------------------------------
   Packs : catalogue de services honnête, comparable et compact.
   -------------------------------------------------------------------------- */
body.home-viewport .pack-service-page {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.2vh, 13px);
}

body.home-viewport .pack-service-page .home-panel-heading h2 {
  font-size: clamp(38px, 4vw, 64px);
}

body.home-viewport .pack-service-tabs {
  width: min(1540px, 100%);
  min-height: 46px;
  margin: 0 auto;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-elevated) 86%, transparent);
}

body.home-viewport .pack-service-tabs button {
  min-width: 0;
  min-height: 36px;
  padding: 5px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-viewport .pack-service-tabs button:hover,
body.home-viewport .pack-service-tabs button:focus-visible {
  background: color-mix(in srgb, var(--blue-soft) 72%, transparent);
  color: var(--blue-dark);
}

body.home-viewport .pack-service-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--surface-elevated);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--ink) 18%, transparent);
}

body.home-viewport .pack-service-panel {
  width: min(1540px, 100%);
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
}

body.home-viewport .pack-service-panel[hidden] {
  display: none !important;
}

body.home-viewport .pack-product-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 15px);
}

body.home-viewport .pack-product-grid article {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: clamp(14px, 1.4vw, 22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface-elevated);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 7%, transparent);
}

body.home-viewport .pack-product-grid article.is-featured {
  border-color: color-mix(in srgb, var(--blue) 72%, var(--line));
  box-shadow: 0 18px 42px color-mix(in srgb, var(--blue) 15%, transparent);
}

body.home-viewport .pack-product-grid article > em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #0b7657;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.home-viewport .pack-product-grid article > small {
  max-width: calc(100% - 88px);
  color: var(--blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

body.home-viewport .pack-product-grid h3 {
  margin: 9px 0 4px;
  font: 400 clamp(22px, 2vw, 34px)/1 var(--font-display);
}

body.home-viewport .pack-product-grid article > strong {
  color: var(--ink);
  font-size: 12px;
}

body.home-viewport .pack-product-grid article > p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

body.home-viewport .pack-product-grid ul {
  margin: auto 0 9px;
  padding: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
  list-style: none;
}

body.home-viewport .pack-product-grid li::before {
  margin-right: 7px;
  color: var(--success);
  content: "\2713";
  font-weight: 850;
}

body.home-viewport .pack-product-grid article > a {
  min-height: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--blue) 58%, var(--line));
  border-radius: 10px;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

body.home-viewport .pack-product-grid article.is-featured > a {
  background: var(--blue);
  color: #fff;
}

body.home-viewport .pack-service-foot {
  width: min(1540px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: 5px 6px 5px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
}

body.home-viewport .pack-service-foot p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

body.home-viewport .pack-service-foot p strong {
  color: var(--ink);
}

body.home-viewport .pack-service-foot .button {
  min-height: 36px;
  flex: 0 0 auto;
  padding-inline: 14px;
  font-size: 9px;
}

@media (max-width: 1180px) {
  body.home-viewport .showcase-demo-grid {
    grid-template-columns: repeat(3, minmax(360px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: inline proximity;
  }

  body.home-viewport .showcase-demo-card {
    scroll-snap-align: start;
  }

  body.home-viewport .pack-product-grid {
    grid-template-columns: repeat(3, minmax(270px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: inline mandatory;
  }

  body.home-viewport .pack-product-grid article {
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  body.home-viewport .promo-experience {
    min-height: 390px;
    grid-template-rows: auto minmax(260px, 1fr) auto;
  }

  body.home-viewport .promo-heading p {
    display: none;
  }

  body.home-viewport .promo-rail {
    min-height: 260px;
  }

  body.home-viewport .promo-card {
    min-width: 42px;
    flex: 0 0 42px;
  }

  body.home-viewport .promo-card.is-active,
  body.home-viewport .promo-card[aria-pressed="true"] {
    flex: 0 0 min(72vw, 430px);
  }

  body.home-viewport .promo-live {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.home-viewport .promo-live > span {
    display: none;
  }

  body.home-viewport .showcase-demo-grid {
    grid-auto-columns: minmax(310px, 88vw);
    grid-template-rows: repeat(2, minmax(210px, 1fr));
  }

  body.home-viewport .showcase-demo-link {
    grid-template-columns: minmax(132px, 0.9fr) minmax(0, 1.1fr);
  }

  body.home-viewport .pack-service-page {
    grid-template-rows: auto auto minmax(330px, 1fr) auto;
  }

  body.home-viewport .pack-service-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
  }

  body.home-viewport .pack-service-tabs button {
    min-width: 112px;
    scroll-snap-align: start;
  }

  body.home-viewport .pack-product-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(270px, 84vw);
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.home-viewport .pack-service-foot p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  body.home-viewport .promo-experience {
    grid-template-rows: auto minmax(245px, 1fr) auto;
  }

  body.home-viewport .promo-rail {
    min-height: 245px;
  }

  body.home-viewport .pack-service-page .home-panel-heading h2 {
    font-size: clamp(34px, 3.7vw, 52px);
  }

  body.home-viewport .pack-product-grid article {
    padding: 11px 13px;
  }

  body.home-viewport .pack-product-grid h3 {
    margin-top: 5px;
    font-size: clamp(20px, 1.7vw, 28px);
  }

  body.home-viewport .pack-product-grid article > p {
    margin-block: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-viewport .promo-card,
  body.home-viewport .promo-card::before,
  body.home-viewport .promo-card-copy {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  body.home-viewport .promo-rail,
  body.home-viewport .promo-live,
  body.home-viewport .showcase-demo-card,
  body.home-viewport .pack-service-tabs,
  body.home-viewport .pack-product-grid article,
  body.home-viewport .pack-service-foot {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  body.home-viewport .pack-service-tabs button[aria-selected="true"] {
    border: 2px solid Highlight;
    background: Highlight;
    color: HighlightText;
  }
}
