@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/karla-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/karla-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/karla-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/karla-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Atelier Déco : velours sapin, lin, laiton et fil rouge */

:root {
  --sapin: #203a30;
  --sapin-fonce: #172b23;
  --sapin-clair: #2e5244;
  --lin: #e6e0d3;
  --lin-clair: #eee9df;
  --papier: #f7f3ec;
  --encre: #27221e;
  --encre-douce: #5c534a;
  --laiton: #b38a4f;
  --laiton-clair: #dcbd85;
  --marine: #1c2640;
  --marine-clair: #283556;
  --kraft: #cdb189;
  --kraft-fonce: #a98d64;
  --fuchsia: #c2185b;
  --fuchsia-fonce: #9a1048;
  --fuchsia-clair: #ec5d95;
  --rose-tyrien: #7c1240;
  --fougere: #5f8f2e;
  --fougere-clair: #9cc256;
  --fil: var(--fuchsia);
  --focus: var(--fuchsia);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", "Segoe UI", system-ui, sans-serif;

  --gouttiere: clamp(16px, 4.5vw, 64px);
  --largeur: 1240px;
  --courbe: cubic-bezier(.2, .75, .2, 1);
  --rideau: cubic-bezier(.75, 0, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --trame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 3h6M3 0v6' stroke='%2327221e' stroke-opacity='.045' stroke-width='1'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
html.fiche-ouverte,
html.fiche-ouverte body { overflow: hidden; }

* { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--lin);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .22;
  mix-blend-mode: multiply;
  z-index: 100;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: .6em 1em;
  background: var(--papier);
  border-radius: 6px;
}
.evitement:focus { top: 12px; }

.titre-section {
  font-size: clamp(2.05rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 17ch;
}
.titre-section--petit { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }

/* Boutons et liens -------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .8em 1.55em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--courbe);
}
.bouton:active { transform: translateY(1px); }
.bouton--vif { background: var(--fuchsia); color: var(--papier); box-shadow: 0 10px 24px -12px rgba(154, 16, 72, .8); }
.bouton--vif:hover { background: var(--fuchsia-fonce); }
.bouton--fil { border: 1.5px dashed currentColor; background: transparent; }
.bouton--fil:hover { border-style: solid; }
.bouton--petit { min-height: 40px; padding: .5em 1.1em; font-size: .9rem; background: var(--sapin); color: var(--lin); }
.bouton--petit:hover { background: var(--sapin-clair); }

.lien-fil {
  text-decoration: none;
  font-weight: 600;
  background-image: linear-gradient(90deg, currentColor 55%, transparent 55%);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: color .2s;
}
.lien-fil:hover { color: var(--fil); }

/* Étiquette kraft : la forme revient partout ------------------------ */

.etiquette,
.piece__etiquette,
.carte-atelier,
.fiche__etiquette {
  position: relative;
  isolation: isolate;
}
.etiquette::before,
.piece__etiquette::before,
.carte-atelier::before,
.fiche__etiquette::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kraft) var(--grain);
  background-blend-mode: multiply;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  filter: drop-shadow(0 1px 0 rgba(39, 34, 30, .12));
}
.etiquette__trou {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lin);
  box-shadow: 0 0 0 2.5px var(--laiton), inset 0 1px 2px rgba(0, 0, 0, .35);
}

