/* ==========================================================================
   MAISON PRANAÏA — feuille de style
   Direction : minimaliste, minéral, éditorial. Aucune ombre, aucun dégradé décoratif.
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --ivory:  #EFE9DD;   /* papier ivoire (jamais de blanc pur) */
  --cream:  #E8DFCF;
  --sand:   #DACBB3;
  --sand-d: #C9B596;
  --taupe:  #9C846F;
  --clay:   #7A5F4D;
  --brown:  #5B4033;   /* encre du logo */
  --deep:   #2E2119;   /* brun profond, murs sombres des photographies */
  --wine:   #5C3631;   /* brun rouge de la signature manuscrite */
  --text:   #55423A;
  --terra:  #B47A5C;   /* accent discret */

  --ff-serif:  "Cormorant Garamond", "Cormorant", "Iowan Old Style", Georgia, serif;
  --ff-sans:   "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-script: "Mrs Saint Delafield", "Snell Roundhand", cursive;

  --gut: clamp(20px, 4.4vw, 72px);
  --maxw: 1720px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-y: clamp(96px, 13vw, 220px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(.9rem, .86rem + .15vw, 1rem);
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
/* grain de papier, comme le fond des publications du compte */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .34; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .55 -.14'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { margin: 0; font-weight: 300; }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sand-d); color: var(--deep); }
:focus-visible { outline: 1px solid var(--brown); outline-offset: 5px; }

.skip-link {
  position: fixed; left: var(--gut); top: -80px; z-index: 200;
  background: var(--deep); color: var(--ivory); padding: 12px 20px; font-size: .8rem;
}
.skip-link:focus { top: 16px; }

/* ---------- Typographie ---------- */
.eyebrow, .section-label b, .infos dt, .link, .button, .nav a, .menu-toggle, .works figcaption, .footer__links, .traits {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--brown);
}
.h2--xl { font-size: clamp(3rem, 1.2rem + 6vw, 7.6rem); }
.h2 em, .manifesto em { font-style: italic; font-weight: 300; }
.h3 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--brown);
}
.script { font-family: var(--ff-script); font-weight: 400; letter-spacing: 0; }
.prose p { max-width: 34em; }
.todo { font-style: italic; color: var(--taupe); }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.section { padding-block: var(--section-y); position: relative; }

.section-label {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 clamp(48px, 6vw, 96px);
  color: var(--clay);
}
.section-label span { font-family: var(--ff-serif); font-size: 1.1rem; letter-spacing: .05em; }
.section-label i { width: clamp(40px, 6vw, 96px); height: 1px; background: var(--taupe); opacity: .7; }

/* ---------- Médias ---------- */
.media { margin: 0; overflow: hidden; position: relative; background: var(--sand); aspect-ratio: var(--ar, 4 / 5); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  scale: 1.1; translate: 0 var(--py, 0px);
  will-change: translate;
  /* étalonnage commun : tons chauds, saturation retenue */
  filter: sepia(.07) saturate(.94) contrast(1.02);
}
/* écho à la publication en noir & blanc teinté du compte */
.media.is-mono img { filter: grayscale(1) sepia(.42) contrast(1.06) brightness(1.02); }

/* ---------- Boutons & liens ---------- */
.link, .hero__cta {
  display: inline-flex; align-items: center; gap: 18px; color: var(--brown);
}
.link i, .hero__cta i {
  display: block; width: 48px; height: 1px; background: currentColor; position: relative;
  transition: width .6s var(--ease-out);
}
.link i::after, .hero__cta i::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.link:hover i, .hero__cta:hover i { width: 76px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.35em 2.8em; border: 1px solid var(--brown); color: var(--brown);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.button::before {
  content: ""; position: absolute; inset: 0; background: var(--brown); z-index: -1;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.button:hover { color: var(--ivory); }
.button:hover::before { transform: none; }

/* soulignement fin au survol */
.nav a, .infos a, .footer__links a, .footer__links button { position: relative; }
.nav a::after, .infos a::after, .footer__links a::after, .footer__links button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after, .infos a:hover::after,
.footer__links a:hover::after, .footer__links button:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gut);
  color: var(--brown);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(239, 233, 221, .96); border-color: rgba(163, 139, 118, .28); --header-h: 72px; height: 72px; }
