/* Alexandre Pam, portfolio. Feuille unique, sans framework.
   Encre et vermillon sur papier washi : un seul geste fort (le nom qui se depose, puis le sceau),
   beaucoup de vide, l'asymetrie, le sceau en fil rouge. Un seul accent : le vermillon. */

@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader_60pt-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader_60pt-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Une seule apparence, claire, choisie : papier, encre, vermillon */
  --washi: #f4f1ea;
  --washi-2: #ebe6dc;
  --surface: #e3ddd1;
  --sumi: #191714;
  --nezumi: #69645c;
  --trait: rgba(25, 23, 20, 0.12);
  --trait-fort: rgba(25, 23, 20, 0.28);
  --shu: #c9381f;
  --shu-fond: #b83218;
  --kinari: #fbf7ef;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS Mincho", serif;

  --marge: clamp(16px, 4vw, 56px);
  --large: 1440px;
  --rayon: 6px;
  --courbe: cubic-bezier(0.2, 0.7, 0.1, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Fibres du washi : fines, couchees, a peine visibles */
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.02 .2' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .33 0 0 0 0 .27 0 0 0 -8 1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.09'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; background: var(--washi); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fibres), var(--washi);
  color: var(--sumi);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grain fin par-dessus tout, immobile */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); opacity: 0.1;
}
.filtres-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--shu); color: var(--kinari); }

:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 3px; }
.contact :focus-visible, .pied :focus-visible { outline-color: var(--kinari); }

.lien-evitement {
  position: absolute; left: var(--marge); top: -60px; z-index: 100;
  background: var(--sumi); color: var(--washi); padding: 10px 16px; border-radius: 999px; font-weight: 500;
}
.lien-evitement:focus { top: 12px; }

/* Etiquette de section : le petit carre vermillon (le sceau en miniature), puis le nom en capitales */
.etiquette {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nezumi);
  display: inline-flex; align-items: center; gap: 12px;
}
.etiquette::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--shu); transform: rotate(-5deg); flex-shrink: 0; }
.contact .etiquette::before { background: var(--kinari); }

.conteneur { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }

/* En-tete */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.4s var(--courbe), border-color 0.4s var(--courbe);
  border-bottom: 1px solid transparent;
}
.entete.defile {
  background: var(--fibres), rgba(244, 241, 234, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--trait);
}
.entete-ligne { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.marque { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.marque::before {
  content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--shu);
  opacity: 0; transform: scale(0.4) rotate(-5deg); transition: opacity 0.4s, transform 0.5s var(--courbe);
}
/* Le carre n'apparait qu'au defilement, comme si le sceau passait dans l'en-tete */
.entete.defile .marque::before { opacity: 1; transform: rotate(-5deg); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav a { position: relative; color: var(--nezumi); transition: color 0.25s; }
.nav a:hover { color: var(--sumi); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--shu);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--courbe);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Lavis : une seule masse d'encre vermillon, lente (ouverture) */

.halos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.halos-mouvant { position: absolute; inset: -10%; transform: translate3d(var(--hx, 0), var(--hy, 0), 0); transition: transform 1.6s var(--courbe); }
.halo {
  position: absolute; display: block; width: var(--t); aspect-ratio: 1;
  border-radius: 58% 42% 55% 45% / 46% 58% 42% 54%;
  filter: blur(var(--flou, 80px)); opacity: var(--o, 0.2);
  mix-blend-mode: multiply;
  animation: respire var(--d, 30s) ease-in-out infinite alternate;
}
/* La tache est asymetrique : la tourner et l'etirer suffit a la deformer, sans repeindre le flou */
@keyframes respire {
  0% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  50% { transform: translate(var(--dx, -4%), var(--dy, 5%)) rotate(60deg) scale(1.1, 0.92); }
  100% { transform: translate(calc(var(--dx, -4%) * -0.5), calc(var(--dy, 5%) * -0.6)) rotate(120deg) scale(0.95, 1.06); }
}
@media (prefers-reduced-motion: reduce) { .halo { animation: none; } .halos-mouvant { transition: none; } }

/* Ouverture */

.intro { position: relative; isolation: isolate; }
.intro .halo:nth-child(1) { --t: clamp(320px, 52vw, 820px); background: var(--shu); top: -6%; right: -4%; --o: 0.1; }
.intro .halo:nth-child(2) { --t: clamp(140px, 18vw, 280px); background: var(--sumi); bottom: 10%; left: 36%; --o: 0.06; --d: 36s; --dx: 6%; --dy: -4%; --flou: 70px; }

.intro-contenu {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 104px; padding-bottom: clamp(28px, 5vh, 56px);
}
.intro-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(20px, 4vh, 48px); }