/* En-tête ----------------------------------------------------------- */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
  padding: 0 var(--gouttiere);
  color: var(--lin);
  transition: background-color .35s, color .35s, height .35s var(--courbe);
}
.entete::after {
  content: "";
  position: absolute;
  left: var(--gouttiere);
  right: var(--gouttiere);
  bottom: 0;
  height: 1.5px;
  background-image: linear-gradient(90deg, var(--laiton) 55%, transparent 55%);
  background-size: 12px 1.5px;
  opacity: 0;
  transition: opacity .35s;
}
.entete.est-defile {
  height: 66px;
  background: color-mix(in srgb, var(--lin) 92%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  color: var(--encre);
  --fond-aiguille: var(--lin);
}
.entete.est-defile::after { opacity: .7; }

.marque {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-decoration: none;
  line-height: 1.1;
}
.marque__aiguille {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  color: var(--laiton-clair);
}
.est-defile .marque__aiguille { color: var(--laiton); }
.marque__nom {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marque__signature { font-size: .8rem; opacity: .8; }

.navigation { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.navigation a {
  text-decoration: none;
  font-size: .97rem;
  padding: 6px 0;
  background-image: linear-gradient(90deg, currentColor 55%, transparent 55%);
  background-size: 8px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-clip: padding-box;
  transition: background-size .3s;
}
.navigation a:not(.navigation__contact) { background-size: 0 1.5px, 8px 1.5px; }
.navigation a:not(.navigation__contact):hover { background-size: 8px 1.5px; }
.navigation .navigation__contact {
  padding: .45em 1.15em;
  border: 1.5px dashed currentColor;
  border-radius: 999px;
  background: none;
}
.navigation .navigation__contact:hover { border-style: solid; }

.entete__menu {
  display: none;
  border: 1.5px dashed currentColor;
  background: none;
  border-radius: 999px;
  padding: .45em 1.1em;
  min-height: 44px;
}

/* Ouverture --------------------------------------------------------- */

.ouverture {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 120px var(--gouttiere) 96px;
  color: var(--lin);
  background:
    radial-gradient(90% 70% at 18% 8%, rgba(76, 122, 103, .38), transparent 60%),
    radial-gradient(70% 60% at 85% 95%, rgba(9, 20, 15, .55), transparent 70%),
    var(--sapin);
  overflow: hidden;
  --focus: var(--fuchsia-clair);
  isolation: isolate;
}
.ouverture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px);
  pointer-events: none;
}
.ouverture__palmes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #2c5444;
  stroke: #2c5444;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.medaillon { z-index: 1; }
.ouverture__texte { position: relative; max-width: 640px; justify-self: end; width: 100%; }

.ouverture__titre {
  font-size: clamp(2.7rem, 6.3vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.025em;
  font-weight: 360;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.ligne > span { display: inline-block; }
.ligne--douce { font-style: italic; font-weight: 300; }

.ouverture__fil {
  display: block;
  width: min(420px, 80%);
  height: 24px;
  margin: 26px 0 26px;
  overflow: visible;
}
.ouverture__fil path {
  fill: none;
  stroke: var(--fuchsia-clair);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 9 7;
  vector-effect: non-scaling-stroke;
}
.ouverture__intro { max-width: 46ch; font-size: 1.12rem; color: color-mix(in srgb, var(--lin) 86%, transparent); }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.medaillon {
  position: relative;
  margin: 0;
  width: min(470px, 100%);
  aspect-ratio: 100 / 120;
  justify-self: start;
}
.medaillon__cadre {
  position: absolute;
  inset: 2.5% 3%;
  border-radius: 50% 50% 1.5% 1.5% / 40.87% 40.87% 1.2% 1.2%;
  overflow: hidden;
  background: var(--sapin-fonce);
  box-shadow:
    0 0 0 9px var(--fougere),
    0 0 0 10.5px rgba(0, 0, 0, .25),
    0 40px 70px -20px rgba(0, 0, 0, .55);
}
.medaillon__cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.medaillon__clous {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px .6px rgba(0, 0, 0, .55));
}
.clou { transform-box: fill-box; transform-origin: center; }

.etiquette--medaillon {
  position: absolute;
  right: -15%;
  bottom: -1%;
  max-width: 190px;
  padding: 14px 16px 14px 36px;
  color: var(--encre);
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.3;
  transform: rotate(-7deg);
  transform-origin: 18px 50%;
}
.etiquette--medaillon .etiquette__trou { left: 13px; top: calc(50% - 5.5px); }
.etiquette--medaillon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 46px;
  height: 1.6px;
  background: var(--fil);
  transform-origin: 0 50%;
  transform: rotate(-150deg);
  z-index: -2;
}

/* Animation d'ouverture : un seul moment orchestré */
@media (prefers-reduced-motion: no-preference) {
  .ligne > span { animation: monte 1s var(--courbe) both; }
  .ligne:nth-child(1) > span { animation-delay: .15s; }
  .ligne:nth-child(2) > span { animation-delay: .27s; }
  .ligne:nth-child(3) > span { animation-delay: .5s; }
  .ligne:nth-child(4) > span { animation-delay: .62s; }
  .ouverture__fil { animation: coud 1.5s .95s var(--rideau) both; }
  .ouverture__intro, .ouverture__actions { animation: apparait .9s 1.25s ease both; }
  .medaillon__cadre { animation: medaillon 1.3s .1s var(--courbe) both; }
  .clou { animation: clou .45s calc(.75s + var(--i) * 22ms) cubic-bezier(.3, 1.6, .5, 1) both; }
  .etiquette--medaillon { animation: balance 1.6s 2s cubic-bezier(.3, 1.4, .4, 1) both; }
  .etiquette--medaillon:hover { animation: oscille 1.2s ease; }
}
@keyframes monte { from { transform: translateY(108%); } }
@keyframes coud { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } }
@keyframes medaillon { from { opacity: 0; transform: scale(.94); } }
@keyframes clou { from { transform: scale(0); opacity: 0; } }
@keyframes balance { from { transform: rotate(-38deg); opacity: 0; } 20% { opacity: 1; } }
@keyframes oscille { 30% { transform: rotate(-14deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(-9deg); } }

/* Bande géométrique, comme le mur et les tapis de l'atelier ------------- */

.geometrie {
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40L20 20Z' fill='%23ebe6dc'/%3E%3Cpath d='M40 0v40L20 20Z' fill='%23958f85'/%3E%3Cpath d='M0 40h40L20 20Z' fill='%23262220'/%3E%3Cpath d='M0 0v40l20-20Z' fill='%23cfc8bb'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* Couture entre deux sections ---------------------------------------- */

.couture { position: relative; height: 0; z-index: 3; }
.couture span {
  position: absolute;
  left: var(--gouttiere);
  right: var(--gouttiere);
  top: -1px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--laiton) 58%, transparent 58%);
  background-size: 14px 2px;
  transform-origin: 0 50%;
}
.couture--sapin span { top: -1px; }
@media (prefers-reduced-motion: no-preference) {
  .couture span { transform: scaleX(0); transition: transform 1.8s var(--rideau); }
  .couture.est-visible span { transform: scaleX(1); }
}

/* L'atelier ---------------------------------------------------------- */

.atelier,
.realisations,
.contact {
  background-image: var(--trame);
}

.atelier { padding: clamp(88px, 12vw, 168px) var(--gouttiere) clamp(72px, 9vw, 120px); }
.atelier__tete,
.savoirs,
.tissus,
.realisations__tete,
.pieces,
.metier__tete,
.metier__corps {
  max-width: var(--largeur);
  margin-inline: auto;
}
.atelier__tete {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  grid-template-areas: "titre photo" "chapo photo";
  gap: 36px clamp(32px, 7vw, 120px);
  align-items: start;
}
.atelier__tete .titre-section { grid-area: titre; }
.atelier__photo {
  grid-area: photo;
  justify-self: end;
  width: min(360px, 100%);
  margin: 0;
  padding: 10px 10px 34px;
  background: var(--papier);
  box-shadow: 0 1px 2px rgba(39, 34, 30, .2), 0 24px 40px -18px rgba(39, 34, 30, .45);
  transform: rotate(2.2deg);
}
.atelier__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.atelier__chapo {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  font-variation-settings: "SOFT" 30;
  max-width: 52ch;
  grid-area: chapo;
}

.savoirs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 104px);
  margin-bottom: 0;
}
.savoir { padding: 6px clamp(18px, 3vw, 40px) 6px; }
.savoir:first-child { padding-left: 0; }
.savoir + .savoir {
  background-image: linear-gradient(180deg, rgba(39, 34, 30, .35) 55%, transparent 55%);
  background-size: 1.5px 10px;
  background-repeat: repeat-y;
}
.savoir dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.savoir dd { margin: 0; color: var(--encre-douce); max-width: 36ch; }
.savoir dd + dd { margin-top: 16px; color: var(--encre); }

/* La boîte à tissus */
.tissus { margin-top: clamp(80px, 11vw, 140px); }
.tissus__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.tissus__tete p { color: var(--encre-douce); max-width: 50ch; }
.tissus__catalogues {
  margin-top: 44px;
  max-width: 60ch;
  padding: 4px 0 4px 20px;
  border-left: 2px dashed var(--fuchsia);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}