.brand { display: block; width: clamp(150px, 15vw, 210px); opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.site-header.is-scrolled .brand { opacity: 1; transform: none; pointer-events: auto; }
.nav ul { display: flex; gap: clamp(24px, 3.4vw, 56px); }
.nav a { display: block; padding: 8px 0; color: var(--brown); }

.menu-toggle { display: none; align-items: center; gap: 14px; color: var(--brown); padding: 12px 0 12px 12px; margin-right: -4px; }
.menu-toggle__bars { position: relative; width: 26px; height: 9px; display: block; }
.menu-toggle__bars i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory);
  padding: calc(var(--header-h) + 8vh) var(--gut) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu ul { display: grid; gap: 4px; }
.menu li a {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
  font-family: var(--ff-serif); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.1; color: var(--brown);
  border-bottom: 1px solid rgba(163, 139, 118, .25);
}
.menu li a span { font-family: var(--ff-sans); font-size: .68rem; letter-spacing: .2em; color: var(--taupe); min-width: 2em; }
.menu__foot { display: grid; gap: 14px; margin: 0; }
.menu__foot .script { font-size: 2.2rem; color: var(--brown); line-height: 1; }
.menu__foot a { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); }

/* ---------- 1 · Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-top: var(--header-h);
}
.hero__text {
  grid-column: 1 / 6; grid-row: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 4vh, 48px) clamp(24px, 3vw, 56px) clamp(32px, 5vh, 56px) var(--gut);
}
.hero__mention { color: var(--clay); max-width: 24em; line-height: 1.8; margin: 0; }
.hero__brand { margin-block: 6vh; }
.hero__logo { width: 100%; max-width: 620px; }
.hero__logo img { width: 100%; height: auto; }
.hero__signature {
  margin: clamp(20px, 3vh, 36px) 0 0;
  font-family: var(--ff-serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3.1rem); line-height: 1.1; color: var(--clay);
}
.hero__cta { align-self: flex-start; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; }
.hero__media { grid-column: 6 / 13; grid-row: 1; aspect-ratio: auto; height: calc(100svh - var(--header-h)); min-height: 520px; }

/* ---------- 2 · Studio ---------- */
.studio .grid { align-items: start; }
.studio__visual { grid-column: 1 / 6; margin-left: calc(var(--gut) * -1); width: calc(100% + var(--gut)); position: relative; margin-bottom: 8%; }
.studio__media { width: 100%; }
.studio__detail { position: absolute; right: -9%; bottom: -12%; width: 38%; z-index: 2; border: clamp(6px, .7vw, 10px) solid var(--ivory); border-width: 0; outline: clamp(6px, .8vw, 12px) solid var(--ivory); outline-offset: 0; }
.studio__body { grid-column: 7 / 13; padding-top: clamp(0px, 6vw, 110px); }
.studio .h2 { margin-bottom: clamp(32px, 4vw, 64px); }
.studio .prose { color: var(--text); }
.traits {
  display: flex; flex-wrap: wrap; gap: 0 36px; margin: clamp(36px, 4vw, 56px) 0; padding-top: 28px;
  border-top: 1px solid rgba(163, 139, 118, .45); color: var(--clay);
}
.traits li { position: relative; }
.traits li + li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--taupe); }

/* ---------- 3 · Prestations ---------- */
.presta { background: var(--cream); }
.presta__head .h2 { grid-column: 1 / 10; margin-bottom: clamp(72px, 10vw, 180px); }

.service { align-items: start; }
.service + .service { margin-top: clamp(80px, 11vw, 200px); }
.service__num {
  font-family: var(--ff-serif); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 300; font-style: italic;
  color: var(--taupe); margin: 0 0 clamp(14px, 2vw, 28px); line-height: 1;
}
.service__body p:last-child { max-width: 28em; margin-bottom: 0; }
.service .h3 { margin-bottom: clamp(18px, 2vw, 30px); }
.service__body { padding-top: 1px; }

