/* Atelier Berthier : une monographie. Vert sapin profond, frêne clair, Caslon en très grand, la photo en majesté. */
@font-face { font-family: "Libre Caslon Display"; src: url("fonts/caslon-display.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --sapin: #17271F; --sapin-2: #203429; --frene: #EEE9DF; --frene-2: #E3DCCD; --chene: #C39A63; --chene-f: #8A6230; --encre: #1A1712; --doux: #5C5A50; --doux-c: #AEB5A7; --filet-c: rgba(238, 233, 223, .18); --filet: rgba(26, 23, 18, .16); --marge: clamp(20px, 4.4vw, 76px); --sortie: cubic-bezier(.16, 1, .3, 1); --tete: 96px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sapin); color: var(--frene); font: 400 17px/1.6 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
::selection { background: var(--chene); color: var(--encre); }
:focus-visible { outline: 2px solid var(--chene); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.evite { position: absolute; left: -9999px; }
.evite:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; }
.cadre { width: 100%; max-width: 1560px; margin: 0 auto; padding-inline: var(--marge); }
.titre { font: 400 clamp(46px, 6.7vw, 116px)/.98 "Libre Caslon Display", serif; letter-spacing: -.012em; }
.titre--m { font-size: clamp(40px, 4.6vw, 78px); line-height: 1; }

.bouton { display: inline-flex; align-items: center; gap: 16px; padding: 0 0 8px; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: 18px; font-weight: 500; cursor: pointer; transition: gap .4s var(--sortie), color .2s; }
.bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
@media (hover: hover) { .bouton:hover { gap: 26px; color: var(--chene); } }
.bouton:active { transform: scale(.985); }
.lien { position: relative; font-size: 15px; font-weight: 500; }
.lien::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform-origin: right; transition: transform .45s var(--sortie); }
@media (hover: hover) { .lien:hover::after { transform: scaleX(0); } }

/* En-tête : logo au centre, à la façon d'une couverture de monographie */
.tete { position: absolute; z-index: 20; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; height: var(--tete); padding-inline: var(--marge); }
.tete__nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.tete__nav a { opacity: .86; transition: opacity .2s; } 
@media (hover: hover) { .tete__nav a:hover { opacity: 1; } }
.tete__nav-cta { display: none; }
.tete__logo svg { height: 52px; width: auto; }
.tete__cta { justify-self: end; }
.burger { display: none; justify-self: end; width: 46px; height: 46px; position: relative; z-index: 2; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--frene); transition: transform .4s var(--sortie), top .4s var(--sortie); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.menu-ouvert .burger span:first-child { top: 23px; transform: rotate(45deg); }
.menu-ouvert .burger span:last-child { top: 23px; transform: rotate(-45deg); }

/* Une : le titre chevauche la photo */
.une { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--tete) + clamp(4px, 1.4vh, 24px)) var(--marge) 68px; }
.une__titre { position: relative; z-index: 2; font: 400 clamp(62px, min(11.8vw, 21vh), 220px)/.96 "Libre Caslon Display", serif; letter-spacing: -.02em; mix-blend-mode: normal; }
.l--retrait { padding-left: 10vw; }
.une__photo { position: relative; flex: 1 1 340px; min-height: 340px; margin: clamp(-56px, -3vw, -18px) 0 0 auto; width: 82%; overflow: hidden; }
.une__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 39, 31, .5), rgba(23, 39, 31, 0) 26%); }
.une__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.une__pied { position: absolute; left: var(--marge); bottom: 68px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; width: min(15.4%, 250px); font-size: 15.5px; line-height: 1.5; color: var(--doux-c); }
.une__pied .bouton { color: var(--frene); font-size: 16px; }

/* Manifeste : les mots s'allument au défilement */
.manifeste { padding: clamp(90px, 12vw, 200px) var(--marge); }
.manifeste__texte { max-width: 1240px; margin-inline: auto; font: 400 clamp(32px, 4.5vw, 76px)/1.12 "Libre Caslon Display", serif; letter-spacing: -.008em; }
.manifeste__texte span { transition: color .5s var(--sortie); }
html.js .manifeste__texte span { color: rgba(238, 233, 223, .2); }
html.js .manifeste__texte span.allume, html.capture .manifeste__texte span { color: var(--frene); }

/* Réalisations : le défilement vertical fait glisser la piste */
.reals { background: var(--frene); color: var(--encre); }
.reals__coince { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; overflow: hidden; }
.reals__piste { display: flex; align-items: flex-end; gap: clamp(30px, 4vw, 70px); padding-inline: var(--marge); will-change: transform; }
.reals__intro { flex: none; width: min(34vw, 520px); align-self: center; }
.reals__intro p { margin-top: 20px; max-width: 24em; color: var(--doux); }
.piece { flex: none; width: 56vw; }
.piece--haute { width: min(40vw, 58vh); }
.piece--large { width: 70vw; }
.piece img { width: 100%; height: 66vh; object-fit: cover; }
.piece--haute img { height: 74vh; }
.piece figcaption { display: flex; flex-wrap: wrap; gap: 2px 20px; justify-content: space-between; margin-top: 14px; font-size: 15px; }
.piece figcaption b { font: 400 22px/1.2 "Libre Caslon Display", serif; }
.piece figcaption span { color: var(--doux); }

