@view-transition { navigation: auto; }

@font-face { font-family: "DM Mono"; font-weight: 400; src: url(fonts/dm-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-weight: 500; src: url(fonts/dm-mono-latin-500-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --papier: #efe8d8;
  --sable: #ddd0b8;
  --encre: #231a14;
  --brique: #8c3a2b;
  --prune: #4a1f28;
  --sauge: #8e9b83;
  --blanc: #ffffff;
  --mono: "DM Mono", monospace;
  --serif: "Fraunces", serif;
  --sans: "Jost", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body { background: var(--papier); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.annonce { background: var(--sable); text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; padding: .55rem 1rem; }
.annonce a { text-decoration: underline; }

.entete { display: flex; align-items: center; gap: 3rem; padding: 1.1rem 2rem; font-family: var(--mono); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; position: relative; z-index: 5; }
.entete .logo { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: .05em; text-decoration: none; line-height: 1; white-space: nowrap; }
.entete nav { display: flex; gap: 1.8rem; }
.entete nav a { text-decoration: none; padding: .2rem 0; border-bottom: 1px solid transparent; }
.entete nav a:hover, .entete nav a[aria-current] { border-color: currentColor; }
.entete .droite { margin-left: auto; text-decoration: none; }
.menu-mobile { display: none; margin-left: auto; position: relative; }

.hero { display: grid; grid-template-columns: 1fr 1fr; height: min(calc(100svh - 6.2rem), 52rem); min-height: 30rem; }
.hero figure { position: relative; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s ease; }
.hero figure:hover img { scale: 1.04; }
.hero figcaption { position: absolute; left: 2rem; bottom: 2rem; }
.hero figcaption a, .lien { font-family: var(--mono); text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.hero figure:nth-child(2) figcaption a { color: var(--blanc); }

main section { padding: clamp(3.5rem, 8vw, 7rem) 2rem; }
.sur { font-family: var(--mono); text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--brique); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: .6rem 0 1.2rem; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h3 { font-family: var(--mono); font-weight: 500; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
p + p { margin-top: 1rem; }
.large { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.4; max-width: 30ch; }

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.deux > * { min-height: 32rem; }
.deux img { width: 100%; height: 100%; object-fit: cover; }
.deux .texte { padding: clamp(2rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.fond-prune { background: var(--prune); color: var(--papier); }
.fond-prune .sur { color: var(--sauge); }
.fond-sable { background: var(--sable); }
main .deux { padding: 0; }
main section.deux { padding: 0; }

.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--encre); border: 1px solid var(--encre); }
.produit { background: var(--papier); padding: 0 0 1.2rem; }
.produit img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.produit h3, .produit p { padding: 0 1rem; }
.produit h3 { margin-top: 1rem; }
.produit p { font-size: .9rem; margin-top: .3rem; }
.produit .ref { font-family: var(--mono); font-size: .75rem; opacity: .7; }
.bandeau-page { padding: clamp(3rem, 6vw, 5rem) 2rem 2rem; }
.bandeau-page p.large { margin-top: 1rem; }

.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; font-family: var(--mono); font-size: .9rem; }
.infos div { border-top: 1px solid currentColor; padding-top: 1rem; }
.infos h3 { margin-bottom: .6rem; }

.pied { background: var(--encre); color: var(--papier); padding: 3rem 2rem 1.6rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; }
.pied .logo { font-size: 2.2rem; line-height: 1; }
.pied a { display: block; text-decoration: none; padding: .15rem 0; }
.pied a:hover { text-decoration: underline; }
.pied .mention { grid-column: 1 / -1; text-transform: none; opacity: .6; border-top: 1px solid color-mix(in srgb, var(--papier) 25%, transparent); padding-top: 1.2rem; }

@supports (animation-timeline: view()) {
  .apparait { animation: ap linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  @keyframes ap { from { opacity: 0; translate: 0 40px; } }
}

@media (max-width: 860px) {
  .entete { padding: 1rem 1.2rem; }
  .entete nav, .entete .droite { display: none; }
  .menu-mobile { display: block; }
  .menu-mobile summary { list-style: none; cursor: pointer; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile div { position: absolute; right: 0; top: 2rem; background: var(--papier); border: 1px solid var(--encre); padding: .8rem 1.2rem; min-width: 14rem; display: grid; }
  .menu-mobile a { text-decoration: none; padding: .45rem 0; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero figure { height: 50svh; }
  .deux, .infos, .pied { grid-template-columns: 1fr; }
  .grille { grid-template-columns: 1fr 1fr; }
  main section { padding-inline: 1.2rem; }
  body { font-size: 16px; }
}