/* A : image large à gauche, texte bas à droite */
.service--a .service__media { grid-column: 1 / 8; margin-left: calc(var(--gut) * -1); width: calc(100% + var(--gut)); }
.service--a .service__body { grid-column: 9 / 13; align-self: end; }
/* B : texte à gauche, image portrait à droite, décalée vers le bas */
.service--b .service__body { grid-column: 2 / 6; align-self: start; padding-top: clamp(0px, 6vw, 120px); }
.service--b .service__media { grid-column: 7 / 12; }
/* C : portrait à gauche décalé, texte à droite */
.service--c .service__media { grid-column: 2 / 7; }
.service--c .service__body { grid-column: 8 / 13; align-self: center; }

/* ---------- 4 · Réalisations ---------- */
.works { padding-bottom: calc(var(--section-y) * .9); }
.works__head { align-items: end; }
.works__head .h2 { grid-column: 1 / 9; }
.works__intro { grid-column: 9 / 13; margin: 0 0 .9em; max-width: 26em; font-size: .92em; line-height: 1.8; justify-self: end; text-align: right; color: var(--clay); }
.works__head { margin-bottom: clamp(56px, 8vw, 130px); }

.works__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 32px); row-gap: clamp(48px, 8vw, 150px);
}
.work { cursor: default; }
.work--1 { grid-column: 1 / 9; grid-row: 1; }
.work--2 { grid-column: 10 / 13; grid-row: 1; align-self: end; margin-bottom: -2vw; }
.work--3 { grid-column: 2 / 7; grid-row: 2; align-self: start; margin-top: 4vw; }
.work--4 { grid-column: 8 / 13; grid-row: 2; }
.work--5 { grid-column: 1 / 6; grid-row: 3; align-self: center; }
.work--6 { grid-column: 7 / 13; grid-row: 3; }
.work--7 { grid-column: 2 / 6; grid-row: 4; align-self: start; }
.work--8 { grid-column: 7 / 13; grid-row: 4; align-self: end; margin-bottom: -3vw; }

.work img { transition: scale 1.6s var(--ease-out); }
.work:hover img { scale: 1.04; }
.work figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.4em 1.6em; color: var(--ivory); background: rgba(46, 33, 25, .42);
  transform: translateY(101%); transition: transform .7s var(--ease-out);
}
.work figcaption span { font-family: var(--ff-serif); font-size: 1.1rem; letter-spacing: .05em; text-transform: none; }
.work:hover figcaption, .work:focus-within figcaption { transform: none; }

/* ---------- 5 · Manifeste ---------- */
.manifesto { background: var(--deep); color: var(--sand); overflow: hidden; }
.manifesto__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  align-items: start;
}
.manifesto__title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; pointer-events: none; font-family: var(--ff-serif); }
.manifesto__l1, .manifesto__l2 {
  display: block; color: var(--ivory); font-weight: 300; line-height: .95; letter-spacing: -.02em;
  font-size: clamp(4.4rem, 1rem + 15vw, 17rem);
}
.manifesto__l2 { margin-left: 22%; color: var(--sand); }
.manifesto__media { grid-column: 8 / 12; grid-row: 1; margin-top: clamp(40px, 9vw, 160px); background: var(--clay); z-index: 1; }
.manifesto__media::after { content: ""; position: absolute; inset: 0; background: rgba(46, 33, 25, .08); }
.manifesto__text {
  grid-column: 2 / 12; grid-row: 2; margin-top: clamp(32px, 6vw, 100px);
  font-family: var(--ff-serif); font-weight: 300; font-size: clamp(1.35rem, 1rem + 1vw, 2rem); line-height: 1.5; color: var(--sand);
}
.manifesto__text p:first-child { color: var(--ivory); font-style: italic; margin-bottom: 1.4em; max-width: 24em; }
.manifesto__text .manifesto__sign {
  display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px;
  margin: clamp(40px, 5vw, 72px) 0 0; max-width: none; color: var(--sand);
}
.manifesto__sign span { font-family: var(--ff-sans); font-weight: 300; font-size: clamp(.78rem, .7rem + .3vw, 1rem); letter-spacing: .3em; text-transform: uppercase; }
.manifesto__sign .script { font-style: normal; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.6rem); line-height: 1; color: var(--sand-d); }
.manifesto__text p:nth-child(2) { margin-bottom: 0; max-width: 26em; font-size: .86em; font-family: var(--ff-sans); font-size: clamp(.9rem, .86rem + .15vw, 1rem); line-height: 1.95; color: var(--sand-d); }

