/* ========================================================================== 
 * Pépites Découvertes — À faire autour d’ici — fiche maître V10-C3
 * Wrapper 1350 px · lecture ferrée à gauche · pratique + carte à droite.
 * ========================================================================== */
body.a-faire-place-body {
  --af-page: #fbfaf7;
  --af-surface: #ffffff;
  --af-surface-soft: #f5f3ee;
  --af-ink: #171717;
  --af-text: #4a4a46;
  --af-muted: #75736c;
  --af-line: #e2ded6;
  --af-orange: #ef5a38;
  --af-shadow: 0 14px 38px rgba(25, 31, 28, .065);
  --af-font-ui: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --af-font-serif: "Lora", Georgia, serif;
  margin: 0;
  color: var(--af-ink);
  background: var(--af-page);
  font-family: var(--af-font-ui);
  color-scheme: light;
}

body.a-faire-place-body,
body.a-faire-place-body *,
body.a-faire-place-body *::before,
body.a-faire-place-body *::after {
  box-sizing: border-box;
}

body.a-faire-place-body .a-faire-place-main,
body.a-faire-place-body .v3-main-wrapper {
  margin: 0;
  padding: 0 0 clamp(48px, 6vw, 82px);
  overflow-x: clip;
  background: var(--af-page);
}

.af-place {
  --af-accent: #2f6b3f;
  --af-accent-soft: #edf3ea;
  --af-shell: min(1350px, calc(100% - 48px));
  width: 100%;
}

.af-place-shell {
  width: var(--af-shell);
  margin-inline: auto;
}

.af-place img,
.af-place video,
.af-place iframe {
  display: block;
  max-width: 100%;
}

.af-place a {
  color: inherit;
}

/* --------------------------------------------------------------------------
 * HERO
 * -------------------------------------------------------------------------- */
.af-place-hero {
  position: relative;
  isolation: isolate;
}

.af-place-hero--simple,
.af-place-hero--compact {
  padding: clamp(38px, 4.8vw, 66px) 0 24px;
  color: var(--af-ink);
  background:
    radial-gradient(circle at 8% 6%, color-mix(in srgb, var(--af-accent) 7%, transparent), transparent 34%),
    var(--af-page);
}

.af-place-hero--standard {
  min-height: clamp(470px, 56vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 78px 0 66px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.67), rgba(0,0,0,.39) 52%, rgba(0,0,0,.14)),
    var(--af-hero-image);
  background-size: cover;
  background-position: var(--af-hero-focus, 50% 50%);
}

.af-place-hero--standard::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(251,250,247,0), var(--af-page) 97%);
}

.af-place-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 23px;
  color: var(--af-muted);
  font-size: .69rem;
  font-weight: 820;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.af-place-breadcrumb a,
.af-place-breadcrumb span {
  color: inherit;
  text-decoration: none;
}

.af-place-breadcrumb a:hover,
.af-place-breadcrumb a:focus-visible,
.af-place-breadcrumb span[aria-current="page"] {
  color: var(--af-accent);
  outline: 0;
}

.af-place-breadcrumb__sep {
  opacity: .5;
}

.af-place-hero--standard .af-place-breadcrumb,
.af-place-hero--standard .af-place-breadcrumb a,
.af-place-hero--standard .af-place-breadcrumb span {
  color: rgba(255,255,255,.84);
}

.af-place-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(470px, 1.12fr);
  gap: clamp(40px, 5vw, 78px);
  align-items: center;
}

.af-place-hero--simple .af-place-hero__grid,
.af-place-hero--standard .af-place-hero__grid {
  display: block;
}

.af-place-hero__copy {
  min-width: 0;
}

.af-place-hero__category {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--af-accent);
  background: var(--af-accent-soft);
  font-size: .65rem;
  font-weight: 860;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.af-place-hero--standard .af-place-hero__category {
  color: #fff;
  border: 1px solid rgba(255,255,255,.46);
  background: #243129;
}

.af-place-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--af-ink);
  font-family: var(--af-font-serif);
  font-size: clamp(3.25rem, 5.25vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.048em;
  line-height: .98;
  text-wrap: balance;
}

.af-place-hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--af-orange);
}

.af-place-hero__subtitle {
  margin: 14px 0 0;
  color: var(--af-accent);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.45;
}

.af-place-hero__lead {
  max-width: 710px;
  margin: 15px 0 0;
  color: var(--af-text);
  font-size: 1.02rem;
  line-height: 1.72;
}

.af-place-hero--standard h1,
.af-place-hero--standard .af-place-hero__subtitle,
.af-place-hero--standard .af-place-hero__lead {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}

