/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme {

  :root,
  :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing: .25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono)
  }
}

@layer base {

  *,
  :after,
  :before,
  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0
  }

  html,
  :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit
  }

  b,
  strong {
    font-weight: bolder
  }

  code,
  kbd,
  samp,
  pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em
  }

  small {
    font-size: 80%
  }

  sub,
  sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative
  }

  sub {
    bottom: -.25em
  }

  sup {
    top: -.5em
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse
  }

  :-moz-focusring {
    outline: auto
  }

  progress {
    vertical-align: baseline
  }

  summary {
    display: list-item
  }

  ol,
  ul,
  menu {
    list-style: none
  }

  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align: middle;
    display: block
  }

  img,
  video {
    max-width: 100%;
    height: auto
  }

  button,
  input,
  select,
  optgroup,
  textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px
  }

  ::file-selector-button {
    margin-inline-end: 4px
  }

  ::placeholder {
    opacity: 1
  }

  @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
    ::placeholder {
      color: currentColor
    }

    @supports (color:color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent)
      }
    }
  }

  textarea {
    resize: vertical
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit
  }

  ::-webkit-datetime-edit {
    display: inline-flex
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0
  }

  ::-webkit-datetime-edit {
    padding-block: 0
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1
  }

  :-moz-ui-invalid {
    box-shadow: none
  }

  button,
  input:where([type=button], [type=reset], [type=submit]) {
    appearance: button
  }

  ::file-selector-button {
    appearance: button
  }

  ::-webkit-inner-spin-button {
    height: auto
  }

  ::-webkit-outer-spin-button {
    height: auto
  }

  [hidden]:where(:not([hidden=until-found])) {
    display: none !important
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible
  }

  .relative {
    position: relative
  }

  .start {
    inset-inline-start: var(--spacing)
  }

  .table {
    display: table
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
  }
}

:root {
  --ink: #173c35;
  --green: #1e5549;
  --sage: #9caf8b;
  --cream: #f3efe4;
  --sand: #ded5c4;
  --coral: #d9795f;
  --white: #fffdf8
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--cream);
  color: var(--ink);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select {
  font: inherit
}

.site-header {
  z-index: 30;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #fffdf8f5;
  border-bottom: 1px solid #173c351f;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  position: fixed;
  inset: 0 0 auto
}

.brand {
  align-items: center;
  gap: 12px;
  display: flex
}

.brand-mark {
  background: var(--green);
  color: #fff;
  border-radius: 50% 50% 46% 54%;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: Georgia, serif;
  font-size: 18px;
  display: grid
}

.brand>span:last-child {
  flex-direction: column;
  line-height: 1.1;
  display: flex
}

.brand strong {
  font: 600 22px Georgia, serif
}

.brand small {
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: 5px;
  font-size: 10px
}

.nav {
  align-items: center;
  gap: clamp(16px, 2.3vw, 36px);
  font-size: 13px;
  font-weight: 700;
  display: flex
}

.nav a {
  transition: opacity .2s
}

.nav a:hover {
  opacity: .6
}

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 13px 18px
}

.menu-button {
  color: var(--ink);
  background: 0 0;
  border: 0;
  font-weight: 700;
  display: none
}

.hero {
  color: #fff;
  height: min(900px, 100vh);
  min-height: 720px;
  margin-top: 88px;
  position: relative;
  overflow: hidden
}

.hero-image {
  background: url(images/hero-facade.jpg) 50%/cover;
  position: absolute;
  inset: 0
}

.hero-shade {
  background: linear-gradient(90deg, #0a2c25d1, #0a2c2529 70%), linear-gradient(#0000 60%, #00000047);
  position: absolute;
  inset: 0
}

.hero-content {
  max-width: 790px;
  position: absolute;
  top: 50%;
  left: clamp(24px, 8vw, 130px);
  transform: translateY(-48%)
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .19em;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 800
}

.eyebrow.light {
  color: #dfe7d2
}

.hero h1,
.section h2,
.life h2,
.interest h2 {
  letter-spacing: -.035em;
  font-family: Georgia, Times New Roman, serif;
  font-weight: 400
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 112px);
  line-height: .91
}

.hero-copy {
  max-width: 690px;
  margin: 30px 0;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.55
}

.hero-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  display: flex
}

.button {
  cursor: pointer;
  border: 0;
  border-radius: 2px;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 17px 22px;
  font-weight: 800;
  display: inline-flex
}

.light-button {
  background: var(--white);
  color: var(--ink)
}

.opening {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px
}

