:root {
  --ink: #17201d;
  --muted: #64716b;
  --paper: #f6f3ed;
  --panel: #ffffff;
  --line: #ddd7cb;
  --river: #265f6f;
  --river-dark: #123842;
  --sun: #d89445;
  --moss: #5e7251;
  --shadow: 0 18px 60px rgba(22, 32, 29, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(246, 243, 237, .9);
  border-bottom: 1px solid rgba(221, 215, 203, .76);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

nav a {
  color: #32423c;
  font-size: .88rem;
  font-weight: 650;
}

.hero {
  min-height: clamp(620px, 82vh, 860px);
  overflow: hidden;
  position: relative;
}

.heroVideo {
  height: clamp(620px, 82vh, 860px);
  object-fit: cover;
  width: 100%;
}

.hero::after {
  background: linear-gradient(90deg, rgba(8, 20, 22, .68), rgba(8, 20, 22, .28) 38%, rgba(8, 20, 22, .04) 72%);
  content: "";
  inset: 0;
  position: absolute;
}

.heroOverlay {
  color: white;
  left: clamp(18px, 4.8vw, 70px);
  max-width: 520px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.eyebrow,
.kicker {
  color: var(--sun);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  letter-spacing: 0;
  line-height: .82;
  margin-bottom: 20px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 24px;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  max-width: 500px;
}

.heroFacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.heroFacts span {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font-weight: 750;
  max-width: 100%;
  font-size: .9rem;
  padding: 7px 11px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
}

.button.primary {
  background: var(--sun);
  color: #1c1710;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, .62);
  color: white;
}

.button.disabled {
  cursor: not-allowed;
  opacity: .72;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(54px, 8vw, 100px) clamp(18px, 4vw, 48px);
  width: 100%;
}

.intro,
.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.intro p,
.split p,
.contact p,
.sectionIntro,
.sectionHeader p {
  color: var(--muted);
  font-size: 1.05rem;
}

.sectionHeader {
  max-width: 820px;
}

.videoSection {
  padding-top: 24px;
}

.videoGrid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  margin-top: 30px;
}

.videoMain {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.videoMain video {
  aspect-ratio: 16 / 9;
  background: #0f1918;
  width: 100%;
}

.videoMain div {
  padding: 22px;
}

.videoMain p {
  color: var(--muted);
}

.textLink {
  color: var(--river);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.videoCards {
  display: grid;
  gap: 12px;
}

.videoCard {
  align-content: end;
  background:
    linear-gradient(180deg, rgba(18, 56, 66, .2), rgba(18, 56, 66, .92)),
    url("public/assets/gallery/argos-trois-quarts-avant.jpg") center / cover;
  border-radius: 8px;
  color: white;
  min-height: 150px;
  padding: 18px;
}

.videoCard span {
  color: #f1b05d;
  display: block;
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.videoCard strong {
  display: block;
  font-size: 1.15rem;
}

.pricePanel {
  align-self: start;
  background: var(--river-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  padding: 28px;
  min-width: 0;
}

.pricePanel span {
  color: #b7d8dc;
  display: block;
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pricePanel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.8vw, 3.55rem);
  line-height: .95;
  margin-bottom: 18px;
  white-space: nowrap;
}

.pricePanel p {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 0;
}

.specGrid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  padding-top: 0;
}

.spec {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 118px;
  padding: 20px;
}

.spec span {
  color: var(--muted);
  display: block;
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.spec strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.12;
}

.spec.important {
  background: #fff8ec;
  border-color: rgba(216, 148, 69, .55);
}

.spec.important span {
  color: #9c5d14;
}

.spec.important strong {
  color: #123842;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.featureList {
  display: grid;
  gap: 18px;
}

.featureList p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 18px;
}

.featureList strong {
  color: var(--ink);
}

.spaceGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.space {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.space p {
  color: var(--muted);
  margin-bottom: 0;
}

.imageBand {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  min-height: 420px;
}

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

.history {
  display: grid;
  gap: 32px;
}

.historyGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.historyGrid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.historyGrid p {
  color: var(--muted);
}

.storyMedia {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.storyImage {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 360px;
  padding: 14px;
}

.storyImage img {
  border-radius: 6px;
  max-height: 520px;
  object-fit: contain;
  width: 100%;
}

.mediaModal {
  align-items: center;
  background: rgba(8, 20, 22, .86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 100;
}

.mediaModal.open {
  display: flex;
}

.modalOpen {
  overflow: hidden;
}

.mediaClose {
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  color: #1c1710;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 11px 18px;
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 101;
}

.mediaFrame {
  color: white;
  max-height: min(86vh, 900px);
  max-width: min(92vw, 1180px);
  width: 100%;
}

.mediaFrame img,
.mediaFrame video {
  background: #0f1918;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
  max-height: min(78vh, 820px);
  object-fit: contain;
  width: 100%;
}

.mediaFrame p {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  margin: 12px 0 0;
  text-align: center;
}

.accordion {
  display: grid;
  gap: 10px;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 14px 0 0;
}

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.inlineButton {
  margin: 8px 0 10px;
}

.documents {
  border-top: 1px solid var(--line);
}

.documentGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.documentGrid a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 126px;
  padding: 20px;
}

.documentGrid span {
  color: var(--sun);
  display: block;
  font-size: .76rem;
  font-weight: 900;
  margin-bottom: 9px;
}

.documentGrid strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

figcaption {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
  padding: 12px 14px 14px;
}

.location {
  border-top: 1px solid var(--line);
}

.contact {
  align-items: center;
  background: var(--river-dark);
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin-bottom: 48px;
  max-width: 1180px;
}

.contact h2 {
  margin-bottom: 14px;
}

.contact p {
  color: rgba(255, 255, 255, .76);
  margin-bottom: 0;
}

.contactAside {
  display: grid;
  gap: 14px;
}

model-viewer {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  height: 250px;
  width: 100%;
}

.siteFooter {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px clamp(18px, 4vw, 48px) 42px;
}

.siteFooter div {
  display: grid;
  gap: 4px;
}

.siteFooter span {
  color: var(--muted);
  font-size: .92rem;
}

.galleryHero {
  background:
    linear-gradient(90deg, rgba(8, 20, 22, .84), rgba(8, 20, 22, .34)),
    url("public/assets/gallery/argos-profil-babord-timonerie.jpg") center / cover;
  color: white;
  min-height: 470px;
  padding: clamp(86px, 12vw, 150px) clamp(20px, 7vw, 96px) 64px;
}

.galleryHero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  max-width: 860px;
}

.galleryHero p:not(.kicker) {
  font-size: 1.18rem;
  max-width: 660px;
}

.galleryTools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
}

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

.filterBar button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  max-width: 100%;
  padding: 9px 13px;
  white-space: normal;
}

.filterBar button.active {
  background: var(--river-dark);
  border-color: var(--river-dark);
  color: white;
}

.galleryCount {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.completeGallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 clamp(18px, 4vw, 48px) 72px;
}

.completeGallery figure img {
  aspect-ratio: 1 / 1;
}

.completeGallery figcaption span {
  color: var(--sun);
  display: block;
  font-size: .7rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }

  .heroVideo {
    height: 720px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(8, 20, 22, .88), rgba(8, 20, 22, .18));
  }

  .heroOverlay {
    bottom: 42px;
    left: 18px;
    max-width: calc(100vw - 36px);
    right: 18px;
    top: auto;
    transform: none;
    width: calc(100vw - 36px);
  }

  .intro,
  .split,
  .contact,
  .videoGrid {
    grid-template-columns: 1fr;
  }

  .specGrid,
  .spaceGrid,
  .gallery,
  .historyGrid,
  .documentGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imageBand {
    grid-template-columns: 1fr;
  }

  .imageBand img {
    height: 320px;
  }

  .storyMedia,
  .siteFooter,
  .galleryTools {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  body,
  main {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
  }

  .topbar {
    max-width: 100vw;
    overflow: hidden;
    width: 100vw;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav a {
    font-size: .86rem;
    min-width: 0;
  }

  .section,
  .galleryHero,
  .completeGallery {
    max-width: 100vw;
  }

  .section > *,
  .intro > *,
  .split > *,
  .pricePanel,
  .contact > * {
    max-width: min(330px, calc(100vw - 40px));
    min-width: 0;
    width: 100%;
  }

  .specGrid,
  .spaceGrid,
  .gallery,
  .historyGrid,
  .documentGrid,
  .completeGallery {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.86rem;
    line-height: 1.04;
  }

  .galleryHero h1 {
    font-size: 2.55rem;
    max-width: min(330px, calc(100vw - 40px));
  }

  .galleryHero {
    min-height: 470px;
    padding: 86px 20px 52px;
  }

  .galleryHero p:not(.kicker) {
    max-width: min(330px, calc(100vw - 40px));
  }

  .lead {
    font-size: 1.08rem;
    line-height: 1.42;
    max-width: min(330px, calc(100vw - 40px));
  }

  .heroFacts span {
    border-radius: 16px;
  }

  .heroFacts span:nth-child(3) {
    flex-basis: 100%;
  }

  h2,
  .lead,
  .heroFacts span,
  .pricePanel strong {
    overflow-wrap: anywhere;
  }

  .pricePanel strong {
    white-space: normal;
  }
}
