/* Header responsive commun. */
@media (max-width: 1180px) {
  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .search-button,
  .nav-actions .btn-primary {
    display: none;
  }
}

/* CTA alignment: keep a durable text-to-icon gutter while pinning the icon to the right. */
#app .btn {
  font-size: clamp(14px, 1.2vw, 15px);
}

#app .btn:has(> svg) {
  height: auto;
  padding-block: 6px;
  padding-right: 6px;
  padding-left: 10px;
  justify-content: flex-start;
  gap: var(--control-text-icon-gap);
  text-align: left;
}

#app .btn:has(> svg) > span {
  min-width: 0;
  white-space: normal;
}

#app .btn:has(> svg) > svg {
  position: static;
  width: 32px;
  height: 32px;
  padding: 7px;
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  transform: none;
}

#app :is(
  .arrow-link,
  .before-detail-link,
  .installer-card-button,
  .pva-journey-more,
  .mobile-feature-link,
  .work-essential-action,
  .arrival-action-link,
  .installer-help-links a,
  .arrival-calendar-note a,
  .resource-section-heading > a
) {
  column-gap: var(--control-text-icon-gap);
}

#app :is(
  .faq-open-all,
  .glossary-show-all,
  .mobile-volume-overview) {
  column-gap: var(--control-text-icon-gap-compact);
}

#app :is(.menu-link.mega-trigger, .glossary-alphabet button, .popular-terms button) {
  font-size: 14px;
}

#app .volume-tab-action {
  padding: 0;
  justify-content: flex-start;
  gap: var(--control-text-icon-gap-compact);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

#app .volume-tab-action > svg {
  position: static;
  order: 2;
  margin-left: auto;
  transform: none;
}

/* Small action copy needs the darker Swiss red on the warm canvas to remain AA. */
#app :is(
  .before-detail-link,
  .arrival-calendar-note a,
  .volume-tab-action,
  .glossary-show-all
) {
  color: var(--red-dark);
}

#app :is(.officials-breadcrumb-v28, .tools-breadcrumb) a {
  color: #4d5d74;
}

#app :is(.officials-breadcrumb-v28, .tools-breadcrumb) a:hover {
  color: var(--red-dark);
}

@media (max-width: 1180px) {
  #app .nav-actions .btn-primary:has(> svg) {
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  #app .nav-actions .btn-primary:has(> svg) > svg {
    order: initial;
    margin-left: 0;
  }
}

#app .faq-list .faq-question {
  padding-right: 6px;
}

#app .faq-list .faq-question > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

#app :is(.pva-guide-action, .glossary-guide-copy) .btn {
  min-height: 44px;
}

/* Carrousels mobiles final-v28 — suites éditoriales enrichies de contenu visible. */
.mobile-carousel-controls {
  display: none;
}

@media (max-width: 700px) {
  .mobile-card-carousel.is-carousel-active {
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc(100% - 50px) !important;
    align-items: stretch !important;
    gap: 14px !important;
    contain: paint;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .mobile-card-carousel.is-carousel-active::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .mobile-card-carousel.is-carousel-active > :not([hidden]) {
    min-width: 0;
    grid-column: auto !important;
    grid-row: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .mobile-card-carousel.is-carousel-active.has-adaptive-height {
    height: var(--carousel-active-height, auto);
    align-content: start;
  }

  .mobile-card-carousel.is-carousel-active.has-adaptive-height > :not([hidden]) {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
  }

  .mobile-card-carousel.is-carousel-active:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--red) 76%, #fff);
    outline-offset: 4px;
  }

  .mobile-carousel-controls:not([hidden]) {
    width: 100%;
    min-height: 48px;
    margin: 10px 0 4px;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
  }

  .mobile-carousel-controls[hidden] {
    display: none !important;
  }

  .mobile-carousel-button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ink));
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 6px 18px rgba(11, 32, 72, 0.08);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
  }

  .mobile-carousel-button:hover,
  .mobile-carousel-button:focus-visible {
    border-color: var(--red);
    color: var(--red);
    outline: 0;
    transform: translateY(-1px);
  }

  .mobile-carousel-button:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent), 0 6px 18px rgba(11, 32, 72, 0.08);
  }

  .mobile-carousel-button:disabled {
    opacity: 0.32;
    cursor: default;
    transform: none;
  }

  .mobile-carousel-button svg {
    width: 18px;
    height: 18px;
  }

  .mobile-carousel-button.is-previous svg {
    transform: rotate(180deg);
  }

  .mobile-carousel-status {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(72px, 120px) auto;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
  }

  .mobile-carousel-meter {
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: color-mix(in srgb, var(--line) 88%, var(--ink));
  }

  .mobile-carousel-meter i {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
  }

  .deadline-grid.mobile-card-carousel.is-carousel-active {
    border-left: 0;
  }

  .deadline-grid.mobile-card-carousel.is-carousel-active > article,
  .volume-tab-grid.mobile-card-carousel.is-carousel-active > article,
  .before-timeline.mobile-card-carousel.is-carousel-active > li,
  .arrival-timeline.mobile-card-carousel.is-carousel-active > li,
  .about-method-list.mobile-card-carousel.is-carousel-active > li {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }

  .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    border-top: 0;
  }

  .volume-tab-grid.mobile-card-carousel.is-carousel-active > article {
    padding: 20px 18px;
  }

  .before-timeline.mobile-card-carousel.is-carousel-active,
  .installer-checklist-list.mobile-card-carousel.is-carousel-active,
  .installer-essentials-grid.mobile-card-carousel.is-carousel-active {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .before-timeline.mobile-card-carousel.is-carousel-active > li {
    min-height: 142px;
    padding: 17px 15px;
    box-shadow: 0 8px 22px rgba(27, 24, 20, 0.045);
  }

  .before-timeline.mobile-card-carousel.is-carousel-active > li:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .arrival-timeline.mobile-card-carousel.is-carousel-active > li {
    min-height: 116px;
    padding: 16px;
    align-content: start;
  }

  .arrival-timeline.mobile-card-carousel.is-carousel-active > li::after,
  .about-method-list.mobile-card-carousel.is-carousel-active::before {
    display: none;
  }

  .arrival-timeline.mobile-card-carousel.is-carousel-active .arrival-timeline-dot {
    grid-row: auto;
  }

  .arrival-timeline.mobile-card-carousel.is-carousel-active .arrival-timeline-task {
    grid-column: 1 / -1;
  }

  .about-method-list.mobile-card-carousel.is-carousel-active > li {
    min-height: 150px;
    padding: 18px;
  }

  .work-steps.mobile-card-carousel.is-carousel-active > li {
    min-height: 148px;
    padding: 18px;
    align-items: flex-start;
    text-align: left;
  }

  .work-steps.mobile-card-carousel.is-carousel-active p {
    display: block;
  }

  .installer-essentials-grid.mobile-card-carousel.is-carousel-active .installer-essential-card,
  .installer-essentials-grid.mobile-card-carousel.is-carousel-active .installer-essential-card:nth-child(4),
  .installer-essentials-grid.mobile-card-carousel.is-carousel-active .installer-essential-card:nth-child(5) {
    min-height: 132px;
    padding: 18px 16px;
    border: 1px solid #dfe4eb;
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(8, 40, 95, 0.06);
  }

  .installer-essentials-grid.mobile-card-carousel.is-carousel-active .installer-essential-card:last-child {
    border-bottom: 1px solid #dfe4eb;
  }

  .installer-essentials-grid.mobile-card-carousel.is-carousel-active .installer-card-copy p {
    margin-top: 6px;
    display: block;
    font-size: 14px;
    line-height: 1.4;
  }

  .installer-checklist-list.mobile-card-carousel.is-carousel-active > li,
  .installer-checklist-list.mobile-card-carousel.is-carousel-active > li + li {
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
    background: var(--surface-elevated);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-card-carousel,
  .mobile-carousel-meter i {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Audit visuel transverse 375 / 768 / 1440 — corrections ciblées hors chantiers parallèles */

/* Les coupures desktop restent locales aux héros dont le visuel commence dans la zone de texte. */
@media (min-width: 1024px) {
  .hero-title-line {
    display: block;
  }
}

@media (max-width: 768px) {
  .page-s-installer-en-suisse .installer-hero h1,
  .page-s-integrer-en-suisse .integration-hero h1 {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Les héros des six fiches volume et de la page Confidentialité dépassaient 60 px à 1440. */
.site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance, .page-privacy) .page-hero-copy h1 {
  font-size: clamp(48px, 4.2vw, 60px);
  text-wrap: balance;
}

.page-privacy .page-hero-copy h1 {
  font-size: 48px;
}

/* Le panneau des délais passait à 52 px et sur trois lignes sur l'accueil desktop. */
.page-home .deadline-panel h2 {
  font-size: 36px;
  text-wrap: balance;
}

/* Les intitulés longs des fiches étaient comprimés dans une première colonne trop étroite. */
@media (min-width: 1181px) {
  .site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) .volume-tab-card {
    grid-template-columns: minmax(360px, 1fr) minmax(230px, 0.95fr) minmax(210px, 0.75fr) minmax(150px, 0.45fr);
    gap: 20px;
  }
}

@media (min-width: 621px) and (max-width: 960px) {
  .site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) .volume-tab-card {
    grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr);
    gap: 20px;
  }
}

.site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) .volume-tab-head h3 {
  text-wrap: balance;
}

.site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) :is(.volume-tab-copy p, .volume-tab-card .check-list li) {
  font-size: 16px;
  line-height: 1.5;
}

/* Les cartes de sommaire du Guide utilisaient des H3 à 18–20 px et un corps à 12–13 px. */
.page-guide .volume-card h3 {
  font-size: 24px;
  text-wrap: balance;
}

@media (min-width: 621px) {
  .page-guide .guide-final-cta h2,
  .page-privacy .privacy-list h2 {
    font-size: 32px;
  }
}

.page-guide .volume-card > p,
.page-guide .volume-tabs-mini span {
  font-size: 16px;
  line-height: 1.45;
}

/* Deux sous-libellés de liens officiels étaient tronqués de quelques pixels à 375 px. */

/* À largeur tablette/mobile, les blocs imposés du H1 Contact créaient artificiellement trois lignes. */
@media (max-width: 900px) {
  .page-contact .contact-hero h1 {
    max-width: 660px;
    letter-spacing: -0.055em;
  }

}

