/* Focused France/arrival reflow repair. Load last. Existing art, colours,
   services, destinations and data remain owned by their original modules. */
#view .france-universe-page,
#view .arrival-hub,
#view .arrival-topic-page {
  min-width: 0;
}

#view .arrival-hub { max-width: min(100%, 1000px); }
#view .arrival-topic-page { max-width: min(100%, 850px); }

#view .france-universe-page *,
#view .arrival-hub *,
#view .arrival-topic-page * {
  min-width: 0;
  box-sizing: border-box;
}

#view .france-universe-page :is(h1,h2,h3,p,b,strong,small,span,button,a),
#view .arrival-hub :is(h1,h2,h3,h4,p,b,strong,small,span,button,a),
#view .arrival-topic-page :is(h1,h2,h3,h4,p,b,strong,small,span,button,a) {
  overflow-wrap: anywhere;
}

#view .france-universe-page :is(button,a),
#view .arrival-hub :is(button,a,[role="button"]),
#view .arrival-topic-page :is(button,a,[role="button"]) {
  min-height: max(44px, 2.75rem);
  max-width: 100%;
  white-space: normal;
}

/* The image remains a background layer; navigation, copy and facts now all
   participate in layout. No clipping or negative margins conceal overflow. */
#view .france-universe-page .france-universe-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: center;
  gap: 1.5rem;
  min-height: 0;
  padding: clamp(1rem, 4vw, 3rem);
  overflow: visible;
}

#view .france-universe-page .france-universe-hero > img {
  animation: none;
}

#view .france-universe-page .france-universe-hero > nav {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

#view .france-universe-page .france-universe-hero-copy {
  width: auto;
  max-width: 48rem;
  padding: 1rem 0;
}

#view .france-universe-page .france-universe-hero-copy h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

#view .france-universe-page .france-universe-hero-copy h2 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.5;
}

#view .france-universe-page .france-universe-hero-copy p {
  font-size: 1rem;
  line-height: 1.65;
}

#view .france-universe-page .france-universe-facts {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .75rem;
  margin: 0;
  align-self: center;
}

#view .france-universe-page .france-universe-facts article:nth-child(n) {
  display: block;
  min-height: 0;
  padding: 1rem;
}

#view .france-universe-page .france-universe-facts b {
  font-size: 1.75rem;
  line-height: 1.3;
}

#view .france-universe-page .france-universe-today {
  width: calc(100% - 2rem);
  max-width: 92.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  margin: 1.5rem auto;
  padding: clamp(1rem, 3vw, 1.75rem);
}

#view .france-universe-page :is(.france-universe-rooms,.france-universe-history,.france-universe-regions,.france-universe-practical,.france-universe-library) {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
}

#view .france-universe-page :is(.france-universe-today,.france-universe-rooms,.france-universe-history,.france-universe-regions,.france-universe-practical,.france-universe-library,.france-universe-culture) h2 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.25;
  letter-spacing: -.015em;
}

#view .france-universe-page :is(.france-universe-today,.france-universe-rooms,.france-universe-history,.france-universe-regions,.france-universe-practical,.france-universe-library,.france-universe-culture) h3 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  line-height: 1.5;
}

#view .france-universe-page :is(.france-universe-rooms,.france-universe-library) > header,
#view .france-universe-page .france-universe-regions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 1.5rem;
}

#view .france-universe-page .france-universe-hero-copy > div,
#view .france-universe-page .france-universe-today > div,
#view .france-universe-page .france-universe-region-list,
#view .france-universe-page .france-universe-history > div,
#view .france-universe-page .france-universe-practical ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .75rem;
}

#view .france-universe-page .france-universe-room-grid,
#view .france-universe-page .france-universe-library > div,
#view .france-universe-page .france-universe-culture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

#view .france-universe-page .france-universe-today > div button {
  flex-wrap: wrap;
  min-height: max(44px, 5rem);
  text-align: start;
}

#view .france-universe-page .france-universe-region-list button {
  text-align: start;
}

#view .france-universe-page .france-universe-region-list button > span {
  flex: 1 1 0;
}

#view .france-universe-page .france-universe-room {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  text-align: start;
}

#view .france-universe-page .france-universe-room > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: none;
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
}

#view .france-universe-page .france-universe-room > i {
  position: static;
  margin: 1rem 1rem 0;
  flex: 0 0 auto;
}

#view .france-universe-page .france-universe-room > span {
  flex: 1;
  min-height: 0;
  padding: 1rem;
}

#view .france-universe-page .france-universe-library > div button {
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  min-height: max(44px, 7rem);
  padding: 1rem;
  text-align: start;
}

#view .france-universe-page .france-universe-library > div button > em {
  grid-column: 2;
  justify-self: end;
}

#view .france-universe-page :is(.france-universe-history,.france-universe-practical) button {
  min-height: max(44px, 8rem);
  text-align: start;
}

#view .france-universe-page .france-universe-culture article {
  min-height: 0;
  padding: 1.5rem;
}

#view .france-universe-page .france-universe-culture button {
  width: fit-content;
}

#view .france-universe-page :is(.france-universe-progress,.france-universe-progress > div,.france-universe-footer) {
  flex-wrap: wrap;
  gap: 1rem;
}

#view .france-universe-page .france-universe-footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
}

#view .france-universe-page .france-universe-footer b {
  font-size: 1.5rem;
  line-height: 1.4;
}

#view .france-universe-page :is(button,a):focus-visible {
  outline: 3px solid var(--fr-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--fr-paper);
}

/* Arrival retains its existing content and card styling. Search scrolls in
   document flow rather than guessing the height of the bilingual topbar. */
#view .arrival-hub .arrival-search {
  position: static;
  top: auto;
  z-index: auto;
  margin-block: 1.5rem;
}

#view .arrival-hub .section-head,
#view .arrival-topic-page .section-head {
  flex-wrap: wrap;
  align-items: start;
  gap: .75rem;
}

#view .arrival-hub .section-head > div,
#view .arrival-topic-page .section-head > div {
  flex: 1 1 min(100%, 15rem);
}

#view .arrival-hub :is(.arrival-topic-card,.arrival-starter-checklist [data-arrival-check]),
#view .arrival-topic-page :is(.arrival-topic-head,.arrival-warning,.arrival-detail-steps > article) {
  grid-template-columns: auto minmax(0, 1fr);
}

#view .arrival-hub :is(.arrival-timeline,.arrival-topic-grid,.arrival-quick) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

#view .arrival-hub .arrival-hero h1,
#view .arrival-topic-page .arrival-topic-head h1 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  line-height: 1.2;
}

#view .arrival-hub .ame-mini-steps {
  flex-wrap: wrap;
  overflow: visible;
}

@media (max-width: 35rem) {
  #view .arrival-topic-page .arrival-topic-head {
    grid-template-columns: minmax(0, 1fr);
  }

  #view .france-universe-page .france-universe-library > div button {
    grid-template-columns: minmax(0, 1fr);
  }

  #view .france-universe-page .france-universe-library > div button > em {
    grid-column: 1;
  }
}

@media (forced-colors: active) {
  #view .france-universe-page :is(button,a):focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}
