:root {
  --porcelain: #f2f4f1;
  --paper: #fbfcf9;
  --mist: #dfe3de;
  --rule: #bcc2bc;
  --ink: #151b19;
  --ink-soft: #343c38;
  --muted: #68706b;
  --paca: #164b63;
  --languedoc: #66725e;
  --corse: #a64731;
  --font: "Commissioner", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-pad: clamp(1.2rem, 3.4vw, 4rem);
  --page-max: 110rem;
  --header-height: 4.65rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--paca);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--corse);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 400;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0.55rem var(--page-pad);
  border-bottom: 1px solid var(--rule);
  background: var(--porcelain);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 5.15rem;
  height: auto;
}

.brand-name {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.8rem);
}

.primary-navigation a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  text-decoration: underline;
}

.primary-navigation .navigation-call {
  padding-left: clamp(1.1rem, 2.2vw, 2.3rem);
  border-left: 1px solid var(--rule);
  color: var(--paca);
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(25rem, 0.82fr) minmax(39rem, 1.18fr);
  max-width: var(--page-max);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.hero-introduction {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(3.25rem, 6.5vw, 7rem) clamp(2rem, 5vw, 5.5rem) clamp(2.5rem, 4vw, 4rem) var(--page-pad);
  border-right: 1px solid var(--rule);
}

.hero-introduction h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.5rem, 3.8vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero-summary {
  max-width: 38rem;
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.58;
}

.hero-note {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-contact {
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(8.5rem, 0.65fr) minmax(12rem, 1fr);
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
}

.hero-contact p,
.hero-contact a {
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem 0.25rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.hero-contact a {
  border-left: 1px solid var(--rule);
  padding-left: 1rem;
  text-decoration: none;
}

.hero-contact a:hover,
.hero-contact a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.atlas-document {
  display: grid;
  grid-template-rows: auto minmax(22rem, 1fr) auto auto;
  min-width: 0;
  margin: 0;
  padding: 1rem clamp(1.2rem, 2.4vw, 2.7rem) 1.15rem;
  background: var(--paper);
}

.atlas-document-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0 0.8rem;
  border-bottom: 1px solid var(--ink);
}

.atlas-document-head h2,
.atlas-document-head p {
  margin: 0;
}

.atlas-document-head h2 {
  max-width: 18rem;
  font-size: clamp(1.15rem, 1.65vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.atlas-document-head p {
  align-self: end;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-map-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.france-map {
  width: min(100%, 52rem);
  height: min(60vh, 43rem);
  object-fit: contain;
}

.map-fallback {
  max-width: 20rem;
  margin: auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.atlas-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.atlas-legend > div {
  min-width: 0;
  padding: 0.75rem 0.7rem 0.8rem;
  border-right: 1px solid var(--rule);
}

.atlas-legend > div:first-child {
  padding-left: 0;
}

.atlas-legend > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.atlas-legend dt {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
}

.atlas-legend dd {
  margin: 0.25rem 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.legend-mark {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
}

.legend-mark-paca {
  background: var(--paca);
}

.legend-mark-languedoc {
  background: var(--languedoc);
}

.legend-mark-corse {
  background: var(--corse);
}

.atlas-document figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.atlas-document figcaption a {
  color: inherit;
}

.material-catalog {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(3.5rem, 5vw, 5rem) var(--page-pad) clamp(4rem, 5.5vw, 5.5rem);
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--porcelain);
}

.catalog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 3.5vw, 3.5rem);
}

.catalog-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.95;
}

.material-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  list-style: none;
}

.material-index li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: clamp(8rem, 8vw, 9.5rem);
  padding: 1rem clamp(0.8rem, 1.6vw, 1.6rem) 1.35rem;
  border-right: 1px solid var(--rule);
}

.material-index li:first-child {
  padding-left: 0;
}

.material-index li:last-child {
  padding-right: 0;
  border-right: 0;
}

.material-index h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.contact {
  display: grid;
  grid-template-columns: minmax(20rem, 0.78fr) minmax(28rem, 1.22fr);
  gap: clamp(3rem, 8vw, 9rem);
  max-width: var(--page-max);
  min-height: 35rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad) clamp(3rem, 6vw, 6rem);
  background: var(--ink);
  color: var(--porcelain);
}

.contact-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-title-wrap p {
  margin: 3rem 0 0;
  color: #aeb7b1;
  font-size: 0.78rem;
}

.contact-links {
  align-self: end;
  border-top: 1px solid #6c746f;
}

.contact-links a {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0 1.45rem;
  border-bottom: 1px solid #6c746f;
  text-decoration: none;
  min-width: 0;
}

.contact-links span {
  color: #8e9892;
  font-size: 0.75rem;
}

