/**
 * FlatCMS - Flat-File Content Management System
 * Copyright (C) 2026 Alain BROYE
 * SPDX-License-Identifier: AGPL-3.0-or-later
 *
 * See LICENSE, LICENSING.md and TRADEMARK.md.
 *
 * File: public/assets/components/altosequanais/css/alto.css
 * Version: 2.0.1
 *
 * Layout adjustments for the Alto Sequanais custom theme.
 *
 * Editorial pages are built with the theme primitives (.hero, .section,
 * .section-alt, .container, .cards-grid, .card, .prose, .btn). Only the two
 * following gaps are patched here:
 *   1. the framework wraps page content in a max-width .container, which
 *      prevents full-bleed sections and hero backgrounds;
 *   2. long-form prose needs its own measure inside the wide canvas.
 */

/* --------------------------------------------------------------------------
   Accessibility: keyboard skip link
   Visible only when focused, it jumps straight to the page content.
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(33, 28, 32, 0.24);
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* All regular text CTAs use the same height as the .btn primitive.
   The header's Accès client link does not carry a .btn class. */
.alto-header .alto-client-link {
  box-sizing: border-box;
  height: var(--fc-btn-height, 42px);
  min-height: var(--fc-btn-height, 42px);
  padding-block: 0;
}

/* The signed Settings consent module consumes --fc-btn-padding-y and its
   native 42px min-height. Only the fixed height is supplied by this theme. */
.flatcms-consent-button,
.flatcms-consent-preferences__close {
  height: var(--fc-btn-height, 42px);
}

/* Sticky header: keep in-page anchors clear of the header. */
.hero[id],
.section[id] {
  scroll-margin-top: 6rem;
}

/* --------------------------------------------------------------------------
   Full-bleed page canvas

   The framework renders:
     .site-main > .page-content > .container > .page-article.prose
       > .page-richtext > .hero / .section / .section-alt
   Sections manage their own inner .container, so the outer wrapper must not
   constrain their width nor add its own side padding.
   -------------------------------------------------------------------------- */
