@font-face {
  font-family: 'EB Garamond';
  src: url('../ressources/eb-garamond.woff') format('woff');
  font-display: swap;
  font-weight: 400;
}
:root {
  --green: #192d26;
  --green-dark: #13231e;
  --cream: #f8f6ed;
  --sage: #dbe5d8;
  --ink: #23322b;
  --muted: #536157;
  --rule: #afbdac;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-icon { width: 1em; height: 1em; margin-inline-end: .4em; fill: currentColor; vertical-align: -.1em; }
h1 .site-icon, h2 .site-icon, h3 .site-icon { width: .7em; height: .7em; margin-inline-end: .3em; color: #765e37; vertical-align: .02em; }
figure, p, h1, h2, h3, h4, ol { margin: 0; }
h1, h2, h3, .brand { font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h1 { font-size: clamp(3rem, 7.2vw, 7.5rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.35rem, 4.7vw, 4.4rem); letter-spacing: -.055em; }
h3 { font-size: 1.65rem; letter-spacing: -.025em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid #a77a30; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }
.container { width: min(1260px, calc(100% - 7.5rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.skip { position: fixed; top: .5rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header, .site-footer { color: var(--cream); background: var(--green-dark); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.brand-mark { display: block; flex: none; width: clamp(2.65rem, 4.8vw, 3.5rem); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.9vw, 2.9rem); margin-left: auto; }
.main-nav a, .language, .footer-inner nav { font-size: .9rem; }
.main-nav a, .footer-inner nav a { text-decoration: none; }
.main-nav a:hover, .footer-inner nav a:hover { color: #e1cfa6; }
.admin-menu { border-top: 1px solid #536459; background: #273f33; }
.admin-menu-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem clamp(.6rem, 2vw, 1.4rem); padding-block: .45rem; font-size: .9rem; }
.admin-menu form { margin-left: auto; }
.admin-menu a, .admin-menu button { display: inline-block; padding-block: .2rem; text-decoration: underline; text-underline-offset: .18em; }
.admin-menu button { border: 0; padding-inline: 0; background: transparent; color: inherit; cursor: pointer; }
.admin-menu a:hover, .admin-menu button:hover { color: #e1cfa6; }
.language { position: relative; z-index: 2; }
.language summary { display: flex; align-items: center; gap: .6rem; padding: .48rem .7rem; cursor: pointer; border: 1px solid #637268; }
.language summary::after { content: ""; width: .35rem; height: .35rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.1rem) rotate(45deg); }
.language-flag { flex: none; width: 1.5rem; height: 1rem; border-radius: 2px; box-shadow: 0 0 0 1px #53645980; }
.language ul { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 9rem; padding: .25rem 0; margin: 0; list-style: none; color: var(--ink); background: var(--cream); box-shadow: 0 6px 18px #13231e40; }
.language li a { display: flex; align-items: center; gap: .55rem; padding: .4rem .9rem; text-decoration: none; }
.language li a:hover, .language a[aria-current] { background: #e9ebdf; }
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(35rem, 72vh, 53rem); color: white; background: var(--green); }
.hero > img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.hero > img { z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #101e18df, #101e185e 66%, transparent), linear-gradient(0deg, #0a1610ba, transparent 45%); }
.hero-content { padding-block: clamp(4rem, 10vh, 7rem) clamp(5.3rem, 12vh, 8rem); }
.hero h1 { margin: .18em 0 .15em; max-width: 8em; text-wrap: balance; }
.hero-content > p:not(.eyebrow) { margin-bottom: 1.8rem; max-width: 36rem; font-size: clamp(1.05rem, 2vw, 1.36rem); }
.hero-caption { position: absolute; bottom: 1.2rem; right: max(1.25rem, calc((100vw - 1260px) / 2)); color: #fff9e8; font-size: .83rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .87rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: inline-block; flex: 0 0 1.55rem; height: 1px; background: #937d4a; }
.hero .eyebrow { color: #f4e0b7; }
.button { display: inline-block; max-width: 100%; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 0; background: var(--green); color: #fffdf5; font-weight: 600; text-decoration: none; cursor: pointer; }
.button-light { color: #fffdf5; background: #1626208a; border-color: #e3d4b1; }
.button:hover { background: #2d483a; }
.button-danger { background: #81382e; }
.button-danger:hover { background: #6c2b22; }
.text-link { display: inline-block; width: fit-content; font-weight: 650; text-decoration: none; border-bottom: 1px solid #a59060; }
.text-link:hover { border-color: currentColor; }
.domain { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.domain-copy h2, .section-head h2, .location h2, .news h2, .residents h2 { margin-block: .35em .45em; }
.domain-copy > p:not(.eyebrow), .section-head > p, .location-inner > div > p:not(.eyebrow), .resources-list p { color: var(--muted); }
.domain-copy .text-link { margin-top: 1.4rem; }
.domain-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.domain-images figure { position: relative; background: #37473a; }
.domain-images img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.domain-images figcaption { position: absolute; bottom: 0; width: 100%; padding: .5rem .7rem; background: linear-gradient(transparent, #101b13d9); color: white; font-size: .83rem; }
.news { background: var(--sage); }
.news-inner { display: grid; grid-template-columns: 1fr 1.55fr; align-items: start; gap: clamp(1rem, 6vw, 6rem); }
.posts { padding: 0; list-style: none; }
.posts li { display: grid; grid-template-columns: 6.3rem minmax(0, 1fr); gap: 1rem; padding-block: 1.05rem; border-top: 1px solid #b7bda9; }
.posts time { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.posts article { overflow-wrap: anywhere; }
.posts article p { white-space: pre-wrap; margin-top: .35rem; }
.surroundings { color: var(--cream); background: var(--green); }
.surroundings .eyebrow { color: #e1cfa6; }
.surroundings .eyebrow span { background: currentColor; }
.surroundings .section-head > p { color: #d6e0d2; }
.surroundings :is(.biot-tour, .gallery-tile):focus-visible { outline-color: #e1cfa6; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 2.2rem; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 22rem; padding-bottom: .15rem; }
.biot-discovery { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .65rem; margin-bottom: clamp(1.5rem, 3.5vw, 3.25rem); }
.biot-tour { position: relative; isolation: isolate; display: grid; align-content: end; gap: .4rem; min-height: 13rem; padding: clamp(1rem, 3vw, 2.5rem); color: white; background: var(--green); text-decoration: none; }
.biot-tour img, .biot-tour::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.biot-tour img { object-fit: cover; object-position: center 55%; z-index: -2; }
.biot-tour::after { content: ""; z-index: -1; background: linear-gradient(0deg, #13231ef2, #13231e28 86%); }
.biot-tour-title { font: clamp(1.9rem, 4vw, 3.6rem)/1.05 var(--serif); }
.biot-tour:hover .biot-tour-title, .biot-tour:focus-visible .biot-tour-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.biot-tour-provider { color: #eee0bd; font-size: .875rem; }
.biot-report { color: var(--ink); background: var(--sage); }
.biot-report iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: var(--green-dark); }
.biot-report figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding: .45rem .7rem; font-size: .875rem; }
.biot-report figcaption a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(9.5rem, 19vw, 16rem); gap: .65rem; }
.gallery-tile { position: relative; min-width: 0; overflow: hidden; isolation: isolate; display: flex; align-items: end; color: white; background: var(--green); text-decoration: none; }
.gallery-tile.toits-du-village, .gallery-tile.lac-de-trecolpas { grid-column: span 2; }
.gallery-tile.ruelle { grid-column: 3; grid-row: 1 / 3; }
.gallery-tile img, .gallery-tile::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-tile img { object-fit: cover; z-index: -2; transition: transform .3s ease; }
.gallery-tile.cap-d-antibes img { object-position: center 65%; }
.gallery-tile:hover img { transform: scale(1.035); }
.gallery-tile::after { content: ""; background: linear-gradient(0deg, #102017d9, transparent 65%); z-index: -1; }
.gallery-tile span { padding: .85rem 1rem; font: clamp(1.1rem, 2.1vw, 1.65rem)/1.15 var(--serif); }
.location { background: var(--cream); }
.location-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.8rem, 5.5vw, 5.5rem); align-items: center; }
.gates { list-style: none; padding: 0; margin-top: 1.35rem; }
.gates li { display: flex; align-items: start; gap: .8rem; padding-block: 1rem; border-top: 1px solid #bcc1b1; }
.gates li > span { flex: 0 0 1.7rem; display: grid; place-items: center; height: 1.7rem; border-radius: 50%; background: var(--green); color: white; font-weight: 700; font-size: .85rem; }
.gates li p { margin-block: .3rem; color: var(--muted); }
.gates h3 { font-size: 1.44rem; }
.map { border: 1px solid #c5c9b9; background: #eff0e5; }
.map > a { display: block; }
.map img { width: 100%; height: auto; }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem 1rem; padding: .3rem .55rem; font-size: .875rem; color: var(--muted); }
.domain-map-page { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100vh; min-height: 100svh; padding: 1rem; }
.domain-map-page a { max-width: 100%; }
.domain-map-page img { width: auto; height: auto; max-height: calc(100svh - 2rem); }
.residents { background: var(--sage); }
.resources-list { --resource-gap: clamp(1.2rem, 4vw, 3.25rem); display: flex; gap: 1.1rem var(--resource-gap); flex-wrap: wrap; }
.resources-list > :not(.municipal-resources) { min-width: min(16rem, 100%); flex: 1; }
.resources-list > :not(.municipal-resources), .municipal-resources > div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.municipal-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: inherit; flex: 2 1 var(--resource-gap); min-width: min(calc(26rem + var(--resource-gap)), 100%); }
.resources-list p { margin-block: .45rem .65rem; }
.footer-inner { padding-block: 2.35rem; display: flex; justify-content: space-between; align-items: center; gap: 1.35rem; }
.footer-inner p { margin-top: .45rem; color: #ccd6c8; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
.simple h1 { font-size: clamp(2.75rem, 7.5vw, 5rem); margin-bottom: 1.65rem; }
.simple h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .65rem; }
.simple small { font-family: var(--sans); font-size: .45em; }
.login-panel { max-width: 31rem; margin-inline: auto; }
.simple label { display: block; font-weight: 600; margin-top: .7rem; margin-bottom: .2rem; }
.simple input:not([type=hidden]), .simple textarea { width: 100%; color: var(--ink); background: white; padding: .45rem .55rem; border: 1px solid #8a9788; border-radius: 0; }
.simple form > .button { margin-top: .85rem; }
.simple form > .button:disabled { opacity: .55; cursor: wait; }
.form-error { color: #852d23; margin-bottom: .65rem; }
.editor { margin-bottom: 3rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1rem; margin-block: .85rem; }
.french-fields { grid-column: 1 / -1; }
.translation-fields { font-size: .9rem; }
.translation-fields textarea { min-height: 3.75rem; }
.translation-help, .translation-status { color: var(--muted); font-size: .875rem; }
.translation-help, .translation-status:not(:empty) { margin-top: .45rem; }
.translation-action { margin-top: .3rem; padding: 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; cursor: pointer; }
fieldset { min-width: 0; margin: 0; border: 1px solid #b7bda9; padding: .55rem 1rem 1rem; }
legend { padding-inline: .4rem; font-weight: 650; }
.admin-posts details { margin-top: .65rem; }
.post-edit { margin-top: .65rem; }
.admin-posts summary { cursor: pointer; width: fit-content; }
.admin-posts details div { margin-block: .5rem; }
.delete { color: #852d23; }
.credits-list { padding-left: 1.35rem; }
.credits-list li { margin-block: .7rem; }
.credits-page > p { margin-block: .75rem; }
@media (max-width: 920px) {
  .container { width: calc(100% - 3.5rem); }
  .header-inner { gap: 1rem; }
  .main-nav { gap: .95rem; }
}
@media (max-width: 690px) {
  .container { width: calc(100% - 2.4rem); }
  .section { padding-block: clamp(3rem, 11vw, 4rem); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; padding-block: .75rem .6rem; }
  .language { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; width: 100%; margin: 0; gap: .38rem 1.1rem; flex-wrap: wrap; padding-top: .55rem; border-top: 1px solid #536459; }
  .main-nav a { font-size: .86rem; }
  .hero { min-height: clamp(27rem, 65svh, 38rem); }
  .hero::after { background: linear-gradient(0deg, #0a1610ee, #0a161033 88%); }
  .hero h1 { letter-spacing: -.045em; }
  .hero-content { padding-bottom: 4.35rem; }
  .domain, .news-inner, .location-inner, .biot-discovery { grid-template-columns: minmax(0, 1fr); }
  .translation-fields input, .translation-fields textarea { font-size: 1rem; }
  .section-head { display: block; }
  .section-head > p { margin-top: .8rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 10rem; }
  .gallery-tile.ruelle { grid-column: 1; grid-row: 2 / 4; }
  .footer-inner { display: grid; }
}
@media (max-width: 430px) {
  .posts li { grid-template-columns: 1fr; gap: .35rem; }
  .eyebrow { letter-spacing: .095em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-tile img { transition: none; }
}