/* Essences */
.essences { padding-block: clamp(80px, 10vw, 170px); background: var(--frene); color: var(--encre); }
.essences__grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 110px); align-items: center; }
.essences__choix { display: flex; gap: 8px; margin-top: clamp(30px, 3.4vw, 54px); border-bottom: 1px solid var(--filet); }
.essences__choix button { position: relative; padding: 12px 18px 16px 0; margin-right: 18px; border: 0; background: none; font: 400 clamp(26px, 2.6vw, 40px)/1 "Libre Caslon Display", serif; color: rgba(26, 23, 18, .45); cursor: pointer; transition: color .25s; }
.essences__choix button::after { content: ""; position: absolute; left: 0; right: 18px; bottom: -1px; height: 2px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--sortie); }
.essences__choix button[aria-selected="true"] { color: var(--encre); }
.essences__choix button[aria-selected="true"]::after { transform: scaleX(1); }
.essences__fiches { min-height: 6.6em; margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.3vw, 20px); color: var(--doux); }
.essences__bois { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; height: clamp(320px, 42vw, 640px); }
.planche { display: block; background: url("img/essences-1536.webp") no-repeat; background-size: 300% 100%; transition: transform .8s var(--sortie), box-shadow .6s var(--sortie); transform: scaleY(.88); }
.planche--frene { background-position: 0 0; } .planche--chene { background-position: 50% 0; } .planche--noyer { background-position: 100% 0; }
.essences__bois .planche { will-change: transform; }
[data-bois="frene"] .planche--frene, [data-bois="chene"] .planche--chene, [data-bois="noyer"] .planche--noyer { transform: none; box-shadow: 0 30px 50px -28px rgba(26, 23, 18, .55); }

/* Le geste */
.geste { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(30px, 5vw, 90px); padding-right: var(--marge); background: var(--sapin-2); }
.geste__photo { height: clamp(380px, 52vw, 800px); overflow: hidden; }
.geste__photo img { width: 100%; height: 100%; object-fit: cover; }
.geste__texte p { margin-top: 22px; max-width: 30em; color: var(--doux-c); font-size: clamp(17px, 1.3vw, 20px); }

/* Étapes : une frise qui se lit comme un plan */
/* Le montage : la queue d'aronde s'emboîte au défilement */
.montage { background: var(--sapin-2); }
.montage__grille { height: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(24px, 4vw, 80px); }
.montage__objet { width: 100%; aspect-ratio: 1300 / 1064; max-height: 86svh; justify-self: center; }
.montage__etapes { margin-top: clamp(26px, 3vw, 48px); border-left: 1px solid var(--filet-c); }
.montage__etapes li { position: relative; padding: 0 0 clamp(18px, 2vw, 30px) 28px; }
.montage__etapes li::before { content: ""; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--sapin-2); box-shadow: inset 0 0 0 1px var(--chene); transition: background-color .4s var(--sortie); }
.montage__etapes li.on::before, .montage__etapes li.passe::before { background: var(--chene); }
.montage__etapes b { display: block; font: 400 clamp(25px, 2.2vw, 36px)/1.1 "Libre Caslon Display", serif; }
.montage__etapes span { display: block; margin-top: 6px; max-width: 24em; color: var(--doux-c); font-size: 16px; }
.montage__barre { width: 100%; margin-top: 6px; background: var(--filet-c); }
.montage__barre i { background: var(--chene); }
html.capture .montage { padding-block: clamp(70px, 9vw, 150px); }

.etapes { padding-block: clamp(90px, 12vw, 190px); }
.etapes__liste { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(44px, 6vw, 96px); border-top: 1px solid var(--filet-c); counter-reset: e; }
.etapes__liste li { position: relative; padding: 26px 28px 0 0; counter-increment: e; }
.etapes__liste li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--chene); }
.etapes__liste b { display: block; font: 400 clamp(25px, 2.3vw, 36px)/1.1 "Libre Caslon Display", serif; }
.etapes__liste p { margin-top: 10px; max-width: 24em; color: var(--doux-c); font-size: 16px; }

/* Atelier */
.atelier { position: relative; display: flex; align-items: flex-end; min-height: min(100vh, 980px); overflow: hidden; }
.atelier__photo { position: absolute; inset: -9% 0; }
.atelier__photo img { width: 100%; height: 100%; object-fit: cover; }
.atelier::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 39, 31, .92), rgba(23, 39, 31, 0) 58%); }
.atelier__texte { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px 50px; align-items: end; padding-block: clamp(30px, 4.6vw, 70px); }
.atelier__texte p { max-width: 30em; font-size: clamp(16.5px, 1.25vw, 19px); }

