/* Madec Design. Page claire couleur plâtre, accordée aux photos : tadelakt, travertin, noyer.
   Une seule teinte d'accent, le noyer. Propriétés logiques partout pour le miroir arabe. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Noto Kufi Arabic";
  src: url("../fonts/kufi-arabic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* Le seul mot arabe de la page en français (« العربية ») vient d'un sous-ensemble de 3,4 Ko. */
@font-face {
  font-family: "Kufi UI";
  src: url("../fonts/kufi-ui.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0627, U+0628, U+0629, U+0631, U+0639, U+0644, U+064A;
}

:root {
  color-scheme: light;
  --platre: #f4f1eb;
  --pierre: #ebe6dd;
  --encre: #1c1915;
  --encre-2: #655d53;
  --filet: rgba(28, 25, 21, 0.12);
  --noyer: #6e4221;
  --noyer-2: #573318;
  --sur-noyer: #f7f2ea;
  --nuit: #241a12;
  --nuit-2: #2e2218;
  --ivoire: #efe7db;
  --ivoire-2: #bfb09c;

  --font: "Hanken Grotesk", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --slide: 6500ms;
  --gutter: clamp(20px, 4vw, 56px);
  --page: 1360px;
  --trk-1: -0.035em;
  --trk-2: -0.028em;
  --lh-t: 1.04;
  accent-color: var(--noyer);
}
html[lang="ar"] { --trk-1: 0; --trk-2: 0; --lh-t: 1.35; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--encre-2) var(--platre); }
body {
  margin: 0; background: var(--platre); color: var(--encre);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  caret-color: var(--noyer);
}
html[lang="ar"] body { font-size: 17.5px; line-height: 1.75; }
::selection { background: var(--noyer); color: var(--sur-noyer); }
:focus-visible { outline: 2px solid var(--noyer); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-block-start: -100px; inset-inline-start: 16px; z-index: 30; padding: 10px 16px; background: var(--encre); color: var(--platre); border-radius: 999px; }
.skip:focus { inset-block-start: 12px; }
.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.phone-text { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* Typographie */
h1, h2 { font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.3rem + 3.9vw, 4.75rem); line-height: var(--lh-t); letter-spacing: var(--trk-1); }
h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.75rem); line-height: 1.06; letter-spacing: var(--trk-2); }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 500; line-height: 1.35; }
h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--encre-2); max-width: 42ch; text-wrap: pretty; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding-block: 6px; padding-inline: 26px 6px;
  border-radius: 999px; background: var(--noyer); color: var(--sur-noyer);
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 300ms var(--ease), transform 200ms var(--ease);
}
.btn-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(247, 242, 234, 0.14);
  transition: transform 400ms var(--ease), background-color 300ms var(--ease);
}
.btn-ico .icon { width: 24px; height: 24px; }
.btn:active { transform: scale(0.96); }
.btn-lg { min-height: 66px; padding-inline: 32px 7px; font-size: 18px; gap: 18px; }
.btn-lg .btn-ico { width: 52px; height: 52px; }
.btn-lg .btn-ico .icon { width: 28px; height: 28px; }
@media (hover: hover) {
  .btn:hover { background: var(--noyer-2); }
  .btn:hover .btn-ico { transform: scale(1.06) rotate(-8deg); background: rgba(247, 242, 234, 0.22); }
}
.btn-light { background: var(--ivoire); color: var(--nuit); }
.btn-light .btn-ico { background: rgba(36, 26, 18, 0.08); }
@media (hover: hover) { .btn-light:hover { background: #fffaf2; } }

.link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: none;
}
.link::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 10px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform 500ms var(--ease);
}
[dir="rtl"] .link::after { transform-origin: left; }
@media (hover: hover) {
  .link:hover::after { animation: rule 700ms var(--ease); }
}
@keyframes rule { 0% { transform: scaleX(1); } 45% { transform: scaleX(0); } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* En-tête */
.top { position: relative; z-index: 10; }
.top-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 40px; width: auto; }
.nav { display: none; justify-content: center; gap: 36px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--encre-2); transition: color 250ms var(--ease); }
@media (hover: hover) { .nav a:hover { color: var(--encre); } }
.top-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lang[hidden] { display: none; }
.top-phone { position: relative; display: none; align-items: center; min-height: 44px; padding-inline: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
/* Survol de l'en-tête : un trait noyer se dessine sous le lien de gauche à droite, puis repart vers la droite.
   450 ms en ease-in-out pour qu'on voie le trait se tracer ; réservé à la souris, le focus clavier le montre aussi. */
.nav a::after, .top-phone::after {
  content: ""; position: absolute; inset-block-end: 8px; inset-inline: 0; height: 2px; border-radius: 2px;
  background: var(--noyer); transform: scaleX(0); transform-origin: right; transition: transform 450ms var(--ease-in-out);
}
.top-phone::after { inset-inline: 8px; }
[dir="rtl"] .nav a::after, [dir="rtl"] .top-phone::after { transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after, .top-phone:hover::after { transform: scaleX(1); transform-origin: left; }
  [dir="rtl"] .nav a:hover::after, [dir="rtl"] .top-phone:hover::after { transform-origin: right; }
}
.nav a:focus-visible::after, .top-phone:focus-visible::after { transform: scaleX(1); }
.lang {
  display: inline-flex; align-items: center; min-height: 40px; padding-inline: 16px;
  border: 1px solid var(--filet); border-radius: 999px; background: transparent;
  font-family: "Hanken Grotesk", "Kufi UI", system-ui, sans-serif; font-size: 15px; font-weight: 500;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
}
@media (hover: hover) { .lang:hover { background: var(--pierre); border-color: transparent; } }
@media (min-width: 901px) {
  .nav, .top-phone { display: flex; }
  .brand-logo { height: 44px; }
}

/* Menu mobile : bouton en pastille dans l'en-tête, panneau plein écran couleur plâtre.
   Ouverture 300 ms en ease-out, liens qui arrivent à 50 ms d'écart ; les deux traits de l'icône se croisent en X. */
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 14px 18px;
  border: 1px solid var(--filet); border-radius: 999px; background: transparent; color: var(--encre);
  font-size: 15px; font-weight: 500; transition: background-color 250ms var(--ease), border-color 250ms var(--ease), transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { background: var(--pierre); border-color: transparent; } }