.tissus__liste {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 34px 22px;
}
.tissu { display: grid; justify-items: center; gap: 10px; text-align: center; }
.tissu button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  filter: drop-shadow(0 6px 8px rgba(39, 34, 30, .22));
  transform: rotate(var(--r));
  transition: transform .45s var(--courbe), filter .45s;
}
.tissu img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: polygon(0.00% 0.00%,2.27% 2.20%,4.55% 0.00%,6.82% 2.20%,9.09% 0.00%,11.36% 2.20%,13.64% 0.00%,15.91% 2.20%,18.18% 0.00%,20.45% 2.20%,22.73% 0.00%,25.00% 2.20%,27.27% 0.00%,29.55% 2.20%,31.82% 0.00%,34.09% 2.20%,36.36% 0.00%,38.64% 2.20%,40.91% 0.00%,43.18% 2.20%,45.45% 0.00%,47.73% 2.20%,50.00% 0.00%,52.27% 2.20%,54.55% 0.00%,56.82% 2.20%,59.09% 0.00%,61.36% 2.20%,63.64% 0.00%,65.91% 2.20%,68.18% 0.00%,70.45% 2.20%,72.73% 0.00%,75.00% 2.20%,77.27% 0.00%,79.55% 2.20%,81.82% 0.00%,84.09% 2.20%,86.36% 0.00%,88.64% 2.20%,90.91% 0.00%,93.18% 2.20%,95.45% 0.00%,97.73% 2.20%,100.00% 0.00%,97.80% 2.27%,100.00% 4.55%,97.80% 6.82%,100.00% 9.09%,97.80% 11.36%,100.00% 13.64%,97.80% 15.91%,100.00% 18.18%,97.80% 20.45%,100.00% 22.73%,97.80% 25.00%,100.00% 27.27%,97.80% 29.55%,100.00% 31.82%,97.80% 34.09%,100.00% 36.36%,97.80% 38.64%,100.00% 40.91%,97.80% 43.18%,100.00% 45.45%,97.80% 47.73%,100.00% 50.00%,97.80% 52.27%,100.00% 54.55%,97.80% 56.82%,100.00% 59.09%,97.80% 61.36%,100.00% 63.64%,97.80% 65.91%,100.00% 68.18%,97.80% 70.45%,100.00% 72.73%,97.80% 75.00%,100.00% 77.27%,97.80% 79.55%,100.00% 81.82%,97.80% 84.09%,100.00% 86.36%,97.80% 88.64%,100.00% 90.91%,97.80% 93.18%,100.00% 95.45%,97.80% 97.73%,100.00% 100.00%,97.73% 97.80%,95.45% 100.00%,93.18% 97.80%,90.91% 100.00%,88.64% 97.80%,86.36% 100.00%,84.09% 97.80%,81.82% 100.00%,79.55% 97.80%,77.27% 100.00%,75.00% 97.80%,72.73% 100.00%,70.45% 97.80%,68.18% 100.00%,65.91% 97.80%,63.64% 100.00%,61.36% 97.80%,59.09% 100.00%,56.82% 97.80%,54.55% 100.00%,52.27% 97.80%,50.00% 100.00%,47.73% 97.80%,45.45% 100.00%,43.18% 97.80%,40.91% 100.00%,38.64% 97.80%,36.36% 100.00%,34.09% 97.80%,31.82% 100.00%,29.55% 97.80%,27.27% 100.00%,25.00% 97.80%,22.73% 100.00%,20.45% 97.80%,18.18% 100.00%,15.91% 97.80%,13.64% 100.00%,11.36% 97.80%,9.09% 100.00%,6.82% 97.80%,4.55% 100.00%,2.27% 97.80%,0.00% 100.00%,2.20% 97.73%,0.00% 95.45%,2.20% 93.18%,0.00% 90.91%,2.20% 88.64%,0.00% 86.36%,2.20% 84.09%,0.00% 81.82%,2.20% 79.55%,0.00% 77.27%,2.20% 75.00%,0.00% 72.73%,2.20% 70.45%,0.00% 68.18%,2.20% 65.91%,0.00% 63.64%,2.20% 61.36%,0.00% 59.09%,2.20% 56.82%,0.00% 54.55%,2.20% 52.27%,0.00% 50.00%,2.20% 47.73%,0.00% 45.45%,2.20% 43.18%,0.00% 40.91%,2.20% 38.64%,0.00% 36.36%,2.20% 34.09%,0.00% 31.82%,2.20% 29.55%,0.00% 27.27%,2.20% 25.00%,0.00% 22.73%,2.20% 20.45%,0.00% 18.18%,2.20% 15.91%,0.00% 13.64%,2.20% 11.36%,0.00% 9.09%,2.20% 6.82%,0.00% 4.55%,2.20% 2.27%);
}
.tissu button:focus-visible,
.tissu button:active {
  transform: rotate(0) translateY(-8px) scale(1.06);
  filter: drop-shadow(0 14px 14px rgba(39, 34, 30, .25));
}
@media (hover: hover) {
  .tissu button:hover { transform: rotate(0) translateY(-8px) scale(1.06); filter: drop-shadow(0 14px 14px rgba(39, 34, 30, .25)); }
}
.tissu span { font-size: .85rem; line-height: 1.3; color: var(--encre-douce); }

/* Réalisations ------------------------------------------------------- */

.realisations {
  overflow-x: clip;
  background-color: var(--lin-clair);
  padding: clamp(88px, 11vw, 150px) var(--gouttiere) clamp(110px, 13vw, 180px);
}
.realisations__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.filtres { display: flex; flex-wrap: wrap; gap: 10px; }
.filtre {
  min-height: 44px;
  padding: .45em 1.15em;
  border-radius: 999px;
  border: 1.5px dashed rgba(39, 34, 30, .45);
  background: transparent;
  font-size: .95rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filtre:hover { border-color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--sapin); border-color: var(--sapin); border-style: solid; color: var(--lin); }