@media (max-width: 620px) {
  .page-home .deadline-panel h2 {
    font-size: 26px;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }

  .page-guide .guide-offer-hero-copy h1 {
    max-width: none;
    font-size: 32px;
    text-wrap: balance;
  }

  .page-guide .volume-card h3 {
    font-size: 22px;
  }

  .site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance, .page-privacy) .page-hero-copy h1 {
    font-size: clamp(32px, 9.6vw, 38px);
  }

  .site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) .volume-tab-head h3 {
    font-size: 22px;
  }

  .site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) .volume-tab-head {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .site:is(.page-sante, .page-logement, .page-automobile, .page-aides, .page-permis, .page-prevoyance) .volume-tab-head > span {
    width: 32px;
    height: 32px;
  }

  .page-contact .contact-hero h1 {
    font-size: 32px;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .page-contact .contact-hero-layout {
    padding-inline: 12px;
  }

  .page-privacy .page-hero-copy {
    padding-inline: 12px;
  }

  .page-privacy .page-hero-copy h1 {
    font-size: 32px;
    letter-spacing: -0.075em;
    width: 106%;
    margin-right: -6%;
    transform: scaleX(0.9434);
    transform-origin: left top;
  }

  .page-privacy .page-hero .cta-panel h2,
  .page-privacy .cta-band h2 {
    font-size: 26px;
  }
}

@media (max-width: 820px) {
  .page-privacy .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Échelle typographique globale — moyenne du barème validé (2026-07-14) */
:root {
  --type-h1: clamp(40px, 3.48vw, 50px);
  --type-h2: clamp(32px, 2.78vw, 40px);
  --type-h3: clamp(20px, 1.46vw, 21px);
  --type-h4: clamp(17px, 1.25vw, 18px);
  --type-heading-weight: 600;
}

.site h1 {
  font-size: var(--type-h1) !important;
  font-weight: var(--type-heading-weight) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;
}

.site h2 {
  font-size: var(--type-h2) !important;
  font-weight: var(--type-heading-weight) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.028em !important;
}

.site h3 {
  font-size: var(--type-h3) !important;
  font-weight: var(--type-heading-weight) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  text-wrap: pretty;
}

.site :is(h4, h5, h6) {
  font-size: var(--type-h4) !important;
  font-weight: var(--type-heading-weight) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.012em !important;
}

@media (min-width: 621px) {
  .site main h3.short-card-title {
    font-size: 19px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .page-s-installer-en-suisse .installer-section-heading h2 {
    font-size: 32px !important;
    line-height: 1.14 !important;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

/* Georgia ne possède pas de graisse semi-bold : 500 garde son rendu éditorial fin. */
.site .pva-page :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 500 !important;
}

@media (max-width: 620px) {
  :root {
    --type-h1: clamp(32px, 9.6vw, 36px);
    --type-h2: clamp(26px, 8vw, 30px);
    --type-h3: 20px;
    --type-h4: 17px;
  }

  .site h1 {
    line-height: 1.08 !important;
  }

  .site h2 {
    line-height: 1.15 !important;
  }

  .site h3 {
    line-height: 1.2 !important;
  }
}

/* Accueil — continuité blanche et hero alpin alignés sur la page Ressources */
.site.page-home {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-home .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--paper);
  backdrop-filter: none;
}

.page-home .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.page-home .menu-link,
.page-home .mega-trigger {
  min-height: 78px;
}

.page-home .menu-link::after,
.page-home .mega-trigger::after {
  bottom: 0;
  height: 2px;
}

.page-home .hero {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.page-home .hero-inner {
  position: relative;
  min-height: 486px;
  display: block;
  isolation: isolate;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
  width: min(1328px, calc(100% - 64px));
  min-height: 486px;
  margin-inline: auto;
  padding: 42px 0 38px;
  align-items: flex-start;
}

.page-home .hero h1 {
  max-width: 730px;
}

.page-home .hero .lead {
  max-width: 680px;
}

.page-home .hero-photo {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--paper);
}

.page-home .hero-photo::after {
  display: none;
}

.page-home .hero-photo img {
  object-position: 55% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 13%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.24) 13%, #000 35%);
}

.page-home .hero-proof {
  position: relative;
  z-index: 2;
  background: var(--paper);
}

@media (max-width: 1050px) {
  .site.page-home {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-home .nav {
    padding-inline: 26px;
  }

  .page-home .hero-inner,
  .page-home .hero-copy {
    min-height: 500px;
  }

  .page-home .hero-copy {
    width: min(100% - 48px, 900px);
    padding: 40px 0 36px;
  }

  .page-home .hero h1 {
    max-width: 650px;
  }

  .page-home .hero .lead {
    max-width: 620px;
  }

  .page-home .hero-photo {
    inset: 0;
  }

  .page-home .hero-photo img {
    object-position: 64% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 43%, rgba(0, 0, 0, 0.5) 76%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 43%, rgba(0, 0, 0, 0.5) 76%, #000 100%);
  }
}

@media (max-width: 620px) {
  .site.page-home {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-home .topbar,
  .page-home .nav {
    height: 64px;
  }

  .page-home .nav {
    padding-inline: 18px;
  }

  .page-home .hero-inner,
  .page-home .hero-copy {
    min-height: 522px;
  }

  .page-home .hero-copy {
    width: calc(100% - 32px);
    padding: 28px 0 30px;
  }

  .page-home .hero-kicker {
    margin-bottom: 12px;
  }

  .page-home .hero h1 {
    max-width: 100%;
  }

  .page-home .hero .lead {
    max-width: 100%;
  }

  .page-home .hero-photo {
    inset: 0;
    opacity: 0.72;
  }

  .page-home .hero-photo::after {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.38) 34%, #fff 74%);
    content: "";
  }

  .page-home .hero-photo img {
    object-position: 66% 42%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 48%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 48%, #000 100%);
  }
}

/* Page Guide offert — continuité visuelle stricte avec la page Ressources. */
body:has(.site.page-guide) {
  background: var(--surface-base);
}

.site.page-guide {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.page-guide .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-guide .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-guide .menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-guide .menu-link,
.page-guide .mega-trigger {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-guide .menu-link::after,
.page-guide .mega-trigger::after {
  bottom: 0;
  height: 2px;
  background: #0c2857;
}

.page-guide .menu-link:hover,
.page-guide .menu-link.active,
.page-guide .mega-trigger:hover,
.page-guide .mega-trigger.active,
.page-guide .has-mega.is-open .mega-trigger {
  color: #0c2857;
}

.page-guide .search-button {
  display: none;
}

.page-guide .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: #e10d13;
  font-size: 14px;
}

.page-guide .nav-actions .btn-primary svg {
  display: none;
}

.page-guide .guide-offer-page {
  min-height: 0;
}

.page-guide .guide-offer-hero {
  width: 100%;
  min-height: 602px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  box-shadow: none;
}

.page-guide .guide-offer-hero-backdrop img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center 49%;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.page-guide .guide-offer-hero-backdrop::after {
  position: absolute;
  inset: auto 0 0;
  height: 104px;
  content: "";
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.page-guide .guide-offer-hero-inner {
  width: min(1328px, calc(100% - 64px));
  min-height: 602px;
  margin-inline: auto;
  padding: 34px 0 42px;
  grid-template-columns: minmax(0, 1.05fr) minmax(190px, 0.5fr) minmax(350px, 0.82fr);
  gap: 24px;
}

.page-guide .guide-offer-hero-copy {
  max-width: 570px;
}

.page-guide .guide-offer-hero-copy .hero-kicker {
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.page-guide .guide-offer-hero-copy h1 {
  max-width: 520px;
  margin-bottom: 16px;
  text-wrap: balance;
}

.page-guide .guide-offer-hero-copy .lead {
  max-width: 540px;
}

.page-guide .guide-offer-book {
  width: min(100%, 216px);
  height: auto;
}

.page-guide .guide-offer-hero .guide-lead-panel {
  width: 100%;
  max-width: 410px;
  justify-self: end;
}

@media (min-width: 1051px) {
  .page-guide .guide-offer-hero .form-panel button[type="submit"] span {
    white-space: nowrap;
  }
}

@media (max-width: 1050px) {
  .site.page-guide {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-guide .nav {
    padding-inline: 26px;
  }

  .page-guide .menu,
  .page-guide .nav-actions .btn-primary {
    display: none;
  }

  .page-guide .burger {
    display: grid;
  }

  .page-guide .nav-actions {
    margin-left: auto;
  }

  .page-guide .guide-offer-hero {
    min-height: 0;
  }

  .page-guide .guide-offer-hero-backdrop img {
    top: 0;
    width: 100%;
    height: 420px;
    object-position: 58% center;
  }

  .page-guide .guide-offer-hero-backdrop::after {
    inset: 0;
    height: 420px;
    background:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.94) 30%, rgba(255, 255, 255, 0.48) 60%, rgba(255, 255, 255, 0) 84%),
      linear-gradient(to bottom, rgba(255, 255, 255, 0) 72%, #fff 100%);
  }

  .page-guide .guide-offer-hero-inner {
    width: min(100% - 48px, 900px);
    min-height: 0;
    padding: 34px 0 28px;
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
    gap: 28px;
  }

  .page-guide .guide-offer-book {
    width: 190px;
    height: auto;
  }

  .page-guide .guide-offer-hero .guide-lead-panel {
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .site.page-guide {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-guide .topbar,
  .page-guide .nav {
    height: 64px;
  }

  .page-guide .nav {
    padding-inline: 18px;
  }

  .page-guide .burger {
    width: 38px;
    height: 38px;
  }

  .page-guide .guide-offer-hero {
    margin-top: 0;
  }

  .page-guide .guide-offer-hero-backdrop img {
    top: 218px;
    width: 100%;
    height: 470px;
    object-position: 66% center;
  }

  .page-guide .guide-offer-hero-backdrop::after {
    top: 218px;
    bottom: auto;
    height: 470px;
    background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0.9) 12%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 78%, #fff 100%);
  }

  .page-guide .guide-offer-hero-inner {
    width: calc(100% - 32px);
    padding: 24px 0 22px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-guide .guide-offer-hero-copy h1 {
    max-width: 320px;
    margin-bottom: 14px;
  }

  .page-guide .guide-offer-hero-copy .lead {
    max-width: 325px;
  }

  .page-guide .guide-offer-book {
    width: 154px;
    height: auto;
    margin-block: 2px 8px;
  }

  .page-guide .guide-offer-hero .guide-lead-panel {
    padding: 19px;
  }
}

/* Santé et LAMal — continuité premium du haut de page Ressources */
body:has(.page-sante) {
  background: var(--surface-base);
}

.site.page-sante {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-sante .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-sante .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-sante .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.page-sante .brand-text {
  color: #0a2554;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-sante .brand-text > span:last-child {
  color: #56647b;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.page-sante .resources-menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-sante .menu-link,
.page-sante .mega-trigger {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-sante .menu-link::after,
.page-sante .mega-trigger::after {
  bottom: 0;
  height: 2px;
}

.page-sante .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: #e10d13;
  font-size: 14px;
}

.page-sante .nav-actions .btn-primary svg {
  display: none;
}

.page-sante .page {
  min-height: 0;
  color: #0a2554;
  background: var(--surface-elevated);
}

.page-sante .page-hero {
  position: relative;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--surface-elevated);
}

.page-sante .page-hero-inner {
  position: relative;
  width: 100%;
  min-height: 548px;
  display: block;
}

.page-sante .page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(58%, 760px);
  min-height: 548px;
  margin-left: max(32px, calc((100% - 1328px) / 2));
  padding: 38px 0 34px;
}

.page-sante .page-hero-copy h1 {
  max-width: 680px;
  margin: 14px 0 16px;
  text-wrap: balance;
}

.page-sante .page-hero .lead {
  max-width: 620px;
  color: #233d65;
}

.page-sante .inline-actions {
  margin-top: 18px;
}

.page-sante .guide-preview {
  max-width: 620px;
  margin-top: 24px;
}

.page-sante .page-hero-media {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 36%;
  min-height: 0;
  overflow: hidden;
  background: var(--surface-elevated);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 15%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 15%, #000 42%, #000 100%);
}

.page-sante .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 51%;
}

@media (max-width: 1050px) {
  .site.page-sante {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-sante .nav {
    padding-inline: 26px;
  }

  .page-sante .menu,
  .page-sante .nav-actions .btn-primary {
    display: none;
  }

  .page-sante .burger {
    display: grid;
  }

  .page-sante .nav-actions {
    margin-left: auto;
  }

  .page-sante .page-hero-inner,
  .page-sante .page-hero-copy {
    min-height: 560px;
  }

  .page-sante .page-hero-copy {
    width: min(78%, 700px);
    margin-left: 32px;
    padding: 42px 0 36px;
  }

  .page-sante .page-hero-media {
    top: 0;
    right: 0;
    bottom: auto;
    left: 26%;
    height: 420px;
    -webkit-mask-image: radial-gradient(ellipse 94% 112% at 100% 0%, #000 0%, #000 38%, rgba(0, 0, 0, 0.8) 54%, rgba(0, 0, 0, 0.18) 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 94% 112% at 100% 0%, #000 0%, #000 38%, rgba(0, 0, 0, 0.8) 54%, rgba(0, 0, 0, 0.18) 78%, transparent 100%);
  }
}

@media (max-width: 620px) {
  .site.page-sante {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-sante .topbar,
  .page-sante .nav {
    height: 64px;
  }

  .page-sante .nav {
    padding-inline: 18px;
  }

  .page-sante .brand {
    gap: 9px;
  }

  .page-sante .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .page-sante .brand-mark::before {
    width: 17px;
    height: 6px;
  }

  .page-sante .brand-mark::after {
    width: 6px;
    height: 17px;
  }

  .page-sante .brand-text {
    font-size: 11px;
  }

  .page-sante .brand-text > span:last-child {
    font-size: 8px;
  }

  .page-sante .burger {
    width: 38px;
    height: 38px;
  }

  .page-sante .page-hero-inner,
  .page-sante .page-hero-copy {
    min-height: 616px;
  }

  .page-sante .page-hero-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding: 28px 4px 26px;
  }

  .page-sante .page-hero-copy h1 {
    max-width: 330px;
    margin: 12px 0 14px;
  }

  .page-sante .page-hero .lead {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.45;
  }

  .page-sante .inline-actions {
    margin-top: 18px;
  }

  .page-sante .guide-preview {
    margin-top: 24px;
  }

  .page-sante .page-hero-media {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 310px;
    -webkit-mask-image: radial-gradient(ellipse 70% 108% at 100% 0%, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.1) 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 108% at 100% 0%, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.1) 72%, transparent 100%);
  }

  .page-sante .page-hero-media img {
    object-position: 66% 50%;
  }
}

/* Logement — haut de page aligné sur la composition blanche de Ressources. */
body:has(.page-logement) {
  background: var(--surface-base);
}

.site.page-logement {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-logement .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-logement .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-logement .menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-logement :is(.menu-link, .mega-trigger) {
  min-height: 78px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.page-logement :is(.menu-link, .mega-trigger)::after {
  bottom: 0;
  height: 2px;
}

.page-logement .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 42px 0 22px;
  border-radius: 6px;
  font-size: 14px;
}

.page-logement .page {
  min-height: 0;
  background: var(--surface-elevated);
}

.page-logement .page-hero {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background-color: var(--surface-elevated);
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.99) 31%, rgba(255, 255, 255, 0.9) 47%, rgba(255, 255, 255, 0.44) 65%, rgba(255, 255, 255, 0.04) 84%),
    url("./assets/pages/04-logement/hero-remise-cles-appartement-suisse-v1.webp");
  background-position: center 49%;
  background-size: cover;
}

.page-logement .page-hero-inner {
  width: min(1328px, calc(100% - 64px));
  min-height: 480px;
  margin-inline: auto;
  display: block;
}

.page-logement .page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 57%);
  min-height: 480px;
  padding: 32px 0 30px;
}

.page-logement .page-hero-copy h1 {
  max-width: 690px;
  margin: 12px 0 14px;
}

.page-logement .page-hero .lead {
  max-width: 700px;
  color: #233d65;
  font-weight: 500;
  line-height: 1.5;
}

.page-logement .inline-actions {
  margin-top: 18px;
}

.page-logement .guide-preview {
  max-width: 620px;
  margin-top: 22px;
  border-color: rgba(196, 204, 214, 0.86);
}

.page-logement .preview-row {
  min-height: 46px;
  border-color: rgba(196, 204, 214, 0.72);
}

.page-logement .page-hero-media {
  display: none;
}

#app > .site.page-logement > main > .section {
  background: var(--surface-base);
}

#app > .site.page-logement .section > .wrap {
  width: min(1240px, calc(100% - 64px));
}

#app > .site.page-logement .section-head {
  max-width: none;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: stretch;
  gap: 40px;
}

#app > .site.page-logement .section-head > div {
  max-width: 700px;
  align-self: center;
}