.menu-ico { position: relative; width: 18px; height: 10px; }
.menu-ico span { position: absolute; inset-inline: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease-out); }
.menu-ico span:first-child { top: 0; }
.menu-ico span:last-child { bottom: 0; }
.menu.is-open .menu-ico span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu.is-open .menu-ico span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--platre); color: var(--encre); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-100%); transition: transform 420ms var(--ease-drawer); will-change: transform;
}
.menu::backdrop { background: transparent; }
/* Le panneau opaque glisse depuis le haut, puis remonte en découvrant la page ; jamais de transparence.
   Glissement en transform (carte graphique) ; la fermeture part dès le clic (ease-out, 260 ms). */
.menu.is-open { transform: none; }
.menu.is-closing { transform: translateY(-100%); transition: transform 260ms var(--ease-out); }
.menu-in { display: flex; flex-direction: column; min-height: 100%; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.menu-nav { display: grid; padding-block-start: 8px; }
.menu-nav a {
  display: flex; align-items: center; min-height: 72px; border-block-start: 1px solid var(--filet);
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.75rem); letter-spacing: -0.028em; line-height: 1.06; text-decoration: none;
  opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
html[lang="ar"] .menu-nav a { letter-spacing: 0; }
.menu-nav a:last-child { border-block-end: 1px solid var(--filet); }
.menu.is-open .menu-nav a { opacity: 1; transform: none; transition-delay: 120ms; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: 170ms; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: 220ms; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: 270ms; }
/* Bas du menu centré : le bouton, le numéro et les réseaux partagent le même axe. */
.menu-foot { display: grid; gap: 16px; justify-items: center; text-align: center; padding-block: 40px calc(32px + env(safe-area-inset-bottom, 0px)); opacity: 0; }
.menu.is-open .menu-foot { opacity: 1; transition: opacity 400ms var(--ease-out) 300ms; }
.menu-foot .btn { position: relative; justify-self: stretch; justify-content: center; padding-inline: 56px; }
.menu-foot .btn .btn-ico { position: absolute; inset-inline-end: 6px; }
.menu-phone { font-size: 1.375rem; text-decoration: none; }
.menu-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.menu-social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--encre-2); text-decoration: none; }
html.menu-open { overflow: hidden; }
@media (min-width: 901px) {
  .menu-btn, .menu { display: none; }
}