.opening i {
  background: #c6dc8b;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block
}

.scroll-cue {
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  place-items: center;
  width: 50px;
  height: 50px;
  font-size: 22px;
  display: grid;
  position: absolute;
  bottom: 40px;
  right: 5vw
}

.section {
  padding: clamp(85px, 10vw, 150px) clamp(24px, 8vw, 130px)
}

.intro {
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: 10vw;
  display: grid
}

.section h2,
.life h2,
.interest h2 {
  margin: 0;
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: .98
}

.intro-copy {
  padding-top: 40px;
  font-size: 18px;
  line-height: 1.75
}

.intro-copy p {
  margin: 0 0 22px
}

.text-link {
  border-bottom: 1px solid var(--ink);
  gap: 30px;
  margin-top: 12px;
  padding: 12px 0;
  font-weight: 800;
  display: inline-flex
}

.stats {
  background: var(--green);
  color: #fff;
  grid-template-columns: repeat(4, 1fr);
  padding: 65px clamp(24px, 8vw, 130px);
  display: grid
}

.stats div {
  border-left: 1px solid #ffffff42;
  flex-direction: column;
  padding-left: 30px;
  display: flex
}

.stats strong {
  font: 400 clamp(48px, 6vw, 82px) Georgia, serif
}

.stats span {
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-top: 7px;
  font-size: 11px
}

.homes {
  background: var(--white)
}

.section-heading {
  grid-template-columns: 1fr .55fr;
  align-items: end;
  gap: 8vw;
  margin-bottom: 70px;
  display: grid
}

.section-heading>p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65
}

.home-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid
}

.home-card {
  aspect-ratio: .82;
  background-position: 50%;
  background-size: cover;
  position: relative;
  overflow: hidden
}

.home-card:after {
  content: "";
  background: linear-gradient(#0000, #072721e0);
  position: absolute;
  inset: 25% 0 0
}

.home-card>div {
  z-index: 2;
  color: #fff;
  position: absolute;
  inset: auto 28px 28px
}

.home-card span {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px
}

.home-card h3 {
  margin: 10px 0;
  font: 400 47px Georgia, serif
}

.home-card p {
  margin: 0;
  line-height: 1.55
}

.studio {
  background-image: url(images/placeholder-appartement-studio.svg)
}

.fine-print {
  color: #5c6e68;
  margin-top: 18px;
  font-size: 12px
}

.life {
  background: var(--green);
  color: #fff;
  grid-template-columns: 1.1fr .9fr;
  min-height: 760px;
  display: grid
}

.life-photo {
  background: url(images/milieu-de-vie-parc.jpg) 50%/cover;
  min-height: 600px
}

.life-content {
  padding: clamp(65px, 8vw, 120px)
}

.life-content>p:not(.eyebrow) {
  margin: 30px 0 45px;
  font-size: 18px;
  line-height: 1.65
}

.life ul {
  border-top: 1px solid #ffffff40;
  margin: 0;
  padding: 0;
  list-style: none
}

.life li {
  border-bottom: 1px solid #ffffff40;
  padding: 20px 0;
  font-size: 15px
}

.life li span {
  color: #b7c7a4;
  width: 45px;
  font-size: 11px;
  display: inline-block
}

.neighbourhood {
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 8vw;
  display: grid
}

.neighbourhood-copy>p:not(.eyebrow) {
  margin: 30px 0;
  font-size: 18px;
  line-height: 1.7
}

.nearby {
  flex-wrap: wrap;
  gap: 8px;
  display: flex
}

.nearby span {
  border: 1px solid #173c3559;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 12px
}

.map-card {
  border: 12px solid var(--white);
  background: #d8dec7;
  height: 590px;
  position: relative;
  overflow: hidden
}

.map-card:before,
.map-card:after,
.map-lines:before,
.map-lines:after {
  content: "";
  background: #f7f3e9;
  position: absolute;
  transform: rotate(-15deg)
}

.map-card:before {
  width: 130%;
  height: 40px;
  top: 22%;
  left: -10%
}

.map-card:after {
  width: 130%;
  height: 26px;
  top: 62%;
  left: -10%;
  transform: rotate(12deg)
}

.map-lines:before {
  width: 23px;
  height: 130%;
  top: -10%;
  left: 32%;
  transform: rotate(8deg)
}

.map-lines:after {
  width: 48px;
  height: 130%;
  top: -10%;
  right: 18%;
  transform: rotate(-6deg)
}

.pin {
  z-index: 3;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: absolute;
  top: 42%;
  left: 48%
}

.pin b {
  background: var(--coral);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  place-items: center;
  width: 65px;
  height: 65px;
  font: 20px Georgia, serif;
  display: grid;
  transform: rotate(-45deg)
}

.pin b:first-letter {
  transform: rotate(45deg)
}

.pin small {
  background: var(--white);
  white-space: nowrap;
  margin-top: 12px;
  padding: 9px 12px;
  font-weight: 700
}

.river {
  color: #fff;
  letter-spacing: .3em;
  background: #a7c4c8;
  width: 100%;
  padding: 30px;
  font-size: 10px;
  position: absolute;
  bottom: 35px;
  left: 0
}

.interest {
  background: var(--coral);
  color: #fff;
  grid-template-columns: .9fr 1.1fr;
  gap: 10vw;
  padding: clamp(80px, 9vw, 140px) clamp(24px, 8vw, 130px);
  display: grid
}

.interest-copy>p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.7
}

