:root {
  --paper: #fcfbf7;
  --paper-soft: rgba(252, 251, 247, 0.74);
  --paper-strong: #f2f0ea;
  --ink: #11100e;
  --muted: rgba(17, 16, 14, 0.68);
  --quiet: rgba(17, 16, 14, 0.46);
  --clay: #7f3327;
  --sage: #6f756a;
  --line: rgba(17, 16, 14, 0.28);
  --line-soft: rgba(17, 16, 14, 0.12);
  --display: "Instrument Serif", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space: clamp(22px, 5vw, 82px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body::before {
  content: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site {
  position: relative;
  z-index: 1;
  overflow: clip;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px var(--space);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(252, 251, 247, 0.92), rgba(252, 251, 247, 0.18));
  backdrop-filter: blur(10px);
  transition: border-color 260ms ease, background 260ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(252, 251, 247, 0.94);
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 0.92;
}

.brand span {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 46px);
  color: rgba(17, 16, 14, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--clay);
  color: var(--ink);
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 78px;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--veil);
}

.hero {
  --veil:
    linear-gradient(90deg, rgba(252, 251, 247, 0.98) 0%, rgba(252, 251, 247, 0.82) 32%, rgba(252, 251, 247, 0.16) 58%, rgba(252, 251, 247, 0) 100%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.22), rgba(252, 251, 247, 0));
}

.atelier {
  --veil:
    linear-gradient(90deg, rgba(252, 251, 247, 0.1), rgba(252, 251, 247, 0.74) 52%, rgba(252, 251, 247, 0.96)),
    linear-gradient(180deg, rgba(252, 251, 247, 0.2), rgba(252, 251, 247, 0.04));
}

.services {
  --veil:
    linear-gradient(90deg, rgba(252, 251, 247, 0.95) 0%, rgba(252, 251, 247, 0.78) 42%, rgba(252, 251, 247, 0.08) 90%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.22), rgba(252, 251, 247, 0));
}

.projects {
  --veil:
    linear-gradient(90deg, rgba(252, 251, 247, 0.95) 0%, rgba(252, 251, 247, 0.62) 44%, rgba(252, 251, 247, 0.04) 100%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.16), rgba(252, 251, 247, 0));
}

.instagram {
  --veil:
    linear-gradient(90deg, rgba(252, 251, 247, 0.96) 0%, rgba(252, 251, 247, 0.76) 38%, rgba(252, 251, 247, 0.06) 100%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.2), rgba(252, 251, 247, 0));
}

.contact {
  --veil:
    linear-gradient(90deg, rgba(252, 251, 247, 0.96) 0%, rgba(252, 251, 247, 0.76) 45%, rgba(252, 251, 247, 0.06) 100%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.2), rgba(252, 251, 247, 0));
  min-height: 108svh;
}

.hero-copy,
.scene-copy,
.services-copy,
.contact-copy {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 2 * var(--space)));
  margin-left: var(--space);
  padding-top: clamp(118px, 18svh, 190px);
}

.scene-copy.right {
  margin-left: auto;
  margin-right: var(--space);
}

.micro {
  margin: 0 0 26px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 34px;
  font-size: clamp(66px, 7.8vw, 128px);
  line-height: 0.84;
}

h2 {
  margin-bottom: 32px;
  font-size: clamp(58px, 7.2vw, 116px);
  line-height: 0.86;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 0.9;
}

p {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.62;
}