#app > .site.page-logement .section-head h2 {
  max-width: 690px;
  margin-bottom: 12px;
}

#app > .site.page-logement .section-head p {
  max-width: 660px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

#app > .site.page-logement .section-head::after {
  content: "";
  min-height: 220px;
  display: block;
  border: 1px solid var(--surface-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, transparent 60%, rgba(11, 32, 72, 0.08)),
    url("./assets/story-cards/volume-logement-etat-lieux-v1.webp") 50% 46% / cover no-repeat;
  box-shadow: 0 16px 36px rgba(11, 32, 72, 0.09);
}

#app > .site.page-logement .volume-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  border-top: 0;
}

#app > .site.page-logement .volume-tab-card {
  min-height: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  background: var(--surface-elevated);
  box-shadow: 0 10px 28px rgba(11, 32, 72, 0.055);
}

#app > .site.page-logement .volume-tab-card > * {
  min-width: 0;
  grid-column: 1;
}

#app > .site.page-logement .volume-tab-head {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

#app > .site.page-logement .volume-tab-head > span {
  width: 38px;
  height: 38px;
}

#app > .site.page-logement .volume-tab-head h3 {
  min-width: 0;
  margin-top: 1px;
  font-size: clamp(18px, 1.45vw, 21px) !important;
  line-height: 1.24 !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}

#app > .site.page-logement :is(.volume-tab-copy p, .volume-tab-card .check-list li) {
  font-size: 14px;
  line-height: 1.55;
}

#app > .site.page-logement .volume-tab-copy p {
  color: var(--muted);
}

#app > .site.page-logement .volume-tab-card .check-list {
  align-content: start;
  gap: 8px;
}

#app > .site.page-logement .volume-tab-card .check-list svg {
  flex: 0 0 17px;
}

#app > .site.page-logement .volume-tab-action {
  min-height: 44px;
  padding-top: 13px;
  flex-direction: row-reverse;
  justify-content: space-between;
  text-align: left;
  border-top: 1px solid var(--surface-line);
  white-space: normal;
}

@media (min-width: 1101px) {
  #app > .site.page-logement .volume-tab-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #app > .site.page-logement .volume-tab-card {
    grid-column: span 2;
  }

  #app > .site.page-logement .volume-tab-card:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  #app > .site.page-logement .volume-tab-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .site.page-logement {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-logement .nav {
    padding-inline: 26px;
  }

  .page-logement .page-hero {
    background-image:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.98) 46%, rgba(255, 255, 255, 0.68) 74%, rgba(255, 255, 255, 0.18) 100%),
      url("./assets/pages/04-logement/hero-remise-cles-appartement-suisse-v1.webp");
    background-position: 58% center;
  }

  .page-logement .page-hero-inner {
    width: min(100% - 48px, 900px);
    min-height: 0;
  }

  .page-logement .page-hero-copy {
    width: min(620px, 100%);
    min-height: 0;
    padding: 34px 0 32px;
  }

  .page-logement .page-hero-copy h1 {
    max-width: 620px;
  }

  #app > .site.page-logement .section > .wrap {
    width: min(100% - 48px, 900px);
  }

  #app > .site.page-logement .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
    gap: 28px;
  }

  #app > .site.page-logement .section-head::after {
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  #app > .site.page-logement .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  #app > .site.page-logement .section-head::after {
    min-height: 210px;
    background-position: 50% 43%;
  }

  #app > .site.page-logement .volume-tab-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site.page-logement {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-logement .topbar,
  .page-logement .nav {
    height: 64px;
  }

  .page-logement .nav {
    padding-inline: 18px;
  }

  .page-logement .page-hero {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 50%, rgba(255, 255, 255, 0.6) 100%),
      url("./assets/pages/04-logement/hero-remise-cles-appartement-suisse-v1.webp");
    background-position: 64% top;
    background-size: auto 390px;
    background-repeat: no-repeat;
  }

  .page-logement .page-hero::after {
    content: "";
    position: absolute;
    inset: 250px 0 auto;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
  }

  .page-logement .page-hero-inner {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
  }

  .page-logement .page-hero-copy {
    width: 100%;
    padding: 24px 0 28px;
  }

  .page-logement .page-hero-copy h1 {
    max-width: 310px;
    margin: 10px 0 14px;
  }

  .page-logement .page-hero .lead {
    max-width: 320px;
    line-height: 1.45;
  }

  .page-logement .inline-actions {
    margin-top: 18px;
  }

  .page-logement .guide-preview {
    margin-top: 24px;
  }

  .page-logement .preview-row {
    min-height: 50px;
  }

  #app > .site.page-logement .section > .wrap {
    width: calc(100% - 28px);
  }

  #app > .site.page-logement .section-head {
    margin-bottom: 22px;
    gap: 18px;
  }

  #app > .site.page-logement .section-head p {
    font-size: 14px;
    line-height: 1.55;
  }

  #app > .site.page-logement .section-head::after {
    min-height: 164px;
    border-radius: 10px;
  }

  #app > .site.page-logement .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    gap: 12px !important;
    grid-auto-columns: calc(100% - 30px) !important;
  }

  #app > .site.page-logement .volume-tab-grid.mobile-card-carousel.is-carousel-active > .volume-tab-card {
    min-height: 0;
    padding: 20px 18px;
    gap: 14px;
  }

  #app > .site.page-logement .volume-tab-head h3 {
    font-size: 19px !important;
  }

  #app > .site.page-logement :is(.volume-tab-copy p, .volume-tab-card .check-list li) {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Automobile — fiche pratique alignée sur l’accueil, avec cartes dédiées. */
body:has(.site.page-automobile) {
  background: var(--surface-base);
}

.site.page-automobile {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-automobile .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-automobile .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-automobile .menu-link,
.page-automobile .mega-trigger {
  min-height: 78px;
}

.page-automobile .menu-link::after,
.page-automobile .mega-trigger::after {
  bottom: 0;
  height: 2px;
}

.page-automobile .page-hero {
  position: relative;
  width: 100%;
  margin: 0;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--surface-base);
}

.page-automobile .page-hero-inner {
  position: relative;
  min-height: 486px;
  display: block;
  isolation: isolate;
}

.page-automobile .page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1328px, calc(100% - 64px));
  min-height: 486px;
  margin-inline: auto;
  padding: 38px 0 36px;
  align-items: flex-start;
}

.page-automobile .page-hero-copy > * {
  max-width: 720px;
}