/* Ouverture */
.hero { padding-block-start: clamp(24px, 4vw, 56px); }
.hero-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.hero-head { display: grid; gap: 28px; }
.hero-title { max-width: 19ch; }
html[lang="ar"] .hero-title { max-width: 16ch; }
.hero-aside { display: grid; gap: 28px; align-content: end; }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero-head { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 0; padding-block-start: clamp(4px, 1vw, 16px); }
  .hero-aside { margin-block-start: 32px; }
  .hero-media { grid-column: 7 / span 6; }
}
/* Les photos de l'atelier sont prises au téléphone, en portrait : la photo reste en 4:5 et ne dépasse pas l'écran. */
.hero-media { position: relative; overflow: hidden; border-radius: 20px; }
.slides { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; background: var(--pierre); border-radius: inherit; }
@media (min-width: 601px) and (max-width: 900px) { .slides { aspect-ratio: 5 / 4; } }
@media (min-width: 901px) {
  /* La photo prend la hauteur de la colonne de texte : son bas tombe sur le dernier filet de l'index. */
  .hero-media { border-radius: 6px; align-self: stretch; }
  .slides { aspect-ratio: auto; height: 100%; min-height: 520px; }
}
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.07);
  transition: opacity 1400ms var(--ease-in-out), transform 0s linear 1400ms;
}
.slide.is-on { opacity: 1; transform: scale(1); transition: opacity 1400ms var(--ease-in-out), transform calc(var(--slide) + 1400ms) cubic-bezier(0.33, 0, 0.67, 1); }
html:not(.js) .slide:first-child { opacity: 1; transform: none; }
.s-table { object-position: 50% 62%; }
.s-salon { object-position: 56% 50%; }
.s-rangements { object-position: 50% 50%; }
.s-atelier { object-position: 50% 55%; }

/* Légende posée sur l'image : nom de la pièce, repères, pause */
.hero-cap {
  position: absolute; z-index: 2; inset-block-start: clamp(14px, 2vw, 28px); inset-inline-start: clamp(14px, 2vw, 28px);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 28px);
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(244, 241, 235, 0.92); color: var(--encre);
  box-shadow: 0 8px 24px -14px rgba(36, 26, 18, 0.45);
}
[dir="rtl"] .hero-cap { padding: 6px 18px 6px 6px; }
.hero-cap-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out); }
.hero-cap-name.is-swapping { opacity: 0; filter: blur(2px); }
.dots { display: flex; align-items: center; gap: 2px; }

/* Index du diaporama, en bas de la colonne de texte (ordinateur) : une ligne par image, vignette au bout.
   Le filet de la ligne active se remplit en noyer pendant que l'image tourne ; un clic affiche la pièce. */
