/* Pages à blocs d'enskel.com (vue d'ensemble, connexions, Popina, sécurité, À propos,
   partenaires, ressources) : la grammaire de la landing appliquée aux blocs des données.
   Surfaces, filets et ombres reprennent ceux des cartes et des panneaux sombres de la landing. */
enskel-blocks {
  display: block;
}
.blocks-section {
  position: relative;
}

/* Ouverture à deux colonnes : le texte à gauche, le produit à droite (≥ 1200 px). */
.blocks-hero-visual {
  margin-top: clamp(52px, 7vw, 84px);
}
/* Le texte se centre sur la hauteur du visuel : deux rangées souples l'encadrent. */
@media (width >= 1200px) {
  .blocks-hero--split .page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    grid-template-rows: minmax(0, 1fr) repeat(3, auto) minmax(0, 1fr);
    column-gap: clamp(56px, 6vw, 112px);
  }
  .blocks-hero--split .page-hero > * {
    grid-column: 1;
  }
  .blocks-hero--split .page-hero > .section-index {
    grid-row: 2;
  }
  .blocks-hero--split .page-hero > h1 {
    grid-row: 3;
  }
  .blocks-hero--split .page-hero > .editorial-hero-bottom {
    grid-row: 4;
  }
  .blocks-hero--split .page-hero > .blocks-hero-visual {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    margin-top: 0;
  }
  .blocks-hero--split .editorial-hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
  }
}

/* Tête et contenu côte à côte ; ce qui suit (schéma, repères) reprend toute la largeur. */
.blocks-frame--split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 120px);
  align-items: end;
}
.blocks-frame--split > :nth-child(n + 3) {
  grid-column: 1 / -1;
}
/* Une prose de plusieurs paragraphes part de la ligne du titre plutôt que de sa base. */
.blocks-frame--split:has(> .blocks-prose--long) {
  align-items: start;
}
.blocks-frame--split > .blocks-prose--long {
  padding-top: 52px;
}
.blocks-prose {
  display: grid;
  gap: 20px;
  max-width: 40rem;
  padding-bottom: 6px;
}
.blocks-prose p {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--color-graphite) 78%, var(--color-canvas));
}
.blocks-prose--long p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.72;
  letter-spacing: -0.018em;
  color: #565656;
}
.blocks-prose--long p:first-child {
  color: var(--color-graphite);
}
.blocks-signatures {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(28px, 6vw, 96px);
  margin-top: clamp(56px, 6vw, 92px);
}

/* Surfaces : panneau sombre (mise en route) et carte blanche (invitations). */
.blocks-surface--dark {
  padding: clamp(30px, 5vw, 76px);
  border-radius: var(--radius-panel);
  background: var(--surface-dark-background);
  box-shadow: var(--surface-dark-shadow);
  color: var(--color-surface);
}
.blocks-surface--dark .section-index {
  color: #c8c8c8;
}
.blocks-surface--dark .page-section-head--accent h2 > span + span {
  color: color-mix(in srgb, var(--color-accent) 72%, var(--color-surface));
}
.blocks-surface--dark .page-section-subtitle {
  color: #ababab;
}
.blocks-surface--card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5.4vw, 84px);
  border: 1px solid color-mix(in srgb, var(--color-graphite) 8%, transparent);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 26px 60px -34px rgb(0 0 0 / 0.24);
}
/* Trame de points de la landing, qui s'efface vers le texte. */
.blocks-surface--card::before {
  content: '';
  position: absolute;
  inset: 0 0 0 46%;
  z-index: -1;
  background-image: radial-gradient(
    circle at 0.5px 0.5px,
    var(--color-chart) 0.6px,
    transparent 0.75px
  );
  background-size: 22px 22px;
  opacity: 0.4;
  mask-image: linear-gradient(90deg, transparent, black 70%);
}

/* Mise en route : trois temps sur un rail rouge, chacun marqué d'un nœud carré. */
.blocks-steps {
  position: relative;
  margin-top: clamp(48px, 6vw, 84px);
}
.blocks-steps-rail {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    color-mix(in srgb, var(--color-accent) 50%, transparent)
  );
}
.blocks-steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.blocks-steps-list > li {
  position: relative;
  padding-top: 38px;
}
.blocks-steps-list > li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.05);
}
.blocks-steps-index {
  display: block;
  margin-bottom: 16px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: #9d9d9d;
}
.blocks-steps-list h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.blocks-steps-list p {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.72;
  color: #bdbdbd;
}