.lead {
  max-width: 600px;
  padding-left: 22px;
  border-left: 1px solid var(--clay);
  color: rgba(17, 16, 14, 0.76);
  font-size: clamp(17px, 1.6vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 16, 14, 0.76);
  padding: 0 20px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.line {
  border-color: transparent;
  padding-left: 0;
}

.button.line::after {
  content: "";
  width: 72px;
  height: 1px;
  margin-left: 18px;
  background: currentColor;
}

.caption {
  position: absolute;
  z-index: 2;
  color: rgba(17, 16, 14, 0.48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.caption-bottom {
  left: var(--space);
  bottom: 34px;
}

.service-list {
  display: grid;
  width: min(720px, 100%);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 27px;
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: rgba(155, 83, 52, 0.72);
  font-family: var(--display);
  font-size: 44px;
  line-height: 0.9;
}

.service-list h3 {
  margin-bottom: 6px;
  font-size: clamp(32px, 3.4vw, 48px);
}

.service-list p {
  max-width: 500px;
  margin-bottom: 0;
}

.project-panel {
  position: absolute;
  z-index: 3;
  right: var(--space);
  bottom: clamp(48px, 7vw, 96px);
  width: min(470px, calc(100% - 2 * var(--space)));
  padding: 28px 0 0 28px;
  border-left: 1px solid rgba(17, 16, 14, 0.38);
  background: linear-gradient(90deg, rgba(252, 251, 247, 0.84), rgba(252, 251, 247, 0.12));
}

.project-photo {
  display: none;
  width: min(320px, 100%);
  aspect-ratio: 4 / 3;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.project-photo.is-visible {
  display: block;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96);
}

.project-meta {
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.project-actions button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 16, 14, 0.5);
  border-radius: 50%;
  background: rgba(252, 251, 247, 0.35);
  color: rgba(17, 16, 14, 0.62);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.project-actions button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.instagram-copy {
  max-width: 620px;
}

.instagram-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.insta-link {
  border: 1px solid rgba(17, 16, 14, 0.38);
  padding: 13px 15px;
  background: rgba(252, 251, 247, 0.5);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.insta-link.quiet {
  color: rgba(17, 16, 14, 0.58);
}

.image-rail {
  position: absolute;
  z-index: 2;
  left: 42vw;
  right: -10vw;
  bottom: clamp(34px, 6vw, 82px);
  overflow: hidden;
  padding-block: 24px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.image-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 18px;
  animation: rail 46s linear infinite;
}

.image-track img {
  width: clamp(150px, 12vw, 230px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 12px solid rgba(246, 242, 232, 0.92);
  box-shadow: 0 18px 38px rgba(17, 16, 14, 0.18);
  filter: saturate(0.84) contrast(0.95);
}

.image-track img:nth-child(2n) {
  transform: translateY(-16px) rotate(2deg);
}

.image-track img:nth-child(3n) {
  transform: translateY(14px) rotate(-3deg);
}

@keyframes rail {
  to {
    transform: translateX(-50%);
  }
}

.method {
  padding: clamp(78px, 10vw, 148px) var(--space);
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(252, 251, 247, 0.96) 0%, rgba(252, 251, 247, 0.68) 42%, rgba(252, 251, 247, 0.12) 100%),
    url("/generated/v5-method.webp") center / cover no-repeat,
    var(--paper-strong);
}

.method h2 {
  max-width: 980px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid var(--line);
  background: var(--line);
}

.method-grid article {
  min-height: 290px;
  padding: clamp(22px, 3vw, 40px);
  background: rgba(252, 251, 247, 0.82);
}

.method-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--clay);
  font-family: var(--display);
  font-size: 48px;
}

.contact-copy {
  max-width: 700px;
}

.contact-form {
  position: absolute;
  z-index: 3;
  right: var(--space);
  bottom: clamp(70px, 9vw, 138px);
  display: grid;
  width: min(470px, calc(100% - 2 * var(--space)));
  gap: 16px;
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid rgba(17, 16, 14, 0.32);
  background: rgba(252, 251, 247, 0.78);
  backdrop-filter: blur(10px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(17, 16, 14, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17, 16, 14, 0.4);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink);
  padding: 12px 10px;
  outline: 0;
  font-size: 15px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
  margin-top: 6px;
}

.footer {
  position: absolute;
  left: var(--space);
  right: var(--space);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(17, 16, 14, 0.52);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .image-track {
    animation: none;
  }
}

@media (max-width: 980px) {
  .nav {
    gap: 16px;
  }

  .scene {
    min-height: auto;
  }

  .hero {
    min-height: 100svh;
  }

  .scene-copy.right {
    margin-left: var(--space);
    margin-right: 0;
  }

  .project-panel,
  .contact-form {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 56px var(--space) 0 auto;
  }

  .contact-form {
    margin-bottom: 110px;
  }

  .image-rail {
    left: 8vw;
    right: -18vw;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  :root {
    --space: 22px;
  }

  .site-header {
    position: sticky;
    min-height: 68px;
    align-items: flex-start;
    padding: 14px var(--space);
  }

  .brand {
    font-size: 25px;
  }

  .nav {
    display: none;
  }

  .scene {
    min-height: auto;
  }

  .hero {
    min-height: 100svh;
      --veil:
      linear-gradient(180deg, rgba(252, 251, 247, 0.98) 0%, rgba(252, 251, 247, 0.86) 38%, rgba(252, 251, 247, 0.08) 72%, rgba(252, 251, 247, 0) 100%);
  }

  .atelier {
      --veil: linear-gradient(90deg, rgba(252, 251, 247, 0.9), rgba(252, 251, 247, 0.56) 72%, rgba(252, 251, 247, 0.06));
  }

  .services {
      --veil: linear-gradient(90deg, rgba(252, 251, 247, 0.9), rgba(252, 251, 247, 0.58) 70%, rgba(252, 251, 247, 0.06));
  }

  .projects {
      --veil: linear-gradient(90deg, rgba(252, 251, 247, 0.9), rgba(252, 251, 247, 0.58) 72%, rgba(252, 251, 247, 0.06));
  }

  .instagram {
      --veil: linear-gradient(90deg, rgba(252, 251, 247, 0.92), rgba(252, 251, 247, 0.62) 72%, rgba(252, 251, 247, 0.06));
    min-height: 860px;
  }

  .contact {
      --veil: linear-gradient(90deg, rgba(252, 251, 247, 0.92), rgba(252, 251, 247, 0.62) 72%, rgba(252, 251, 247, 0.06));
  }

  .hero-copy,
  .scene-copy,
  .services-copy,
  .contact-copy {
    width: calc(100% - 2 * var(--space));
    padding-top: 74px;
  }

  .hero-copy {
    padding-top: 58px;
  }

  h1 {
    max-width: 348px;
    font-size: clamp(54px, 15vw, 72px);
    line-height: 0.86;
  }

  h2 {
    max-width: 340px;
    font-size: clamp(43px, 12.5vw, 58px);
    line-height: 0.9;
  }

  h3 {
    font-size: 32px;
  }

  .lead,
  p {
    max-width: 320px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    width: min(250px, 100%);
  }

  .button.line {
    justify-content: flex-start;
  }

  .caption-bottom {
    display: none;
  }

  .service-list {
    margin-top: 34px;
  }

  .service-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0 20px;
  }

  .service-list span {
    font-size: 34px;
  }

  .project-panel,
  .contact-form {
    width: calc(100% - 2 * var(--space));
    margin: 32px var(--space) 0;
    padding-left: 18px;
  }

  .project-panel {
    padding-top: 18px;
  }

  .instagram-links {
    display: grid;
    width: min(290px, 100%);
  }

  .image-rail {
    left: -50px;
    right: -70px;
    bottom: 20px;
  }

  .image-track {
    gap: 12px;
    animation-duration: 38s;
  }

  .image-track img {
    width: 142px;
    border-width: 8px;
  }

  .method {
    padding: 64px var(--space);
    background:
      linear-gradient(180deg, rgba(252, 251, 247, 0.96) 0%, rgba(252, 251, 247, 0.76) 46%, rgba(252, 251, 247, 0.22) 100%),
      url("/generated/v5-method-mobile.webp") center / cover no-repeat,
      var(--paper-strong);
  }

  .method-grid {
    margin-top: 32px;
  }

  .method-grid span {
    margin-bottom: 24px;
  }

  .contact-form {
    margin-bottom: 120px;
    padding: 20px;
  }

  .footer {
    left: var(--space);
    right: var(--space);
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------------------------------------------------------------------------
   Fonds de section (2026-08-02)
   L'url() etait posee dans une variable CSS (--scene). Le navigateur
   telecharge alors CHAQUE valeur declaree, y compris celles que la cascade
   ecarte : sur telephone la page tirait les 7 fonds mobiles ET les 7 fonds
   bureau, soit 15,2 Mo. La declaration est maintenant directe.
--------------------------------------------------------------------------- */
.hero .scene-bg {
  background-image: var(--veil), url("/generated/v5-hero.webp");
}

.atelier .scene-bg {
  background-image: var(--veil), url("/generated/v5-atelier.webp");
}

.services .scene-bg {
  background-image: var(--veil), url("/generated/v5-services.webp");
}

.projects .scene-bg {
  background-image: var(--veil), url("/generated/v5-projects.webp");
}

.instagram .scene-bg {
  background-image: var(--veil), url("/generated/v5-instagram.webp");
}

.contact .scene-bg {
  background-image: var(--veil), url("/generated/v5-contact.webp");
}

@media (max-width: 760px) {
  .hero .scene-bg {
    background-image: var(--veil), url("/generated/v5-hero-mobile.webp");
  }

  .atelier .scene-bg {
    background-image: var(--veil), url("/generated/v5-atelier-mobile.webp");
  }

  .services .scene-bg {
    background-image: var(--veil), url("/generated/v5-services-mobile.webp");
  }

  .projects .scene-bg {
    background-image: var(--veil), url("/generated/v5-projects-mobile.webp");
  }

  .instagram .scene-bg {
    background-image: var(--veil), url("/generated/v5-instagram-mobile.webp");
  }

  .contact .scene-bg {
    background-image: var(--veil), url("/generated/v5-contact-mobile.webp");
  }

}


/* ---------------------------------------------------------------------------
   Passe tactile (2026-08-02) — skill desktop-vers-mobile.
   Le site n'avait aucune regle :active, et plusieurs cibles etaient sous les
   44 px recommandes (WCAG 2.5.5 + Apple HIG).
--------------------------------------------------------------------------- */
.nav a,
.button,
.insta-link,
.project-actions button,
.footer a,
.contact a,
.hero-back,
a.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.project-actions button {
  min-width: 44px;
  justify-content: center;
}

@media (hover: none) and (pointer: coarse) {
  a:active,
  button:active,
  [role="button"]:active,
  summary:active {
    opacity: 0.62;
    transition: opacity 0.05s linear;
  }

  a,
  button,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Les deux champs du formulaire etaient a 43 px et sous 16 px : sous ce
   seuil, iOS zoome de force la page a la saisie. */
.contact-form input,
.contact-form textarea,
.contact-form select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  min-height: 48px;
  font-size: 16px;
}

/* Le lien de retour faisait 23 px de haut. */
.back,
.back-home,
a[href="#hero"],
a[href="/"],
a[href="index.html"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Le bouton de marque (retour accueil) faisait 23 px de haut. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}


/* Le defilement anime est agreable a la souris, mais sur telephone un lien de
   menu peut demander un saut de plusieurs milliers de pixels : le navigateur
   l'anime pendant plusieurs secondes, et iOS ignore le doigt pendant toute
   l'animation. Le site parait fige. Sur pointeur grossier, on saute
   directement. (Mesure sur Le Coq en Pate : 12 148 px anime en 4 000 ms.) */
@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

/* Lien d'evitement : masque tant qu'il n'a pas le focus, il apparait a la
   premiere tabulation pour sauter directement au contenu. */
.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: #14110e;
  color: #fdf8ef;
  font: 600 15px/1 system-ui, sans-serif;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.lien-evitement:focus {
  left: 0;
  outline: 3px solid #f4c84f;
  outline-offset: 2px;
}