.hero-index { display: none; }
.hero-index-item {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px;
  padding: 0; border: 0; border-block-start: 1px solid var(--filet); background: none; color: var(--encre-2);
  font-size: 16px; font-weight: 500; text-align: start; transition: color 250ms var(--ease);
}
.hero-index-item:last-child { border-block-end: 1px solid var(--filet); }
.hero-index-item.is-on { color: var(--encre); }
.hi-thumb { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.hi-fill { position: absolute; inset-inline: 0; inset-block-start: -1px; height: 2px; border-radius: 2px; background: var(--noyer); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hi-fill { transform-origin: right; }
.hero-index-item.is-on .hi-fill { transform: scaleX(1); transition: transform var(--slide) linear; }
.hero.is-paused .hero-index-item.is-on .hi-fill { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-index-item:hover { color: var(--encre); } }
@media (min-width: 901px) {
  .hero-index { display: grid; margin-block-start: auto; padding-block-start: 36px; }
  .hero-cap .dots { display: none; }
}
.dot { display: grid; place-items: center; width: 30px; height: 36px; padding: 0; border: 0; background: none; }
.dot::before { content: ""; grid-area: 1 / 1; width: 22px; height: 2px; border-radius: 2px; background: rgba(28, 25, 21, 0.18); }
.dot-fill { grid-area: 1 / 1; width: 22px; height: 2px; border-radius: 2px; background: var(--noyer); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .dot-fill { transform-origin: right; }
.dot.is-on .dot-fill { transform: scaleX(1); transition: transform var(--slide) linear; }
.dot.is-done .dot-fill { transform: scaleX(1); transition: none; }
.hero-media.is-paused .dot.is-on .dot-fill { transform: scaleX(1); transition: transform 300ms var(--ease-out); }
.hero-pause {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: rgba(28, 25, 21, 0.06); transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause:active, .dot:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hero-pause:hover { background: rgba(28, 25, 21, 0.12); } }
@media (max-width: 700px) {
  .hero-cap { inset-inline-end: 12px; inset-block-start: 12px; inset-inline-start: 12px; gap: 8px; padding-inline-start: 16px; }
  .hero-cap-name { flex: 1; font-size: 14px; }
  .dot { width: 22px; }
  .dot::before, .dot-fill { width: 16px; }
}

/* Entrée de la page : une seule fois, au chargement */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title, .js .hero-aside, .js .hero-index { opacity: 0; transform: translateY(18px); }
  .is-ready .hero-index { opacity: 1; transform: none; transition: opacity 900ms var(--ease) 280ms, transform 900ms var(--ease) 280ms; }
  .is-ready .hero-title { opacity: 1; transform: none; transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
  .is-ready .hero-aside { opacity: 1; transform: none; transition: opacity 900ms var(--ease) 140ms, transform 900ms var(--ease) 140ms; }
}

/* Sections */
.section-head { display: grid; gap: 20px; margin-block-end: clamp(40px, 5vw, 72px); }
@media (min-width: 901px) {
  /* Un seul axe secondaire sur toute la page : la 7e colonne (photo d'ouverture, introductions, atelier, contact, pied). */
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; column-gap: 24px; }
  .section-head > h2 { grid-column: 1 / span 6; }
  .section-head > .lead, .section-head > .videos-aside { grid-column: 7 / span 5; }
}

/* Photos */
.ph { position: relative; overflow: hidden; border-radius: 6px; background: var(--pierre); }
.ph::after, .clip-media::after, .slides::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); pointer-events: none; }
.ask {
  position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 12px 18px;
  border-radius: 999px; background: rgba(244, 241, 235, 0.92); color: var(--encre); font-size: 14px; font-weight: 500; text-decoration: none;
  box-shadow: 0 8px 24px -14px rgba(36, 26, 18, 0.45);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 200ms ease;
}
.ask .icon { width: 22px; height: 22px; color: var(--noyer); }
.ask:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .ask { opacity: 0; transform: translateY(6px); }
  .piece:hover .ask, .ask:focus-visible { opacity: 1; transform: none; }
  .ask:hover { background: #fffaf2; }
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .piece:hover .ph img, .js .piece.reveal-img.in:hover .ph img, .workshop-main:hover .ph img, .js .workshop-main.reveal-img.in:hover .ph img { transform: scale(1.035); transition: transform 1400ms var(--ease-out); } }
figcaption { display: grid; gap: 2px; padding-block-start: 14px; }
.p-name { font-size: 17px; font-weight: 500; }
.p-meta { font-size: 15px; color: var(--encre-2); }