/* ---------- 6 · Contact ---------- */
.contact { background: var(--ivory); }
.contact .grid { align-items: start; }
.contact__body { grid-column: 1 / 8; grid-row: 2; }
.contact__media { grid-column: 9 / 13; grid-row: 2; margin-top: -6vw; }
.contact__lead { max-width: 28em; margin: clamp(28px, 3.4vw, 52px) 0 clamp(32px, 4vw, 56px); font-size: 1.02em; }
.infos { margin: clamp(56px, 7vw, 110px) 0 0; max-width: 560px; border-top: 1px solid rgba(163, 139, 118, .45); }
.infos > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(163, 139, 118, .3); align-items: baseline; }
.infos dt { color: var(--taupe); font-size: .66rem; }
.infos dd { margin: 0; color: var(--brown); }

/* ---------- Pied de page ---------- */
.footer { background: var(--deep); color: var(--sand-d); padding-block: clamp(72px, 9vw, 140px) 36px; border-top: 1px solid rgba(246, 241, 232, .08); }
.footer__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: 28px; align-items: end; }
.footer__logo { grid-column: 1 / 7; display: block; max-width: 520px; }
.footer__sign { grid-column: 1 / 7; grid-row: 2; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--sand); margin: 0; line-height: 1; }
.footer__links { grid-column: 8 / 13; grid-row: 1 / 3; display: flex; justify-content: flex-end; align-self: end; gap: 40px; color: var(--sand); padding-bottom: 6px; }
.footer__copy { grid-column: 1 / -1; grid-row: 3; margin: clamp(40px, 6vw, 96px) 0 0; padding-top: 28px; border-top: 1px solid rgba(246, 241, 232, .12); font-size: .74rem; letter-spacing: .08em; color: var(--taupe); }

/* ---------- Mentions légales ---------- */
.legal { border: 0; background: var(--ivory); color: var(--text); width: min(640px, calc(100% - 2 * var(--gut))); max-height: 86svh; padding: clamp(32px, 5vw, 56px); overflow: auto; }
.legal::backdrop { background: rgba(46, 33, 25, .6); }
.legal h2 { margin-bottom: 28px; }
.legal dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); margin-top: 22px; font-weight: 400; }
.legal dd { margin: 6px 0 0; }
.legal__close { position: absolute; top: 22px; right: 26px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); }

/* ==========================================================================
   Animations (activées uniquement si JS est disponible)
   ========================================================================== */