.page-automobile .page-hero-copy .hero-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-automobile .page-hero-copy h1 {
  max-width: 680px;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}

.page-automobile .page-hero-copy .lead {
  max-width: 650px;
  margin: 0;
  color: #233d65;
  font-size: 17px;
  line-height: 1.52;
}

.page-automobile .page-hero-copy .inline-actions {
  max-width: 720px;
  margin-top: 22px;
  flex-wrap: nowrap;
}

.page-automobile .page-hero-copy .inline-actions .btn {
  min-height: 46px;
}

.page-automobile .guide-preview {
  max-width: 570px;
  margin-top: 24px;
}

.page-automobile .preview-row {
  min-height: 44px;
}

.page-automobile .page-hero-media {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface-base);
}

.page-automobile .page-hero-media::after {
  display: none;
}

.page-automobile .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 49%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 14%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 14%, #000 38%);
}

.page-automobile main > .section {
  padding-block: clamp(54px, 5vw, 72px);
  background: var(--surface-base);
}

.page-automobile main > .section .section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.page-automobile main > .section .section-head h2 {
  max-width: 760px;
}

.page-automobile main > .section .section-head p {
  max-width: 680px;
}

.page-automobile .volume-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  border-top: 0;
}

#app > .site.page-automobile main .volume-tab-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 26px 24px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #ddd9d2;
  border-radius: 11px;
  background: var(--surface-elevated);
  box-shadow: 0 12px 28px rgba(11, 32, 72, 0.055);
}

.page-automobile .volume-tab-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: var(--red);
}

.page-automobile .volume-tab-head {
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.page-automobile .volume-tab-head > span {
  width: 40px;
  height: 40px;
}

.page-automobile .volume-tab-head h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.page-automobile .volume-tab-copy,
.page-automobile .volume-tab-card .check-list,
.page-automobile .volume-tab-action {
  min-width: 0;
  grid-column: 1;
}

.page-automobile .volume-tab-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.page-automobile .volume-tab-copy p {
  margin: 0;
  color: #536176;
  font-size: 15px;
  line-height: 1.55;
}

.page-automobile .volume-tab-card .check-list {
  align-content: start;
  gap: 10px;
}

.page-automobile .volume-tab-card .check-list li {
  color: #3f4959;
  font-size: 14px;
  line-height: 1.42;
}

.page-automobile .volume-tab-action {
  min-height: 46px;
  margin-top: auto;
  padding: 12px 0 0;
  align-self: end;
  border-top: 1px solid var(--line);
  color: var(--red-dark);
  font-size: 13px;
}

@media (min-width: 701px) and (max-width: 1279px) {
  .site.page-automobile {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-automobile .nav {
    padding-inline: 26px;
  }

  #app > .site.page-automobile .unified-responsive-hero,
  #app > .site.page-automobile .unified-responsive-hero-copy {
    min-height: 500px;
  }

  #app > .site.page-automobile .unified-responsive-hero-copy {
    width: min(100% - 48px, 900px);
    padding-block: 36px;
  }

  #app > .site.page-automobile .unified-responsive-hero-copy > * {
    max-width: min(650px, 72%);
  }

  #app > .site.page-automobile .unified-responsive-hero-media::after {
    display: block;
    background: linear-gradient(90deg, var(--surface-base) 0%, rgba(250, 249, 247, 0.97) 40%, rgba(250, 249, 247, 0.62) 67%, rgba(250, 249, 247, 0.06) 100%);
  }

  #app > .site.page-automobile .unified-responsive-hero-media img {
    object-position: 64% 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-automobile .page-hero-copy .inline-actions {
    flex-wrap: wrap;
  }

  .page-automobile .volume-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site.page-automobile {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-automobile .topbar,
  .page-automobile .nav {
    height: 64px;
  }

  .page-automobile .nav {
    padding-inline: 18px;
  }

  #app > .site.page-automobile .unified-responsive-hero {
    min-height: 0;
  }

  #app > .site.page-automobile .unified-responsive-hero-copy {
    width: calc(100% - 32px);
    min-height: 0;
    padding: 26px 0 28px;
    justify-content: flex-start;
  }

  #app > .site.page-automobile .unified-responsive-hero-copy > * {
    width: 100%;
    max-width: 100%;
  }

  #app > .site.page-automobile .unified-responsive-hero-media {
    opacity: 0.68;
  }

  #app > .site.page-automobile .unified-responsive-hero-media::after {
    display: block;
    background:
      linear-gradient(90deg, rgba(250, 249, 247, 0.98) 0%, rgba(250, 249, 247, 0.91) 56%, rgba(250, 249, 247, 0.36) 100%),
      linear-gradient(180deg, rgba(250, 249, 247, 0.04) 0%, rgba(250, 249, 247, 0.3) 48%, var(--surface-base) 100%);
  }

  #app > .site.page-automobile .unified-responsive-hero-media img {
    object-position: 67% 48%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-automobile .page-hero-copy .hero-kicker {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .page-automobile .page-hero-copy h1 {
    margin-bottom: 11px;
  }

  .page-automobile .page-hero-copy .lead {
    font-size: 16px;
    line-height: 1.48;
  }

  .page-automobile .page-hero-copy .inline-actions {
    width: 100%;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-automobile .page-hero-copy .inline-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .page-automobile .guide-preview {
    margin-top: 20px;
  }

  .page-automobile .preview-row {
    min-height: 42px;
  }

  .page-automobile main > .section {
    padding-block: 42px 38px;
  }

  .page-automobile main > .section .section-head {
    margin-bottom: 24px;
  }

  #app .page-automobile .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    grid-auto-columns: calc(100% - 24px) !important;
    gap: 12px !important;
  }

  #app > .site.page-automobile main .volume-tab-grid.mobile-card-carousel.is-carousel-active > .volume-tab-card {
    min-height: 610px;
    padding: 22px 18px 18px;
    gap: 16px;
  }

  .page-automobile .volume-tab-head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .page-automobile .volume-tab-head > span {
    width: 36px;
    height: 36px;
  }

  .page-automobile .volume-tab-copy p {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-automobile .volume-tab-card .check-list li {
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  .page-automobile .nav {
    padding-inline: 14px;
  }

  #app > .site.page-automobile .unified-responsive-hero-copy {
    width: calc(100% - 28px);
  }

  #app > .site.page-automobile main .volume-tab-grid.mobile-card-carousel.is-carousel-active > .volume-tab-card {
    min-height: 640px;
    padding-inline: 16px;
  }
}

/* Aides et démarches — composition locale, sans modification des composants partagés. */
#app > .site.page-aides {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  color: #0a2554;
  background: #fffefa;
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
  font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-aides .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: #fffefa;
  backdrop-filter: none;
}

.page-aides .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: #fffefa;
  box-shadow: none;
}

.page-aides .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.page-aides .brand-text {
  color: #0a2554;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-aides .brand-text > span:last-child {
  color: #56647b;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.page-aides .menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-aides .menu-link {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.page-aides .menu-link::after {
  bottom: 0;
  height: 2px;
  background: #0c2857;
}

.page-aides .menu-link:hover,
.page-aides .menu-link.active {
  color: #0c2857;
}

.page-aides .search-button {
  display: none;
}

.page-aides .nav-actions .btn-primary {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 7px;
  background: #e10d13;
  font-size: 14px;
}

.page-aides .nav-actions .btn-primary svg {
  display: none;
}

.page-aides .aides-page {
  min-height: 0;
  color: #0a2554;
  background: #fffefa;
}

#app > .site.page-aides .aides-hero.page-hero {
  position: relative;
  width: 100%;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: #fffefa;
}

#app > .site.page-aides .aides-hero .page-hero-inner {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: block;
}

#app > .site.page-aides .aides-hero .page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1328px, calc(100% - 64px));
  max-width: none;
  min-height: 460px;
  margin-inline: auto;
  padding: 34px 0 30px;
  justify-content: center;
  background: transparent;
}

.page-aides .aides-hero .hero-kicker {
  max-width: 680px;
  margin-bottom: 0;
  color: #df1118;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

#app > .site.page-aides .aides-hero .page-hero-copy h1 {
  max-width: 680px;
  margin: 12px 0;
  color: #0a2554;
  text-wrap: balance;
}

.page-aides .aides-hero .lead {
  max-width: 660px;
  margin: 0;
  color: #233d65;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.page-aides .aides-hero .inline-actions {
  max-width: 680px;
  margin-top: 22px;
}

#app > .site.page-aides .aides-hero .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fffefa;
}

#app > .site.page-aides .aides-hero .page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #fffefa 0%, rgba(255, 254, 250, 0.98) 31%, rgba(255, 254, 250, 0.84) 49%, rgba(255, 254, 250, 0.08) 77%);
  pointer-events: none;
}

#app > .site.page-aides .aides-hero .page-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 62% 50%;
}

.page-aides .aides-page > .section {
  padding: clamp(48px, 5.5vw, 74px) 0 clamp(58px, 6.5vw, 88px);
  background: #fffefa;
}

.page-aides .aides-page > .section > .wrap {
  width: min(1240px, calc(100% - 64px));
}

#app > .site.page-aides .aides-page .section-head {
  max-width: none;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  align-items: stretch;
  gap: clamp(24px, 3.4vw, 48px);
}

.page-aides .aides-page .section-head > div {
  align-self: center;
}

.page-aides .aides-page .section-head::after {
  content: "";
  min-height: 230px;
  display: block;
  border: 1px solid #e2e6ec;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 254, 250, 0.08), rgba(255, 254, 250, 0.02)),
    url("./assets/story-cards/volume-aides-demarches-v1.webp") center 42% / cover no-repeat;
  box-shadow: 0 16px 38px rgba(17, 42, 82, 0.09);
}

.page-aides .aides-page .section-head h2 {
  max-width: 650px;
  margin: 9px 0 12px;
  color: #0a2554;
  text-wrap: balance;
}

.page-aides .aides-page .section-head p {
  max-width: 640px;
  margin: 0;
  color: #526079;
  font-size: 16px;
  line-height: 1.62;
}

#app > .site.page-aides .aides-page .volume-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 0;
}

#app > .site.page-aides .aides-page .volume-tab-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: start;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #dfe4eb;
  border-radius: 14px;
  background: #faf9f7;
  box-shadow: 0 10px 30px rgba(17, 42, 82, 0.055);
}

#app > .site.page-aides .aides-page .volume-tab-card > :is(
  .volume-tab-head,
  .volume-tab-copy,
  .check-list,
  .volume-tab-action
) {
  grid-column: 1;
}

#app > .site.page-aides .aides-page .volume-tab-card:nth-child(2),
#app > .site.page-aides .aides-page .volume-tab-card:nth-child(3) {
  background: #f7f6f3;
}

.page-aides .aides-page .volume-tab-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #df1118;
}

#app > .site.page-aides .aides-page .volume-tab-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.page-aides .aides-page .volume-tab-head > span {
  width: 44px;
  height: 44px;
  border-color: #df1118;
  color: #df1118;
  background: #fffefa;
  font-size: 12px;
  font-weight: 700;
}