.pieces {
  list-style: none;
  padding: 0;
  margin-block: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(64px, 7vw, 96px) clamp(28px, 4.5vw, 64px);
}
.piece { view-transition-name: var(--vt); }
.piece[hidden] { display: none; }
.realisations__suite { display: flex; justify-content: center; margin-top: clamp(80px, 9vw, 120px); }
.realisations__suite .bouton[hidden] { display: none; }
@media (min-width: 1000px) {
  .pieces.est-complet .piece:nth-child(3n + 2) { transform: translateY(64px); }
}

.piece__ouvrir {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.piece__pile { display: grid; position: relative; }
.piece__tirage {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 9px;
  background: var(--papier);
  box-shadow: 0 1px 2px rgba(39, 34, 30, .2), 0 16px 30px -14px rgba(39, 34, 30, .45);
  transition: transform .6s var(--courbe);
}
.piece__tirage--dessus { position: relative; transform: rotate(var(--penche, -1deg)); }
.piece:nth-child(even) { --penche: 1.2deg; }
.piece:nth-child(3n) { --penche: -.4deg; }
.piece__tirage[data-k="1"] { transform: rotate(4deg) translate(5px, -3px); }
.piece__tirage[data-k="2"] { transform: rotate(-4.5deg) translate(-6px, 2px); }
.piece__tirage[data-k="3"] { transform: rotate(7deg) translate(8px, 5px); }

@media (hover: hover) {
.piece__ouvrir:is(:hover) .piece__tirage--dessus,
.piece__ouvrir:focus-visible .piece__tirage--dessus { transform: rotate(0) translateY(-6px); }
.piece__ouvrir:is(:hover) [data-k="1"],
.piece__ouvrir:focus-visible [data-k="1"] { transform: rotate(10deg) translate(22%, -4%) scale(.94); }
.piece__ouvrir:is(:hover) [data-k="2"],
.piece__ouvrir:focus-visible [data-k="2"] { transform: rotate(-10deg) translate(-22%, -2%) scale(.94); }
.piece__ouvrir:is(:hover) [data-k="3"],
.piece__ouvrir:focus-visible [data-k="3"] { transform: rotate(16deg) translate(22%, 14%) scale(.9); }
}
.piece__ouvrir:active .piece__tirage--dessus { transform: scale(.97); transition-duration: .15s; }
.piece__ouvrir:focus-visible { outline-offset: 12px; }

.piece__etiquette {
  display: inline-grid;
  gap: 2px;
  margin: -30px 0 0 22px;
  padding: 12px 18px 12px 34px;
  max-width: calc(100% - 44px);
  transform: rotate(-1.6deg);
  z-index: 2;
}
.piece:nth-child(even) .piece__etiquette { transform: rotate(1.4deg); }
.piece__etiquette::after {
  content: "";
  position: absolute;
  left: 11px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lin-clair);
  box-shadow: 0 0 0 2px var(--laiton);
}
.piece__etiquette h3 { font-size: 1.16rem; line-height: 1.2; }
.piece__etiquette p { font-size: .84rem; color: #4a3f33; }
.piece__vues {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--fil);
  font-weight: 600;
}
.piece__vues--avant { color: var(--sapin); }
.piece__vues svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Avant, après -------------------------------------------------------- */

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.avant-apres {
  padding: clamp(96px, 12vw, 160px) var(--gouttiere);
  color: var(--lin);
  background:
    radial-gradient(70% 60% at 15% 0%, rgba(236, 93, 149, .28), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(40, 0, 18, .5), transparent 70%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 5px),
    var(--rose-tyrien);
  --focus: var(--laiton-clair);
}
.avant-apres__tete,
.duos { max-width: var(--largeur); margin-inline: auto; }
.avant-apres__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; margin-bottom: clamp(56px, 7vw, 96px); }
.avant-apres__tete p { color: color-mix(in srgb, var(--lin) 82%, transparent); max-width: 46ch; }

.duos {
  list-style: none;
  padding: 0;
  margin-block: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(72px, 8vw, 120px) clamp(40px, 7vw, 120px);
}
.duo { display: grid; gap: 34px; }
.duo:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }

.duo__photos {
  position: relative;
  display: block;
  width: 76%;
  margin-left: 16%;
  padding: 0;
  border: 0;
  background: none;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.duo__photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 10px 10px 30px;
  background: var(--papier);
  box-shadow: 0 1px 2px rgba(39, 34, 30, .2), 0 22px 40px -18px rgba(39, 34, 30, .5);
}
.duo__avant {
  z-index: 1;
  transform: translate(-16%, -7%) rotate(-7deg) scale(.82);
  filter: saturate(.65) sepia(.18);
}
.duo__apres { z-index: 2; transform: rotate(1.8deg); }
@media (hover: hover) { .duo__photos:hover .duo__avant { transform: translate(-20%, -9%) rotate(-9deg) scale(.82); } }

.duo__photos[aria-pressed="true"] .duo__avant {
  z-index: 2;
  transform: rotate(-1.5deg);
  filter: none;
}
.duo__photos[aria-pressed="true"] .duo__apres {
  z-index: 1;
  transform: translate(14%, -7%) rotate(7deg) scale(.82);
  filter: saturate(.8);
}
@media (prefers-reduced-motion: no-preference) {
  .duo__photos img { transition: transform .6s var(--courbe), filter .6s; }
  .duo__photos.bascule img { animation-duration: .8s; animation-timing-function: var(--rideau); animation-fill-mode: both; }
  .duo__photos.bascule[aria-pressed="true"] .duo__avant { animation-name: passe-devant-g; }
  .duo__photos.bascule[aria-pressed="true"] .duo__apres { animation-name: passe-derriere-d; }
  .duo__photos.bascule[aria-pressed="false"] .duo__apres { animation-name: passe-devant-d; }
  .duo__photos.bascule[aria-pressed="false"] .duo__avant { animation-name: passe-derriere-g; }
}
@keyframes passe-devant-g {
  0% { z-index: 1; transform: translate(-16%, -7%) rotate(-7deg) scale(.82); }
  45% { z-index: 1; transform: translate(-58%, -4%) rotate(-12deg) scale(.9); }
  55% { z-index: 3; }
  100% { z-index: 3; transform: rotate(-1.5deg); }
}
@keyframes passe-derriere-d {
  0% { z-index: 2; transform: rotate(1.8deg); }
  45% { z-index: 2; transform: translate(30%, 2%) rotate(9deg) scale(.92); }
  55% { z-index: 1; }
  100% { z-index: 1; transform: translate(14%, -7%) rotate(7deg) scale(.82); }
}
@keyframes passe-devant-d {
  0% { z-index: 1; transform: translate(14%, -7%) rotate(7deg) scale(.82); }
  45% { z-index: 1; transform: translate(52%, -4%) rotate(12deg) scale(.9); }
  55% { z-index: 3; }
  100% { z-index: 3; transform: rotate(1.8deg); }
}
@keyframes passe-derriere-g {
  0% { z-index: 2; transform: rotate(-1.5deg); }
  45% { z-index: 2; transform: translate(-30%, 2%) rotate(-9deg) scale(.92); }
  55% { z-index: 1; }
  100% { z-index: 1; transform: translate(-16%, -7%) rotate(-7deg) scale(.82); }
}