.js [data-reveal]:not([data-reveal="image"]) {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in:not([data-reveal="image"]) { opacity: 1; transform: none; }

/* le masque est posé sur l'image (et non sur le conteneur observé) */
.js .media[data-reveal="image"] img, .js .media--hero img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.5s var(--ease-out), scale 2.2s var(--ease-out), translate .2s linear;
}
.js .media--hero img { clip-path: inset(0 0 0 100%); transition-delay: .1s, .1s, 0s; transition-duration: 1.6s, 2.4s, .2s; }
.js .media[data-reveal="image"].is-in img, .js .media--hero.is-in img { clip-path: inset(0); scale: 1.05; }
.js .work.is-in:hover img { scale: 1.1; transition: scale 1.6s var(--ease-out), translate .2s linear; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .media, .js .media img { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .media img { scale: 1.02 !important; translate: 0 0 !important; }
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__text { grid-column: 1 / 7; }
  .hero__media { grid-column: 7 / 13; }
  .studio__visual { grid-column: 1 / 7; }
  .studio__body { grid-column: 8 / 13; padding-top: 0; }
  .service--a .service__media { grid-column: 1 / 8; }
  .service--a .service__body { grid-column: 9 / 13; }
  .service--b .service__body { grid-column: 1 / 6; }
  .service--b .service__media { grid-column: 7 / 13; }
  .service--c .service__media { grid-column: 1 / 7; }
  .service--c .service__body { grid-column: 8 / 13; }
  .manifesto__media { grid-column: 8 / 13; }
  .manifesto__text { grid-column: 1 / 13; }
  .contact__body { grid-column: 1 / 8; }
  .contact__media { grid-column: 9 / 13; }
}

/* ==========================================================================
   Mobile & tablette portrait — composition repensée, pas une simple réduction
   ========================================================================== */
@media (max-width: 860px) {
  :root { --header-h: 68px; --section-y: clamp(80px, 20vw, 128px); }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.is-scrolled { --header-h: 62px; height: 62px; }

  /* Hero : image d'abord, puis bloc de marque */
  .hero { display: flex; flex-direction: column; min-height: 0; padding-top: var(--header-h); }
  .hero__media { order: 1; height: min(62svh, 560px); min-height: 360px; margin-left: var(--gut); }
  .hero__text { order: 2; padding: 36px var(--gut) 24px; gap: 0; }
  .hero__mention { order: 3; margin-top: 36px; font-size: .66rem; }
  .hero__brand { margin-block: 0; }
  .hero__logo { max-width: 460px; }
  .hero__cta { order: 4; margin-top: 32px; }
  .hero__text { display: flex; flex-direction: column; }
  .hero__mention { order: 1; margin: 0 0 30px; }
  .hero__brand { order: 2; }
  .hero__cta { order: 3; margin-top: 36px; }
  .js .media--hero img { clip-path: inset(100% 0 0 0); }

  /* Studio : image en retrait à gauche, texte dessous */
  .studio .grid, .service, .contact .grid { display: flex; flex-direction: column; }
  .studio__visual { width: 80%; margin: 0 auto 14% calc(var(--gut) * -1); }
  .studio__detail { right: -22%; bottom: -14%; width: 44%; }
  .studio__body { margin-top: 48px; }
  .section-label { margin-bottom: 40px; }

  /* Prestations */
  .presta__head .h2 { margin-bottom: 64px; }
  .service + .service { margin-top: 88px; }
  .service--a .service__media { width: 100%; margin: 0 0 36px calc(var(--gut) * -1); width: calc(100% + var(--gut)); }
  .service--b { flex-direction: column-reverse; }
  .service--b .service__body { padding-top: 0; margin-top: 36px; }
  .service--b .service__media { width: 82%; align-self: flex-end; margin-right: calc(var(--gut) * -1); }
  .service--c .service__media { width: 74%; }
  .service--c .service__body { margin-top: 36px; }

  /* Réalisations : rythme alterné plein cadre / retrait */
  .works__head { display: block; }
  .works__intro { text-align: left; justify-self: start; margin-top: 20px; }
  .works__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; column-gap: 12px; }
  .work { margin: 0 !important; align-self: auto !important; grid-row: auto !important; }
  .work--1 { grid-column: 1 / 7; }
  .work--2 { grid-column: 3 / 7; }
  .work--3 { grid-column: 1 / 6; }
  .work--4 { grid-column: 1 / 7; }
  .work--5 { grid-column: 2 / 7; }
  .work--6 { grid-column: 1 / 7; }
  .work--7 { grid-column: 1 / 5; }
  .work--8 { grid-column: 1 / 7; }
  /* pas de survol sur tactile : légende toujours lisible */
  .work figcaption { transform: none; background: none; color: var(--clay); position: static; padding: .9em 0 0; }
  .work { overflow: visible; background: none; aspect-ratio: auto; }
  .work img { aspect-ratio: var(--ar); height: auto; }
  .work .media, .work { display: block; }
  .work img { scale: 1; translate: 0 0 !important; }
  .work:hover img { scale: 1; }
  .js .work.is-in img, .js .work.media img { scale: 1; }

  /* Manifeste */
  .manifesto__grid { display: flex; flex-direction: column; }
  .manifesto__l2 { margin-left: 14%; }
  .manifesto__media { width: 70%; align-self: flex-end; margin: 36px calc(var(--gut) * -1) 0 0; }
  .manifesto__text { margin-top: 44px; }

  /* Contact */
  .contact__media { width: 70%; align-self: flex-start; margin: 64px 0 0 calc(var(--gut) * -1); }
  .contact__body { display: flex; flex-direction: column; align-items: flex-start; }
  .infos { width: 100%; margin-top: 56px; }
  .infos > div { grid-template-columns: 7.8em 1fr; }

  /* Footer */
  .footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__logo { width: min(100%, 420px); }
  .footer__links { gap: 32px; margin-top: 12px; }
  .footer__copy { margin-top: 36px; width: 100%; }
}