.af-place-hero--standard .af-place-hero__lead {
  max-width: 760px;
  color: rgba(255,255,255,.9);
}

.af-place-hero__visual {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--af-line);
  border-radius: 14px;
  background: var(--af-accent-soft);
  box-shadow: var(--af-shadow);
  aspect-ratio: 16 / 8.8;
}

.af-place-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--af-hero-focus, 50% 50%);
}

.af-place-hero__visual figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 17px 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.64));
  font-size: .72rem;
  line-height: 1.4;
}

.af-place-hero__standard-caption {
  position: absolute;
  right: max(24px, calc((100vw - 1350px) / 2));
  bottom: 24px;
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .75rem;
  line-height: 1.45;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* --------------------------------------------------------------------------
 * FACTS — le trajet est un contrôle interactif à part entière.
 * -------------------------------------------------------------------------- */
.af-place-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--af-line);
  border-radius: 11px;
  background: var(--af-surface);
  box-shadow: 0 8px 25px rgba(25,31,28,.035);
}

.af-place-fact {
  appearance: none;
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 15px 17px;
  border: 0;
  border-right: 1px solid var(--af-line);
  color: inherit;
  text-align: left;
  background: transparent;
  font: inherit;
}

.af-place-fact:last-child {
  border-right: 0;
}

.af-place-fact > i:first-child {
  color: var(--af-ink);
  font-size: 1.05rem;
  text-align: center;
}

.af-place-fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--af-muted);
  font-size: .61rem;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.af-place-fact p {
  margin: 0;
  color: var(--af-ink);
  font-size: .86rem;
  font-weight: 740;
  line-height: 1.42;
}

.af-place-fact small {
  display: block;
  margin-top: 3px;
  color: var(--af-accent);
  font-size: .58rem;
  font-weight: 790;
}

.af-place-fact--origin {
  position: relative;
  grid-template-columns: 29px minmax(0, 1fr) 16px;
  cursor: pointer;
}

.af-place-fact--origin:hover,
.af-place-fact--origin:focus-visible {
  background: color-mix(in srgb, var(--af-accent-soft) 48%, #fff);
  outline: 0;
}

.af-place-fact--origin > i:first-child,
.af-place-fact--origin .af-place-fact__chevron {
  color: var(--af-accent);
}

.af-place-fact__chevron {
  font-size: .72rem;
}

/* --------------------------------------------------------------------------
 * TROIS RAISONS
 * -------------------------------------------------------------------------- */
.af-place-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.af-place-highlight {
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--af-accent) 22%, var(--af-line));
  border-radius: 11px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--af-accent-soft) 60%, #fff), #fff 68%);
}

.af-place-highlight::after {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--af-accent) 9%, transparent);
}

.af-place-highlight > i {
  margin-top: 2px;
  color: var(--af-accent);
  font-size: 1.08rem;
}

.af-place-highlight h2 {
  margin: 0;
  color: var(--af-ink);
  font-family: var(--af-font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.af-place-highlight p {
  margin: 7px 0 0;
  color: var(--af-text);
  font-size: .79rem;
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
 * CONTENU — un seul axe de lecture à gauche, pratique à droite.
 * -------------------------------------------------------------------------- */
.af-place-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: clamp(30px, 4vw, 50px);
  align-items: start;
  margin-top: 30px;
}

.af-place-content-grid--single {
  grid-template-columns: minmax(0, 920px);
}

.af-place-story {
  min-width: 0;
  max-width: 920px;
}

.af-place-repere {
  min-height: 146px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px;
  align-items: center;
  padding: 20px 20px 18px 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--af-accent) 20%, var(--af-line));
  border-radius: 12px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--af-accent-soft) 70%, #fff), #fff 76%);
}

.af-place-repere__copy span {
  display: block;
  margin-bottom: 7px;
  color: var(--af-accent);
  font-family: var(--af-font-serif);
  font-size: 1.04rem;
  font-weight: 700;
}

.af-place-repere__copy p {
  max-width: 650px;
  margin: 0;
  color: color-mix(in srgb, var(--af-accent) 84%, var(--af-text));
  font-family: var(--af-font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.68;
}

.af-place-repere__art {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.af-place-repere__art img {
  width: 190px;
  max-height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(37, 39, 34, .08));
}

.af-place-lead-copy {
  margin-top: 22px;
}

.af-place-lead-copy p,
.af-place-copy-section p,
.af-place-before-leaving p {
  margin: 0 0 12px;
  color: var(--af-text);
  font-size: .96rem;
  line-height: 1.76;
}

.af-place-copy-section {
  margin-top: 29px;
}

.af-place-copy-section h2,
.af-place-section-title h2,
.af-place-before-leaving h2 {
  margin: 0;
  color: var(--af-ink);
  font-family: var(--af-font-serif);
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
}

.af-place-copy-section h2::after,
.af-place-section-title h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 8px 0 14px;
  background: var(--af-orange);
}