.contact-links strong {
  min-width: 0;
  font-size: clamp(1.15rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  overflow-wrap: anywhere;
}

.contact-links a:hover strong,
.contact-links a:focus-visible strong {
  text-decoration: underline;
}

.contact :focus-visible {
  outline-color: var(--paper);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.35rem var(--page-pad);
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: var(--paper);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-brand img {
  width: 4.7rem;
  height: auto;
}

.footer-brand span,
.site-footer > p,
.footer-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer > p,
.footer-meta p {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  text-decoration: underline;
}

.footer-socials svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-socials .social-linkedin svg {
  color: var(--paca);
}

.footer-socials .social-instagram svg {
  fill: none;
  stroke: var(--corse);
  stroke-width: 1.8;
}

.footer-socials .social-instagram .instagram-dot {
  fill: var(--corse);
  stroke: none;
}

.footer-meta button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-dialog {
  width: min(68rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.legal-dialog::backdrop {
  background: rgba(15, 20, 18, 0.78);
}

.legal-dialog-inner {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
}

.legal-dialog h2 {
  max-width: 11ch;
  margin: 0 0 3rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.legal-grid h3 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
}

.legal-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
}

.legal-close span {
  position: absolute;
  top: 50%;
  left: 24%;
  width: 52%;
  height: 1px;
  background: var(--ink);
}

.legal-close span:first-child {
  transform: rotate(45deg);
}

.legal-close span:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 75rem) {
  .atlas-hero {
    grid-template-columns: minmax(22rem, 0.75fr) minmax(34rem, 1.25fr);
  }

  .hero-introduction {
    padding-right: 2.5rem;
  }

  .hero-contact {
    grid-template-columns: 1fr;
  }

  .hero-contact a {
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding-left: 0;
  }

  .material-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }

  .material-index li {
    min-height: 9rem;
    border-bottom: 1px solid var(--rule);
  }

  .material-index li:nth-child(3) {
    border-right: 0;
  }

  .material-index li:nth-child(n + 4) {
    border-bottom: 0;
  }

  .material-index li:first-child,
  .material-index li:nth-child(4) {
    padding-left: 0;
  }

}

@media (max-width: 62rem) {
  :root {
    --header-height: 4.4rem;
  }

  .site-header {
    min-height: var(--header-height);
    animation: none;
    transform: none;
  }

  body.menu-open::after {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 99;
    background: rgba(15, 20, 18, 0.42);
    pointer-events: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    gap: 0.35rem;
    place-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: 1px solid var(--rule);
    background: var(--porcelain);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 1.05rem;
    height: 1px;
    background: var(--ink);
    transition: transform 220ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(0.175rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-0.175rem) rotate(-45deg);
  }

  .primary-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    padding: 0.8rem var(--page-pad) 1.35rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--ink);
    background: var(--porcelain);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 220ms ease, transform 260ms var(--ease), visibility 220ms ease;
  }

  .primary-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation a {
    width: 100%;
    padding: 0.85rem 0;
    border-top: 1px solid var(--rule);
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.045em;
  }

  .primary-navigation a:last-child {
    border-bottom: 1px solid var(--rule);
  }

  .primary-navigation .navigation-call {
    margin-top: 0.75rem;
    padding: 1rem 0 0.35rem;
    border-left: 0;
    color: var(--paca);
    font-size: 1.05rem;
    letter-spacing: 0;
  }

  .atlas-hero {
    grid-template-columns: 1fr;
  }

  .hero-introduction {
    min-height: 42rem;
    padding-right: var(--page-pad);
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .hero-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-contact a {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 1rem;
  }

  .atlas-document {
    min-height: 47rem;
  }

  .france-map {
    height: min(62vh, 39rem);
  }

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

  .contact {
    min-height: 0;
  }

  .contact-title-wrap {
    min-height: 18rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer > p {
    display: none;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 44rem) {
  .brand-mark {
    width: 4.55rem;
  }

  .brand-name {
    font-size: 0.76rem;
  }

  .atlas-hero,
  .material-catalog,
  .site-footer {
    border-right: 0;
    border-left: 0;
  }

  .hero-introduction {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .atlas-hero {
    min-height: auto;
  }

  .hero-introduction h1 {
    max-width: 13ch;
    font-size: clamp(2.5rem, 10.5vw, 2.9rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-contact {
    grid-template-columns: 1fr;
  }

  .hero-contact a {
    border-top: 1px solid var(--rule);
    border-left: 0;
    padding-left: 0;
  }

  .atlas-document {
    grid-template-rows: auto minmax(20rem, 1fr) auto auto;
    min-height: 42rem;
  }

  .atlas-document-head p:last-child {
    display: none;
  }

  .france-map {
    height: min(90vw, 31rem);
  }

  .atlas-legend {
    grid-template-columns: 1fr;
  }

  .atlas-document figcaption {
    flex-direction: column;
    gap: 0.35rem;
  }

  .atlas-legend > div,
  .atlas-legend > div:first-child,
  .atlas-legend > div:last-child {
    padding: 0.65rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .atlas-legend > div:last-child {
    border-bottom: 0;
  }

  .catalog-heading {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .catalog-heading h2,
  .contact h2 {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
  }

  .material-index {
    grid-template-columns: 1fr;
  }

  .material-index li,
  .material-index li:first-child,
  .material-index li:nth-child(4),
  .material-index li:nth-child(n + 4) {
    min-height: 5.125rem;
    padding: 0.8rem 0 1.1rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .material-index li:last-child {
    border-bottom: 0;
  }

  .material-index h3 {
    font-size: clamp(1.8rem, 8.5vw, 2.35rem);
  }

  .contact {
    gap: 3rem;
  }

  .contact-title-wrap {
    min-height: 14rem;
  }

  .contact-links a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer > p {
    display: none;
  }

  .footer-meta {
    justify-content: flex-start;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .contact,
  .legal-dialog,
  .footer-meta {
    display: none !important;
  }

  body,
  .atlas-hero,
  .material-catalog,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .atlas-hero,
  .material-catalog {
    min-height: auto;
    break-inside: avoid;
  }
}