.interest-form {
  background: var(--white);
  color: var(--ink);
  flex-direction: column;
  gap: 23px;
  padding: clamp(25px, 4vw, 55px);
  display: flex
}

.interest-form label {
  text-transform: uppercase;
  letter-spacing: .12em;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex
}

.interest-form input,
.interest-form select {
  color: var(--ink);
  background: 0 0;
  border: 0;
  border-bottom: 1px solid #92a39c;
  outline: none;
  padding: 12px 2px
}

.interest-form input:focus,
.interest-form select:focus {
  border-color: var(--coral)
}

.field-row {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid
}

.interest-form .consent {
  text-transform: none;
  letter-spacing: 0;
  flex-direction: row;
  align-items: center;
  font-weight: 400
}

.consent input {
  width: 18px;
  height: 18px
}

.submit {
  background: var(--green);
  color: #fff;
  margin-top: 8px
}

.success {
  padding: 30px 0
}

.success strong {
  font: 34px Georgia, serif
}

.success p {
  line-height: 1.6
}

footer {
  color: #fff;
  background: #102f2a;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 35px;
  padding: 55px clamp(24px, 5vw, 80px);
  font-size: 13px;
  display: grid
}

.footer-brand {
  align-items: center;
  gap: 14px;
  display: flex
}

.brand-mark.inverse {
  background: var(--cream);
  color: var(--green)
}

.footer-brand>div {
  flex-direction: column;
  display: flex
}

.footer-brand strong {
  font: 20px Georgia, serif
}

.footer-brand small {
  opacity: .7;
  margin-top: 6px
}

.footer-links {
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  display: flex
}

.footer-links span {
  opacity: .55
}

@media (width<=900px) {
  .site-header {
    height: 74px
  }

  .hero {
    margin-top: 74px
  }

  .menu-button {
    display: block
  }

  .nav {
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 25px;
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0
  }

  .nav.open {
    display: flex
  }

  .nav-cta {
    text-align: center
  }

  .intro,
  .section-heading,
  .life,
  .neighbourhood,
  .interest {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 45px 0
  }

  .home-grid {
    grid-template-columns: 1fr
  }

  .home-card {
    aspect-ratio: 1.2
  }

  .life-photo {
    min-height: 500px
  }

  .neighbourhood-copy {
    max-width: 650px
  }

  .map-card {
    height: 480px
  }

  footer {
    grid-template-columns: 1fr 1fr
  }

  .footer-links {
    grid-column: 1/-1;
    align-items: flex-start
  }
}

@media (width<=560px) {
  .brand strong {
    font-size: 18px
  }

  .brand-mark {
    width: 40px;
    height: 40px
  }

  .hero {
    min-height: 680px
  }

  .hero-content {
    top: 47%
  }

  .hero h1 {
    font-size: 54px
  }

  .hero-copy {
    font-size: 16px
  }

  .opening {
    font-size: 11px
  }

  .section {
    padding: 75px 24px
  }

  .stats {
    padding: 50px 24px
  }

  .stats div {
    padding-left: 18px
  }

  .home-card {
    aspect-ratio: .86
  }

  .life-photo {
    min-height: 420px
  }

  .life-content {
    padding: 70px 24px
  }

  .field-row {
    grid-template-columns: 1fr
  }

  .interest {
    padding: 70px 24px
  }

  .map-card {
    border-width: 6px;
    height: 390px
  }

  footer {
    grid-template-columns: 1fr
  }

  .footer-links {
    grid-column: auto
  }

  .scroll-cue {
    display: none
  }
}

.hero-image {
  background-image: url(images/hero-facade.jpg);
  background-position: 62% 40%
}