.duo__etat {
  position: absolute;
  z-index: 4;
  right: -10px;
  bottom: 44px;
  display: grid;
  padding: 8px 16px 8px 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--encre);
  transform: rotate(-4deg);
  isolation: isolate;
  pointer-events: none;
}
.duo__etat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kraft) var(--grain);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.duo__etat::after {
  content: "";
  position: absolute;
  left: 11px;
  top: calc(50% - 4.5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lin);
  box-shadow: 0 0 0 2px var(--laiton);
}
.duo__etat span { grid-area: 1 / 1; transition: opacity .3s .25s; }
.duo__etat span + span { opacity: 0; }
[aria-pressed="true"] .duo__etat span:first-child { opacity: 0; }
[aria-pressed="true"] .duo__etat span + span { opacity: 1; }

.duo__astuce {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(23, 43, 35, .82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--papier);
  font-size: .8rem;
  font-weight: 600;
  pointer-events: none;
}
.duo__astuce svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.duo__astuce .voir-apres,
[aria-pressed="true"] .duo__astuce .voir-avant { display: none; }
[aria-pressed="true"] .duo__astuce .voir-apres { display: inline; }
.duo__astuce .souris { display: none; }
@media (hover: hover) and (pointer: fine) {
  .duo__astuce .souris { display: inline; }
  .duo__astuce .tactile { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .duo__astuce svg { animation: tapote 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
  /* une seule fois, à l'arrivée : la photo d'avant dépasse un peu de derrière */
  .duo__photos.apercu[aria-pressed="false"] .duo__avant { animation: depasse 1.5s .2s var(--courbe); }
}
@keyframes tapote { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(2px) scale(.9); } 80% { transform: none; } }
@keyframes depasse {
  40% { transform: translate(-34%, -11%) rotate(-12deg) scale(.84); }
}

.duo__texte { display: grid; gap: 12px; justify-items: start; padding-left: 14%; }
.duo__texte h3 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.15; }
.duo__texte blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--lin) 85%, transparent);
  max-width: 40ch;
}
.duo__texte .lien-fil { border: 0; padding: 0 0 3px; font-size: 1rem; background-color: transparent; color: var(--lin); }
.duo__texte .lien-fil:hover { color: var(--laiton-clair); }
.duo__photos img { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 26px 44px -16px rgba(30, 0, 12, .75); }

/* Le métier ---------------------------------------------------------- */

.metier {
  position: relative;
  padding: clamp(96px, 12vw, 160px) var(--gouttiere);
  background:
    radial-gradient(80% 50% at 90% 0%, rgba(78, 98, 150, .3), transparent 60%),
    var(--marine);
  color: var(--lin);
  --focus: var(--laiton-clair);
}
.metier__tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.metier__intro { display: grid; gap: 18px; }
.dessous { position: relative; margin: 0; height: clamp(240px, 26vw, 340px); }
.dessous img {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 8px;
  background: var(--papier);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
}
.dessous__a { left: 0; top: 4%; transform: rotate(-5deg); }
.dessous__b { right: 0; top: 14%; transform: rotate(4deg); }
.dessous figcaption {
  position: absolute;
  left: 4%;
  bottom: -44px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--laiton-clair);
}
.metier__intro p { max-width: 44ch; font-size: 1.15rem; color: color-mix(in srgb, var(--lin) 80%, transparent); }