.nom {
  font-weight: 500;
  font-size: clamp(56px, min(22vw, 30vh), 330px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.nom > span { display: block; }
.nom .nom-2 { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.035em; padding-left: 0.62em; }

.intro-bas {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  margin-top: clamp(24px, 5vh, 56px); padding-top: 24px; border-top: 1px solid var(--trait-fort);
}
.accroche { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.35; max-width: 42ch; letter-spacing: -0.01em; }
.accroche strong { font-weight: 500; }
.souligne {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M1 7 C 20 2, 35 9, 55 5 S 95 2, 119 6' fill='none' stroke='%23191714' stroke-opacity='.6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 0.32em no-repeat;
  padding-bottom: 0.12em;
}

/* Lien texte, souligne d'un trait de pinceau au survol */
.lien-texte {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; white-space: nowrap; justify-self: start;
  padding-bottom: 6px;
  background: linear-gradient(var(--sumi), var(--sumi)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--courbe), color 0.3s;
}
.lien-texte:hover { background-image: linear-gradient(var(--shu), var(--shu)); background-size: 100% 2px; }
.lien-texte svg { transition: transform 0.35s var(--courbe); }
.lien-texte:hover svg { transform: translateY(3px); }

.bouton-rond {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 24px; border-radius: 999px;
  border: 1px solid var(--trait-fort); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.bouton-rond:hover { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.bouton-rond svg { transition: transform 0.35s var(--courbe); }
.bouton-rond:hover svg { transform: translateY(3px); }

/* Sections */

.section { padding-block: clamp(96px, 13vw, 184px); position: relative; }
.section-tete {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
.titre-section {
  font-weight: 500; font-size: clamp(48px, 7.5vw, 112px); line-height: 0.95; letter-spacing: -0.045em;
  margin-top: 18px; text-wrap: balance;
}
.titre-section em { color: var(--sumi); }
.titre-section sup {
  font-family: var(--sans); font-style: normal; font-size: 0.17em; letter-spacing: 0.04em; font-weight: 500;
  vertical-align: top; position: relative; top: 0.9em; margin-left: 0.5em; color: var(--nezumi);
  font-variant-numeric: tabular-nums;
}

/* Filtres */

.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
  .filtres {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--marge));
    margin-inline: calc(-1 * var(--marge)); padding-inline: var(--marge); scroll-padding-inline: var(--marge);
  }
  .filtres::-webkit-scrollbar { display: none; }
  .filtre { flex-shrink: 0; height: 44px; }
}
.filtre {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--trait-fort);
  font-size: 14px; color: var(--sumi); display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.filtre small { font-size: 12px; color: var(--nezumi); font-variant-numeric: tabular-nums; transition: color 0.25s; }
.filtre:hover { border-color: var(--sumi); }
.filtre[aria-pressed="true"] { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.filtre[aria-pressed="true"] small { color: rgba(244, 241, 234, 0.7); }

/* Grille des travaux : mosaique, le projet phare sur deux colonnes */

.grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4.2vw, 64px) clamp(16px, 2.2vw, 32px);
}
@media (max-width: 1080px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grille { grid-template-columns: 1fr; } }
.carte[hidden] { display: none; }
.grille.mosaique { display: block; position: relative; }
.mosaique .carte { position: absolute; left: 0; top: 0; }

.carte-lien { display: block; width: 100%; text-align: left; }
.carte-cadre {
  display: block; position: relative; aspect-ratio: var(--r, 4 / 3); max-width: 100%; border-radius: var(--rayon); overflow: hidden;
  background: var(--fond, var(--surface));
  box-shadow: 0 18px 40px -26px rgba(60, 40, 20, 0.45);
  box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--fond, #8a6a50) 70%, #191714);
  transition: transform 0.7s var(--courbe), box-shadow 0.7s var(--courbe);
}
.carte.une .carte-cadre { aspect-ratio: var(--r-une, var(--r)); }
.carte.une .carte-cadre img { object-position: var(--pos-une, 50% 50%); }
.carte-cadre::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); opacity: 0.08; mix-blend-mode: overlay;
}
.carte-cadre::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(251, 247, 239, 0.08);
}
.carte-cadre img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 1.2s var(--courbe);
}
.carte-cadre.plein img { object-fit: cover; }
.carte-lien:hover .carte-cadre {
  transform: translateY(-4px);
  box-shadow: 0 32px 56px -30px rgba(120, 50, 20, 0.5);
  box-shadow: 0 32px 56px -30px color-mix(in srgb, var(--fond, #8a6a50) 85%, transparent);
}
.carte-lien:hover .carte-cadre img { transform: scale(1.03); }
.carte-cadre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.carte-cadre video.joue { opacity: 1; }
.badge {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  background: rgba(244, 241, 234, 0.92); color: var(--sumi);
}
.badge svg { color: var(--shu); }
.carte-texte { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.carte-titre, .carte-type { display: block; }
.carte-titre { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.carte.une .carte-titre { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; }
.carte-type { font-size: 14px; color: var(--nezumi); line-height: 1.4; margin-top: 2px; }
.carte-contexte { display: block; margin-top: 2px; }
.carte-outils { font-size: 12px; color: var(--nezumi); white-space: nowrap; flex-shrink: 0; letter-spacing: 0.02em; }

.plus { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 96px); }
.plus[hidden] { display: none; }

/* Curseur des cartes : un petit sceau qui suit la souris */
.curseur {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 6px;
  display: grid; place-items: center; text-align: center;
  border: 2px solid var(--shu); color: var(--shu); background: rgba(244, 241, 234, 0.88);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) rotate(-5deg) scale(var(--cs, 0));
  will-change: transform;
}
@media (hover: none), (pointer: coarse) { .curseur { display: none; } }

/* Profil */

.profil { background: var(--fibres), var(--washi-2); }
.profil .conteneur { position: relative; }
.profil-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
@media (max-width: 900px) { .profil-grille { grid-template-columns: 1fr; } }
.profil-cote { position: relative; }

.declaration {
  font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.8vw, 58px);
  line-height: 1.1; letter-spacing: -0.02em; max-width: 21ch; text-wrap: balance;
}
.declaration em { color: inherit; }
.profil-texte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: clamp(40px, 4.5vw, 64px); }
@media (max-width: 640px) { .profil-texte { grid-template-columns: 1fr; } }
.profil-texte > p { color: var(--nezumi); }
.parcours { margin: 0; display: grid; gap: 22px; }
.parcours dt { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nezumi); margin-bottom: 6px; }
.parcours dd { margin: 0; line-height: 1.45; }
.parcours dd + dd { margin-top: 6px; }