.heritage {
  background: #e7e0d2
}

.heritage-heading {
  margin-bottom: 55px
}

.heritage-grid {
  grid-template-rows: 280px 280px;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  display: grid
}

.heritage-photo {
  background-position: 50%;
  background-size: cover;
  min-height: 250px;
  margin: 0;
  position: relative
}

.heritage-photo:after {
  content: "";
  background: linear-gradient(#0000, #082620c7);
  position: absolute;
  inset: 45% 0 0
}

.heritage-photo figcaption {
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  position: absolute;
  bottom: 20px;
  left: 22px;
  right: 22px
}

.heritage-main {
  background-image: url(images/patrimoine-maison-mere.jpg);
  grid-row: 1/3
}

.heritage-detail-one {
  background-image: url(images/patrimoine-chapelle.jpg)
}

.heritage-detail-two {
  background-image: url(images/patrimoine-parc-statues.jpg)
}

.photo-credit {
  color: #5c6e68;
  margin: 14px 0 0;
  font-size: 11px
}

.one {
  background-image: url(images/placeholder-appartement-3-et-demi.svg)
}

.two {
  background-image: url(images/placeholder-appartement-4-et-demi.svg)
}

.life-photo {
  background-image: url(images/milieu-de-vie-parc.jpg)
}

.map-card:before,
.map-card:after {
  display: none
}

.map-card iframe {
  filter: saturate(.78)contrast(.96);
  border: 0;
  width: 100%;
  height: 100%
}

.map-address {
  z-index: 2;
  background: var(--white);
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  display: flex;
  position: absolute;
  bottom: 22px;
  left: 22px;
  box-shadow: 0 12px 35px #102f2a33
}

.map-address strong {
  font: 22px Georgia, serif
}

.map-address span {
  font-size: 12px;
  line-height: 1.45
}

.map-address a {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral);
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700
}

@media (width<=900px) {
  .heritage-grid {
    grid-template-rows: 420px 260px;
    grid-template-columns: 1fr 1fr
  }

  .heritage-main {
    grid-area: auto/1/auto/-1
  }
}

@media (width<=560px) {
  .heritage-grid {
    flex-direction: column;
    display: flex
  }

  .heritage-photo {
    min-height: 290px
  }

  .map-card {
    height: 470px
  }

  .map-address {
    bottom: 10px;
    left: 10px;
    right: 10px
  }
}

/* Lieux du quartier cliquables (recentrent la carte) */
.nearby-place {
  cursor: pointer;
  color: var(--ink);
  background: 0 0;
  border: 1px solid #173c3559;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 12px;
  transition: background .2s, color .2s, border-color .2s
}

.nearby-place:hover {
  border-color: var(--ink)
}

.nearby-place:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px
}

.nearby-place.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

.nearby-hint {
  color: #5c6e68;
  margin: 14px 0 0;
  font-size: 12px
}

.map-card.is-elsewhere .map-address {
  display: none
}
/* Cadrage des photos réelles (oct. 2026) */
.heritage-main {
  background-position: 50% 35%
}

.heritage-detail-two {
  background-position: 50% 60%
}

.life-photo {
  background-position: 50% 70%
}

/* Galerie photos */
.gallery {
  background: var(--white)
}

.gallery-filters {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  display: flex
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}

.gallery-item {
  background: var(--sand);
  overflow: hidden
}

.gallery-item.is-wide {
  grid-column: span 2
}

.gallery-item.is-tall {
  grid-row: span 2
}

.gallery-item[hidden] {
  display: none
}

.gallery-item a {
  cursor: zoom-in;
  width: 100%;
  height: 100%;
  display: block
}

.gallery-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .5s, filter .3s
}

.gallery-item a:hover img {
  filter: brightness(1.05);
  transform: scale(1.04)
}

.gallery-item a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -3px
}

.lightbox {
  color: #fff;
  background: 0 0;
  border: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0
}

.lightbox::backdrop {
  background: #071d19eb
}

.lightbox[open] {
  justify-content: center;
  align-items: center;
  display: flex
}

.lightbox figure {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 88vw;
  margin: 0;
  display: flex
}

.lightbox img {
  object-fit: contain;
  max-width: 88vw;
  max-height: 80vh;
  box-shadow: 0 20px 60px #0006
}

.lightbox figcaption {
  text-align: center;
  font-size: 14px
}

.lightbox button {
  cursor: pointer;
  color: #fff;
  background: #ffffff1f;
  border: 1px solid #ffffff59;
  border-radius: 50%;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: grid;
  position: absolute
}