.af-place-inline-quote {
  margin: 28px 0 0;
  padding: 17px 20px;
  border-left: 3px solid var(--af-accent);
  background: var(--af-accent-soft);
}

.af-place-inline-quote p {
  margin: 0;
  color: var(--af-text);
  font-family: var(--af-font-serif);
  font-size: .98rem;
  font-style: italic;
  line-height: 1.68;
}

.af-place-side {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.af-place-practical {
  width: 100%;
  padding: 21px;
  border: 1px solid color-mix(in srgb, var(--af-accent) 34%, var(--af-line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--af-accent-soft) 28%, #fff);
  box-shadow: 0 10px 28px rgba(25,31,28,.045);
}

.af-place-practical__head {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.af-place-practical__head > i {
  margin-top: 2px;
  color: var(--af-accent);
  font-size: 1.14rem;
}

.af-place-practical__head span,
.af-place-section-title > span {
  display: block;
  margin-bottom: 4px;
  color: var(--af-accent);
  font-size: .61rem;
  font-weight: 860;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.af-place-practical__head h2 {
  margin: 0;
  color: var(--af-accent);
  font-size: .82rem;
  font-weight: 880;
  letter-spacing: .035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.af-place-practical__intro {
  margin: 13px 0 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--af-line);
  color: var(--af-text);
  font-size: .79rem;
  line-height: 1.62;
}

.af-place-practical-list {
  display: grid;
  margin: 8px 0 0;
}

.af-place-practical-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--af-line) 76%, transparent);
}

.af-place-practical-row:last-child {
  border-bottom: 0;
}

.af-place-practical-row > i {
  margin-top: 2px;
  color: var(--af-accent);
  font-size: .94rem;
  text-align: center;
}

.af-place-practical-row dt {
  margin: 0 0 3px;
  color: var(--af-muted);
  font-size: .59rem;
  font-weight: 860;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.af-place-practical-row dd {
  margin: 0;
  color: var(--af-ink);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.48;
}

.af-place-map-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 13px;
  border-radius: 7px;
  color: #fff !important;
  background: var(--af-accent);
  font-size: .74rem;
  font-weight: 820;
  text-decoration: none;
}

.af-place-map-button:hover,
.af-place-map-button:focus-visible {
  filter: brightness(.92);
  outline: 2px solid color-mix(in srgb, var(--af-accent) 28%, transparent);
  outline-offset: 2px;
}

.af-place-map {
  overflow: hidden;
  border: 1px solid var(--af-line);
  border-radius: 12px;
  background: var(--af-surface);
  box-shadow: 0 10px 28px rgba(25,31,28,.04);
}

.af-place-map header {
  padding: 12px 14px 11px;
  border-bottom: 1px solid var(--af-line);
}

.af-place-map header span {
  display: block;
  margin-bottom: 3px;
  color: var(--af-accent);
  font-size: .58rem;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.af-place-map header strong {
  display: block;
  color: var(--af-ink);
  font-family: var(--af-font-serif);
  font-size: .98rem;
}

.af-place-map iframe {
  width: 100%;
  height: 265px;
  border: 0;
  background: var(--af-surface-soft);
}

/* --------------------------------------------------------------------------
 * MODULES PLEINE LARGEUR
 * -------------------------------------------------------------------------- */
.af-place-tips,
.af-place-media-section,
.af-place-combine,
.af-place-before-leaving,
.af-place-sources,
.af-place-bottom {
  margin-top: 32px;
}

.af-place-section-title {
  margin-bottom: 14px;
}

.af-place-section-title--media p {
  max-width: 760px;
  margin: 0;
  color: var(--af-text);
  font-size: .84rem;
  line-height: 1.65;
}

.af-place-tips {
  padding: 20px 22px 22px;
  border: 1px solid var(--af-line);
  border-radius: 11px;
  background: var(--af-surface);
}

.af-place-tips__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--af-line);
  border-radius: 9px;
}

.af-place-tip {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  padding: 15px 16px;
  border-right: 1px solid var(--af-line);
}

.af-place-tip:last-child {
  border-right: 0;
}