@media (max-width: 480px) {
  body { line-height: 1.85; }
  .h2 { font-size: clamp(2.3rem, 10.4vw, 3rem); }
  .h2--xl { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .hero__signature { font-size: 2rem; }
  .hero__cta { font-size: .66rem; letter-spacing: .2em; gap: 14px; }
  .hero__cta i { width: 32px; }
  .button { width: 100%; }
  .studio__visual { width: 84%; }
  .service--b .service__media, .service--c .service__media { width: 84%; }
  .manifesto__l1, .manifesto__l2 { font-size: clamp(3.6rem, 20vw, 5.4rem); }
  .infos > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (min-width: 1700px) {
  .hero__logo { max-width: 700px; }
}

/* ==========================================================================
   Téléphone, appels à l'action et formulaire de contact
   ========================================================================== */

/* Variante pleine du bouton : brun profond, s'inverse au survol */
.button--solid { background: var(--brown); color: var(--ivory); }
.button--solid::before { background: var(--ivory); }
.button--solid:hover { color: var(--brown); }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: progress; }

.textlink { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--brown); }
.textlink:hover { text-decoration-color: transparent; }

/* Contact : boutons et numéro */
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__phone { margin: clamp(26px, 3vw, 40px) 0 0; font-family: var(--ff-serif); font-weight: 300; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: .01em; color: var(--brown); }
.contact__phone a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); padding-bottom: 6px; }
.contact__phone a:hover { background-size: 100% 1px; }
.contact__formlink { margin-top: clamp(26px, 3vw, 40px); }
.infos a { color: var(--brown); }

/* Fin des prestations */
.presta__cta { margin: clamp(72px, 9vw, 140px) 0 0; display: flex; justify-content: flex-end; }

/* Bandeau d'appel après la galerie */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap;
  margin-top: clamp(72px, 9vw, 150px); padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(156, 132, 111, .5);
}
.cta-band__text { margin: 0; font-family: var(--ff-serif); font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.1; color: var(--brown); }
.cta-band__text em { font-style: italic; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Formulaire */
.contact-form {
  margin-top: clamp(96px, 12vw, 190px); padding-top: clamp(56px, 7vw, 110px);
  border-top: 1px solid rgba(156, 132, 111, .45); align-items: start;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.contact-form__intro { grid-column: 1 / 5; }
.contact-form__intro .eyebrow { color: var(--clay); margin: 0 0 22px; }
.contact-form__intro .h3 { margin-bottom: 26px; }
.contact-form__note { max-width: 24em; color: var(--clay); margin: 0; }
.form { grid-column: 6 / 13; display: grid; gap: clamp(24px, 3vw, 36px); }
.form__legend { margin: 0; font-size: .74rem; letter-spacing: .08em; color: var(--taupe); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 44px); }

.field { position: relative; }
.field label { display: block; margin-bottom: 4px; font-size: .68rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); }
.field abbr { text-decoration: none; color: var(--terra); }
.field__opt { text-transform: none; letter-spacing: .04em; font-style: italic; color: var(--taupe); margin-left: 6px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; padding: .85em 0 .75em; margin: 0;
  font: 300 1rem/1.6 var(--ff-sans); letter-spacing: .01em; color: var(--brown);
  background: transparent; border: 0; border-bottom: 1px solid rgba(122, 95, 77, .55); border-radius: 0; outline: 0;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 9em; line-height: 1.7; }