.metier__corps {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.coupe {
  position: sticky;
  top: 110px;
  margin: 0;
  padding: clamp(18px, 3vw, 36px);
  border-radius: 20px;
  background:
    linear-gradient(rgba(220, 189, 133, .07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(220, 189, 133, .07) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--marine-clair);
  box-shadow: inset 0 0 0 1.5px rgba(220, 189, 133, .18);
}
.coupe svg { display: block; width: 100%; height: auto; overflow: visible; }
.couche { transition: opacity .7s var(--courbe), transform .7s var(--courbe); }
.couche--sangles, .couche--ressorts, .couche--crin, .couche--tissu, .couche--finitions {
  opacity: 0;
  transform: translateY(-22px);
}
.couche--ressorts { transition-delay: .12s; }
.couche--crin { transition-delay: .26s; }
.coupe[data-etape="2"] :is(.couche--sangles, .couche--ressorts, .couche--crin),
.coupe[data-etape="3"] :is(.couche--sangles, .couche--ressorts, .couche--crin, .couche--tissu),
.coupe[data-etape="4"] .couche:not(.couche--ancien) { opacity: 1; transform: none; }

/* l'ancienne garniture se soulève puis disparaît */
.couche--ancien { opacity: 0; transform: translateY(-40px); }
.coupe[data-etape="1"] .couche--ancien { opacity: .9; transform: translateY(-46px); }
@media (prefers-reduced-motion: no-preference) {
  .coupe[data-etape="1"] .couche--ancien { animation: souleve 2.6s ease-in-out infinite alternate; }
}
@keyframes souleve { from { transform: translateY(-8px); } to { transform: translateY(-50px); } }

/* repères : ceux de l'étape en cours ressortent, les précédents restent en retrait */
.repere { opacity: 0; transition: opacity .5s var(--courbe); }
.repere circle { fill: var(--laiton-clair); }
.repere path { fill: none; stroke: var(--laiton-clair); stroke-width: 1; stroke-opacity: .7; }
.repere text { fill: var(--lin); font-family: var(--sans); font-size: 14px; }
.coupe[data-etape="1"] :is(.repere--1, .repere--ancien),
.coupe[data-etape="2"] :is(.repere--1, .repere--2),
.coupe[data-etape="3"] :is(.repere--1, .repere--2, .repere--3),
.coupe[data-etape="4"] .repere:not(.repere--ancien) { opacity: .5; }
.coupe[data-etape="1"] :is(.repere--1, .repere--ancien),
.coupe[data-etape="2"] .repere--2,
.coupe[data-etape="3"] .repere--3,
.coupe[data-etape="4"] .repere--4 { opacity: 1; }
.coupe[data-etape="1"] :is(.repere--1, .repere--ancien) text,
.coupe[data-etape="2"] .repere--2 text,
.coupe[data-etape="3"] .repere--3 text,
.coupe[data-etape="4"] .repere--4 text { fill: var(--laiton-clair); font-weight: 600; }

.coupe__legende {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--laiton-clair);
}

.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.etape {
  counter-increment: etape;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-content: center;
  min-height: 50vh;
  opacity: .38;
  transition: opacity .5s;
}
.etape:first-child { min-height: 40vh; align-content: start; }
.etape:last-child { min-height: 30vh; }
.etape.est-active { opacity: 1; }
.etape::before {
  content: counter(etape);
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: .9;
  color: var(--laiton-clair);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.etape h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: 12px; }
.etape p { max-width: 40ch; color: color-mix(in srgb, var(--lin) 84%, transparent); }

/* Contact ------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: clamp(96px, 12vw, 160px) var(--gouttiere);
  background-color: transparent;
  background-image: none;
}

.projet { margin-top: 40px; display: grid; gap: 30px; max-width: 640px; }
.projet__choix { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.projet__choix legend { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 16px; padding: 0; }
.projet__choix label { position: relative; }
.projet__choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.projet__choix span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45em 1.1em;
  border-radius: 999px;
  border: 1.5px dashed rgba(39, 34, 30, .45);
  transition: background-color .25s, color .25s, border-color .25s;
}
.projet__choix label:hover span { border-color: var(--encre); }
.projet__choix input:checked + span { background: var(--sapin); color: var(--lin); border: 1.5px solid var(--sapin); }
.projet__choix input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.projet__message { display: grid; gap: 10px; }
.projet__message span { font-family: var(--serif); font-size: 1.3rem; }
.projet__message em { font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--encre-douce); }
.projet textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px dashed rgba(39, 34, 30, .4);
  background: var(--papier);
  line-height: 1.5;
  resize: vertical;
}
.projet textarea:focus { outline: none; border: 1.5px solid var(--sapin); }
.projet .bouton { justify-self: start; }
.projet__aide { font-size: .93rem; color: var(--encre-douce); max-width: 52ch; }

.carte-atelier {
  padding: 46px 36px 36px 46px;
  transform: rotate(1.2deg);
  margin-top: 12px;
}
.carte-atelier > .etiquette__trou { left: 18px; top: 30px; }
.carte-atelier h3 { font-size: 1.9rem; margin-bottom: 14px; }
.carte-atelier h4 { font-size: 1.15rem; margin: 26px 0 8px; font-style: italic; }
.carte-atelier address { font-style: normal; line-height: 1.5; }
.carte-atelier a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.carte-atelier p { overflow-wrap: anywhere; }
.carte-atelier__tel { margin: 16px 0 4px; }
.carte-atelier__tel a {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  text-decoration: none;
  letter-spacing: .01em;
}
.horaires { margin: 0; display: grid; gap: 4px; }
.horaires div { display: flex; gap: 12px; }
.horaires dt { min-width: 8.5em; }
.horaires dd { margin: 0; font-weight: 600; }
.carte-atelier__note { margin-top: 12px; font-size: .93rem; color: #4a3f33; }
.carte-atelier__plan { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.carte-atelier__plan iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 10px;
  filter: sepia(.25) saturate(.85);
}
.reseaux { list-style: none; display: flex; gap: 22px; padding: 0; margin: 26px 0 0; font-weight: 600; }

/* Pied --------------------------------------------------------------- */

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 56px var(--gouttiere) 48px;
  background: var(--sapin);
  color: var(--lin);
  font-size: .93rem;
  --focus: var(--laiton-clair);
}
.pied__marque { display: flex; gap: 14px; align-items: start; }
.pied__marque svg { width: 40px; height: 40px; color: var(--laiton-clair); flex: none; }
.pied__marque strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.35rem; }
.pied__liens { opacity: .82; }

/* Fiche d'une pièce : plein écran sur téléphone, fenêtre sur ordinateur ------- */

.fiche {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--lin-clair) var(--trame);
  color: var(--encre);
  overflow: hidden;
}
.fiche[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.fiche::backdrop { background: rgba(16, 28, 23, .74); }

.fiche__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 20px;
  padding-top: max(8px, env(safe-area-inset-top));
  background-image: linear-gradient(90deg, rgba(39, 34, 30, .3) 55%, transparent 55%);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.fiche__position { font-size: .85rem; color: var(--encre-douce); }
.fiche__fermer,
.carrousel__fleche {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  transition: background-color .2s, transform .2s var(--courbe), opacity .2s;
}
.fiche__fermer { background: var(--sapin); color: var(--lin); }
.fiche__fermer:active { transform: scale(.92); }
.fiche__fermer svg,
.carrousel__fleche svg,
.fiche__piece svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.fiche__corps {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 28px;
}

/* le carrousel : on fait glisser les photos du doigt */
.carrousel { position: relative; }
.carrousel__piste {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  gap: 4px;
  scrollbar-width: none;
  outline-offset: -3px;
  /* la couture ne se voit que dans l'interstice entre deux photos, quand on fait glisser */
  background: linear-gradient(180deg, var(--fuchsia-clair) 58%, var(--sapin-fonce) 58%) 0 0 / 100% 14px;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.vue {
  position: relative;
  flex: 0 0 100%;
  height: min(100vw, 62dvh);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--sapin-fonce);
}
.vue__fond {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(24px) saturate(1.2) brightness(.72);
}
.vue__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.vue__avant {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 6px 14px 6px 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--encre);
  isolation: isolate;
  transform: rotate(-4deg);
}
.vue__avant::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kraft) var(--grain);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.vue__avant::after {
  content: "";
  position: absolute;
  left: 10px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lin);
  box-shadow: 0 0 0 2px var(--laiton);
}