/* Réalisations */
.work { padding-block: clamp(72px, 9vw, 144px); }
.work-grid { display: grid; gap: 48px 24px; }
.p-a .ph { aspect-ratio: 3 / 2; }
.p-b .ph, .p-c .ph, .p-e .ph { aspect-ratio: 4 / 5; }
.p-d .ph, .p-f .ph { aspect-ratio: 1; }
.p-g .ph { aspect-ratio: 4 / 5; }
.p-a .ph img { object-position: 50% 40%; }
.p-c .ph img { object-position: 55% 50%; }
.p-f .ph img { object-position: 50% 52%; }
.p-text { display: grid; gap: 16px; align-content: center; justify-items: start; }
.p-text p { color: var(--encre-2); max-width: 40ch; }
.work-progress { display: none; }
@media (max-width: 900px) {
  .work-grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter); padding-block-end: 4px;
    scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar { display: none; }
  .work-grid > * { flex: 0 0 82%; scroll-snap-align: start; min-width: 0; }
  .work-grid .ph { aspect-ratio: 4 / 5; }
  .p-text { align-content: end; padding: 28px 24px; border-radius: 6px; background: var(--pierre); }
  .p-f + .p-text { margin-block-start: 0; }
  .work > .wrap { width: 100%; }
  .work .section-head { margin-inline: var(--gutter); }
  .work-progress { display: block; position: relative; height: 2px; margin-block-start: 28px; margin-inline: var(--gutter); border-radius: 2px; background: var(--filet); overflow: hidden; }
  .work-progress-thumb { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(100% / 7); border-radius: 2px; background: var(--noyer); transition: transform 450ms var(--ease-out); }
}
@media (min-width: 901px) {
  .work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(56px, 6vw, 96px); align-items: end; }
  .p-a { grid-column: 1 / span 8; }
  .p-b { grid-column: 9 / span 4; }
  .p-c { grid-column: 1 / span 4; align-self: start; }
  .p-d { grid-column: 5 / span 5; align-self: start; margin-block-start: clamp(64px, 9vw, 140px); }
  .p-e { grid-column: 10 / span 3; align-self: start; }
  .p-f { grid-column: 1 / span 6; }
  .p-text { grid-column: 8 / span 4; align-self: center; }
  /* Dernière rangée en miroir : le texte des cuisines à gauche, la photo sur l'axe de la 7e colonne. */
  .p-g { grid-column: 7 / span 6; grid-row: 4; }
  .p-text-k { grid-column: 1 / span 5; grid-row: 4; }
}

