/* PROPOSITION NON CHARGÉE PAR LE SITE.
 * À rapprocher des sources courantes par Réalisation, dans un lot versionné.
 * Charger APRÈS les CSS existants seulement après autorisation d'intégration.
 * Origine M01 : lot-c-1144.css, grille cinq colonnes + overflow-wrap:anywhere.
 * Ne modifie ni les étapes métier, ni leur état actif, ni les jauges.
 */
@media (max-width: 480px) {
  .df-iteration #demande .df-wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .df-iteration #demande .df-wizard-steps button {
    min-height: 64px;
  }
  .df-iteration #demande .df-wizard-steps strong {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

/* Origine M02 : le correctif inline définit une colonne mais conserve display:flex.
 * Ne pas masquer les libellés, réduire leur police ou ajouter une ellipsis.
 */
@media (max-width: 600px) {
  .partager-page #agenda .share-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  .partager-page #agenda .share-controls > label {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .partager-page #agenda .share-controls select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }
}

/* M03 Respirer : volontairement aucune règle globale non mesurée.
 * Comparer d'abord la même source avec/sans edition=integree-v10,
 * puis le titre à 701 px, les menus et .rp-witness-header sur la vraie cible.
 */
.agenda-v1.is-enhanced .agenda-native-details { display: none; }
.agenda-v1 .agenda-native-details { padding: 12px 0; font-size: 13px; }
.agenda-v1 .agenda-native-details summary { cursor: pointer; min-height: 44px; }
.agenda-v1 .agenda-native-details p { margin: 12px 0; }
.agenda-v1 .agenda-source-links { display: flex; flex-wrap: wrap; gap: 16px; }
.agenda-v1 .agenda-family-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-block: 20px; font-size: 13px; }
.agenda-v1 .agenda-native-note { max-width: 78ch; font-size: 13px; margin-bottom: 20px; }
.agenda-v1 .share-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.agenda-v1 .share-controls label { min-width: 0; }
.agenda-v1 .share-controls select { display: block; width: 100%; min-width: 0; min-height: 44px; font: inherit; }
.agenda-v1 .agenda-filter-status { font-size: 12px; margin: 16px 0; }
@media (max-width:600px) {
  .partager-page #agenda .share-controls { display:grid; grid-template-columns: minmax(0,1fr); }
}
.lot1-map-sources { padding-block: 12px; }
.lot1-map-sources summary { cursor: pointer; min-height: 44px; }
/* Real staging measurements: Elementor kit4 overrode the generic Respirer h1
 * at390/701/720/721 with22px. Restore a smooth scoped hierarchy, not the global kit.
 */
.rp-pilote-page .hero h1 {
  font-size: clamp(48px,7.2vw,104px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: .006em;
}
.rp-pilote-page .rp-witness-header {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
}
/* Keep one shared site header, not a second overlapping agenda navigation. */
.partager-page #contenu > .agenda-v1 { padding-top: 92px; }
@media (max-width:720px) {
  .partager-page #contenu > .agenda-v1 { padding-top: 76px; }
}

/* MICRO043: the four existing map invitations retain their content and photos.
 * Undo inherited no-wrap; allow their normal text flow to determine card height.
 */
.annexe-page .ax-journey-shell .ax-scale-filters .ax-journey-choice {
  height: auto;
  white-space: normal;
}
.annexe-page .ax-journey-choice > :is(strong, small, .ax-choice-index) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  flex-shrink: 0;
}
/* MICRO043, Fabrice's visual feedback: a quieter forest green for this hero
 * alone, not the four experience colours or the global theme. Full-bleed paint
 * follows the existing hero bounds without changing its geometry or photo.
 */
.annexe-page .ax-hero:has(.lieu-title) {
  background-color: var(--green, #2c3730);
  box-shadow: 0 0 0 100vmax var(--green, #2c3730);
  clip-path: inset(0 -100vmax);
}
.annexe-page .ax-hero-copy:has(> .lieu-title) > p,
.annexe-page .ax-hero-copy > .lieu-title,
.annexe-page .ax-hero-copy:has(> .lieu-title) .door-link {
  color: var(--ivory, #faf9f4);
}
.annexe-page .ax-hero-copy > .lieu-title em,
.annexe-page .ax-hero:has(.lieu-title) figcaption {
  color: var(--ivory, #faf9f4);
}

/* CHARTE044: restore the prototype's reading surface on these two private
 * annexes only. The host kit's class selector had beaten generic body paint.
 * Explicit section backgrounds and the acquired dark Le lieu hero stay intact.
 */
body.annexe-page:has(.lieu-title),
body.annexe-page:has(.ax-journey-shell) {
  background-color: var(--ivory, #faf9f4);
}
/* annexes.css declares its generic caption colour important. Override that
 * legacy declaration only for the caption actually placed on this dark hero.
 */
.annexe-page .ax-hero:has(.lieu-title) figcaption {
  color: var(--ivory, #faf9f4) !important;
}
/* At320 the long place name still hits the two-column card edge. Give each
 * invitation its own row on very narrow screens; keep the acquired390 grid,
 * text size, photos and normal word boundaries unchanged.
 */
@media (max-width:360px) {
  .annexe-page .ax-journey-shell .ax-scale-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The standalone agenda V1 puts this small muted caption below the image.
 * Generic site figure styling had absolutely positioned it over the photo.
 * Restore only that integration boundary, without redesigning the agenda.
 */
.partager-page .agenda-v1 .opening-photo figcaption {
  position: static;
  inset: auto;
  padding: 0;
  background: none;
  text-shadow: none;
}
/* The shared native header's two fixed18px gaps exceed the available320px
 * row. Tighten spacing only, preserving logo, labels, controls and font sizes.
 */
@media (max-width:360px) {
  .site-header.ac-local-header {
    column-gap: 8px;
    padding-inline: 16px;
  }
}