.af-place-tip__number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--af-ink);
  border-radius: 50%;
  font-size: .64rem;
  font-weight: 820;
}

.af-place-tip h3 {
  margin: 0 0 5px;
  color: var(--af-orange);
  font-size: .61rem;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.af-place-tip p {
  margin: 0;
  color: var(--af-text);
  font-size: .76rem;
  line-height: 1.58;
}

.af-place-gallery__grid,
.af-place-gallery-more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.af-place-gallery__grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.af-place-gallery__grid--3 {
  grid-template-columns: 1.2fr .8fr .8fr;
}

.af-place-gallery__item {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.af-place-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--af-line);
  border-radius: 9px;
}

.af-place-gallery__grid--3 .af-place-gallery__item:first-child img {
  aspect-ratio: 16 / 10;
}

.af-place-gallery__item figcaption,
.af-place-video figcaption {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  margin: 7px 0 0;
  padding: 0 2px;
  color: var(--af-muted);
  font-size: .65rem;
  line-height: 1.5;
}

.af-place-gallery-more {
  margin-top: 12px;
  border: 1px solid var(--af-line);
  border-radius: 9px;
  background: var(--af-surface);
}

.af-place-gallery-more summary {
  padding: 11px 13px;
  color: var(--af-accent);
  font-size: .75rem;
  font-weight: 820;
  cursor: pointer;
}

.af-place-gallery-more__grid {
  padding: 0 12px 12px;
}

.af-place-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.af-place-videos__grid--single {
  grid-template-columns: minmax(0, 860px);
}

.af-place-video {
  margin: 0;
}

.af-place-video__frame {
  overflow: hidden;
  border: 1px solid var(--af-line);
  border-radius: 10px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.af-place-video iframe,
.af-place-video video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.af-place-combine__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.af-place-combine-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--af-line);
  border-radius: 10px;
  background: var(--af-surface);
}

.af-place-combine-card > a,
.af-place-combine-card > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  height: 118px;
  min-height: 118px;
  color: inherit;
  text-decoration: none;
}

.af-place-combine-card img,
.af-place-combine-card__fallback {
  display: block;
  width: 104px;
  height: 118px;
  min-height: 0;
  max-height: 118px;
  object-fit: cover;
  object-position: center;
}

.af-place-combine-card__fallback {
  display: grid;
  place-items: center;
  color: var(--af-accent);
  background: var(--af-accent-soft);
}

.af-place-combine-card > a > div,
.af-place-combine-card > div > div {
  min-width: 0;
  height: 118px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.af-place-combine-card h3 {
  margin: 0;
  color: var(--af-ink);
  font-family: var(--af-font-serif);
  font-size: .94rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.af-place-combine-card p {
  margin: 5px 0 0;
  color: var(--af-muted);
  font-size: .69rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-place-combine-card a span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--af-accent);
  font-size: .67rem;
  font-weight: 820;
}

.af-place-combine-card a:hover h3,
.af-place-combine-card a:focus-visible h3 {
  color: var(--af-accent);
}

.af-place-before-leaving {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 21px;
  border: 1px solid var(--af-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--af-accent-soft) 42%, #fff);
}

.af-place-before-leaving > i {
  margin-top: 4px;
  color: var(--af-accent);
}

.af-place-before-leaving h2 {
  margin-bottom: 7px;
  font-size: 1.12rem;
}

.af-place-before-leaving p {
  margin-bottom: 4px;
  font-size: .79rem;
  line-height: 1.58;
}

.af-place-sources {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--af-line);
  color: var(--af-muted);
  font-size: .64rem;
  line-height: 1.45;
}

.af-place-sources > span {
  flex: 0 0 auto;
  color: var(--af-ink);
  font-weight: 820;
}

.af-place-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-place-sources a {
  text-underline-offset: 3px;
}

.af-place-bottom {
  padding-top: 13px;
  border-top: 1px solid var(--af-line);
}

.af-place-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--af-accent) !important;
  font-size: .7rem;
  font-weight: 860;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
 * TABLETTE / MOBILE
 * -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .af-place-hero__grid {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 30px;
  }

  .af-place-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-place-fact:nth-child(2) {
    border-right: 0;
  }

  .af-place-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--af-line);
  }

  .af-place-content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 26px;
  }
}