.site-main > .page-content > .container:has(.hero),
.site-main > .page-content > .container:has(.section) {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* A hero sits directly under the header: drop the page top padding. */
.site-main > .page-content:has(.hero) {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Editorial measure

   The base stylesheet caps every descendant .container at 800px, which is too
   narrow for a cards grid. Restore the canvas to the common 1200px width.
   Standalone editorial sections use the full grid; the existing homepage
   reviews carousel keeps its deliberately narrower reading measure.
   -------------------------------------------------------------------------- */
.page-richtext .container {
  max-width: var(--max-width, 1200px);
}

.page-richtext .prose:not(.alto-post-content) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.page-richtext .prose > :first-child:not(.prose-action-links) {
  margin-top: 0;
}

.page-richtext .prose > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   All editorial pages — one 1200px content grid, full-width principal photos.

   Generic section text used to be capped at 820px even within 1200px
   sections. Extend editorial content to the section grid but retain the
   intentionally compact testimonial carousel.
   Full-bleed applies only to standalone photographic figures (JPEG/WebP),
   never to card media, diagrams, logos or icons.
   -------------------------------------------------------------------------- */
.page-richtext > .section .prose:not(.alto-review-carousel) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.page-richtext > .section .prose > figure:has(> img[src*=".jpg"], > img[src*=".jpeg"], > img[src*=".webp"]) {
  display: block;
  width: 100vw;
  max-width: none;
  margin: 2rem calc(50% - 50vw);
  overflow: hidden;
  border-radius: 0;
}

.page-richtext > .section .prose > figure:has(> img[src*=".jpg"], > img[src*=".jpeg"], > img[src*=".webp"]) > img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(260px, 43vw, 600px);
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 639px) {
  .page-richtext > .section .prose > figure:has(> img[src*=".jpg"], > img[src*=".jpeg"], > img[src*=".webp"]) > img {
    height: clamp(240px, 67vw, 300px);
  }
}

/* The Contact page has its own native layout, rather than .section blocks.
   Keep its form and intro on the common 1200px grid, but let the original
   contact photograph extend across the viewport without rounded corners. */
.site-main:has(.alto-contact-original) > .page-content > .container {
  max-width: var(--max-width, 1200px);
  padding-left: 24px;
  padding-right: 24px;
}

.page-richtext:has(> .alto-contact-original) {
  padding-top: 0;
}

.page-richtext:has(> .alto-contact-original) > .alto-contact-original .alto-contact-original-media {
  width: 100vw;
  max-width: none;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-radius: 0;
}

.page-richtext:has(> .alto-contact-original) > .alto-contact-original .alto-contact-original-media img {
  display: block;
  width: 100%;
  max-width: none;
  /* Match the cabinet hero's 600px maximum without changing mobile layout. */
  height: clamp(260px, 43vw, 600px);
  border-radius: 0;
  object-fit: cover;
}

/* The legacy Tailwind contact-page rule forces a 9999px submit radius.
   Use the frontend button primitive's native radius instead, without changing
   input fields, other themes, or editorial links. */
.page-richtext:has(> .alto-contact-original) > .flatcms-contact-native .btn-primary {
  border-radius: var(--fc-btn-radius, 0.5rem);
}

/* --------------------------------------------------------------------------
   Native contact form embedded in editorial pages

   The [contact-form] shortcode renders a section that the framework appends
   after the page blocks. Keep it aligned with the prose measure.
   -------------------------------------------------------------------------- */
.page-richtext > .flatcms-contact-native {
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-body > .btn {
  margin-top: 1rem;
}

.card-image--portrait {
  height: 340px;
}

.card-image--portrait img {
  object-position: center 20%;
}

@media (max-width: 639px) {
  .card-image--portrait {
    height: 280px;
  }

  /* The base grid uses a 300px minimum track, wider than the content box
     of a 320px viewport once the container padding is applied. */
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Sections and hero on small screens
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .section {
    padding: 2.75rem 0;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .prose blockquote {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Blog article canvas — unified 1200px site content grid.

   The homepage sections and article header/body use the same --max-width
   token from style.css (1200px), with the same 24px container gutters.
   The article text is no longer capped at 860px; only the featured image
   remains viewport-wide as requested.
   -------------------------------------------------------------------------- */
.post-page > .page-header > .container,
.post-page > .content-wrapper > .container {
  max-width: var(--max-width, 1200px);
}

.alto-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Article featured photography — edge-to-edge, like the home carousel.

   The native Posts module nests the feature image inside a centered
   .content-wrapper > .container > article.prose. Escape only that image,
   retaining the title, metadata and the rest of the article in their
   existing editorial widths. Reset .prose img's margins / radius explicitly.
   -------------------------------------------------------------------------- */
.post-page:has(> .content-wrapper .post-featured-image) > .content-wrapper {
  padding-top: 0;
}

.post-page .content-wrapper .content.prose > img.post-featured-image {
  display: block;
  width: 100vw;
  max-width: none;
  height: clamp(260px, 43vw, 600px);
  object-fit: cover;
  object-position: center;
  margin: 0 calc(50% - 50vw) clamp(36px, 4vw, 58px);
  border: 0;
  border-radius: 0;
}

@media (max-width: 639px) {
  .post-page .content-wrapper .content.prose > img.post-featured-image {
    height: clamp(240px, 67vw, 300px);
    margin-bottom: 32px;
  }
}

/* --------------------------------------------------------------------------
   Blog cards

   The base `.posts-grid .card-body` sets `height: 100%` inside a column flex
   card whose row is stretched to the tallest item, so the 200px thumbnail is
   flex-shrunk to ~136px (a 2.65:1 crop). Keep the thumbnail ratio and let the
   body fill the remaining space instead.
   -------------------------------------------------------------------------- */
.posts-grid .card-image {
  flex: 0 0 200px;
}

.posts-grid .card-body {
  height: auto;
  flex: 1 1 auto;
}

@media (max-width: 639px) {
  .posts-grid .card-image {
    flex-basis: 180px;
  }
}

/* --------------------------------------------------------------------------
   Headings

   The generated theme-customization stylesheet sets a flat `h1 { 3.25rem }`
   for every page, which overflows the viewport on long titles at 320px.
   Keep headings fluid without touching framework output.
   -------------------------------------------------------------------------- */
.page-header h1,
.page-title {
  font-size: clamp(1.65rem, 3.2vw + 1rem, 2.75rem);
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

.page-header .page-title {
  text-wrap: balance;
}

.post-content h1,
.prose h1 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.post-content h2,
.prose h2 {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Footer city

   At 320px "92100 Boulogne-Billancourt" is wider than its grid cell and the
   inherited nowrap makes it spill into the phone column.
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .alto-footer-city {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Contact page

   The contact page carries its editorial H1 inside the intro column, above
   the lead question. Keep a tight rhythm between the two headings.
   -------------------------------------------------------------------------- */
.site-main:has(.alto-contact-original) .alto-contact-original-intro .page-title {
  margin: 0 0 0.75rem;
}

/* --------------------------------------------------------------------------
   Restored richness: icons, checklists, team grid, home hero, footer extras
   -------------------------------------------------------------------------- */

/* The Tailwind reset removes list markers; editorial pages rely on them to
   keep the original information readable. */
.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--color-primary);
}

/* Two-column checklist used for the long enumerations of the service pages. */
.checklist {
  display: grid;
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checklist > li {
  position: relative;
  margin: 0;
  padding-left: 1.75rem;
}

.checklist > li::before {
  content: "\f00c";
  position: absolute;
  top: 0.15em;
  left: 0;
  /* Use the icon subset shipped with this theme, not the absent full FA font. */
  font-family: "Alto Icons Solid";
  font-weight: 900;
  font-size: 0.8em;
  color: var(--color-primary);
}

/* A checklist placed inside prose must drop the default disc bullets: it
   carries its own check marks. */
.prose ul.checklist,
.prose ol.checklist {
  list-style: none;
  padding-left: 0;
}

/* A checklist placed inside a card always stays on one column. */
.checklist--single {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.card .checklist {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
}

/* Illustration cards: the original Wix artwork must stay uncropped. */
.card-image--contain {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 1.25rem 1.25rem 0;
  background-color: var(--color-bg-secondary);
}

.card-image--contain img,
.card:hover .card-image--contain img {
  object-fit: contain;
  transform: none;
}

/* Two-column card grids (transaction know-how). */
@media (min-width: 768px) {
  .cards-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Legal page: company details and professional card side by side. */
.legal-grid {
  display: grid;
  gap: 0.5rem 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A call to action placed right under a cards grid must never touch the card
   borders above it (the `> :first-child` prose reset used to zero its margin). */
.prose > .prose-action-links {
  margin-top: 2rem;
}

.cards-grid + .prose,
.cards-grid + .section-action {
  margin-top: 2.5rem;
}

.section-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Icon cards (home services and advantages) keep their square pictogram. */
.card-media {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 0;
}

.card-media img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.card--icon .card-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card--icon .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.card--icon .card-body > :last-child {
  margin-bottom: 0;
}

/* Denser grid for the 13 team portraits. */
.cards-grid--dense {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-image--portrait {
  height: 300px;
}

@media (max-width: 639px) {
  .cards-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-image--portrait {
    height: 240px;
  }
}

@media (max-width: 420px) {
  .cards-grid--dense {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Home hero: unobstructed carousel photography, with foreground content. */
.hero--home {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 48vw, 600px);
  overflow: hidden;
  background-color: #1b1b2f;
  text-align: center;
}

.hero--home .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--home > .container {
  width: 100%;
}

/* Foreground-only contrast: keep every carousel photograph unobstructed. */
.hero--home .hero-title,
.hero--home .hero-description {
  color: #fff;
  text-shadow: 0 2px 5px rgba(13, 22, 40, 0.88),
               0 0 18px rgba(13, 22, 40, 0.68);
}

.hero--home .hero-description {
  opacity: 1;
  font-weight: 600;
}

/* The secondary CTA contrasts with photos without any blue or hero overlay. */
.hero--home .btn-outline {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--color-primary-dark, #85184f);
  color: var(--color-primary-dark, #85184f);
  box-shadow: 0 3px 12px rgba(13, 22, 40, 0.18);
}

.hero--home .btn-outline:hover,
.hero--home .btn-outline:focus-visible {
  background: #fff;
  border-color: var(--color-primary-dark, #85184f);
  color: var(--color-primary-dark, #85184f);
}

/* Quick links displayed in page heroes (in-page anchors and cross links). */
.hero-actions .btn-ghost {
  color: var(--color-primary-dark);
}

/* On smaller screens the brand stays centered, preserving the mobile footer. */
.alto-footer-brand > img {
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: align the footer ALTO logo with the navbar logo on the same
   .container gutter. The partner logos keep their existing layout. */
@media (min-width: 1024px) {
  .alto-footer-brand > img {
    margin-left: 0;
    margin-right: 0;
  }

  /* The partner pair is centered on the ALTO logo's own responsive width,
     not the wider first column of the footer grid. */
  .alto-footer-partners {
    width: min(280px, 18vw);
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.alto-footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.alto-footer-partners > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.alto-footer-partners > a:focus-visible {
  outline: 2px solid var(--color-primary, #9f1f63);
  outline-offset: 3px;
}

.alto-footer-brand .alto-footer-partners img {
  display: block;
  width: auto;
  height: 2.5rem;
  max-width: 7.5rem;
  margin: 0;
  object-fit: contain;
}

.alto-footer-brand .alto-footer-social img {
  display: none;
}

.alto-footer-social {
  display: none;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.alto-footer-social li {
  margin: 0;
}

.alto-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
}

.alto-footer-social a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Vertical social rail pinned on the right edge. */
.alto-social-rail {
  position: fixed;
  top: 42%;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alto-social-rail li {
  margin: 0;
}

.alto-social-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem 0 0 0.5rem;
  background: var(--color-primary);
  color: #fff;
  transition: background-color 0.2s ease;
}

.alto-social-rail a:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

@media (max-width: 1023px) {
  .alto-social-rail {
    display: none;
  }

  .alto-footer-social {
    display: flex;
  }
}


/* Read-only compatibility landing pages for noindex Wix tag URLs. */
.alto-tag-archive {
  min-height: 55vh;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.alto-tag-archive .container {
  max-width: 970px;
}
.alto-tag-archive__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--color-primary, #9f1f63);
  font-weight: 650;
}
.alto-tag-archive .page-title {
  margin: 0 0 1rem;
}
.alto-tag-archive__intro {
  color: var(--color-text-muted, #667388);
}
.alto-tag-archive__list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2.5rem 0;
  list-style: none;
}
.alto-tag-archive__item {
  border: 1px solid var(--color-border, #e5dce3);
  border-left: 3px solid var(--color-primary, #9f1f63);
  border-radius: 5px;
  background: var(--color-surface, #fff);
}
.alto-tag-archive__item a {
  display: block;
  padding: 1.1rem 1.4rem;
  font-weight: 650;
  line-height: 1.5;
}
.alto-tag-archive__item a:hover {
  color: var(--color-primary, #9f1f63);
  background: var(--color-bg-secondary, #faf8f5);
}

/* Homepage values — static compact ribbon, inspired by the client's approved reference.
   Six / three / two columns, with no links, click targets, hover transitions or JS. */
.page-richtext > .section.alto-values-section {
  background: #faf8f9;
  padding: 64px 0 84px;
}

.page-richtext .alto-values-title {
  margin: 0 0 42px;
  color: var(--color-primary, #9f1f63);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 750;
  line-height: 1.4;
}

.page-richtext .alto-values-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 22px 17px;
  list-style: none;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(110deg, #80204f 0%, #9b1b60 100%);
  color: #fff;
  box-shadow: 0 20px 34px rgba(72, 22, 46, 0.19);
}

.page-richtext .alto-values-band > .alto-values-item {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 8px 9px;
  border: 0;
  list-style: none;
  color: #fff;
  text-align: left;
  cursor: default;
}

.page-richtext .alto-values-band > .alto-values-item + .alto-values-item {
  border-left: 1px solid rgba(255, 255, 255, 0.23);
}

.page-richtext .alto-values-icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-richtext .alto-values-icon img {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}

.page-richtext .alto-values-label {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: normal;
}

@media (max-width: 1199px) {
  .page-richtext > .section.alto-values-section {
    padding: 54px 0 70px;
  }

  .page-richtext .alto-values-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px 17px;
  }

  .page-richtext .alto-values-band > .alto-values-item {
    min-height: 82px;
  }

  .page-richtext .alto-values-band > .alto-values-item:nth-child(3n + 1) {
    border-left: 0;
  }

  .page-richtext .alto-values-band > .alto-values-item:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, 0.23);
  }
}

@media (max-width: 639px) {
  .page-richtext > .section.alto-values-section {
    padding: 42px 0 56px;
  }

  .page-richtext .alto-values-title {
    margin-bottom: 24px;
    font-size: 1.02rem;
    letter-spacing: 0.11em;
  }

  .page-richtext .alto-values-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 11px 12px;
    border-radius: 16px;
    box-shadow: 0 13px 26px rgba(72, 22, 46, 0.17);
  }

  .page-richtext .alto-values-band > .alto-values-item {
    min-height: 99px;
    flex-direction: column;
    gap: 9px;
    padding: 14px 7px;
    text-align: center;
  }

  .page-richtext .alto-values-band > .alto-values-item:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .page-richtext .alto-values-band > .alto-values-item:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.23);
  }

  .page-richtext .alto-values-band > .alto-values-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.23);
  }

  .page-richtext .alto-values-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .page-richtext .alto-values-icon img {
    width: 21px;
    height: 21px;
  }

  .page-richtext .alto-values-label {
    font-size: 0.83rem;
  }
}


/* Native Posts card presentation on the editorial homepage.
   Reuses .posts-grid and all card classes from the FlatCMS blog; only the
   two-card responsive grid and spacing are specific to this page. */
.posts-grid.alto-latest-posts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.alto-latest-posts-section .posts-grid + .section-action {
  margin-top: 2.5rem;
}
@media (max-width: 720px) {
  .posts-grid.alto-latest-posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer starts immediately below the native promotional banner. */
.site-footer.alto-footer {
  padding-top: 0;
}

/* ALTO cabinet: full-bleed image flush below the navbar, without
   changing the editorial title, team cards or lower page sections. */
.page-richtext > .hero.alto-cabinet-hero {
  padding: 0;
}

.alto-cabinet-hero > .alto-cabinet-hero__media {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(260px, 43vw, 600px);
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.alto-cabinet-hero > .container {
  padding-top: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 5rem);
}

@media (max-width: 639px) {
  .alto-cabinet-hero > .alto-cabinet-hero__media {
    height: clamp(240px, 67vw, 300px);
  }
}

/* Cabinet team — full-width symmetric rows, image-only portrait cards.
   The lower information panel slides up on hover/keyboard focus.
   On touch devices it stays visible so names and roles remain discoverable. */
.alto-cabinet-intro {
  margin-top: 1.5rem;
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.alto-cabinet-team {
  display: grid;
  gap: 1.5rem;
}

/* Six tracks let every portrait occupy two tracks. Two-person rows use
   the middle four tracks, keeping exactly the same widths and gaps. */
.page-richtext .alto-cabinet-team-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-richtext .alto-cabinet-team-row > .alto-cabinet-person {
  grid-column: span 2;
}

.page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:first-child {
  grid-column: 2 / span 2;
}

.page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:last-child {
  grid-column: 4 / span 2;
}

.alto-cabinet-team-row > .alto-cabinet-person {
  position: relative;
  display: block;
  min-width: 0;
  height: clamp(280px, 30vw, 400px);
  padding: 0;
  border: 2px solid transparent;
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-bg-secondary, #faf8f5);
}

.alto-cabinet-person > .card-image--portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}

/* Preserve the top of each Wix portrait; crop overflow at the bottom
   instead of shifting images upward and cutting off hairstyles. */
.alto-cabinet-person > .card-image--portrait > img {
  display: block;
  width: 100%;
  height: 100%;
  margin-top: 0;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.alto-cabinet-team-row > .alto-cabinet-person:is(:hover, :focus-visible) {
  border-color: var(--color-primary, #9f1f63);
}

.alto-cabinet-person > .card-body {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, .74) 36%,
    rgba(15, 23, 42, .94) 100%
  );
  color: #fff;
  opacity: 0;
  transform: translateY(101%);
  transition: transform 320ms ease, opacity 320ms ease;
  pointer-events: none;
}

.alto-cabinet-person > .card-body .card-title {
  margin: 0 0 .375rem;
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.25;
}

.alto-cabinet-person > .card-body .card-text {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(.82rem, 1vw, .9375rem);
  line-height: 1.45;
}

.alto-cabinet-person:is(:hover, :focus-visible, :focus-within) > .card-body {
  opacity: 1;
  transform: translateY(0);
}

.alto-cabinet-person:focus-visible {
  outline: 3px solid var(--color-primary, #9f1f63);
  outline-offset: 3px;
}

@media (max-width: 767px) and (min-width: 640px) {
  .page-richtext .alto-cabinet-team-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-richtext .alto-cabinet-team-row > .alto-cabinet-person,
  .page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:first-child,
  .page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:last-child {
    grid-column: auto;
  }

  .page-richtext .alto-cabinet-team-row--three > :last-child {
    grid-column: 1 / -1;
    width: calc(50% - .75rem);
    justify-self: center;
  }
}

@media (max-width: 639px) {
  .page-richtext .alto-cabinet-team-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-richtext .alto-cabinet-team-row > .alto-cabinet-person,
  .page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:first-child,
  .page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:last-child {
    grid-column: auto;
    height: clamp(280px, 88vw, 380px);
  }
}

/* Touchscreens do not have hover. Keep the bottom caption visible. */
@media (hover: none), (pointer: coarse) {
  .alto-cabinet-person > .card-body {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alto-cabinet-person > .card-body,
  .alto-cabinet-person > .card-image--portrait > img {
    transition: none;
  }
}

/* Gestion locative — modernized page body; shared ALTO hero and CTA preserved. */
.page-richtext > .section.alto-gestion-intro,
.page-richtext > .section.alto-gestion-optimize,
.page-richtext > .section.alto-gestion-services,
.page-richtext > .section.alto-gestion-timeline,
.page-richtext > .section.alto-gestion-conclusion {
  background: #f3f3f3;
  color: var(--color-text-primary);
}

.page-richtext > .section.alto-gestion-intro { padding: 3rem 0 2.5rem; }
.page-richtext > .section.alto-gestion-optimize { padding: 2.25rem 0 3rem; }
.page-richtext > .section.alto-gestion-services { padding: 2.5rem 0; }
.page-richtext > .section.alto-gestion-timeline { padding: 2.25rem 0 3rem; }
.page-richtext > .section.alto-gestion-conclusion { padding: 2.25rem 0 4rem; }

.alto-gestion-intro > .container,
.alto-gestion-optimize > .container,
.alto-gestion-services > .container,
.alto-gestion-timeline > .container,
.alto-gestion-conclusion > .container {
  width: 100%;
  max-width: 1100px;
}

.alto-gestion-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .88fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.alto-gestion-intro__copy {
  min-width: 0;
}

.alto-gestion-intro__copy p {
  margin: 0 0 1rem;
  line-height: 1.6;
  text-align: justify;
}

.alto-gestion-intro__visual {
  min-width: 0;
  margin: 0;
}

.alto-gestion-intro__image {
  display: block;
  width: 100%;
  height: clamp(210px, 20vw, 275px);
  border-radius: 9px;
  object-fit: cover;
  object-position: center;
}

.alto-gestion-optimize .prose {
  max-width: none;
}

.alto-gestion-optimize .prose h2,
.alto-gestion-section-heading h2,
.alto-gestion-conclusion .prose h2 {
  margin: 0 0 1.75rem;
  color: var(--color-primary, #9f1f63);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.alto-gestion-optimize .prose h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}

.alto-gestion-optimize .prose p,
.alto-gestion-conclusion .prose p {
  line-height: 1.6;
}

.alto-gestion-section-heading {
  margin: 0 0 1.75rem;
}

.alto-gestion-service {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 240px;
  padding: 1.35rem 0;
}

.alto-gestion-service__copy {
  min-width: 0;
  text-align: left;
}

.alto-gestion-service__copy .card-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.alto-gestion-service__copy .checklist {
  margin: 0;
  padding-left: 1.35rem;
}

.alto-gestion-service__copy .checklist li {
  margin-bottom: .45rem;
  line-height: 1.45;
}

.alto-gestion-service__art {
  display: flex;
  min-width: 0;
  min-height: 220px;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.alto-gestion-service__image {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 9px;
  object-fit: contain;
  object-position: center;
}

.alto-gestion-timeline__visual {
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.alto-gestion-timeline__scroll {
  width: 100%;
}

.alto-gestion-timeline__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.alto-gestion-conclusion .prose-action-links {
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .alto-gestion-intro__grid,
  .alto-gestion-service {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .alto-gestion-intro__copy p {
    text-align: left;
  }

  .alto-gestion-intro__image {
    height: clamp(230px, 55vw, 360px);
  }

  .alto-gestion-service {
    min-height: 0;
    padding: 1.25rem 0 2rem;
  }

  .alto-gestion-service__art {
    min-height: 170px;
  }

  .alto-gestion-service__image {
    width: 100%;
    height: auto;
  }

  .alto-gestion-service--visual-left .alto-gestion-service__copy {
    order: 0;
  }

  .alto-gestion-service--visual-left .alto-gestion-service__art {
    order: 1;
  }

  .alto-gestion-timeline__scroll {
    width: 750px;
  }

  .page-richtext .alto-gestion-timeline__image {
    width: 100%;
    max-width: none;
  }
}

/* Transaction / Location — scoped modern editorial layout, shared hero untouched. */
.page-richtext > .section.alto-transaction-intro,
.page-richtext > .section.alto-transaction-service,
.page-richtext > .section.alto-transaction-expertise,
.page-richtext > .section.alto-transaction-conclusion {
  background: #f3f3f3;
  color: var(--color-text-primary);
}

.page-richtext > .section.alto-transaction-intro { padding: 3rem 0 2.25rem; }
.page-richtext > .section.alto-transaction-service { padding: 2.25rem 0; }
.page-richtext > .section.alto-transaction-expertise { padding: 2.5rem 0 3rem; }
.page-richtext > .section.alto-transaction-conclusion { padding: 2.5rem 0 4rem; }

.alto-transaction-intro > .container,
.alto-transaction-service > .container,
.alto-transaction-expertise > .container,
.alto-transaction-conclusion > .container {
  width: 100%;
  max-width: 1100px;
}

.alto-transaction-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.page-richtext .alto-transaction-intro__copy {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.alto-transaction-intro__copy p {
  margin: 0 0 1rem;
  line-height: 1.65;
  text-align: justify;
}

.alto-transaction-intro__visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.alto-transaction-intro__visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(240px, 24vw, 330px);
  border-radius: 9px;
  object-fit: cover;
  object-position: center;
}

.alto-transaction-section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.alto-transaction-section-heading img {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin: 0;
  object-fit: contain;
}

.alto-transaction-section-heading h2,
.alto-transaction-conclusion .prose h2 {
  margin: 0;
  color: var(--color-primary, #9f1f63);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Service descriptions keep the original Wix vertical editorial flow. */
.alto-transaction-service__content {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(0rem, 7.25vw, 4.25rem);
}

.alto-transaction-service__item {
  max-width: 100%;
  margin: 0 0 2.5rem;
}

.alto-transaction-service__item:last-child {
  margin-bottom: 0;
}

.alto-transaction-service__item h3 {
  margin: 0 0 .8rem;
  color: var(--color-primary, #9f1f63);
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.4;
}

.alto-transaction-service__item p {
  margin: 0 0 .75rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.alto-transaction-service__item p:last-child { margin-bottom: 0; }

.alto-transaction-service__item a {
  color: var(--color-primary, #9f1f63);
  text-underline-offset: 3px;
}

/* Four illustrated rows retain the Wix alternating image/text order. */
.alto-transaction-expertise__flow {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.alto-transaction-expertise__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  min-height: 200px;
}

.alto-transaction-expertise__media {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.alto-transaction-expertise__media img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 9px;
  object-fit: contain;
}

.alto-transaction-expertise__copy {
  min-width: 0;
}

.alto-transaction-expertise__copy h3 {
  margin: 0 0 .8rem;
  color: var(--color-text-primary);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.4;
}

.alto-transaction-expertise__list {
  margin: 0;
  padding-left: 1.3rem;
  list-style: disc;
  color: var(--color-text-secondary);
}

.alto-transaction-expertise__list li {
  margin-bottom: .3rem;
  padding: 0;
  list-style: disc;
  line-height: 1.55;
}

.alto-transaction-expertise__list li:last-child { margin-bottom: 0; }

.alto-transaction-conclusion .prose {
  max-width: none;
}

.alto-transaction-conclusion .prose h2 {
  margin-bottom: 1.5rem;
}

.alto-transaction-conclusion .prose p {
  line-height: 1.65;
}

@media (max-width: 767px) {
  .alto-transaction-intro__grid,
  .alto-transaction-expertise__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .alto-transaction-intro__copy p {
    text-align: left;
  }

  .alto-transaction-intro__visual img {
    height: clamp(230px, 54vw, 340px);
  }

  .alto-transaction-service__content {
    padding-left: 0;
  }

  .alto-transaction-service__item {
    margin-bottom: 2rem;
  }

  .alto-transaction-expertise__flow {
    gap: 2rem;
  }

  .alto-transaction-expertise__row {
    min-height: 0;
  }

  .alto-transaction-expertise__media img {
    width: 100%;
    height: auto;
  }
}

/* ALTO SYNDIC COPRO — editorial modernization of the page body only.
   Shared title banner, CTAs, navigation and other pages stay unchanged. */
.page-richtext > .section.alto-syndic-intro,
.page-richtext > .section.alto-syndic-missions,
.page-richtext > .section.alto-syndic-online,
.page-richtext > .section.alto-syndic-compare,
.page-richtext > .section.alto-syndic-change {
  background: #f3f3f3;
  color: var(--color-text-primary);
}

.page-richtext > .section.alto-syndic-intro { padding: 3rem 0 2.5rem; }
.page-richtext > .section.alto-syndic-missions { padding: 2.25rem 0 2.75rem; }
.page-richtext > .section.alto-syndic-online { padding: 2.5rem 0 2.75rem; }
.page-richtext > .section.alto-syndic-compare { padding: 2.5rem 0 2.5rem; }
.page-richtext > .section.alto-syndic-change { padding: 2.5rem 0 4rem; }

.alto-syndic-intro > .container,
.alto-syndic-missions > .container,
.alto-syndic-online > .container,
.alto-syndic-compare > .container,
.alto-syndic-change > .container {
  width: 100%;
  max-width: 1100px;
}

.alto-syndic-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.page-richtext .alto-syndic-intro__copy,
.page-richtext .alto-syndic-change__copy {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.alto-syndic-intro__copy p {
  margin: 0 0 1rem;
  line-height: 1.65;
  text-align: justify;
}

.alto-syndic-intro__visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.alto-syndic-intro__visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(230px, 22vw, 300px);
  margin: 0;
  border-radius: 9px;
  object-fit: cover;
  object-position: center;
}

.page-richtext > .section .alto-syndic-section-title {
  margin: 0 0 2rem;
  color: var(--color-primary, #9f1f63);
  font-size: clamp(1.25rem, 1.85vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Twelve original missions, six per column on desktop, no cards. */
.alto-syndic-missions__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: .85rem;
  margin: 0;
  padding: 0 0 0 1.4rem;
  list-style: disc;
}

.alto-syndic-missions__list > li {
  min-width: 0;
  padding: 0 .5rem 0 0;
  break-inside: avoid;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.alto-syndic-missions__list > li::marker,
.alto-syndic-online__features > li::marker {
  color: var(--color-primary, #9f1f63);
}

.alto-syndic-online__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.alto-syndic-online__copy p {
  margin: 0 0 1.1rem;
  line-height: 1.65;
}

.alto-syndic-online__copy p:last-child { margin-bottom: 0; }

.alto-syndic-online__features {
  margin: 0;
  padding: 0 0 0 1.4rem;
  list-style: disc;
}

.alto-syndic-online__features > li {
  margin-bottom: .65rem;
  padding: 0;
  line-height: 1.55;
}

.alto-syndic-online__features > li:last-child { margin-bottom: 0; }

.alto-syndic-online__visual {
  width: 100%;
  margin: 2.5rem auto 0;
  text-align: center;
}

.alto-syndic-online__visual img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain;
}

.alto-syndic-compare__heading {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
}

.alto-syndic-compare__heading img {
  display: block;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  margin: -14px -12px -14px -14px;
  border-radius: 0;
  object-fit: contain;
}

.page-richtext > .section .alto-syndic-compare__heading .alto-syndic-section-title {
  margin: 0;
}

.alto-syndic-compare__visual {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.alto-syndic-compare__visual img {
  display: block;
  width: 100%;
  max-width: 1060px;
  height: auto;
  margin: 0 auto;
  border-radius: 9px;
  object-fit: contain;
}

.page-richtext > .section .alto-syndic-change__copy .alto-syndic-section-title { margin: 0 0 1.75rem; }

.alto-syndic-change__copy p {
  margin: 0 0 1.15rem;
  line-height: 1.65;
  text-align: justify;
}

.alto-syndic-change__copy .prose-action-links { margin-top: 1.75rem; }

@media (max-width: 767px) {
  .alto-syndic-intro__grid,
  .alto-syndic-online__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .alto-syndic-intro__copy p,
  .alto-syndic-change__copy p {
    text-align: left;
  }

  .alto-syndic-intro__visual img {
    height: clamp(230px, 55vw, 350px);
  }

  .alto-syndic-missions__list {
    display: block;
    padding-left: 1.25rem;
  }

  .alto-syndic-missions__list > li { margin-bottom: .75rem; }

  .alto-syndic-online__visual { margin-top: 1.75rem; }

  .alto-syndic-compare__heading { gap: .3rem; }

  .alto-syndic-compare__heading img {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    margin: -10px -10px -10px -10px;
  }
}


/* --------------------------------------------------------------------------
   Editorial headings — shared H2/H4 colors across all published pages/posts.
   The base stylesheet makes .prose h2 dark, and h4 inherits body grey.
   Restore the Alto burgundy using the theme token, without touching card
   titles, navigation, consent dialogs, hero H1 or footer headings.
   -------------------------------------------------------------------------- */
.page-richtext h2:not(.card-title):not(.post-card-title),
.page-richtext h4:not(.card-title),
.post-page .alto-post-content h2,
.post-page .alto-post-content h4 {
  color: var(--color-primary, #9F1F63);
}

/* ALTO RECRUITMENT — full-bleed photograph and reversed Contact layout.
   CSS-only positioning of the existing native [contact-form] output. */
.site-main:has(.alto-recruit-hero) > .page-content {
  padding: 0;
}

.site-main:has(.alto-recruit-hero) > .page-content > .container:not(:has(.section)) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-main:has(.alto-recruit-hero) .page-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-richtext:has(> .alto-recruit-hero) {
  display: grid;
  width: 100%;
  max-width: var(--alto-frame-width);
  margin: 0 auto;
  padding: 0 var(--alto-visible-right-padding) clamp(3rem, 5vw, 5rem)
    var(--alto-visible-left-padding);
  column-gap: 32px;
  row-gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.page-richtext > .alto-recruit-hero {
  grid-column: 1 / -1;
  width: 100vw;
  max-width: none;
  /* Compensate the asymmetric logo/CTA optical gutters when centering
     this full-viewport image. No 25px protrusion on large screens. */
  margin-left: calc(50% - 50vw - (var(--alto-logo-visible-inset) - var(--alto-client-edge-inset)) / 2);
}

.page-richtext > .alto-recruit-hero > .alto-recruit-hero__media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.alto-recruit-hero__media img {
  display: block;
  width: 100%;
  max-width: none;
  /* Match Contact and Choisir Alto Sequanais: 600px at large widths. */
  height: clamp(260px, 43vw, 600px);
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 50%;
}

.alto-recruit-heading {
  grid-column: 1 / -1;
  padding: clamp(2.25rem, 4vw, 3.5rem) 0 clamp(1.65rem, 3vw, 2.75rem);
  text-align: left;
}

.alto-recruit-heading .page-title {
  margin: 0;
  color: var(--color-text-primary, #211c20);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 650;
  line-height: 1.15;
}

.page-richtext > .alto-recruit-aside {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.alto-recruit-aside__intro h2 {
  margin: 0 0 1.25rem;
  color: var(--color-primary, #9f1f63);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.35;
  font-weight: 600;
}

.alto-recruit-aside__intro p {
  margin: 0 0 1rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.alto-recruit-aside__intro p:last-child { margin-bottom: 0; }

.alto-recruit-aside__legal {
  border-top: 1px solid var(--color-border, #e7dee3);
  padding-top: 1.4rem;
}

.alto-recruit-aside__legal p {
  margin: 0 0 1rem;
  color: var(--color-text-secondary);
  font-size: .875rem;
  line-height: 1.65;
}

.alto-recruit-aside__legal p:last-child { margin-bottom: 0; }
.alto-recruit-aside__legal a {
  color: var(--color-primary, #9f1f63);
  text-underline-offset: 3px;
}

.page-richtext:has(> .alto-recruit-hero) > .flatcms-contact-native {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-self: start;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-richtext:has(> .alto-recruit-hero) > .flatcms-contact-native .flatcms-contact-native-form {
  margin: 0;
  width: 100%;
  min-width: 0;
}

/* The native file input has a large intrinsic width before its
   drag-and-drop enhancement initializes; prevent intermittent overflow. */
.page-richtext:has(> .alto-recruit-hero) .flatcms-contact-attachments:not(.is-enhanced) .flatcms-contact-attachments-input {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Keep the enhanced file control visually hidden behind its accessible
   native dropzone. Also stop the input's intrinsic size expanding the page. */
.page-richtext:has(> .alto-recruit-hero) .flatcms-contact-attachments.is-enhanced .flatcms-contact-attachments-input {
  position: absolute !important;
  box-sizing: border-box !important;
  width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .page-richtext:has(> .alto-recruit-hero) {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    column-gap: 0;
  }

  .page-richtext > .alto-recruit-aside {
    display: contents;
  }

  .page-richtext > .alto-recruit-hero,
  .page-richtext > .alto-recruit-heading,
  .page-richtext > .alto-recruit-aside__intro,
  .page-richtext > .flatcms-contact-native,
  .page-richtext > .alto-recruit-aside__legal {
    grid-column: 1;
  }

  .page-richtext:has(> .alto-recruit-hero) > .alto-recruit-hero {
    grid-row: 1;
  }
  .page-richtext:has(> .alto-recruit-hero) > .alto-recruit-heading {
    grid-row: 2;
  }
  .page-richtext:has(> .alto-recruit-hero) .alto-recruit-aside__intro {
    grid-row: 3;
    margin-bottom: 2rem;
  }
  .page-richtext:has(> .alto-recruit-hero) > .flatcms-contact-native {
    grid-row: 4;
  }
  .page-richtext:has(> .alto-recruit-hero) .alto-recruit-aside__legal {
    grid-row: 5;
    margin-top: 2rem;
  }

}

@media (max-width: 359px) {
  .page-richtext:has(> .alto-recruit-hero) {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   Mobile social icons — equal circular controls and zero inherited list gap.
   The global footer li sibling margin caused Facebook to sit 8px higher.
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .alto-footer-grid .alto-footer-social {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .alto-footer .alto-footer-grid .alto-footer-social > li,
  .alto-footer .alto-footer-grid .alto-footer-social > li ~ li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    margin: 0;
    padding: 0;
    line-height: 1;
  }

  .alto-footer-grid .alto-footer-social > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    line-height: 1;
  }

  .alto-footer-grid .alto-footer-social > li > a > i {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
}

/* --------------------------------------------------------------------------
   Mobile navigation — lateral offcanvas following the callback panel language.
   Navigation, labels and existing links remain native FlatCMS.
   -------------------------------------------------------------------------- */
.alto-mobile-nav-head {
  display: none;
}

@media (max-width: 1024px) {
  body.alto-mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .alto-header .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(20, 27, 42, .52);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity .52s ease, visibility 0s linear .52s;
  }

  .alto-header .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .52s ease;
  }

  .alto-header #mainNav.alto-nav {
    position: fixed;
    inset: 0 0 0 auto;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: min(420px, 90vw);
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 2rem;
    border: 0;
    border-left: 1px solid rgba(159,31,99,.08);
    border-radius: 0;
    background: #fcfafb;
    box-shadow: -22px 0 70px rgba(17,24,39,.18);
    z-index: 9999;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(103%,0,0) !important;
    transition: transform .64s cubic-bezier(.22,.78,.22,1), visibility 0s linear .64s;
    will-change: transform;
  }

  .alto-header #mainNav.alto-nav.active {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0) !important;
    transition: transform .64s cubic-bezier(.22,.78,.22,1);
  }

  .alto-header .menu-toggle.active {
    pointer-events: none;
    opacity: 0;
  }

  .alto-header .alto-mobile-nav-head {
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
    min-height: 184px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    padding: 70px 30px 28px;
    background: linear-gradient(145deg,#751443 0%,#9f1f63 62%,#a72a70 100%);
    color: #fff;
  }

  .alto-header .alto-mobile-nav-head::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -126px;
    right: -112px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    pointer-events: none;
  }

  .alto-mobile-nav-head__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
  }

  .alto-mobile-nav-head__eyebrow {
    color: rgba(255,255,255,.83);
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .16em;
  }

  .alto-mobile-nav-head__title {
    color: #fff;
    font-family: Georgia,'Times New Roman',serif;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
  }

  .alto-header .alto-mobile-nav-close {
    position: absolute;
    top: 21px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-family: Arial,sans-serif;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
  }

  .alto-header .alto-mobile-nav-close:hover,
  .alto-header .alto-mobile-nav-close:focus-visible {
    background: rgba(255,255,255,.23);
  }

  .alto-header .alto-mobile-nav-close:focus-visible,
  .alto-header #mainNav.alto-nav a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  .alto-header #mainNav.alto-nav > .main-nav-list {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 20px 28px 10px;
    margin: 0;
    gap: 0;
  }

  .alto-header #mainNav.alto-nav > .main-nav-list > li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #eae3e7;
  }

  .alto-header #mainNav.alto-nav > .main-nav-list > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 61px;
    padding: 14px 8px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: #2f2930;
    font-size: .91rem;
    font-weight: 650;
    letter-spacing: .075em;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
  }

  .alto-header #mainNav.alto-nav > .main-nav-list > li > a:hover,
  .alto-header #mainNav.alto-nav > .main-nav-list > li > a[aria-current="page"] {
    color: var(--color-primary,#9f1f63);
    padding-left: 16px;
  }

  .alto-header #mainNav.alto-nav > .alto-client-link-mobile {
    align-self: stretch;
    display: flex;
    justify-content: center;
    margin: 22px 28px 0;
    width: auto;
    min-height: var(--fc-btn-height, 42px);
    border-radius: var(--fc-btn-radius, 0.5rem);
    background: var(--color-primary,#9f1f63);
    color: #fff;
    font-weight: 650;
    letter-spacing: .07em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alto-header #mainNav.alto-nav,
  .alto-header #mainNav.alto-nav.active,
  .alto-header .nav-overlay,
  .alto-header .nav-overlay.active {
    transition-duration: 0.01ms !important;
  }
}

/* Estimation: semantic H3, retaining the previously validated H4 appearance. */
.page-richtext .alto-estimation-lead {
  margin: 0;
  color: var(--color-primary, #9f1f63);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

.alto-estimation-guidance > .container > .prose {
  max-width: 900px;
  margin-inline: auto;
}

.alto-estimation-guidance .prose p {
  line-height: 1.7;
}


/* Lighthouse contrast remediation — WCAG AA text on #faf8f5 / white.
   Scoped to the actual low-contrast elements; no layout changes. */
.page-richtext .alto-review-carousel .alto-review-slide p,
.page-richtext .alto-review-carousel .alto-review-slide p strong {
  color: #475569;
}

.page-richtext .posts-grid.alto-latest-posts-grid .card-meta {
  color: #475569;
}

.site-footer.alto-footer .alto-footer-bottom .alto-footer-copyright,
.site-footer.alto-footer .alto-footer-bottom .alto-footer-powered,
.site-footer.alto-footer .alto-footer-bottom .alto-footer-powered a {
  color: #475569;
}


/* The portrait-mobile callback CTA is icon-only. Use a local vector icon
   rather than a glyph excluded from the reduced Alto icon font. */
@media (max-width: 767px) and (orientation: portrait) {
  .site-promo-banner .site-promo-banner-cta[href="/contact"] {
    border-radius: 50%;
  }

  .site-promo-banner .site-promo-banner-cta[href="/contact"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    display: block;
    width: 19px;
    height: 19px;
    background-color: currentColor;
    -webkit-mask: url("../img/phone.svg") center / contain no-repeat;
    mask: url("../img/phone.svg") center / contain no-repeat;
  }
}

/* --------------------------------------------------------------------------
   ALTO GRID — shared frame for header, pages, articles, promo and footer.
   The frame is 1408px, with a single responsive gutter matrix. The promo
   card itself aligns with the usable inner width of that frame.
   Editorial photographic full-bleed figures intentionally remain full-bleed.
   -------------------------------------------------------------------------- */
:root {
  --alto-frame-width: 1408px;
  --alto-frame-gutter: 20px;
}

@media (min-width: 640px) {
  :root { --alto-frame-gutter: 32px; }
}

@media (min-width: 1024px) {
  :root { --alto-frame-gutter: 48px; }
}

.alto-header > .container,
.site-footer.alto-footer > .container,
.site-main > .page-header > .container,
.site-main > .page-content > .container:not(:has(.hero, .section)),
.site-main:has(.alto-contact-original) > .page-content > .container,
.post-page > .page-header > .container,
.post-page > .content-wrapper > .container,
.page-richtext .container {
  width: 100%;
  max-width: var(--alto-frame-width);
  padding-left: var(--alto-frame-gutter);
  padding-right: var(--alto-frame-gutter);
}

/* The older page-specific 1100px and 1200px limits must not re-narrow sections. */
.page-richtext > .section > .container,
.page-richtext > .section-alt > .container {
  width: 100%;
  max-width: var(--alto-frame-width);
  padding-left: var(--alto-frame-gutter);
  padding-right: var(--alto-frame-gutter);
}

.site-promo-banner .site-promo-banner-inner {
  width: calc(100% - 2 * var(--alto-frame-gutter));
  max-width: calc(var(--alto-frame-width) - 2 * var(--alto-frame-gutter));
}

/* Presentation — 3-column portrait rows use the full editorial width
   (visible ALTO logo to the client CTA) with exactly 24px between cards.
   Two-person rows stay compact and centred, with THE SAME card width as
   the three-person rows and also a 24px gap. No markup or photo changes.
   Equal card width = (editorial width - 48px) / 3. */
@media (min-width: 1280px) {
  .page-richtext .alto-cabinet-team-row,
  .page-richtext .alto-cabinet-team-row--three {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 24px;
  }

  /* 2 * ((W - 48px) / 3) + 24px = (2/3 * W) - 8px */
  .page-richtext .alto-cabinet-team-row--two {
    width: calc(66.6666667% - 8px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 24px;
  }

  .page-richtext .alto-cabinet-team-row > .alto-cabinet-person,
  .page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:first-child,
  .page-richtext .alto-cabinet-team-row--two > .alto-cabinet-person:last-child {
    grid-column: auto;
    width: 100%;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   ALTO VISIBLE ANCHORS — Pixel+++ reference, 19 Nov 2026
   LEFT: first *visible* pixel of the header brand, whose original 413px
         image has 41 fully transparent pixels before the artwork.
   RIGHT: right edge of "Accès client" in the header, or the mobile menu
          control when that CTA is hidden.
   No change to the header: downstream content follows its actual anchors.
   -------------------------------------------------------------------------- */
:root {
  /* Optical correction requested after large-screen review:
     leave another 24px beyond the actual alpha bounds of the logo.
     Keep the CTA's right edge completely unchanged. */
  --alto-optical-start-adjust: 24px;
  --alto-logo-visible-inset: calc(min(clamp(160px, 18vw, 280px), 22vw) * 0.0992736077 + var(--alto-optical-start-adjust));
  --alto-client-edge-inset: 0px;
  --alto-visible-left-padding: calc(var(--alto-frame-gutter) + var(--alto-logo-visible-inset));
  --alto-visible-right-padding: calc(var(--alto-frame-gutter) + var(--alto-client-edge-inset));
}

/* The desktop client CTA and hamburger coexist between 800 and 1024px:
   in that interval the CTA stops 52px before the right-hand menu control. */
@media (min-width: 800px) and (max-width: 1024px) {
  :root { --alto-client-edge-inset: 52px; }
}

/* Same *visual* content edges for all section canvases and article bodies.
   Do not constrain hero backgrounds or standalone full-bleed photography. */
.site-main > .page-header > .container,
.site-main > .page-content > .container:not(:has(.hero, .section)),
.site-main:has(.alto-contact-original) > .page-content > .container,
.post-page > .page-header > .container,
.post-page > .content-wrapper > .container,
.page-richtext .container,
.page-richtext > .section > .container,
.page-richtext > .section-alt > .container {
  padding-left: var(--alto-visible-left-padding);
  padding-right: var(--alto-visible-right-padding);
}

/* The promotional colored card starts at the logo artwork, not at its
   source image box; the card ends precisely at the client CTA. */
.site-promo-banner .site-promo-banner-inner {
  width: calc(100% - 2 * var(--alto-frame-gutter) - var(--alto-logo-visible-inset) - var(--alto-client-edge-inset));
  max-width: calc(var(--alto-frame-width) - 2 * var(--alto-frame-gutter) - var(--alto-logo-visible-inset) - var(--alto-client-edge-inset));
  position: relative;
  left: calc((var(--alto-logo-visible-inset) - var(--alto-client-edge-inset)) / 2);
}

/* Align the social section and footer baseline with the visible logo.
   Keep the logo artwork at its original position by offsetting only that
   image and its own partner row; portrait/mobile centering is untouched. */
.site-footer.alto-footer .alto-footer-grid,
.site-footer.alto-footer .alto-footer-bottom {
  padding-left: var(--alto-logo-visible-inset);
  padding-right: var(--alto-client-edge-inset);
}

@media (min-width: 1024px) {
  .site-footer.alto-footer .alto-footer-brand > img {
    margin-left: calc(-1 * (var(--alto-logo-visible-inset) - var(--alto-optical-start-adjust)));
  }
  .site-footer.alto-footer .alto-footer-partners {
    transform: translateX(calc(-1 * (var(--alto-logo-visible-inset) - var(--alto-optical-start-adjust))));
  }
}

/* Only the native Contact and Recruitment grids retain their 24px exit
   spacing. The generic page-content has no bottom padding: its extra strip
   would separate the last section from the burgundy callback banner. */
.site-main > .page-content:has(.page-richtext) {
  padding-bottom: 0;
}
.site-main .page-richtext:has(> .alto-contact-original),
.site-main .page-richtext:has(> .alto-recruit-hero) {
  padding-bottom: 24px;
}

/* Footer vertical rhythm: the grid has the same 30px on both edges.
   The footer itself must not add an empty 32px strip below the credits. */
.site-footer.alto-footer .alto-footer-grid {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* One shared, exceptionally subtle warm surface for both the testimonials
   and the upper footer; the original testimonial color was flat #faf8f9. */
:root {
  /* Horizontal = same x-position has the same tint on adjacent sections.
     A 145deg background restarted at the promo/footer junction and looked
     like the footer had lost its gradient. */
  --alto-testimonial-footer-surface: linear-gradient(90deg,
    #faf8f9 0%,
    #faf8f9 52%,
    #f5eff3 100%);
}
.site-footer.alto-footer {
  padding-bottom: 0;
  background: var(--alto-testimonial-footer-surface);
}
/* If the promo precedes the footer, keep the same surface without a second
   border at their join; preserve the footer border in the other three slots. */
.site-promo-banner-position-above_footer + .site-footer.alto-footer {
  border-top: 0;
}
/* Full-viewport burgundy bottom band. The original .container and its optical
   padding remain untouched: all three credits / cookie control keep their
   precise horizontal coordinates at desktop, tablet and phone widths. */
.site-footer.alto-footer .alto-footer-bottom {
  position: relative;
  isolation: isolate;
  border-top: 0;
  background: #831b51;
}
.site-footer.alto-footer .alto-footer-bottom::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #831b51;
  pointer-events: none;
}
.site-footer.alto-footer .alto-footer-bottom .alto-footer-copyright,
.site-footer.alto-footer .alto-footer-bottom .alto-footer-powered,
.site-footer.alto-footer .alto-footer-bottom .alto-footer-powered a {
  color: #fff;
}
.site-footer.alto-footer .alto-footer-bottom .alto-footer-powered a:hover,
.site-footer.alto-footer .alto-footer-bottom .alto-footer-powered a:focus-visible {
  color: #ffe0ee;
}
/* The native cookie-preferences button needs readable contrast on burgundy. */
.site-footer.alto-footer .alto-footer-bottom > .flatcms-consent-manage {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .70);
}
.site-footer.alto-footer .alto-footer-bottom > .flatcms-consent-manage:hover,
.site-footer.alto-footer .alto-footer-bottom > .flatcms-consent-manage:focus-visible {
  color: #831b51;
  background: #fff;
  border-color: #fff;
}

/* Dock the existing Settings consent control in ALTO's footer, not the viewport.
   Keep the native button and click handler; do not touch consent preferences
   or the first-visit consent banner. Scoped to this frontend only. */
.site-footer.alto-footer .alto-footer-bottom > .flatcms-consent-manage {
  position: static;
  inset: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: var(--fc-btn-height, 42px);
  min-height: var(--fc-btn-height, 42px);
  margin: 0;
  padding: 0 12px;
  border-radius: var(--fc-btn-radius, 0.5rem);
  white-space: nowrap;
  box-shadow: none;
}
.site-footer.alto-footer .alto-footer-bottom > .flatcms-consent-manage[hidden] {
  display: none !important;
}
@media (max-width: 639px) {
  /* Keep the cookie control on the right, beside both footer credit lines. */
  .site-footer.alto-footer .alto-footer-bottom:has(> .flatcms-consent-manage:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "copyright cookies"
      "powered cookies";
    align-items: center;
    column-gap: 12px;
    row-gap: 7px;
  }
  .site-footer.alto-footer .alto-footer-bottom > .alto-footer-copyright {
    grid-area: copyright;
    min-width: 0;
  }
  .site-footer.alto-footer .alto-footer-bottom > .alto-footer-powered {
    grid-area: powered;
    min-width: 0;
  }
  .site-footer.alto-footer .alto-footer-bottom > .flatcms-consent-manage {
    grid-area: cookies;
    justify-self: end;
    align-self: center;
  }
}

/* Asymmetric visual gutters must never offset deliberately edge-to-edge
   article photos. Keep their geometric center on the viewport itself. */
.post-page .content-wrapper .content.prose > img.post-featured-image,
.page-richtext > .section .prose > figure:has(> img[src*=".jpg"], > img[src*=".jpeg"], > img[src*=".webp"]) {
  margin-left: calc(50% - 50vw - (var(--alto-logo-visible-inset) - var(--alto-client-edge-inset)) / 2);
  margin-right: calc(50% - 50vw + (var(--alto-logo-visible-inset) - var(--alto-client-edge-inset)) / 2);
}

/* The Contact page has a similarly full-bleed original photograph.
   Re-center that figure despite the intentionally asymmetric text gutters. */
.page-richtext:has(> .alto-contact-original) > .alto-contact-original .alto-contact-original-media {
  margin-left: calc(50% - 50vw - (var(--alto-logo-visible-inset) - var(--alto-client-edge-inset)) / 2);
  margin-right: calc(50% - 50vw + (var(--alto-logo-visible-inset) - var(--alto-client-edge-inset)) / 2);
}


/* Navbar mobile: the prior 95%-opaque white let dark body copy bleed
   through the sticky header as the user scrolled. Keep it fully opaque. */
@media (max-width: 1024px) {
  .site-header.alto-header {
    background-color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


/* BLOG INDEX — match the already-approved optical frame (Alto visible logo
   through the right edge of the client CTA). The Posts component renders
   .posts-index, outside .page-richtext: earlier page styles do not reach it.
   Scope both native blog header and listing (incl. category + pagination).
   The centered blog title, card contents, URLs and full-bleed hero remain as-is.
   -------------------------------------------------------------------------- */
.site-main > .posts-index > .page-header > .container,
.site-main > .posts-index > .section > .container {
  width: 100%;
  max-width: var(--alto-frame-width);
  padding-left: var(--alto-visible-left-padding);
  padding-right: var(--alto-visible-right-padding);
}

/* Mobile Pixel+++ — symmetrical 20px gutters on every public page.
   Desktop uses optical alignment to the visible header logo, but the extra
   logo compensation must NOT be inherited by mobile: on 430px it produced
   a 53.35px left inset while the right side remained 20px. */
@media (max-width: 767px) {
  :root {
    --alto-frame-gutter: 20px;
    --alto-optical-start-adjust: 0px;
    --alto-logo-visible-inset: 0px;
    --alto-client-edge-inset: 0px;
    --alto-visible-left-padding: 20px;
    --alto-visible-right-padding: 20px;
  }
}


/* Promo callback — correct the only layout that did not vertically center:
   narrow landscape viewports inherited the native <=768px column stack.
   Keep the same row/center alignment as portrait, without changing desktop
   typography, height, visual gutters or the portrait phone icon. */
@media (max-width: 767px) and (orientation: landscape) {
  .site-promo-banner .site-promo-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
  }

  .site-promo-banner .site-promo-banner-copy {
    flex: 1 1 0%;
    min-width: 0;
  }

  .site-promo-banner .site-promo-banner-cta {
    align-self: center;
  }
}

/* BEGIN ALTO H1 CONTACT - SOURCE FLATCMS-TRAVAIL */
/* ALTO SEQUANAIS : harmonisation H1 sur le modèle de Contact.
   Source maître : FlatCMS-travail/client-sites/altosequanais.
   Accueil photographique et page Contact volontairement préservés. */

.page-richtext > .hero:not(.hero--home):not(.alto-cabinet-hero) {
  background-color: #fff;
  text-align: center;
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.page-richtext > .hero:not(.hero--home) .hero-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-richtext > .hero:not(.hero--home) .hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

/* Le cabinet conserve sa photographie plein cadre sous la navigation. */
.page-richtext > .hero.alto-cabinet-hero {
  background-color: #fff;
  text-align: center;
}

.page-richtext > .hero.alto-cabinet-hero > .container {
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

/* Typographie, graisse, couleur et taille : référence exacte de Contact. */
.page-richtext > .hero:not(.hero--home) .hero-title,
.page-richtext > .alto-recruit-heading .page-title,
.site-main > .posts-index > .page-header h1,
.site-main > .post-page > .page-header h1 {
  margin: 0;
  color: var(--color-secondary, #1a2b6d);
  font-family: var(--theme-heading-font-family, system-ui, sans-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-align: center;
}

/* Blog et articles : suppression du bandeau crème, contenu inchangé. */
.site-main > .posts-index > .page-header,
.site-main > .post-page > .page-header {
  background-color: #fff;
  border: 0;
  text-align: center;
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.site-main > .posts-index > .page-header h1 + .meta {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .page-richtext > .hero:not(.hero--home) .hero-title,
  .page-richtext > .alto-recruit-heading .page-title,
  .site-main > .posts-index > .page-header h1,
  .site-main > .post-page > .page-header h1 {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .page-richtext > .hero:not(.hero--home) .hero-title,
  .page-richtext > .alto-recruit-heading .page-title,
  .site-main > .posts-index > .page-header h1,
  .site-main > .post-page > .page-header h1 {
    font-size: 3.75rem;
  }
}
/* END ALTO H1 CONTACT */

/* BEGIN ALTO HOVER SHADOWS - SOURCE FLATCMS-TRAVAIL */
/* ALTO SEQUANAIS — survols plus sobres, ombrages cohérents avec la charte.
   Ne pas altérer les anneaux de focus clavier ni les boutons de consentement. */

.site-main .btn-primary:hover:not(:focus-visible) {
  box-shadow: 0 5px 11px rgba(159, 31, 99, 0.12);
}

.site-main .btn-secondary:hover:not(:focus-visible) {
  box-shadow: 0 3px 8px rgba(26, 43, 109, 0.10);
}

.site-main .btn-outline:hover:not(:focus-visible) {
  box-shadow: 0 3px 9px rgba(159, 31, 99, 0.10);
}

.site-main .btn-ghost:hover:not(:focus-visible) {
  box-shadow: none;
}

.alto-header .alto-client-link:hover:not(:focus-visible) {
  box-shadow: 0 5px 11px rgba(159, 31, 99, 0.12);
}
/* END ALTO HOVER SHADOWS */



/* ALTO homepage services: three permanent photographic editorial cards.
   The general .page-richtext image styling adds margin-top: 32px;
   this override removes the residual band and clips the image flush
   to all four rounded corners, without affecting other editorial images. */
.page-richtext #services .alto-services-heading {
  margin-bottom: 30px;
  text-align: center;
}
.page-richtext #services .alto-services-heading .section-title {
  margin-bottom: 10px;
}
.page-richtext #services .alto-services-heading > p {
  margin: 0;
  color: #647085;
  font-size: .98rem;
  line-height: 1.6;
}
.page-richtext #services .alto-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.page-richtext #services .alto-service-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 424px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 76, 101, .17);
  border-radius: 14px;
  background: #ebe9e5;
  box-shadow: 0 14px 29px rgba(31, 38, 56, .12);
  transition: transform .32s cubic-bezier(.2, .75, .25, 1),
              box-shadow .32s ease,
              border-color .32s ease;
}
/* Only hover-capable devices lift cards; no sticky touch hover. */
@media (hover: hover) and (pointer: fine) {
  .page-richtext #services .alto-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(159, 31, 99, .66);
    box-shadow: 0 28px 45px rgba(35, 25, 43, .24),
                0 11px 22px rgba(113, 30, 72, .12);
  }
  .page-richtext #services .alto-service-card:hover .alto-service-front-shade {
    box-shadow: inset 0 0 0 1000px rgba(70, 12, 40, .12);
  }
}
/* Keyboard focus: preserve clear feedback without moving the card. */
.page-richtext #services .alto-service-card:focus-within {
  border-color: #9f1f63;
  box-shadow: 0 20px 35px rgba(41, 26, 46, .20);
}
.page-richtext #services .alto-service-front-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border-radius: inherit;
}
.page-richtext #services .alto-service-front-link > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.page-richtext #services .alto-service-front-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(12, 19, 32, 0) 55%,
    rgba(12, 19, 32, .18) 69%,
    rgba(12, 19, 32, .83) 100%);
  box-shadow: inset 0 0 0 1000px transparent;
  transition: box-shadow .32s ease;
}
.page-richtext #services .alto-service-front-heading {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
}
.page-richtext #services .alto-service-number {
  display: block;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.45;
}
.page-richtext #services .alto-service-front-title {
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(1.6rem, 2.3vw, 2.15rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-transform: none;
}
.page-richtext #services .alto-service-front-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
}
.page-richtext #services .alto-service-front-hint > span {
  font-size: 1.2rem;
}
.page-richtext #services .alto-service-front-link:focus-visible {
  outline: 3px solid #f3d4e4;
  outline-offset: -4px;
}
@media (max-width: 1199px) and (min-width: 680px) {
  .page-richtext #services .alto-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-richtext #services .alto-services-grid > :last-child {
    grid-column: 1 / -1;
    width: calc((100% - 22px) / 2);
    justify-self: center;
  }
}
@media (max-width: 679px) {
  .page-richtext #services .alto-services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .page-richtext #services .alto-service-card {
    height: clamp(350px, 102vw, 445px);
  }
  .page-richtext #services .alto-service-front-heading {
    padding: 25px;
  }
}
@media (max-width: 360px) {
  .page-richtext #services .alto-service-card {
    height: 380px;
  }
  .page-richtext #services .alto-service-front-heading {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-richtext #services .alto-service-card,
  .page-richtext #services .alto-service-front-shade {
    transition: none !important;
  }
  .page-richtext #services .alto-service-card:hover {
    transform: none;
  }
}

/* ALTO PROMO BANNER — one theme identity for ALL four native Settings slots:
   above_topbar, below_topbar, above_footer, below_footer.
   The selected position changes the separator only, not the appearance.
   Keep the native FlatCMS banner and callback CTA; no core/module changes. */
.site-promo-banner {
  margin: 0;
  border: 0;
  border-top: 1px solid #e8dfe4;
  border-radius: 0;
  /* The old Tailwind declaration forces a white !important background. */
  background: var(--alto-testimonial-footer-surface, #faf8f9) !important;
  box-shadow: none;
  color: #273244;
}
/* At the top, place the separator below the banner.
   At either footer position, retain the fine separator above. */
.site-promo-banner:is(.site-promo-banner-position-above_topbar,
                      .site-promo-banner-position-below_topbar) {
  border-top: 0;
  border-bottom: 1px solid #e8dfe4;
}
.site-promo-banner .site-promo-banner-inner {
  position: static;
  left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  max-width: var(--alto-frame-width);
  min-height: var(--promo-banner-min-height, 52px);
  margin: 0 auto;
  padding: 30px var(--alto-visible-right-padding) 30px var(--alto-visible-left-padding);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
/* Honor the separate Settings alignment choice without reverting the
   modern design. 'left' retains the approved edge-to-edge spread. */
.site-promo-banner.site-promo-banner-align-center .site-promo-banner-inner {
  justify-content: center;
  text-align: center;
}
.site-promo-banner.site-promo-banner-align-right .site-promo-banner-inner {
  justify-content: flex-end;
  text-align: right;
}
.site-promo-banner:is(.site-promo-banner-align-center, .site-promo-banner-align-right)
  .site-promo-banner-copy {
  flex: 0 1 auto;
}
.site-promo-banner .site-promo-banner-copy {
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  color: #273244;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.36;
  letter-spacing: -.018em;
  white-space: pre-line;
}
.site-promo-banner .site-promo-banner-copy::first-line {
  color: #8e1c54;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.5;
}
.site-promo-banner .site-promo-banner-cta.btn {
  flex: 0 0 auto;
  align-self: center;
  min-height: var(--fc-btn-height, 42px);
  margin: 0;
  padding: 0 20px;
  border: 1px solid #9f1f63;
  border-radius: var(--fc-btn-radius, 0.5rem);
  background: #9f1f63;
  box-shadow: none;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transform: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.site-promo-banner .site-promo-banner-cta.btn:hover {
  border-color: #7d1549;
  background: #7d1549;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
  transform: none;
}
.site-promo-banner .site-promo-banner-cta.btn:focus-visible {
  outline: 3px solid #bc6893;
  outline-offset: 3px;
  box-shadow: none;
  transform: none;
}
@media (max-width: 767px) {
  .site-promo-banner .site-promo-banner-inner {
    gap: 12px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .site-promo-banner .site-promo-banner-copy {
    font-size: clamp(1.12rem, 4.2vw, 1.32rem);
    line-height: 1.35;
  }
}
@media (max-width: 767px) and (orientation: portrait) {
  /* Preserve the existing accessible 44px phone-only callback control,
     but use the same architectural corner radius as the desktop CTA. */
  .site-promo-banner .site-promo-banner-cta.btn[href="/contact"] {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--fc-btn-radius, 0.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-promo-banner .site-promo-banner-cta.btn {
    transition: none;
  }
}


/* New vector technical diagrams: retain legible labels on phones/tablets
   rather than squeezing the whole SVG into a small mobile viewport. */
@media (max-width: 1023px) {
  .alto-gestion-timeline__scroll {
    width: 1200px;
  }
  .alto-gestion-timeline__visual {
    scrollbar-width: thin;
  }
}
.alto-syndic-compare__visual {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
@media (max-width: 767px) {
  .alto-syndic-compare__visual img {
    width: 920px;
    max-width: none;
    margin: 0;
  }
  .alto-syndic-compare__visual {
    scrollbar-width: thin;
  }
}
.alto-gestion-timeline__visual:focus-visible,
.alto-syndic-compare__visual:focus-visible {
  outline: 2px solid #9f1f63;
  outline-offset: 2px;
}

/* ALTO unified service illustration contours. */
.page-richtext .alto-gestion-intro__visual img,
.page-richtext .alto-transaction-intro__visual img,
.page-richtext .alto-syndic-intro__visual img,
.page-richtext .alto-gestion-service__image,
.page-richtext .alto-transaction-expertise__media img,
.page-richtext .alto-gestion-timeline__image,
.page-richtext .alto-syndic-compare__visual img {
  border-radius: 12px;
}
.page-richtext .alto-gestion-service__image {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.page-richtext .alto-transaction-expertise__media img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* ALTO service-page bullet harmonization and mobile promo phone contrast.
   Shared editorial checkmarks for Gestion, Transaction and Syndic only.
   Leave footer/menu lists and reusable FlatCMS core list styling alone. */
.page-richtext .alto-gestion-service__copy .checklist,
.page-richtext .alto-transaction-expertise__list,
.page-richtext .alto-syndic-missions__list,
.page-richtext .alto-syndic-online__features {
  padding-left: 0;
  list-style: none;
}
.page-richtext .alto-gestion-service__copy .checklist > li,
.page-richtext .alto-transaction-expertise__list > li,
.page-richtext .alto-syndic-missions__list > li,
.page-richtext .alto-syndic-online__features > li {
  position: relative;
  min-width: 0;
  margin: 0 0 .6rem;
  padding: 0 0 0 1.65rem;
  list-style: none;
  line-height: 1.55;
}
.page-richtext .alto-gestion-service__copy .checklist > li::before,
.page-richtext .alto-transaction-expertise__list > li::before,
.page-richtext .alto-syndic-missions__list > li::before,
.page-richtext .alto-syndic-online__features > li::before {
  content: "\f00c";
  position: absolute;
  top: .19em;
  left: 0;
  display: block;
  color: #9f1f63;
  font-family: "Alto Icons Solid";
  font-size: .78em;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}
.page-richtext .alto-gestion-service__copy .checklist > li:last-child,
.page-richtext .alto-transaction-expertise__list > li:last-child,
.page-richtext .alto-syndic-online__features > li:last-child {
  margin-bottom: 0;
}

/* The portrait phone mask inherited a burgundy pseudo-element color from the
   theme reset and became invisible on the burgundy CTA. White is intentional. */
@media (max-width: 767px) and (orientation: portrait) {
  .site-promo-banner .site-promo-banner-cta.btn[href="/contact"]::before {
    color: #fff;
    background-color: #fff;
  }
}

/* ALTO Syndic scheme full-width mobile and current extranet screenshot.
   The detailed diagram is intentionally scaled to fit without side scrolling,
   even though its text is less readable on very narrow phones. */
.page-richtext .alto-syndic-online__visual img {
  border: 1px solid rgba(159,31,99,.15);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(33,37,57,.13);
  background: #fff;
}
@media (max-width: 767px) {
  .page-richtext .alto-syndic-compare__visual {
    width: 100%;
    overflow-x: visible;
  }
  .page-richtext .alto-syndic-compare__visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

/* Navigation location — same theme-only current-page semantics in the header
   and both footer navigation columns, without affecting link destinations. */
.alto-header #mainNav.alto-nav .main-nav-list > .nav-item > a.nav-link[aria-current="page"] {
  position: relative;
  color: #9f1f63;
  font-weight: 750;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .alto-header #mainNav.alto-nav .main-nav-list > .nav-item > a.nav-link[aria-current="page"] {
    color: #9f1f63;
    background: #f8eff4;
    font-weight: 750;
  }
}
.site-footer.alto-footer .alto-footer-grid nav a[aria-current="page"] {
  color: #9f1f63;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #9f1f63;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* ALTO PORTRAIT TABLET — services and duplicated client CTA (2026-11-21).
   The side menu is active through 1024px, so the header CTA must disappear
   at the same breakpoint. Keep the CTA inside the side menu. */
@media (max-width: 1024px) {
  .alto-header .alto-header-actions > .alto-client-link:not(.alto-client-link-mobile) {
    display: none;
  }
}

/* Tablet portrait: stack all three homepage service cards, not a 2 + 1 grid.
   Leave mobile <=679px and landscape/desktop layouts unchanged. */
@media (min-width: 680px) and (max-width: 1024px) and (orientation: portrait) {
  .page-richtext #services .alto-services-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 22px;
  }
  .page-richtext #services .alto-services-grid > .alto-service-card {
    grid-column: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

/* ALTO RECRUIT PORTRAIT TABLET — full-width form and text (2026-11-21).
   Same linear reading order as mobile: hero, title, introduction, native form,
   legal notice. Keep desktop / landscape two-column design unchanged. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .page-richtext:has(> .alto-recruit-hero) {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .page-richtext > .alto-recruit-aside {
    display: contents;
  }

  .page-richtext:has(> .alto-recruit-hero) > .alto-recruit-hero {
    grid-column: 1;
    grid-row: 1;
  }

  .page-richtext:has(> .alto-recruit-hero) > .alto-recruit-heading {
    grid-column: 1;
    grid-row: 2;
  }

  .page-richtext:has(> .alto-recruit-hero) .alto-recruit-aside__intro {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 2rem;
  }

  .page-richtext:has(> .alto-recruit-hero) > .flatcms-contact-native {
    grid-column: 1;
    grid-row: 4;
  }

  .page-richtext:has(> .alto-recruit-hero) .alto-recruit-aside__legal {
    grid-column: 1;
    grid-row: 5;
    margin-top: 2rem;
  }
}

/* ALTO TABLET PORTRAIT — full-width service and article cards (2026-11-21).
   The service grid above already stacks vertically. The card and both blog
   sections must fill their existing editorial container without changing
   phone and landscape/desktop layouts. */
@media (min-width: 680px) and (max-width: 1024px) and (orientation: portrait) {
  .page-richtext .alto-latest-posts-section .posts-grid.alto-latest-posts-grid,
  .posts-index .posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-richtext .alto-latest-posts-section .posts-grid.alto-latest-posts-grid > .card,
  .posts-index .posts-grid > .card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .page-richtext .alto-latest-posts-section .posts-grid.alto-latest-posts-grid .card-body {
    min-height: 0;
  }
  .posts-index .posts-grid .card-image {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .posts-index .posts-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