/* Vidéos : extraits muets, un seul à la fois */
.videos { padding-block-end: clamp(72px, 9vw, 144px); }
.videos-aside { display: grid; gap: 24px; justify-items: start; }
.videos-aside .lead { max-width: 40ch; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 16px 20px;
  border: 1px solid var(--filet); border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease), transform 160ms var(--ease-out);
}
.social-link:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .social-link:hover { background: var(--pierre); border-color: transparent; } }
.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.clip { display: grid; align-content: start; }
.clip-media { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--pierre); }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .clip-media { cursor: pointer; }
  .clip:hover video { transform: scale(1.035); }
}
.clip-toggle {
  position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-start: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(244, 241, 235, 0.92); color: var(--encre);
  box-shadow: 0 8px 24px -14px rgba(36, 26, 18, 0.45); transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.clip-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.clip-toggle .i-pause, .clip-toggle[aria-pressed="true"] .i-play { display: none; }
.clip-toggle[aria-pressed="true"] .i-pause { display: block; }
.clip-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .clip-toggle:hover { background: #fffaf2; } }
.clip-bar { position: relative; display: block; height: 2px; margin-block-start: 14px; border-radius: 2px; background: var(--filet); overflow: hidden; }
.clip-fill { position: absolute; inset: 0; background: var(--noyer); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .clip-fill { transform-origin: right; }
.clip figcaption { padding-block-start: 12px; }
@media (max-width: 900px) {
  .videos > .wrap { width: 100%; }
  .videos .section-head { margin-inline: var(--gutter); }
  .reel {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .reel::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 62%; scroll-snap-align: start; min-width: 0; }
}
@media (min-width: 601px) and (max-width: 900px) { .clip { flex-basis: 40%; } }

/* Qui sommes-nous : titre et présentation à gauche, quatre raisons à droite sur l'axe de la 7e colonne.
   Faits tirés des bios Instagram et TikTok de l'atelier et de ses photos ; aucun chiffre ni avis. */
.about { padding-block-end: clamp(72px, 9vw, 144px); }
.about-grid { display: grid; gap: 40px; }
.about-head { display: grid; gap: 20px; align-content: start; justify-items: start; }
.about-head .link { margin-block-start: 8px; }
.about-list { display: grid; gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.about-list li { padding-block-start: 18px; border-block-start: 1px solid var(--filet); }
.about-list strong { display: block; font-size: 18px; font-weight: 500; }
.about-list p { margin-block-start: 6px; color: var(--encre-2); max-width: 40ch; text-wrap: pretty; }
@media (min-width: 601px) { .about-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 901px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .about-head { grid-column: 1 / span 5; }
  .about-list { grid-column: 7 / span 6; }
}

/* Atelier */
.workshop { background: var(--pierre); padding-block: clamp(72px, 9vw, 144px); }
.workshop-grid { display: grid; gap: 40px 24px; }
.workshop-main .ph { aspect-ratio: 3 / 2; }
.workshop-detail .ph { aspect-ratio: 4 / 5; }
.workshop-main .ph img { object-position: 50% 60%; }
.workshop-detail .ph img { object-position: 50% 40%; }
.workshop-text { display: grid; gap: 20px; align-content: start; }
.steps { display: grid; gap: 24px; align-content: start; }
.steps-title { font-size: 1.375rem; }
.steps ol { display: grid; gap: 22px; }
.steps strong { display: block; font-size: 18px; font-weight: 500; }
.steps p { color: var(--encre-2); margin-block-start: 4px; max-width: 46ch; }
@media (min-width: 901px) {
  .workshop-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(56px, 6vw, 96px); }
  .workshop-text { grid-column: 1 / span 5; align-self: end; }
  .workshop-main { grid-column: 7 / span 6; }
  .workshop-detail { grid-column: 1 / span 5; }
  .steps { grid-column: 7 / span 5; align-self: center; }
}

/* Contact et pied, bloc final en noyer sombre.
   Sur ordinateur, deux colonnes sur la grille de la page : à gauche le titre, la phrase et le bouton ; à droite,
   à partir de la 7e colonne comme la photo d'ouverture, le numéro, la ligne d'appel et les réseaux.
   Chaque rangée de gauche s'aligne sur celle de droite. */
.contact { background: var(--nuit); color: var(--ivoire); padding-block-start: clamp(72px, 9vw, 144px); }
.contact ::selection { background: var(--ivoire); color: var(--nuit); }
.contact :focus-visible { outline-color: var(--ivoire); }
.contact-grid { display: grid; padding-block-end: clamp(64px, 8vw, 112px); }
.contact-lead { margin-block-start: 20px; color: var(--ivoire-2); font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); max-width: 34ch; text-wrap: pretty; }
.contact-cta { margin-block-start: 28px; }

/* Le numéro, à la taille du titre */
.contact-phone {
  position: relative; justify-self: start; margin-block-start: 56px;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.75rem); font-weight: 400; letter-spacing: -0.028em; line-height: 1.06; text-decoration: none;
}
.contact-phone::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out);
}
[dir="rtl"] .contact-phone::after { transform-origin: right; }
@media (hover: hover) and (pointer: fine) { .contact-phone:hover::after { transform: scaleX(1); } }
.contact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 16px; }
.contact-label { color: var(--ivoire-2); font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); }
.copy {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 14px 18px;
  border: 1px solid rgba(239, 231, 219, 0.22); border-radius: 999px; background: transparent; color: var(--ivoire);
  font-size: 15px; font-weight: 500; transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.copy[hidden] { display: none; }
.copy:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: rgba(239, 231, 219, 0.08); border-color: transparent; } }
.copy-ico { display: grid; width: 18px; height: 18px; }
.copy-ico svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: currentColor; transition: opacity 250ms cubic-bezier(0.2, 0, 0, 1), transform 250ms cubic-bezier(0.2, 0, 0, 1), filter 250ms cubic-bezier(0.2, 0, 0, 1); }
.copy-ico .i-check, .copy.is-done .i-copy { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.copy.is-done .i-check { opacity: 1; transform: none; filter: none; }

/* Réseaux et livraison : trois lignes simples, libellé puis valeur */
.contact-facts { margin-block-start: 32px; }
.contact-facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; }
.contact-facts dt { font-size: 15px; color: var(--ivoire-2); }
.contact-facts dd { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: 17px; }
.contact-facts a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; transition: color 250ms var(--ease); }
.contact-facts a .icon { width: 20px; height: 20px; color: var(--ivoire-2); transition: color 250ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .contact-facts a:hover, .contact-facts a:hover .icon { color: #fffaf2; } }

@media (min-width: 901px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .contact-grid > h2 { grid-column: 1 / span 6; grid-row: 1; }
  .contact-lead { grid-column: 1 / span 5; grid-row: 2; margin-block-start: 24px; }
  .contact-cta { grid-column: 1 / span 6; grid-row: 3; margin-block-start: 40px; }
  .contact-phone { grid-column: 7 / span 6; grid-row: 1; margin-block-start: 0; }
  .contact-meta { grid-column: 7 / span 6; grid-row: 2; margin-block-start: 24px; }
  .contact-facts { grid-column: 7 / span 6; grid-row: 3; margin-block-start: 40px; }
}

/* Pied : même grille, les liens partent de la 7e colonne */
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 28px; border-block-start: 1px solid rgba(239, 231, 219, 0.14); }
.foot-brand { display: inline-flex; min-height: 44px; align-items: center; }
.foot-logo { height: 36px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot-nav a, .foot-top { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ivoire-2); text-decoration: none; transition: color 250ms var(--ease); }
.foot-top { gap: 10px; }
.foot-top .icon { width: 16px; height: 16px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover, .foot-top:hover { color: var(--ivoire); }
  .foot-top:hover .icon { transform: translateY(-3px); }
}
@media (min-width: 901px) {
  .foot-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .foot-brand { grid-column: 1 / span 6; }
  .foot-nav { grid-column: 7 / span 4; }
  .foot-top { grid-column: 11 / span 2; justify-self: end; }
}
.foot-legal { padding-block: 4px 40px; font-size: 14px; color: var(--ivoire-2); }

/* Page introuvable (404.html) */
.notfound { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 40px; padding-block: 48px; }
.notfound-text { display: grid; gap: 20px; }
.notfound h1 { max-width: 16ch; }

/* Bouton WhatsApp flottant, mobile */
.wa-float { display: none; }
@media (max-width: 900px) {
  body { padding-block-end: 88px; }
  .contact { margin-block-end: -88px; padding-block-end: 88px; }
  .wa-float {
    position: fixed; inset-inline: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
    border-radius: 999px; background: var(--noyer); color: var(--sur-noyer); text-decoration: none; font-weight: 500;
    box-shadow: 0 10px 30px -12px rgba(36, 26, 18, 0.55);
    transform: translateY(140%); transition: transform 500ms var(--ease);
  }
  .wa-float .icon { width: 24px; height: 24px; }
  .wa-float.is-on { transform: none; }
}

/* Apparition au défilement */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-img .ph { clip-path: inset(100% 0 0 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js .reveal-img .ph img { transform: scale(1.16); transition: transform 1600ms var(--ease-out); }
  .js .reveal-img figcaption, .js .p-text.reveal-img > * { opacity: 0; transform: translateY(10px); transition: opacity 700ms var(--ease-out) 450ms, transform 700ms var(--ease-out) 450ms; }
  .js .reveal-img.in .ph { clip-path: inset(0 0 0 0); }
  .js .reveal-img.in .ph img { transform: none; }
  .js .reveal-img.in figcaption, .js .p-text.reveal-img.in > * { opacity: 1; transform: none; }
  .js .p-text.reveal-img.in > :nth-child(2) { transition-delay: 520ms; }
  .js .p-text.reveal-img.in > :nth-child(3) { transition-delay: 590ms; }
}
/* Dans le carrousel mobile, les cartes hors écran ne doivent pas attendre un dévoilement. */
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .js .work .reveal-img .ph { clip-path: none; }
  .js .work .reveal-img .ph img { transform: none; }
  .js .work .reveal-img figcaption, .js .work .p-text.reveal-img > * { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-on { transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