.carrousel__points {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.point {
  pointer-events: auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
}
.point::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(247, 243, 236, .55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: width .3s var(--courbe), background-color .3s;
}
.point[aria-current="true"]::before { width: 22px; background: var(--papier); }

.carrousel__fleche {
  position: absolute;
  top: 50%;
  z-index: 3;
  margin-top: -23px;
  background: rgba(247, 243, 236, .92);
  color: var(--encre);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.carrousel__fleche--prec { left: 12px; }
.carrousel__fleche--suiv { right: 12px; }
.carrousel__fleche:disabled { opacity: 0; pointer-events: none; }
.carrousel__fleche:hover { background: var(--papier); transform: scale(1.06); }
@media (hover: none) { .carrousel__fleche { display: none; } }
.une-vue :is(.carrousel__fleche, .carrousel__points) { display: none; }

.fiche__legende {
  margin: 14px 20px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  white-space: pre-wrap;
}
.fiche__vignettes { display: none; }

.fiche__etiquette {
  margin: 22px 16px 8px;
  padding: 36px 22px 26px 40px;
  transform: rotate(.5deg);
}
.fiche__etiquette > .etiquette__trou { left: 16px; top: 24px; }
.fiche__categorie { font-size: .9rem; color: #4a3f33; margin-bottom: 6px; }
.fiche__etiquette h2:focus { outline: none; }
.fiche__etiquette h2 { font-size: clamp(1.65rem, 6.5vw, 2.4rem); line-height: 1.08; letter-spacing: -.01em; }
.fiche__accroche { margin-top: 12px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.fiche__mot {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 2px dashed var(--fil);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
}
.fiche__mot[hidden] { display: none; }
.fiche__mot footer { margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: .82rem; color: #4a3f33; }
.fiche__details { margin: 20px 0 0; display: grid; }
.fiche__details div {
  display: grid;
  grid-template-columns: minmax(6.5em, auto) 1fr;
  gap: 14px;
  padding: 9px 0;
  background-image: linear-gradient(90deg, rgba(39, 34, 30, .4) 55%, transparent 55%);
  background-size: 7px 1px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.fiche__details dt { color: #4a3f33; font-size: .92rem; }
.fiche__details dd { margin: 0; font-weight: 600; }

/* barre du bas : changer de pièce ou en parler */
.fiche__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: var(--papier);
  box-shadow: 0 -10px 24px -18px rgba(39, 34, 30, .45);
}
.fiche__piece {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--sapin);
  font-weight: 600;
  font-size: .9rem;
}
.fiche__piece:active { background: rgba(32, 58, 48, .08); }
.fiche__contact { flex: 1; min-height: 48px; padding-inline: 1em; white-space: nowrap; }
.fiche__contact .court { display: none; }
@media (max-width: 359px) {
  .fiche__contact .long { display: none; }
  .fiche__contact .court { display: inline; }
}
@media (max-width: 640px) {
  .fiche__piece { width: 48px; justify-content: center; padding: 0; background: rgba(32, 58, 48, .07); }
  .fiche__piece span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fiche__actions { gap: 10px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fiche[open] { animation: fiche-monte .5s var(--courbe); }
  .fiche.se-ferme { animation: fiche-descend .28s ease-in forwards; }
}
@keyframes fiche-monte { from { transform: translateY(100%); } }
@keyframes fiche-descend { to { transform: translateY(100%); } }

@media (min-width: 900px) {
  .fiche {
    inset: 0;
    width: min(1140px, 100% - 48px);
    height: min(840px, 100dvh - 48px);
    margin: auto;
    border-radius: 18px;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
  }
  .fiche::backdrop { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  .fiche__barre { padding: 10px 14px 10px 32px; }
  .fiche__corps {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 44px;
    align-items: start;
    padding: 28px 36px 36px;
  }
  .carrousel { border-radius: 6px; box-shadow: 0 0 0 9px var(--papier), 0 18px 40px -16px rgba(39, 34, 30, .5); }
  .carrousel__piste { border-radius: 4px; }
  .vue { height: min(560px, 100dvh - 330px); }
  .fiche__corps { padding-bottom: 48px; }
  .carrousel__points { display: none; }
  .fiche__legende { margin: 24px 0 0; }
  .fiche__vignettes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
  .fiche__etiquette { margin: 8px 0 0; padding: 44px 32px 34px 48px; transform: rotate(.8deg); }
  .fiche__etiquette > .etiquette__trou { left: 18px; top: 30px; }
  .fiche__actions { justify-content: center; gap: 18px; padding: 12px 24px; }
  .fiche__contact { flex: none; }
  @media (prefers-reduced-motion: no-preference) {
    .fiche[open] { animation: fiche-entre .45s var(--courbe); }
    .fiche[open]::backdrop { animation: apparait .4s ease; }
    .fiche.se-ferme { animation: fiche-sort .26s ease-in forwards; }
  }
}
@keyframes fiche-entre { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fiche-sort { to { opacity: 0; transform: translateY(16px) scale(.98); } }

.vignette {
  width: 66px;
  height: 66px;
  padding: 4px;
  border: 0;
  border-radius: 3px;
  background: var(--papier);
  box-shadow: 0 1px 2px rgba(39, 34, 30, .2);
  opacity: .6;
  position: relative;
  transition: opacity .25s, transform .25s var(--courbe), box-shadow .25s;
}
.vignette:hover { opacity: 1; transform: translateY(-2px); }
.vignette[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--laiton), 0 6px 14px -6px rgba(39, 34, 30, .4); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette.est-avant::after {
  content: "avant";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  padding: 0 6px;
  border-radius: 4px;
  background: var(--fil);
  color: var(--papier);
  font-size: .68rem;
  line-height: 1.5;
}

/* Transitions de vue (filtres, ouverture de fiche) */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--courbe); }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .3s; }

/* Responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .tissus__liste { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ouverture { grid-template-columns: 1fr; padding-top: 92px; gap: 34px; }
  .ouverture__texte { justify-self: start; }
  .medaillon { order: -1; justify-self: center; width: min(300px, 72vw); }
  .atelier__tete { grid-template-columns: 1fr; grid-template-areas: "titre" "chapo" "photo"; }
  .atelier__photo { justify-self: center; width: min(320px, 78%); margin-top: 16px; }
  .savoirs { grid-template-columns: 1fr; gap: 0; }
  .savoir, .savoir:first-child { padding: 26px 0; }
  .savoir + .savoir {
    background-image: linear-gradient(90deg, rgba(39, 34, 30, .35) 55%, transparent 55%);
    background-size: 10px 1.5px;
    background-repeat: repeat-x;
  }
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metier__corps { grid-template-columns: 1fr; }
  .metier__tete { grid-template-columns: 1fr; }
  .dessous { height: min(64vw, 320px); margin-bottom: 40px; }
  .duos { grid-template-columns: 1fr; }
  .duo:nth-child(even) { margin-top: 0; }
  .duo__photos { width: min(78%, 420px); margin-left: 16%; }
  .duo__texte { padding-left: 0; }
  .coupe { top: 66px; z-index: 2; padding: 14px 18px; box-shadow: inset 0 0 0 1.5px rgba(220, 189, 133, .18), 0 -40px 0 0 var(--marine); }
  .coupe svg { max-height: 26vh; margin-inline: auto; width: auto; max-width: 100%; }
  .coupe__legende { margin-top: 8px; text-align: center; font-size: .98rem; }
  .reperes { display: none; }
  .coupe svg { max-height: 30vh; }
  .etape, .etape:first-child, .etape:last-child { min-height: 52vh; align-content: center; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .entete__menu { display: inline-flex; align-items: center; }
  .navigation {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 0 var(--gouttiere);
    background: var(--sapin);
    color: var(--lin);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .navigation a { font-family: var(--serif); font-size: 2.1rem; }
  .navigation .navigation__contact { font-family: var(--serif); font-size: 2.1rem; padding: .1em .8em; }
  .entete.menu-ouvert { color: var(--lin); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .entete.menu-ouvert::after { opacity: 0; }
  .menu-ouvert .navigation { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .marque__signature { display: none; }
  .ouverture { min-height: auto; padding-bottom: 80px; }
  .medaillon { margin-bottom: 40px; }
  .etiquette--medaillon { right: -2%; bottom: -46px; max-width: 168px; padding: 9px 12px 9px 30px; font-size: .82rem; }
  .etiquette--medaillon::after { display: none; }
  .tissus__liste {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    margin-inline: calc(-1 * var(--gouttiere));
    padding: 12px var(--gouttiere) 18px;
    scrollbar-width: none;
  }
  .tissus__liste::-webkit-scrollbar { display: none; }
  .tissu { flex: 0 0 104px; scroll-snap-align: start; }
  .filtres {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gouttiere));
    padding: 4px var(--gouttiere);
    scrollbar-width: none;
  }
  .filtres::-webkit-scrollbar { display: none; }
  .filtre { flex: none; }
  .realisations__tete { margin-bottom: 36px; }
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 14px; }
  .piece__tirage { padding: 5px; }
  .piece__tirage[data-k="1"] { transform: rotate(3deg) translate(3px, -2px); }
  .piece__tirage[data-k="2"] { transform: rotate(-3.5deg) translate(-3px, 1px); }
  .piece__tirage[data-k="3"] { transform: rotate(5deg) translate(4px, 3px); }
  .piece__etiquette { margin: -16px 0 0 6px; padding: 8px 10px 8px 24px; max-width: calc(100% - 10px); gap: 0; }
  .piece__etiquette::after { left: 8px; width: 8px; height: 8px; top: calc(50% - 4px); }
  .piece__etiquette::before { clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 calc(100% - 11px), 0 11px); }
  .piece__etiquette h3 { font-size: .94rem; line-height: 1.2; }
  .piece__etiquette p { display: none; }
  .piece__vues { font-size: .72rem; margin-top: 2px; }
  .piece__vues svg { width: 12px; height: 12px; }
  .realisations__suite { margin-top: 56px; }
  .carte-atelier { padding: 44px 22px 30px 40px; transform: none; }
  .horaires div { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Page simple (mentions légales) -------------------------------------- */

.mentions {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gouttiere) 96px;
}
.mentions .titre-section { margin: 28px 0 40px; }
.mentions h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.mentions p + p { margin-top: 12px; }
.a-completer { background: var(--kraft); padding: 0 .35em; border-radius: 4px; }

/* Coordonnées à faire apparaître ----------------------------------------- */

.devoile {
  padding: 0 0 3px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background-image: linear-gradient(90deg, currentColor 55%, transparent 55%);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  cursor: pointer;
}
.devoile:hover { color: var(--fuchsia-fonce); }
.devoile--tel,
.devoile-lien--tel {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.devoile-lien--tel { text-decoration: none; letter-spacing: .01em; }

/* Bouton « Contacter » flottant, téléphone seulement --------------------- */

.flottant { display: none; }
@media (max-width: 900px) {
  .flottant {
    position: fixed;
    z-index: 40;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px 0 16px;
    border-radius: 999px;
    background: var(--fuchsia);
    color: var(--papier);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 12px 26px -10px rgba(122, 10, 52, .75);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .45s var(--courbe), opacity .3s;
  }
  .flottant svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .flottant.est-visible { transform: none; opacity: 1; }
  /* pendant la lecture (défilement vers le bas) il s'efface, il revient dès qu'on remonte */
  .flottant.est-visible.lecture { transform: translateY(140%); opacity: 0; }
  .flottant:active { transform: scale(.95); }
}

@media (max-width: 380px) {
  .pieces { gap: 40px 10px; }
  .piece__etiquette h3 { font-size: .86rem; }
  .piece__etiquette { padding: 7px 8px 7px 22px; }
}

/* Cibles tactiles : les liens texte gardent leur dessin mais s'attrapent au pouce */
@media (pointer: coarse) {
  .lien-fil, .devoile, .reseaux a, .pied__liens a {
    position: relative;
  }
  .lien-fil::after, .devoile::after, .reseaux a::after, .pied__liens a::after {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }
}