#app > .site.page-aides .aides-page .volume-tab-head h3 {
  margin: 0;
  color: #0a2554;
  font-size: clamp(20px, 1.55vw, 23px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-aides .aides-page .volume-tab-copy {
  display: grid;
  align-content: start;
  gap: 11px;
}

.page-aides .aides-page .volume-tab-copy p {
  margin: 0;
  color: #44536b;
  font-size: 15px;
  line-height: 1.58;
}

#app > .site.page-aides .aides-page .check-list {
  align-content: start;
  gap: 10px;
}

#app > .site.page-aides .aides-page .check-list li {
  color: #37465e;
  font-size: 14px;
  line-height: 1.42;
}

.page-aides .aides-page .check-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #df1118;
}

#app > .site.page-aides .aides-page .volume-tab-action {
  min-height: 48px;
  margin-top: auto;
  padding-top: 14px;
  align-self: end;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #d9dfe8;
  color: #b80c12;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.page-aides .aides-page .volume-tab-action svg {
  width: 18px;
  height: 18px;
  order: 2;
  flex: 0 0 18px;
}

.page-aides .aides-page .volume-tab-action > span {
  order: 1;
}

.page-aides .aides-page .volume-tab-action:hover {
  color: #0a2554;
}

@media (max-width: 1050px) {
  #app > .site.page-aides {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-aides .nav {
    padding-inline: 26px;
  }

  .page-aides .menu,
  .page-aides .nav-actions .btn-primary {
    display: none;
  }

  .page-aides .burger {
    display: grid;
  }

  .page-aides .nav-actions {
    margin-left: auto;
  }

  #app > .site.page-aides .aides-hero .page-hero-copy {
    width: min(100% - 48px, 900px);
  }

  #app > .site.page-aides .aides-hero .page-hero-media::after {
    background: linear-gradient(90deg, #fffefa 0%, rgba(255, 254, 250, 0.97) 42%, rgba(255, 254, 250, 0.38) 80%);
  }

  #app > .site.page-aides .aides-hero .page-hero-media img {
    object-position: 60% center;
  }

  .page-aides .aides-page > .section > .wrap {
    width: min(100% - 48px, 960px);
  }

  #app > .site.page-aides .aides-page .section-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 28px;
  }

  .page-aides .aides-page .section-head::after {
    min-height: 210px;
  }

  #app > .site.page-aides .aides-page .volume-tab-grid {
    gap: 14px;
  }

  #app > .site.page-aides .aides-page .volume-tab-card {
    min-height: 0;
    padding: 24px;
  }
}

@media (max-width: 820px) {
  #app > .site.page-aides .aides-page .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 0.9fr);
    gap: 22px;
  }

  .page-aides .aides-page .section-head::after {
    min-height: 190px;
  }

  #app > .site.page-aides .aides-page .volume-tab-card {
    min-height: 0;
    padding: 22px;
  }
}

@media (max-width: 700px) {
  #app > .site.page-aides {
    width: calc(100% - 12px);
    margin: 6px auto;
    border-radius: 12px;
  }

  .page-aides .topbar,
  .page-aides .nav {
    height: 64px;
  }

  .page-aides .nav {
    padding-inline: 16px;
  }

  .page-aides .brand {
    gap: 9px;
  }

  .page-aides .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .page-aides .brand-mark::before {
    width: 17px;
    height: 6px;
  }

  .page-aides .brand-mark::after {
    width: 6px;
    height: 17px;
  }

  .page-aides .brand-text {
    font-size: 11px;
  }

  .page-aides .brand-text > span:last-child {
    font-size: 8px;
  }

  .page-aides .burger {
    width: 44px;
    height: 44px;
  }

  #app > .site.page-aides .aides-hero .page-hero-inner,
  #app > .site.page-aides .aides-hero .page-hero-copy {
    min-height: 0;
  }

  #app > .site.page-aides .aides-hero .page-hero-copy {
    width: calc(100% - 32px);
    padding: 30px 0 34px;
    justify-content: flex-start;
  }

  .page-aides .aides-hero .hero-kicker {
    font-size: 10.5px;
  }

  #app > .site.page-aides .aides-hero .page-hero-copy h1 {
    max-width: 330px;
    margin: 10px 0 12px;
  }

  .page-aides .aides-hero .lead {
    max-width: 330px;
    font-size: 15px;
    line-height: 1.5;
  }

  .page-aides .aides-hero .inline-actions {
    width: 100%;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-aides .aides-hero .inline-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    text-align: left;
  }

  #app > .site.page-aides .aides-hero .page-hero-media {
    opacity: 0.68;
  }

  #app > .site.page-aides .aides-hero .page-hero-media::after {
    background:
      linear-gradient(90deg, rgba(255, 254, 250, 0.99) 0%, rgba(255, 254, 250, 0.92) 57%, rgba(255, 254, 250, 0.42) 100%),
      linear-gradient(180deg, rgba(255, 254, 250, 0.06) 0%, rgba(255, 254, 250, 0.18) 55%, #fffefa 100%);
  }

  #app > .site.page-aides .aides-hero .page-hero-media img {
    object-position: 63% center;
  }

  .page-aides .aides-page > .section {
    padding: 42px 0 54px;
  }

  .page-aides .aides-page > .section > .wrap {
    width: calc(100% - 32px);
  }

  #app > .site.page-aides .aides-page .section-head {
    margin-bottom: 22px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-aides .aides-page .section-head::after {
    min-height: 168px;
    grid-row: 1;
    border-radius: 11px;
    background-position: center 45%;
  }

  .page-aides .aides-page .section-head > div {
    grid-row: 2;
  }

  .page-aides .aides-page .section-head h2 {
    margin-top: 8px;
  }

  .page-aides .aides-page .section-head p {
    font-size: 15px;
    line-height: 1.55;
  }

  #app > .site.page-aides .aides-page .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    padding: 2px 2px 8px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 14px);
    gap: 12px;
    overflow-x: auto;
    border: 0;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #app > .site.page-aides .aides-page .volume-tab-grid.mobile-card-carousel.is-carousel-active::-webkit-scrollbar {
    display: none;
  }

  #app > .site.page-aides .aides-page .volume-tab-grid.mobile-card-carousel.is-carousel-active > .volume-tab-card {
    min-height: 0;
    padding: 22px 20px;
    scroll-snap-align: start;
  }

  .page-aides .aides-page .mobile-carousel-controls {
    margin-top: 14px;
  }

  .page-aides .aides-page .mobile-carousel-button {
    width: 44px;
    height: 44px;
  }

  #app > .site.page-aides .aides-page .volume-tab-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .page-aides .aides-page .volume-tab-head > span {
    width: 40px;
    height: 40px;
  }

  #app > .site.page-aides .aides-page .volume-tab-head h3 {
    font-size: 20px;
  }

  .page-aides .aides-page .volume-tab-copy p {
    font-size: 14px;
    line-height: 1.52;
  }

  #app > .site.page-aides .aides-page .check-list li {
    font-size: 13.5px;
  }
}

/* Travailler en Suisse — composition haute alignée sur la page Ressources. */
body:has(.page-vie-quotidienne) {
  background: var(--surface-base);
}

.site.page-vie-quotidienne {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-vie-quotidienne .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-vie-quotidienne .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-vie-quotidienne .menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-vie-quotidienne .menu-link {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-vie-quotidienne .menu-link::after {
  bottom: 0;
  height: 2px;
  background: #0c2857;
}

.page-vie-quotidienne .menu-link:hover,
.page-vie-quotidienne .menu-link.active {
  color: #0c2857;
}

.page-vie-quotidienne .nav-item:has(#journey-mega) > .menu-link.active::after {
  transform: scaleX(0);
}

.page-vie-quotidienne .search-button {
  display: none;
}

.page-vie-quotidienne .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: #e10d13;
  font-size: 14px;
}

.page-vie-quotidienne .nav-actions .btn-primary svg {
  display: none;
}

.page-work .wrap {
  width: min(1328px, calc(100% - 64px));
}

.work-hero {
  width: 100%;
  min-height: 520px;
  margin: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.62fr);
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  box-shadow: none;
}

.work-hero::after {
  background:
    linear-gradient(to bottom, transparent 78%, #fff 100%),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.96) 36%,
      rgba(255, 255, 255, 0.84) 48%,
      rgba(255, 255, 255, 0.72) 58%,
      rgba(255, 255, 255, 0.4) 62%,
      rgba(255, 255, 255, 0.14) 64%,
      transparent 66%
    );
}

.work-hero-visual {
  position: absolute;
  inset: 0;
  background: url("./assets/pages/09-travailler-en-suisse/hero-collaboration-travail-suisse-v2.webp") center 49% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.work-hero-copy {
  padding: 28px 32px 32px 40px;
}

.work-breadcrumb {
  margin-bottom: 20px;
}

.work-help-card {
  margin: 0 40px 28px 18px;
}

@media (max-width: 1050px) {
  .site.page-vie-quotidienne {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-vie-quotidienne .nav {
    padding-inline: 26px;
  }

  .page-vie-quotidienne .menu,
  .page-vie-quotidienne .nav-actions .btn-primary {
    display: none;
  }

  .page-vie-quotidienne .burger {
    display: grid;
  }

  .page-vie-quotidienne .nav-actions {
    margin-left: auto;
  }

  .page-work .wrap {
    width: min(100% - 48px, 900px);
  }
}

@media (max-width: 900px) {
  .work-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .work-hero::after {
    display: none;
  }

  .work-hero-copy {
    grid-row: 1;
    padding: 30px 32px 20px;
  }

  .work-hero-visual {
    position: relative;
    inset: auto;
    grid-row: 2;
    height: 280px;
    background-position: center 49%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 100%);
  }

  .work-help-card {
    grid-row: 3;
    margin: -44px 32px 28px;
  }
}

@media (max-width: 620px) {
  .site.page-vie-quotidienne {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-vie-quotidienne .topbar,
  .page-vie-quotidienne .nav {
    height: 64px;
  }

  .page-vie-quotidienne .nav {
    padding-inline: 18px;
  }

  .page-vie-quotidienne .burger {
    width: 38px;
    height: 38px;
  }

  .page-work .wrap {
    width: calc(100% - 32px);
  }

  .work-hero-copy {
    padding: 24px 16px 16px;
  }

  .work-hero-visual {
    height: 230px;
  }

  .work-help-card {
    margin: -34px 12px 20px;
  }
}

/* Permis et démarches — continuité visuelle du haut de page Ressources */
body:has(.site.page-permis) {
  background: var(--surface-base);
}

.site.page-permis {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-permis .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-permis .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-permis .menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-permis :is(.menu-link, .mega-trigger) {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-permis :is(.menu-link, .mega-trigger)::after {
  bottom: 0;
  height: 2px;
}

.page-permis .search-button {
  display: none;
}

.page-permis .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
}

.page-permis .nav-actions .btn-primary svg {
  display: none;
}

.site.page-permis > .page {
  min-height: 0;
  background: var(--surface-elevated);
}

.page-permis .page-hero {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--surface-elevated);
}

.page-permis .page-hero-inner {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 540px;
  margin: 0;
  padding: 0 46px;
  display: block;
}

.page-permis .page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(55%, 680px);
  min-height: 540px;
  padding: 46px 0 38px;
  justify-content: center;
}

.page-permis .page-hero-copy h1 {
  max-width: 620px;
  margin: 16px 0 18px;
  text-wrap: balance;
}

.page-permis .page-hero .lead {
  max-width: 600px;
  color: #233d65;
  font-weight: 520;
}

.page-permis .page-hero .inline-actions,
.page-permis .guide-preview {
  max-width: 610px;
}

.page-permis .guide-preview {
  margin-top: 26px;
  padding-right: 20px;
}

.page-permis .page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}