@media (max-width: 780px) {
  .af-place {
    --af-shell: min(100% - 28px, 1350px);
  }

  .af-place-hero--simple,
  .af-place-hero--compact {
    padding: 27px 0 18px;
  }

  .af-place-hero--standard {
    min-height: 440px;
    padding: 56px 0 48px;
  }

  .af-place-hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .af-place-hero h1 {
    font-size: clamp(2.55rem, 11.5vw, 3.9rem);
  }

  .af-place-hero__lead {
    font-size: .96rem;
  }

  .af-place-hero__visual {
    aspect-ratio: 16 / 9;
  }

  .af-place-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .af-place-highlight {
    min-height: 0;
  }

  .af-place-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .af-place-side {
    grid-row: 1;
  }

  .af-place-story {
    grid-row: 2;
    max-width: none;
  }

  .af-place-repere {
    grid-template-columns: minmax(0, 1fr) 135px;
    min-height: 128px;
  }

  .af-place-repere__art img {
    width: 132px;
    max-height: 100px;
  }

  .af-place-tips__grid,
  .af-place-combine__grid,
  .af-place-videos__grid,
  .af-place-gallery__grid,
  .af-place-gallery__grid--3,
  .af-place-gallery-more__grid {
    grid-template-columns: 1fr;
  }

  .af-place-tip {
    border-right: 0;
    border-bottom: 1px solid var(--af-line);
  }

  .af-place-tip:last-child {
    border-bottom: 0;
  }

  .af-place-gallery__grid,
  .af-place-gallery__grid--3,
  .af-place-gallery-more__grid {
    row-gap: 19px;
  }

  .af-place-gallery__item img,
  .af-place-gallery__grid--3 .af-place-gallery__item:first-child img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .af-place-gallery__item figcaption {
    margin-top: 8px;
    padding-bottom: 1px;
  }
}

@media (max-width: 520px) {
  .af-place {
    --af-shell: min(100% - 20px, 1350px);
  }

  .af-place-fact {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
    min-height: 78px;
    padding: 12px 10px;
  }

  .af-place-fact--origin {
    grid-template-columns: 23px minmax(0, 1fr) 12px;
  }

  .af-place-fact p {
    font-size: .76rem;
  }

  .af-place-fact small {
    font-size: .54rem;
  }

  .af-place-repere {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 17px 17px 11px;
  }

  .af-place-repere__art {
    display: flex;
    min-height: 62px;
    margin-top: -4px;
    justify-content: flex-end;
  }

  .af-place-repere__art img {
    width: 116px;
    max-height: 66px;
  }

  .af-place-practical,
  .af-place-tips {
    padding: 16px;
  }

  .af-place-map iframe {
    height: 230px;
  }

  .af-place-combine-card > a,
  .af-place-combine-card > div {
    grid-template-columns: 82px minmax(0, 1fr);
    height: 102px;
    min-height: 102px;
  }

  .af-place-combine-card img,
  .af-place-combine-card__fallback {
    width: 82px;
    height: 102px;
    min-height: 0;
    max-height: 102px;
  }

  .af-place-combine-card > a > div,
  .af-place-combine-card > div > div {
    height: 102px;
    padding: 10px 12px;
  }

  .af-place-combine-card h3 {
    font-size: .9rem;
  }

  .af-place-combine-card p {
    font-size: .65rem;
  }

  .af-place-combine-card a span:last-child {
    margin-top: 6px;
    font-size: .64rem;
  }

  .af-place-sources {
    flex-direction: column;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
 * DARK MODE
 * -------------------------------------------------------------------------- */
html[data-theme="dark"] body.a-faire-place-body,
html.theme-dark body.a-faire-place-body {
  --af-page: #111210;
  --af-surface: #181a18;
  --af-surface-soft: #1d201d;
  --af-ink: #f5f2eb;
  --af-text: #d3cfc7;
  --af-muted: #aaa69e;
  --af-line: rgba(255,255,255,.13);
  --af-shadow: 0 14px 38px rgba(0,0,0,.24);
  color-scheme: dark;
}

html[data-theme="dark"] .af-place-highlight,
html.theme-dark .af-place-highlight,
html[data-theme="dark"] .af-place-repere,
html.theme-dark .af-place-repere,
html[data-theme="dark"] .af-place-practical,
html.theme-dark .af-place-practical,
html[data-theme="dark"] .af-place-before-leaving,
html.theme-dark .af-place-before-leaving {
  background: color-mix(in srgb, var(--af-accent) 8%, var(--af-surface));
}

html[data-theme="dark"] .af-place-fact--origin:hover,
html.theme-dark .af-place-fact--origin:hover {
  background: color-mix(in srgb, var(--af-accent) 9%, var(--af-surface));
}

@media (prefers-reduced-motion: reduce) {
  .af-place * {
    scroll-behavior: auto !important;
  }
}