/* Tableaux de référence : carte blanche, en-têtes mono, filets fins. */
.blocks-table-card {
  margin-top: clamp(40px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-graphite) 9%, transparent);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 20px 48px -28px rgb(0 0 0 / 0.2);
}
.blocks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.blocks-table th,
.blocks-table td {
  padding: 21px clamp(18px, 2.2vw, 30px);
  text-align: left;
  vertical-align: top;
}
.blocks-table thead th {
  padding-block: 15px;
  border-bottom: 1px solid var(--color-line);
  background: color-mix(
    in srgb,
    var(--color-graphite) 3%,
    var(--color-surface)
  );
  color: var(--color-muted);
  font: 400 11px/1.45 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blocks-table tbody tr {
  transition: background-color var(--motion-hover) var(--motion-ease-transition);
}
.blocks-table tbody tr + tr {
  border-top: 1px solid var(--color-line);
}
.blocks-table tbody th {
  width: 24%;
  color: var(--color-graphite);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.blocks-table td {
  color: #4e4e4e;
  letter-spacing: -0.012em;
}
@media (hover: hover) {
  .blocks-table tbody tr:hover {
    background: color-mix(in srgb, var(--color-graphite) 2%, transparent);
  }
}
/* Correspondance à deux colonnes : une flèche rouge mène de l'une à l'autre. */
.blocks-table-card--mapping tbody th {
  width: 46%;
  color: #4e4e4e;
  font-weight: 500;
}
.blocks-table-card--mapping td {
  position: relative;
  padding-left: clamp(52px, 5vw, 76px);
  color: var(--color-graphite);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.blocks-table-card--mapping td::before,
.blocks-table-card--mapping td::after {
  content: '';
  position: absolute;
  top: 32px;
}
.blocks-table-card--mapping td::before {
  left: 0;
  width: clamp(30px, 3.2vw, 46px);
  height: 1.5px;
  background: var(--color-accent);
}
.blocks-table-card--mapping td::after {
  left: calc(clamp(30px, 3.2vw, 46px) - 6px);
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-top: 1.5px solid var(--color-accent);
  border-right: 1.5px solid var(--color-accent);
  transform: rotate(45deg);
}

/* Pastilles d'état et de région : relié ou à Paris, intégré, ouvert à la demande. */
.blocks-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.blocks-pill > i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.blocks-pill--accent {
  /* Assombri d'un cran : 4,5:1 sur le rose, en 13 px. */
  color: color-mix(in srgb, var(--color-accent) 85%, var(--color-graphite));
  background: var(--color-accent-soft);
}
.blocks-pill--ink {
  color: var(--color-graphite);
  background: color-mix(in srgb, var(--color-graphite) 7%, transparent);
}
.blocks-pill--open {
  color: #555;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--color-graphite) 22%, transparent);
}
.blocks-pill--open > i {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Invitation à écrire : une phrase en grand, l'adresse à sa place, soulignée de rouge. Le
   titre, posé dans la carte, descend d'un cran pour tenir sur sa colonne. */
/* Sans équilibrage : il couperait « Relions-le » à son trait d'union pour égaliser les lignes. */
.blocks-contact .page-section-head h2 {
  font-size: clamp(min(34px, 7.2vw), 3.5vw, 52px);
  text-wrap: pretty;
}
.blocks-contact-body {
  display: grid;
  gap: 26px;
  justify-items: start;
}
.blocks-contact-text {
  max-width: 24ch;
  color: var(--color-graphite);
  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -0.04em;
}
.blocks-contact-mail {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(
    in srgb,
    var(--color-accent) 38%,
    transparent
  );
  transition: text-decoration-color var(--motion-hover)
    var(--motion-ease-transition);
}
.blocks-contact-mail:hover {
  text-decoration-color: currentColor;
}
.blocks-contact-link .text-link {
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.blocks-contact-link .link-arrow {
  color: var(--color-accent);
}

/* L'invitation qui suit la FAQ garde l'air d'une section avant le pied de page. */
.blocks-after {
  padding-bottom: clamp(24px, 4vw, 56px);
}

/* Liste générique de pages liées. */
.blocks-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 4vw, 56px);
  margin-top: clamp(44px, 5vw, 72px);
}
.blocks-item {
  display: grid;
  align-content: start;
  gap: 12px;
}
.blocks-item-index {
  font: 400 11px/1.5 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--color-muted);
}
.blocks-item h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 650;
  letter-spacing: -0.04em;
}
.blocks-item p {
  color: #565656;
  line-height: 1.65;
}
.blocks-item-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Flèches et liens de cartes : la flèche avance au survol, la carte entière est cliquable. */
.blocks-arrow {
  flex: none;
  color: var(--color-accent);
  transition: transform var(--motion-hover) var(--motion-ease-out);
}
@media (hover: hover) {
  a:hover > .blocks-arrow {
    transform: translateX(var(--motion-arrow));
  }
}

/* Fils d'un schéma : `--n` cartes au pas `--row` + `--gap`, réunies par un collecteur
   vertical, puis un seul fil vers le panneau voisin. Les nœuds carrés marquent les raccords. */
.blocks-bus {
  --wire: 1.5px;
  --pitch: calc(var(--row) + var(--gap));
  position: relative;
  display: block;
  height: 100%;
}
.blocks-bus > i,
.blocks-bus::before,
.blocks-bus::after {
  content: '';
  position: absolute;
}
.blocks-bus > i {
  top: calc(50% + (var(--i) - (var(--n) - 1) / 2) * var(--pitch));
  border-top: var(--wire) solid var(--color-accent);
}
.blocks-bus > i::after {
  content: '';
  position: absolute;
  top: calc(-3.5px - var(--wire) / 2);
  width: 7px;
  height: 7px;
  background: var(--color-accent);
}
.blocks-bus > i.is-open {
  border-top-style: dashed;
  border-top-color: color-mix(in srgb, var(--color-graphite) 34%, transparent);
}
.blocks-bus > i.is-open::after {
  background: var(--color-canvas);
  box-shadow: inset 0 0 0 1.5px
    color-mix(in srgb, var(--color-graphite) 40%, transparent);
}
.blocks-bus::before {
  left: 50%;
  top: calc(50% - (var(--n) - 1) / 2 * var(--pitch));
  height: calc((var(--n) - 1) * var(--pitch));
  border-left: var(--wire) solid var(--color-accent);
}
.blocks-bus::after {
  top: 50%;
  border-top: var(--wire) solid var(--color-accent);
}
.blocks-bus--in > i {
  left: 0;
  right: 50%;
}
.blocks-bus--in > i::after {
  left: -3px;
}
.blocks-bus--in::after {
  left: 50%;
  right: 0;
}
.blocks-bus--out > i {
  left: 50%;
  right: 0;
}
.blocks-bus--out > i::after {
  right: -3px;
}
.blocks-bus--out::after {
  left: 0;
  right: 50%;
}

@media (width < 960px) {
  .blocks-frame--split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
  }
  .blocks-frame--split > .blocks-prose--long {
    padding-top: 0;
  }
  .blocks-steps-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .blocks-steps-rail {
    display: none;
  }
  .blocks-steps-list > li {
    padding: 0 0 0 34px;
  }
  .blocks-steps-list > li::before {
    top: 2px;
  }
  .blocks-steps-list > li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: -26px;
    left: 4px;
    width: 1px;
    background: color-mix(in srgb, var(--color-accent) 55%, transparent);
  }
  .blocks-steps-index {
    margin-bottom: 12px;
  }
}
@media (width < 640px) {
  .blocks-table-card {
    margin-top: 34px;
  }
  .blocks-table,
  .blocks-table tbody,
  .blocks-table tr,
  .blocks-table th,
  .blocks-table td {
    display: block;
  }
  .blocks-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .blocks-table tbody tr {
    padding: 20px 20px 22px;
  }
  .blocks-table tbody th,
  .blocks-table-card--mapping tbody th {
    width: auto;
    padding: 0 0 6px;
    font-size: 17px;
  }
  .blocks-table td,
  .blocks-table-card--mapping td {
    padding: 12px 0 0;
  }
  .blocks-table td::before,
  .blocks-table-card--mapping td::before {
    content: attr(data-label);
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 5px;
    background: none;
    color: var(--color-muted);
    font: 400 var(--text-micro)/1.45 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .blocks-table-card--mapping td::after {
    content: none;
  }
  .blocks-contact-text {
    font-size: 21px;
  }
}