.page-permis .page-hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      #fffefa 0%,
      rgba(255, 254, 250, 0.99) 34%,
      rgba(255, 254, 250, 0.86) 49%,
      rgba(255, 254, 250, 0.2) 72%,
      rgba(255, 254, 250, 0.02) 100%
    );
}

.page-permis .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 71% 48%;
}

.page-permis > .page > .section {
  background:
    radial-gradient(circle at 90% 8%, rgba(227, 6, 19, 0.045), transparent 26%),
    #f8f7f4;
}

.page-permis > .page > .section .wrap {
  width: min(1280px, calc(100% - 64px));
}

.page-permis > .page > .section .section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.page-permis > .page > .section .section-head h2 {
  max-width: 760px;
  margin-top: 9px;
  font-size: clamp(34px, 3.1vw, 44px);
  line-height: 1.1;
  text-wrap: balance;
}

.page-permis > .page > .section .section-head p {
  max-width: 720px;
  color: #4d5d74;
  font-size: 16px;
  line-height: 1.65;
}

.page-permis .volume-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  border-top: 0;
}

.page-permis .volume-tab-card {
  position: relative;
  min-height: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 0.42fr);
  grid-template-areas:
    "head visual"
    "copy visual"
    "list visual";
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 16px 20px;
  overflow: hidden;
  border: 1px solid #dedbd5;
  border-top: 3px solid #e30613;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 40, 87, 0.075);
}

.page-permis .volume-tab-card::before {
  min-width: 0;
  min-height: 100%;
  grid-area: visual;
  border-radius: 9px;
  background-color: #ece8e1;
  background-image:
    linear-gradient(180deg, rgba(8, 30, 68, 0.02), rgba(8, 30, 68, 0.22)),
    url("./assets/story-cards/volume-permis-sejour-v1.webp");
  background-position: center;
  background-size: cover;
  content: "";
}

.page-permis .volume-tab-card:nth-child(2)::before {
  background-image:
    linear-gradient(180deg, rgba(8, 30, 68, 0.02), rgba(8, 30, 68, 0.22)),
    url("./assets/pages/07-permis/hero-administration-communale-v2.webp");
  background-position: 64% center;
}

.page-permis .volume-tab-card:nth-child(3)::before {
  background-image:
    linear-gradient(180deg, rgba(8, 30, 68, 0.02), rgba(8, 30, 68, 0.22)),
    url("./assets/story-cards/profile-installation-suisse-v1.webp");
  background-position: 52% center;
}

.page-permis .volume-tab-head {
  grid-area: head;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.page-permis .volume-tab-head > span {
  width: 38px;
  height: 38px;
  background: #fff7f7;
}

.page-permis .volume-tab-head h3 {
  margin-top: 1px;
  font-size: clamp(20px, 1.65vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-permis .volume-tab-copy {
  min-width: 0;
  grid-area: copy;
}

.page-permis .volume-tab-copy p {
  color: #536176;
  font-size: 14px;
  line-height: 1.55;
}

.page-permis .volume-tab-card .check-list {
  grid-area: list;
  gap: 7px;
}

.page-permis .volume-tab-card .check-list li {
  color: #34435a;
  font-size: 13px;
  line-height: 1.4;
}

.page-permis .volume-tab-action {
  width: fit-content;
  min-height: 42px;
  padding: 0 13px;
  grid-area: action;
  justify-content: flex-start;
  border: 1px solid rgba(185, 5, 16, 0.28);
  border-radius: 7px;
  background: #fff;
  color: #b90510;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.page-permis .volume-tab-action:hover,
.page-permis .volume-tab-action:focus-visible {
  border-color: #b90510;
  color: #fff;
  background: #b90510;
  outline: 0;
  transform: translateY(-1px);
}

@media (max-width: 1050px) {
  .site.page-permis {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-permis .nav {
    padding-inline: 26px;
  }

  .page-permis .nav-actions {
    margin-left: auto;
  }

  .page-permis .page-hero-inner {
    min-height: 540px;
    padding-inline: 26px;
  }

  .page-permis .page-hero-copy {
    width: min(77%, 660px);
    min-height: 540px;
    padding-block: 38px 34px;
  }

  .page-permis .page-hero-media {
    left: 26%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.62) 48%, #000 72%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.62) 48%, #000 72%);
  }

  .page-permis > .page > .section .wrap {
    width: min(100% - 48px, 960px);
  }

  .page-permis .volume-tab-grid {
    grid-template-columns: 1fr;
  }

  .page-permis .volume-tab-card {
    min-height: 350px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.38fr);
  }
}

@media (max-width: 620px) {
  .site.page-permis {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-permis .topbar,
  .page-permis .nav {
    height: 64px;
  }

  .page-permis .nav {
    padding-inline: 18px;
  }

  .page-permis .burger {
    width: 38px;
    height: 38px;
  }

  .page-permis .page-hero-inner {
    min-height: 520px;
    padding-inline: 16px;
  }

  .page-permis .page-hero-copy {
    width: 100%;
    min-height: 520px;
    padding: 24px 0 22px;
    justify-content: flex-start;
  }

  .page-permis .page-hero-copy h1 {
    max-width: 100%;
    margin: 12px 0 12px;
  }

  .page-permis .page-hero .lead {
    max-width: 310px;
  }

  .page-permis .page-hero .inline-actions {
    max-width: 100%;
    margin-top: 16px;
  }

  .page-permis .guide-preview {
    max-width: 100%;
    margin-top: 22px;
    padding-right: 0;
  }

  .page-permis .page-hero-media {
    inset: 0 0 auto 18%;
    height: 300px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0.48) 70%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0.48) 70%, #000 100%);
  }

  .page-permis .page-hero-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 68%, #fff 100%);
    pointer-events: none;
    content: "";
  }

  .page-permis .page-hero-media img {
    object-position: 54% 50%;
  }

  .page-permis > .page > .section .wrap {
    width: calc(100% - 24px);
  }

  .page-permis > .page > .section .section-head {
    margin-bottom: 26px;
  }

  .page-permis > .page > .section .section-head h2 {
    font-size: clamp(28px, 8.7vw, 33px);
  }

  .page-permis .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    grid-auto-columns: calc(100% - 34px) !important;
    gap: 12px !important;
  }

  .page-permis .volume-tab-grid.mobile-card-carousel.is-carousel-active > .volume-tab-card {
    min-height: 0;
    padding: 16px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "head"
      "copy"
      "list";
    grid-template-rows: 148px auto auto auto;
    gap: 16px;
  }

  .page-permis .volume-tab-card::before {
    min-height: 148px;
  }

  .page-permis .volume-tab-head h3 {
    font-size: 20px;
  }

  .page-permis .volume-tab-action {
    width: 100%;
  }
}

/* Prévoyance — continuité visuelle du haut de page Ressources */
body:has(.page-prevoyance) {
  background: var(--surface-base);
}

.site.page-prevoyance {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-prevoyance .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-prevoyance .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-prevoyance .menu {
  gap: clamp(20px, 2.3vw, 38px);
}

.page-prevoyance .menu-link {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-prevoyance .menu-link::after {
  bottom: 0;
  height: 2px;
}

.page-prevoyance .search-button {
  display: none;
}

.page-prevoyance .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
}

.page-prevoyance .nav-actions .btn-primary svg {
  display: none;
}

.page-prevoyance .page {
  min-height: 0;
  background: var(--surface-elevated);
}

.page-prevoyance .page-hero {
  position: relative;
  width: 100%;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--surface-elevated);
}

.page-prevoyance .page-hero-inner {
  position: relative;
  min-height: 460px;
  display: block;
}

.page-prevoyance .page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1328px, calc(100% - 64px));
  min-height: 460px;
  margin-inline: auto;
  padding: 32px 0 26px;
  align-items: flex-start;
}

.page-prevoyance .page-hero-copy :is(h1, .lead, .inline-actions, .guide-preview) {
  width: min(650px, 54%);
}

.page-prevoyance .page-hero-copy h1 {
  max-width: 650px;
  margin: 12px 0 16px;
}

.page-prevoyance .page-hero-copy .lead {
  margin-bottom: 0;
}

.page-prevoyance .page-hero-copy .inline-actions {
  margin-top: 20px;
}

.page-prevoyance .page-hero-copy .guide-preview {
  margin-top: 18px;
}

.page-prevoyance .page-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 64%;
  height: 100%;
  min-height: 0;
  background: url("./assets/pages/07-prevoyance/hero-conseil-prevoyance-suisse-v2.webp") center 49% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 17%, rgba(0, 0, 0, 0.72) 36%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 17%, rgba(0, 0, 0, 0.72) 36%, #000 52%);
}

.page-prevoyance .page-hero-media img {
  display: none;
}

.page-prevoyance main > .section {
  background: var(--surface-base);
}

.page-prevoyance main > .section > .wrap {
  width: min(1328px, calc(100% - 64px));
}

.page-prevoyance main > .section .section-head {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 270px;
  margin-bottom: 30px;
  padding: clamp(28px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.7fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  background: var(--surface-soft);
  box-shadow: 0 14px 34px rgba(23, 43, 78, 0.07);
}

.page-prevoyance main > .section .section-head > div {
  align-self: center;
}

.page-prevoyance main > .section .section-head h2 {
  max-width: 620px;
  margin-top: 10px;
  text-wrap: balance;
}

.page-prevoyance main > .section .section-head p {
  max-width: 620px;
  margin-top: 14px;
  color: #5f6f86;
  font-size: 16px;
  line-height: 1.55;
}

.page-prevoyance main > .section .section-head::after {
  min-height: 210px;
  border-radius: 12px;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 32, 70, 0.02), rgba(8, 32, 70, 0.16)),
    url("./assets/story-cards/volume-prevoyance-v1.webp") center 43% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.page-prevoyance .volume-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.page-prevoyance .volume-tab-card {
  position: relative;
  min-height: 0;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: var(--surface-elevated);
  box-shadow: 0 10px 26px rgba(23, 43, 78, 0.065);
  scroll-margin-top: 104px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.page-prevoyance .volume-tab-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: var(--red);
}