.field select {
  cursor: pointer; padding-right: 2em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path d='M1 1l6 6 6-6' fill='none' stroke='%237A5F4D' stroke-width='1'/></svg>") no-repeat right .2em center;
}
.field select:invalid { color: var(--taupe); }
.field select option { color: var(--deep); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brown); box-shadow: 0 1px 0 0 var(--brown); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; }
.field.has-error input:not([type="checkbox"]), .field.has-error select, .field.has-error textarea { border-bottom-color: #9A4B34; }
.field__error { margin: 8px 0 0; font-size: .8rem; line-height: 1.5; color: #8E432E; min-height: 0; }
.field__error:empty { display: none; }

.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; align-items: start; }
.field--check label { margin: 0; text-transform: none; letter-spacing: .01em; font-size: .86rem; line-height: 1.6; font-weight: 300; color: var(--text); cursor: pointer; }
.field--check input { grid-row: 1; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brown); cursor: pointer; }
.field--check .field__error { grid-column: 2; }
.form__privacy { margin: -6px 0 0; font-size: .8rem; line-height: 1.7; color: var(--clay); max-width: 44em; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 24px; }

.form__status { padding: 22px 26px; border-left: 2px solid var(--brown); background: var(--cream); color: var(--brown); outline: 0; }
.form__status[hidden] { display: none; }
.form__status h4 { margin: 0 0 6px; font-family: var(--ff-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.form__status p { margin: 0; line-height: 1.7; }
.form__status a { text-decoration: underline; text-underline-offset: 4px; }
.form__status--error { border-left-color: #9A4B34; }
.form.is-sent .form__legend, .form.is-sent .form__row, .form.is-sent .field, .form.is-sent .form__privacy, .form.is-sent .form__actions { display: none; }

/* Pied de page : téléphone */
.footer__phone { grid-column: 8 / 13; grid-row: 1; justify-self: end; align-self: start; margin: 0; font-family: var(--ff-serif); font-weight: 300; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1; color: var(--ivory); }
.footer__phone a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); padding-bottom: 6px; }
.footer__phone a:hover { background-size: 100% 1px; }
.footer__links { grid-row: 2 / 4; flex-wrap: wrap; row-gap: 14px; }

/* Menu mobile : appel */
.menu__call { color: var(--brown) !important; font-size: .78rem !important; }

/* Fenêtre « numéro copié » (ordinateurs) */
.phone-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; width: max-content; max-width: calc(100% - 2 * var(--gut));
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; justify-content: center;
  padding: 18px 26px; background: var(--deep); color: var(--ivory); font-size: .9rem; line-height: 1.5;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.phone-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.phone-toast b { font-family: var(--ff-serif); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; margin-right: 6px; }
.phone-toast a, .phone-toast button { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); text-decoration: underline; text-underline-offset: 5px; }
.phone-toast a:hover, .phone-toast button:hover { color: var(--ivory); }

@media (max-width: 1100px) {
  .contact-form__intro { grid-column: 1 / 6; }
  .form { grid-column: 6 / 13; }
  .footer__phone { grid-column: 7 / 13; }
}
@media (max-width: 860px) {
  .contact__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact__actions .button { width: 100%; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .cta-band__actions { width: 100%; flex-direction: column; }
  .cta-band__actions .button { width: 100%; }
  .presta__cta { justify-content: flex-start; }
  .contact .grid.contact-form, .contact-form { display: flex; flex-direction: column; gap: 40px; }
  .contact-form__intro, .form { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .button { width: 100%; }
  .footer__phone { grid-column: auto; grid-row: auto; justify-self: start; order: 3; }
  .footer__inner { gap: 22px; }
  .footer__links { order: 4; justify-content: flex-start; column-gap: 28px; }
  .footer__copy { order: 5; }
  .phone-toast { bottom: 16px; }
}