/* Projet : une phrase à compléter */
.projet { padding-block: clamp(80px, 10vw, 170px); background: var(--frene); color: var(--encre); }
.projet__grille { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.projet__tampon { aspect-ratio: 1; overflow: hidden; }
.projet__tampon img { width: 100%; height: 100%; object-fit: cover; }
.phrase__texte { margin: clamp(24px, 3vw, 44px) 0 clamp(26px, 3vw, 44px); font: 400 clamp(29px, 3.6vw, 60px)/1.32 "Libre Caslon Display", serif; color: var(--doux); }
.ch { display: inline-block; position: relative; }
.ch select { appearance: none; padding: 0 1.05em 0 .06em; border: 0; border-bottom: 2px solid var(--encre); border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231A1712' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right .1em center / .55em; font: inherit; color: var(--encre); cursor: pointer; max-width: 100%; }
.ch select:focus-visible { outline: 2px solid var(--chene-f); }
.projet .bouton { color: var(--encre); }
@media (hover: hover) { .projet .bouton:hover { color: var(--chene-f); } }
.phrase__msg { margin-top: 18px; padding: 13px 16px; background: var(--sapin); color: var(--frene); font-size: 15px; }

.pied { padding-block: clamp(46px, 5vw, 76px) 84px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: center; color: var(--doux-c); font-size: 15.5px; }
.pied__logo { height: 62px; width: auto; }
.pied__note { margin-top: 28px; font-size: 13.5px; color: var(--doux-c); }

@media (max-width: 1240px) {
  .une__photo { width: 76%; }
  .une__pied { width: 20%; font-size: 14.5px; }
  .une__pied .bouton { font-size: 15px; gap: 10px; white-space: nowrap; }
}
@media (max-width: 1000px) {
  :root { --tete: 80px; }
  .tete { grid-template-columns: auto 1fr; }
  .tete__logo { position: relative; z-index: 2; grid-column: 1; grid-row: 1; }
  .tete__logo svg { height: 44px; }
  .tete__cta { display: none; }
  .burger { display: block; grid-column: 2; grid-row: 1; }
  .tete__nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 8px; padding: 90px var(--marge); background: var(--sapin); font: 400 clamp(40px, 11vw, 70px)/1.14 "Libre Caslon Display", serif; opacity: 0; visibility: hidden; transition: opacity .35s var(--sortie), visibility 0s .35s; }
  .menu-ouvert .tete__nav { opacity: 1; visibility: visible; transition: opacity .35s var(--sortie); }
  .tete__nav a { opacity: 1; } .tete__nav-cta { display: block; color: var(--chene); }
  .une { display: block; min-height: 0; padding-bottom: 40px; }
  .une__photo { width: 100%; margin-top: 18px; aspect-ratio: 4 / 3.2; min-height: 0; }
  .une__pied { width: auto; font-size: 16px; }
  .une__pied { position: static; width: auto; margin-top: 24px; max-width: 34em; }
  .l--retrait { padding-left: 0; }
  .reals__coince { position: static; height: auto; display: block; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--marge); scrollbar-width: none; padding-block: 64px; }
  .reals__coince::-webkit-scrollbar { display: none; }
  .reals__piste { width: max-content; transform: none !important; align-items: flex-start; gap: 16px; }
  .reals__intro { width: 76vw; max-width: 520px; align-self: center; scroll-snap-align: start; }
  .piece, .piece--haute, .piece--large { width: 80vw; max-width: 620px; scroll-snap-align: center; }
  .piece img, .piece--haute img { height: 62vw; max-height: 480px; }
  .essences__grille, .geste, .atelier__texte, .projet__grille { grid-template-columns: 1fr; }
  .geste { padding: 0 0 56px; gap: 26px; } .geste__texte { padding-inline: var(--marge); }
  .etapes__liste { grid-template-columns: 1fr 1fr; row-gap: 34px; border-top: 0; }
  .etapes__liste li { border-top: 1px solid var(--filet-c); }
  .projet__tampon { max-width: 240px; }
  .montage__grille { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0; padding-top: 70px; }
  .montage__objet { order: 2; width: min(116%, 66svh); max-height: none; justify-self: center; }
  .montage__etapes { display: grid; margin-top: 18px; border-left: 0; }
  .montage__etapes li { grid-area: 1 / 1; padding: 0; }
  .montage__etapes li::before { display: none; }
  html.js .montage__etapes li { opacity: 0; transform: translateY(10px); }
  html.js .montage__etapes li.on { opacity: 1; transform: none; }
  .montage__barre { margin-top: 16px; }
  html.capture .montage__etapes { display: block; }
  html.capture .montage__etapes li { opacity: 1; transform: none; padding-bottom: 16px; }
}
@media (max-width: 380px) { .titre { font-size: 36px; } .tete__nav { font-size: 34px; } }
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .une__titre { font-size: clamp(50px, 15.6vw, 90px); }
  .etapes__liste { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .ch select { max-width: 86vw; }
  .essences__choix { justify-content: space-between; gap: 0; }
  .essences__choix button { margin-right: 0; padding-right: 0; font-size: clamp(24px, 7.4vw, 30px); }
  .essences__choix button::after { right: 0; }
}

html:not(.js) .reals__coince { overflow-x: auto; }

@font-face { font-family: "Libre Caslon Display"; src: url("../fine.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+202F; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fine.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+202F; }