.expertises { list-style: none; margin: clamp(72px, 9vw, 128px) 0 0; padding: 0; border-top: 1px solid var(--trait-fort); counter-reset: exp; }
.expertise {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px;
  padding-block: clamp(26px, 3.2vw, 40px); border-bottom: 1px solid var(--trait-fort); align-items: baseline;
  counter-increment: exp;
}
.expertise::before {
  content: counter(exp, decimal-leading-zero); font-size: 14px; color: var(--nezumi); font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.expertise h3 { font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.1; transition: transform 0.6s var(--courbe); }
.expertise:hover h3 { transform: translateX(10px); }
.expertise:hover::before { color: var(--shu); }
.expertise p { color: var(--nezumi); }
.expertise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.expertise li { font-size: 13px; padding: 4px 11px; border: 1px solid var(--trait-fort); border-radius: 999px; white-space: nowrap; }
@media (max-width: 900px) {
  .expertise { grid-template-columns: 48px minmax(0, 1fr); row-gap: 12px; }
  .expertise p, .expertise ul { grid-column: 2; }
}

/* Contact : le bloc vermillon, comme le sceau au bas d'un rouleau */

.contact {
  background: var(--fibres), var(--shu-fond); color: var(--kinari); overflow: hidden; isolation: isolate;
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  margin-top: -1px;
}
.contact .conteneur { position: relative; z-index: 1; }
.contact .etiquette { color: var(--kinari); }
.contact-titre {
  font-weight: 500; font-size: clamp(56px, 10.5vw, 176px); line-height: 0.92; letter-spacing: -0.05em;
  margin-top: 24px; max-width: 11ch;
}
.contact-grille {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 88px); align-items: end;
}
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; } }
.contact-grille > p { color: var(--kinari); max-width: 42ch; }
.coordonnees { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.contact-mail {
  font-size: clamp(26px, 4.2vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--courbe); overflow-wrap: anywhere;
}
.contact-mail:hover { background-size: 100% 2px; }
.coordonnees-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.contact-tel { font-size: clamp(19px, 1.8vw, 24px); color: var(--kinari); }
.copier {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(251, 247, 239, 0.55); font-size: 14px;
  transition: background-color 0.25s, color 0.25s;
}
.copier:hover { background: var(--kinari); color: var(--shu-fond); }

.pied { background: var(--fibres), var(--shu-fond); color: var(--kinari); padding-block: 28px; font-size: 14px; position: relative; }
.pied::before { content: ""; position: absolute; top: 0; left: var(--marge); right: var(--marge); height: 1px; background: rgba(251, 247, 239, 0.25); }
.pied-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.pied a, .pied button { color: inherit; }
.pied a:hover, .pied button:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied-liens { display: flex; gap: 24px; }

/* Apparition au defilement */

.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--courbe), transform 1s var(--courbe); }
.js .apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .apparait { opacity: 1; transform: none; transition: none; } }