.page-prevoyance .volume-tab-card:hover,
.page-prevoyance .volume-tab-card:focus-within {
  border-color: color-mix(in srgb, var(--red) 34%, #dfe3e8);
  box-shadow: 0 16px 34px rgba(23, 43, 78, 0.1);
  transform: translateY(-2px);
}

.page-prevoyance .volume-tab-head {
  min-height: 48px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.page-prevoyance .volume-tab-head > span {
  width: 38px;
  height: 38px;
  background: #fff;
}

.page-prevoyance .volume-tab-head h3 {
  margin: 0;
  color: #0c2857;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-prevoyance .volume-tab-copy {
  display: grid;
  gap: 12px;
}

.page-prevoyance .volume-tab-copy p {
  margin: 0;
  color: #5f6f86;
  line-height: 1.55;
}

.page-prevoyance .volume-tab-card .check-list {
  gap: 10px;
}

.page-prevoyance .volume-tab-card .check-list li {
  color: #394a61;
  line-height: 1.42;
}

.page-prevoyance .volume-tab-card .check-list svg {
  flex: 0 0 17px;
}

.page-prevoyance .volume-tab-action {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e5e8ec;
}

@media (max-width: 1050px) {
  .site.page-prevoyance {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-prevoyance .nav {
    padding-inline: 26px;
  }

  .page-prevoyance .menu,
  .page-prevoyance .nav-actions .btn-primary {
    display: none;
  }

  .page-prevoyance .burger {
    display: grid;
  }

  .page-prevoyance .nav-actions {
    margin-left: auto;
  }

  .page-prevoyance .page-hero,
  .page-prevoyance .page-hero-inner,
  .page-prevoyance .page-hero-copy {
    min-height: 470px;
  }

  .page-prevoyance .page-hero-copy {
    width: min(100% - 48px, 900px);
    padding: 34px 0 28px;
  }

  .page-prevoyance .page-hero-copy :is(h1, .lead, .inline-actions, .guide-preview) {
    width: min(620px, 84%);
  }

  .page-prevoyance .page-hero-media {
    width: 76%;
    background-position: 62% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.18) 39%, rgba(0, 0, 0, 0.7) 72%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.18) 39%, rgba(0, 0, 0, 0.7) 72%, #000 100%);
  }
}

@media (max-width: 1179px) {
  .page-prevoyance .volume-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page-prevoyance .volume-tab-card {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .page-prevoyance main > .section > .wrap {
    width: min(100% - 48px, 900px);
  }

  .page-prevoyance main > .section .section-head {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-prevoyance main > .section .section-head::after {
    min-height: 210px;
    background-position: center 38%;
  }
}

@media (max-width: 620px) {
  .site.page-prevoyance {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-prevoyance .topbar,
  .page-prevoyance .nav {
    height: 64px;
  }

  .page-prevoyance .nav {
    padding-inline: 18px;
  }

  .page-prevoyance .burger {
    width: 38px;
    height: 38px;
  }

  .page-prevoyance .page-hero,
  .page-prevoyance .page-hero-inner,
  .page-prevoyance .page-hero-copy {
    min-height: 0;
  }

  .page-prevoyance .page-hero-copy {
    width: calc(100% - 32px);
    padding: 24px 0 26px;
  }

  .page-prevoyance .page-hero-copy :is(h1, .lead, .inline-actions, .guide-preview) {
    width: 100%;
    max-width: 100%;
  }

  .page-prevoyance .page-hero-copy h1 {
    max-width: 320px;
    margin: 14px 0 14px;
  }

  .page-prevoyance .page-hero-copy .lead {
    font-size: 16px;
    line-height: 1.45;
  }

  .page-prevoyance .page-hero-copy .inline-actions {
    margin-top: 18px;
  }

  .page-prevoyance .page-hero-copy .guide-preview {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 30px 18px rgba(255, 255, 255, 0.74);
  }

  .page-prevoyance .page-hero-media {
    width: 100%;
    background-position: 68% center;
    -webkit-mask-image: linear-gradient(145deg, transparent 0%, transparent 49%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.58) 82%, #000 100%);
    mask-image: linear-gradient(145deg, transparent 0%, transparent 49%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.58) 82%, #000 100%);
  }

  .page-prevoyance main > .section > .wrap {
    width: calc(100% - 32px);
  }

  .page-prevoyance main > .section .section-head {
    margin-bottom: 24px;
    padding: 22px 20px;
    gap: 20px;
    border-radius: 13px;
  }

  .page-prevoyance main > .section .section-head p {
    margin-top: 12px;
    font-size: 15px;
  }

  .page-prevoyance main > .section .section-head::after {
    min-height: 170px;
    border-radius: 9px;
  }

  .page-prevoyance .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    grid-auto-columns: min(330px, calc(100% - 34px)) !important;
  }

  .page-prevoyance .volume-tab-card,
  .page-prevoyance .volume-tab-grid.mobile-card-carousel.is-carousel-active > .volume-tab-card {
    min-height: 0;
    padding: 21px 18px 18px;
    gap: 16px;
    border-radius: 12px;
  }

  .page-prevoyance .volume-tab-card:hover,
  .page-prevoyance .volume-tab-card:focus-within {
    transform: none;
  }
}

@media (max-width: 360px) {
  .page-prevoyance .volume-tab-grid.mobile-card-carousel.is-carousel-active {
    grid-auto-columns: calc(100% - 14px) !important;
  }

  .page-prevoyance main > .section .section-head {
    padding-inline: 17px;
  }

  .page-prevoyance main > .section .section-head::after {
    min-height: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-prevoyance .volume-tab-card {
    transition: none;
  }
}

/* FAQ — haut de page aligné sur la composition premium de Ressources. */
body:has(.page-faq) {
  background: var(--surface-base);
}

.site.page-faq {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
  font-family: "Montserrat", sans-serif;
}

.page-faq .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-faq .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-faq .menu-link {
  min-height: 78px;
  color: #0c2857;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.page-faq .menu-link::after {
  bottom: 0;
  height: 2px;
  background: #0c2857;
}

.page-faq .menu-link:hover,
.page-faq .menu-link.active {
  color: #0c2857;
}

.page-faq .search-button {
  display: none;
}

.page-faq .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: #e10d13;
  font-size: 14px;
}

.page-faq .nav-actions .btn-primary svg {
  display: none;
}

.page-faq .faq-page {
  color: #0a2554;
  background: var(--surface-elevated);
}

.page-faq .faq-hero {
  position: relative;
  width: 100%;
  min-height: 348px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, #fffefa 0%, rgba(255, 254, 250, 0.98) 29%, rgba(255, 254, 250, 0.84) 49%, rgba(255, 254, 250, 0.18) 76%), url("./assets/editorial-human-swiss/guide-pratique-couple-lecture-suisse-v1.webp");
  background-position: 74% 50%;
  background-size: cover;
}

.page-faq .faq-hero-inner {
  width: min(1328px, calc(100% - 64px));
  margin-inline: auto;
  padding: 32px 0 20px;
}

.page-faq .faq-hero-copy {
  position: relative;
  z-index: 1;
  width: auto;
  min-height: 0;
  max-width: 690px;
  padding: 0;
  display: block;
}

.page-faq .faq-hero-copy .section-label {
  display: block;
  margin-bottom: 12px;
  color: #df1118;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-faq .faq-hero-copy h1 {
  max-width: 690px;
  margin: 0 0 12px;
  color: #0a2554;
  font-family: "Montserrat", sans-serif;
  hyphens: none;
  text-wrap: balance;
  word-break: normal;
}

.page-faq .faq-hero-copy .lead {
  max-width: 620px;
  margin: 0;
  color: #233d65;
  font-size: 17px;
  font-weight: 520;
  line-height: 1.5;
}

.page-faq .faq-search-shell {
  width: min(720px, 100%);
  min-height: 52px;
  margin-top: 22px;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 0;
  overflow: hidden;
  border-color: #d6dce5;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 16px rgba(12, 40, 87, 0.07);
}

.page-faq .faq-search-shell > svg {
  grid-column: 2;
  grid-row: 1;
  width: 19px;
  height: 19px;
  margin: 0;
  place-self: center;
  color: #0a2554;
}

.page-faq .faq-search-shell input {
  grid-column: 1;
  grid-row: 1;
  height: 50px;
  padding: 0 18px;
  color: #0a2554;
  font-size: 14px;
}

.page-faq .faq-search-shell input::placeholder {
  color: #748197;
}

.page-faq .faq-category-row {
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 9px;
}

.page-faq .faq-category-tab {
  min-height: 37px;
  padding: 0 14px;
  border-color: #dce1e8;
  border-radius: 6px;
  color: #0a2554;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.page-faq .faq-category-tab:hover,
.page-faq .faq-category-tab.active {
  color: #fff;
  border-color: #0a2c60;
  background: #0a2c60;
}

.page-faq .faq-category-select {
  width: min(420px, 100%);
  margin-top: 14px;
  display: none;
  gap: 7px;
}

.page-faq .faq-category-select label {
  color: #0a2554;
  font-size: 12px;
  line-height: 1.3;
}

.page-faq .faq-category-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #cbd3df;
  border-radius: 7px;
  color: #0a2554;
  background-color: rgba(255, 255, 255, 0.97);
  font-size: 16px;
  box-shadow: 0 5px 16px rgba(12, 40, 87, 0.07);
}

.page-faq .faq-directory-section {
  padding: 0 0 48px;
  background: var(--surface-base);
}

.page-faq .faq-directory-head {
  margin-top: 42px;
}

.page-faq .faq-answer-item h3 {
  margin: 0 0 8px;
  color: #0a2554;
  overflow-wrap: anywhere;
}

.page-faq :is(
  .faq-category-tab,
  .faq-category-select select,
  .faq-open-all,
  .faq-question,
  .faq-quick-links a,
  .faq-help-panel .btn
):focus-visible {
  outline: 3px solid #b42318;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .site.page-faq {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-faq .nav {
    padding-inline: 26px;
  }

  .page-faq .menu,
  .page-faq .nav-actions .btn-primary {
    display: none;
  }

  .page-faq .burger {
    display: grid;
  }

  .page-faq .nav-actions {
    margin-left: auto;
  }

  .page-faq .faq-hero {
    min-height: 375px;
    background-image: linear-gradient(90deg, #fffefa 0%, rgba(255, 254, 250, 0.97) 44%, rgba(255, 254, 250, 0.54) 78%), url("./assets/editorial-human-swiss/guide-pratique-couple-lecture-suisse-v1.webp");
    background-position: 68% center;
  }

  .page-faq .faq-hero-inner {
    width: min(100% - 48px, 900px);
  }

  .page-faq .faq-hero-copy {
    max-width: 620px;
  }

  .page-faq .faq-category-row {
    padding-bottom: 0;
    flex-wrap: wrap;
    overflow: visible;
    scroll-snap-type: none;
  }

  .page-faq .faq-category-tab {
    flex: 0 1 auto;
    scroll-snap-align: none;
  }
}

@media (min-width: 1051px) and (max-width: 1280px) {
  .page-faq .faq-category-row {
    padding-bottom: 0;
    flex-wrap: wrap;
    overflow: visible;
    scroll-snap-type: none;
  }

  .page-faq .faq-category-tab {
    flex: 0 1 auto;
    scroll-snap-align: none;
  }
}

@media (max-width: 820px) {
  .page-faq .faq-category-row {
    display: none;
  }

  .page-faq .faq-category-select {
    display: grid;
  }
}

@media (max-width: 620px) {
  .site.page-faq {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-faq .topbar,
  .page-faq .nav {
    height: 64px;
  }

  .page-faq .nav {
    padding-inline: 18px;
  }

  .page-faq .brand {
    gap: 9px;
  }

  .page-faq .burger {
    width: 38px;
    height: 38px;
  }

  .page-faq .faq-hero {
    min-height: 390px;
    background-image: linear-gradient(90deg, rgba(255, 254, 250, 0.99) 0%, rgba(255, 254, 250, 0.95) 58%, rgba(255, 254, 250, 0.72) 100%), url("./assets/editorial-human-swiss/guide-pratique-couple-lecture-suisse-v1.webp");
    background-position: 69% center;
  }

  .page-faq .faq-hero-inner {
    width: calc(100% - 32px);
    padding: 24px 0 18px;
  }

  .page-faq .faq-hero-copy {
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 0;
  }

  .page-faq .faq-hero-copy .section-label {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .page-faq .faq-hero-copy h1 {
    max-width: 340px;
    margin-bottom: 10px;
  }

  .page-faq .faq-hero-copy .lead {
    max-width: 300px;
    font-size: 16px;
    line-height: 1.45;
  }

  .page-faq .faq-search-shell {
    min-height: 47px;
    height: 47px;
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .page-faq .faq-search-shell input {
    height: 45px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .page-faq .faq-category-row {
    margin-top: 12px;
    display: none;
    grid-template-columns: none;
    gap: 8px;
  }

  .page-faq .faq-category-tab,
  .page-faq .faq-category-tab:first-child {
    min-width: auto;
    min-height: 38px;
    padding: 0 12px;
    grid-column: auto;
    white-space: nowrap;
  }

  .page-faq .faq-category-select {
    width: 100%;
    margin-top: 14px;
    display: grid;
  }

  .page-faq .faq-directory-section {
    padding: 0 0 48px;
  }

  .page-faq .faq-directory-head {
    margin-top: 30px;
  }
}

@media (max-width: 360px) {
  .page-faq .faq-directory-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .page-faq .faq-directory-head h2 {
    max-width: none;
  }

  .page-faq .faq-directory-tools {
    justify-content: flex-end;
  }
}

/* Contact — continuité visuelle du haut de page Ressources */
body:has(.site.page-contact) {
  background: var(--surface-base);
}

.site.page-contact {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-contact .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-contact .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-contact .menu-link {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-contact .menu-link::after {
  bottom: 0;
  height: 2px;
  background: #0c2857;
}

.page-contact .menu-link:hover,
.page-contact .menu-link.active {
  color: #0c2857;
}

.page-contact .search-button {
  display: none;
}

.page-contact .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: #e10d13;
  font-size: 14px;
}

.page-contact .nav-actions .btn-primary svg {
  display: none;
}

.contact-hero {
  width: 100%;
  min-height: 330px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.contact-hero-media {
  left: 42%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 11%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 11%, #000 34%);
}

.contact-hero-media img {
  object-position: 57% center;
}

.contact-hero-shade {
  display: none;
}

.contact-hero-layout {
  width: min(1328px, calc(100% - 64px));
  min-height: 330px;
  margin-inline: auto;
  padding: 28px 0;
  grid-template-columns: minmax(0, 680px);
}

.contact-hero-copy {
  max-width: 730px;
}

.contact-breadcrumb {
  margin-bottom: 18px;
}

.site.page-contact .contact-hero h1 {
  max-width: 730px;
  font-size: var(--type-h1) !important;
  font-weight: var(--type-heading-weight) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance;
}

.site.page-contact .contact-faq-access h2 {
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
}

@media (max-width: 1050px) {
  .site.page-contact {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-contact .nav {
    padding-inline: 26px;
  }

  .page-contact .menu,
  .page-contact .nav-actions .btn-primary {
    display: none;
  }

  .page-contact .burger {
    display: grid;
  }

  .page-contact .nav-actions {
    margin-left: auto;
  }

  .contact-hero-layout {
    width: min(100% - 48px, 900px);
  }
}

@media (max-width: 900px) {
  .contact-hero,
  .contact-hero-layout {
    min-height: 320px;
  }

  .contact-hero-media {
    left: 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 40%, #000 85%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 40%, #000 85%);
  }

  .contact-hero-layout {
    padding: 28px 0;
    grid-template-columns: 1fr;
  }

  .contact-hero-copy {
    max-width: 640px;
  }

  .site.page-contact .contact-hero h1 {
    max-width: 640px;
  }
}

@media (max-width: 620px) {
  .site.page-contact {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-contact .topbar,
  .page-contact .nav {
    height: 64px;
  }

  .page-contact .nav {
    padding-inline: 18px;
  }

  .page-contact .burger {
    width: 38px;
    height: 38px;
  }

  .contact-hero {
    min-height: 350px;
    display: block;
  }

  .contact-hero-media {
    position: absolute;
    inset: 58% 0 0;
    height: auto;
    order: initial;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.14) 24%, #000 66%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.14) 24%, #000 66%);
  }

  .contact-hero-media img {
    object-position: 61% center;
  }

  .contact-hero-layout {
    width: calc(100% - 20px);
    min-height: 350px;
    padding: 24px 0 110px;
    display: block;
  }

  .contact-breadcrumb {
    margin-bottom: 17px;
  }

  .site.page-contact .contact-hero h1 {
    max-width: none;
    margin-bottom: 13px;
    font-size: 32px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    text-wrap: wrap;
  }

  .contact-hero .lead {
    max-width: 340px;
  }

  .site.page-contact .contact-faq-access h2 {
    font-size: 24px !important;
  }
}

/* Page 14 — haut de page aligné sur la composition blanche de Ressources */
body:has(.page-outils-pratiques) {
  background: var(--surface-base);
}

.site.page-outils-pratiques {
  width: min(1420px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto;
  overflow: clip;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: var(--surface-elevated);
  box-shadow: 0 18px 52px rgba(23, 43, 78, 0.08);
}

.page-outils-pratiques .topbar {
  position: relative;
  height: 78px;
  padding: 0;
  background: var(--surface-elevated);
  backdrop-filter: none;
}

.page-outils-pratiques .nav {
  width: 100%;
  height: 78px;
  padding: 0 34px;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: var(--surface-elevated);
  box-shadow: none;
}

.page-outils-pratiques .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.page-outils-pratiques .brand-text {
  color: #0a2554;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-outils-pratiques .brand-text > span:last-child {
  color: #56647b;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.page-outils-pratiques :is(.menu-link, .mega-trigger) {
  min-height: 78px;
  color: #0c2857;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page-outils-pratiques :is(.menu-link, .mega-trigger)::after {
  bottom: 0;
  height: 2px;
  background: #0c2857;
}

.page-outils-pratiques :is(.menu-link, .mega-trigger):hover,
.page-outils-pratiques :is(.menu-link, .mega-trigger).active,
.page-outils-pratiques .mega-root.is-active > .mega-trigger {
  color: #0c2857;
}

.page-outils-pratiques .search-button {
  display: none;
}

.page-outils-pratiques .nav-actions .btn-primary {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: #e10d13;
  font-size: 14px;
}

.page-outils-pratiques .nav-actions .btn-primary svg {
  display: none;
}

.page-outils-pratiques .tools-hero {
  width: 100%;
  min-height: 440px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e9ebef;
  border-radius: 0;
  background: var(--surface-elevated);
}

.page-outils-pratiques .tools-hero-image {
  background-color: var(--surface-elevated);
  background-position: center 52%;
  filter: saturate(0.88) contrast(0.96) brightness(1.05);
  transform: scale(1.01);
}

.page-outils-pratiques .tools-hero-fade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 77%, rgba(255, 255, 255, 0.82) 94%, #fff 100%),
    linear-gradient(90deg, #fff 0%, #fff 29%, rgba(255, 255, 255, 0.98) 38%, rgba(255, 255, 255, 0.82) 49%, rgba(255, 255, 255, 0.38) 61%, rgba(255, 255, 255, 0.06) 72%, transparent 78%);
}

.page-outils-pratiques .tools-hero-content {
  width: min(1328px, calc(100% - 64px));
  min-height: 440px;
  margin-inline: auto;
  padding: 26px 0 34px;
}

.page-outils-pratiques .tools-hero-copy {
  width: min(760px, 62%);
  margin-top: 34px;
}

.page-outils-pratiques .tools-hero h1 {
  max-width: 760px;
  margin: 12px 0 14px;
  line-height: 1.06 !important;
}

.page-outils-pratiques .tools-hero-copy > p {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.52;
}

.page-outils-pratiques .tools-library-section {
  padding-top: 32px;
}

@media (max-width: 1050px) {
  .site.page-outils-pratiques {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .page-outils-pratiques .nav {
    padding-inline: 26px;
  }

  .page-outils-pratiques .menu,
  .page-outils-pratiques .nav-actions .btn-primary {
    display: none;
  }

  .page-outils-pratiques .burger {
    display: grid;
  }

  .page-outils-pratiques .nav-actions {
    margin-left: auto;
  }

  .page-outils-pratiques .tools-hero,
  .page-outils-pratiques .tools-hero-content {
    min-height: 500px;
  }

  .page-outils-pratiques .tools-hero-content {
    width: min(100% - 48px, 900px);
    padding: 24px 0 32px;
  }

  .page-outils-pratiques .tools-hero-fade {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.72) 95%, #fff 100%),
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.99) 35%, rgba(255, 255, 255, 0.9) 51%, rgba(255, 255, 255, 0.45) 69%, rgba(255, 255, 255, 0.05) 88%);
  }

  .page-outils-pratiques .tools-hero-copy {
    width: min(610px, 78%);
    margin-top: 32px;
  }

  .page-outils-pratiques .tools-hero h1 {
    max-width: 610px;
    letter-spacing: -0.04em !important;
  }

  .page-outils-pratiques .tools-hero-copy > p {
    max-width: 520px;
  }

}

@media (max-width: 620px) {
  .site.page-outils-pratiques {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .page-outils-pratiques .topbar,
  .page-outils-pratiques .nav {
    height: 64px;
  }

  .page-outils-pratiques .nav {
    padding-inline: 18px;
  }

  .page-outils-pratiques .brand {
    gap: 9px;
  }

  .page-outils-pratiques .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .page-outils-pratiques .brand-mark::before {
    width: 17px;
    height: 6px;
  }

  .page-outils-pratiques .brand-mark::after {
    width: 6px;
    height: 17px;
  }

  .page-outils-pratiques .brand-text {
    font-size: 11px;
  }

  .page-outils-pratiques .brand-text > span:last-child {
    font-size: 8px;
  }

  .page-outils-pratiques .burger {
    width: 38px;
    height: 38px;
  }

  .page-outils-pratiques .tools-hero,
  .page-outils-pratiques .tools-hero-content {
    min-height: 470px;
  }

  .page-outils-pratiques .tools-hero-content {
    width: calc(100% - 32px);
    padding: 18px 0 110px;
  }

  .page-outils-pratiques .tools-hero-image {
    inset: 0;
    height: auto;
    background-position: 65% center;
  }

  .page-outils-pratiques .tools-hero-fade {
    inset: 0;
    height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 44%, rgba(255, 255, 255, 0.58) 69%, rgba(255, 255, 255, 0.08) 100%),
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 48%, rgba(255, 255, 255, 0.46) 82%, rgba(255, 255, 255, 0.08) 100%);
  }

  .page-outils-pratiques .tools-breadcrumb {
    font-size: 11px;
  }

  .page-outils-pratiques .tools-hero-copy {
    width: 100%;
    margin-top: 24px;
  }

  .page-outils-pratiques .tools-hero h1 {
    max-width: none;
    width: auto;
    margin: 10px 0 12px;
    letter-spacing: -0.045em !important;
  }

  .page-outils-pratiques .tools-hero-copy > p {
    max-width: 33ch;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .page-outils-pratiques .tools-library-section {
    padding-top: 24px;
  }
}