.lightbox button:hover {
  background: #ffffff40
}

.lightbox-close {
  top: 20px;
  right: 20px
}

.lightbox-nav.prev {
  left: 20px
}

.lightbox-nav.next {
  right: 20px
}

@media (width<=900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px
  }

  .gallery-item.is-tall {
    grid-row: span 1
  }

  .gallery-item.wide-mobile {
    grid-column: span 2
  }
}

@media (width<=560px) {
  .gallery-grid {
    grid-auto-rows: 150px;
    gap: 8px
  }

  .lightbox-nav {
    top: auto;
    bottom: 20px
  }

  .lightbox-nav.prev {
    left: calc(50% - 60px)
  }

  .lightbox-nav.next {
    right: calc(50% - 60px)
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 70vh
  }
}

/* Section patrimoine : photos cliquables vers patrimoine.html */
.heritage-link {
  z-index: 3;
  position: absolute;
  inset: 0
}

.heritage-link:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px
}

.heritage-photo {
  overflow: hidden;
  transition: transform .4s
}

.heritage-photo:hover {
  transform: translateY(-3px)
}

.heritage-photo:hover:after {
  background: linear-gradient(#0000, #082620e6)
}

.heritage-more {
  opacity: .85;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 6px;
  font-size: 11px;
  display: block
}

.heritage-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  display: flex
}

.heritage-footer .photo-credit {
  margin: 0
}

/* Page patrimoine.html */
.page-patrimoine .site-header {
  position: sticky
}

.story-hero {
  color: #fff;
  min-height: 560px;
  position: relative;
  overflow: hidden
}

.story-hero-image {
  background: url(images/patrimoine/clocheton.jpg) 50% 30%/cover;
  position: absolute;
  inset: 0
}

.story-hero-content {
  max-width: 760px;
  padding: 150px clamp(24px, 8vw, 130px) 90px;
  position: relative
}

.story-hero h1 {
  letter-spacing: -.035em;
  margin: 0;
  font: 400 clamp(52px, 7vw, 100px)/.95 Georgia, Times New Roman, serif
}

.story-hero-content>p:not(.eyebrow) {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6
}

.timeline {
  background: var(--green);
  color: #fff;
  grid-template-columns: repeat(5, 1fr);
  padding: 50px clamp(24px, 8vw, 130px);
  display: grid
}

.timeline div {
  border-left: 1px solid #ffffff42;
  flex-direction: column;
  padding: 0 18px;
  display: flex
}

.timeline strong {
  font: 400 clamp(34px, 3.6vw, 52px) Georgia, serif
}

.timeline span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45
}

.story:nth-of-type(odd) {
  background: var(--white)
}

.story:nth-of-type(2n) {
  background: #e7e0d2
}

.story-heading {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 7vw;
  margin-bottom: 55px;
  display: grid
}

.story h2 {
  font-size: clamp(38px, 4.6vw, 66px)
}

.story-num {
  color: var(--coral);
  margin-right: 8px
}

.story-intro p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7
}

.story-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid
}

.story-card {
  background: none;
  flex-direction: column;
  display: flex;
  overflow: visible
}

.story-card>a {
  aspect-ratio: 4/3;
  background: var(--sand);
  height: auto;
  display: block;
  overflow: hidden
}

.story-card img {
  object-fit: cover;
  width: 100%;
  height: 100%
}

.story-text h3 {
  margin: 16px 0 6px;
  font: 400 23px Georgia, serif
}

.story-text p {
  color: #3d5751;
  margin: 0;
  font-size: 15px;
  line-height: 1.6
}

.story-end {
  background: var(--white);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 50px;
  padding-bottom: 70px;
  display: flex
}

.story-end .photo-credit {
  max-width: 720px;
  margin: 0;
  line-height: 1.6
}

.story-end .photo-credit a {
  text-decoration: underline
}

.lightbox figcaption {
  max-width: 760px;
  line-height: 1.5
}

@media (width<=900px) {
  .page-patrimoine .nav {
    top: 74px
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 30px 0
  }

  .story-heading {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .story-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (width<=560px) {
  .story-hero {
    min-height: 480px
  }

  .story-hero-content {
    padding: 110px 24px 60px
  }

  .timeline {
    padding: 40px 24px
  }

  .story-grid {
    grid-template-columns: 1fr
  }

}

.story {
  scroll-margin-top: 88px
}

@media (width<=900px) {
  .story {
    scroll-margin-top: 74px
  }
}