/* Le geste d'ouverture : le nom se depose comme de l'encre, puis le sceau tombe */
.js .nom > span { opacity: 0; filter: blur(16px); transform: translateY(0.08em); animation: encre 1.5s var(--courbe) forwards; }
.js .nom .nom-2 { animation-delay: 0.18s; }
@keyframes encre { 60% { filter: blur(1px); } to { opacity: 1; filter: blur(0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .nom > span { animation: none; opacity: 1; filter: none; transform: none; } }

/* Le sceau */
.hanko {
  display: inline-grid; place-items: center; vertical-align: top;
  font-family: var(--jp); font-style: normal; font-weight: 600; letter-spacing: 0;
  font-size: max(0.12em, 15px); width: 2.5em; height: 2.5em; margin: 0.55em 0 0 0.7em;
  color: var(--shu); border: 0.1em solid currentColor; border-radius: 0.28em;
  background: rgba(201, 56, 31, 0.05);
  transform: rotate(-5deg); filter: url(#encre); opacity: 0.94;
}
.hanko span { writing-mode: vertical-rl; line-height: 1; font-size: 1em; letter-spacing: 0.04em; -webkit-text-stroke: 0.045em currentColor; }
/* Un tampon se presse, il ne rebondit pas */
.js .intro .hanko { opacity: 0; transform: scale(1.22) rotate(-9deg); animation: tampon 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) 1.25s forwards; }
@keyframes tampon { 70% { opacity: 0.94; transform: scale(0.97) rotate(-5deg); } to { opacity: 0.94; transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .js .intro .hanko { animation: none; opacity: 0.94; transform: rotate(-5deg); } }
.pied-signature { display: inline-flex; align-items: center; gap: 12px; }
.hanko-pied { font-size: 16px; width: 2.6em; height: 2.6em; margin: 0; color: var(--kinari); }

/* Visionneuse */

.visionneuse {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--fibres), var(--washi-2); color: var(--sumi);
}
.visionneuse::backdrop { background: rgba(25, 23, 20, 0.3); }
.visionneuse[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fondu 0.35s var(--courbe); }
@keyframes fondu { from { opacity: 0; } }
.vis-haut, .vis-bas { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--marge); }
.vis-compteur { font-size: 14px; color: var(--nezumi); font-variant-numeric: tabular-nums; }
.vis-scene { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(16px, 7vw, 112px); min-height: 0; }
.vis-scene img, .vis-scene video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px;
  box-shadow: 0 40px 80px -34px rgba(60, 40, 20, 0.45);
}
.vis-scene video { width: min(100%, 1280px); background: #000; }
.vis-scene img { transition: opacity 0.4s; }
.vis-scene .chargement { opacity: 0; }
.vis-titre { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.01em; min-width: 0; }
.vis-titre span { display: block; font-size: 14px; color: var(--nezumi); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.vis-bouton {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--trait-fort);
  display: inline-grid; place-items: center; flex-shrink: 0; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.vis-bouton:hover { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.vis-nav { display: flex; gap: 8px; }

.mentions {
  max-width: 640px; width: calc(100% - 32px); border: 1px solid var(--trait); border-radius: 12px;
  background: var(--washi); color: var(--sumi); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -34px rgba(60, 40, 20, 0.45);
}
.mentions::backdrop { background: rgba(25, 23, 20, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mentions h2 { font-weight: 500; font-size: 28px; letter-spacing: -0.03em; margin-bottom: 20px; }
.mentions h3 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nezumi); font-weight: 400; margin: 20px 0 6px; }
.mentions p { color: var(--nezumi); font-size: 15px; }
.mentions a { color: var(--sumi); text-decoration: underline; text-decoration-color: var(--shu); text-underline-offset: 3px; }
.mentions .vis-bouton { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .intro-contenu { min-height: 86svh; padding-top: 128px; }
  .intro-bas { grid-template-columns: 1fr; gap: 24px; }
  .nom .nom-2 { padding-left: 0.4em; }
  .intro-haut .etiquette { font-size: 11px; letter-spacing: 0.1em; }
  .intro .hanko { font-size: 17px; }
  .carte-outils { display: none; }
  .vis-scene { padding: 0 8px; }
}
