/* Mise en page : feuille blanche, dessins éparpillés posés sur un nom géant, typo mi-imprimée mi-manuscrite. */

/* Polices hébergées sur le site (licence SIL OFL, voir fonts/) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("/fonts/kalam-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Kalam";
  src: url("/fonts/kalam-400-latin.woff2") format("woff2");
  font-weight: 400;
  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;
}

:root {
  color-scheme: light;
  --paper: #ffffff;      /* blanc pur : les dessins ont un fond blanc et s'y fondent */
  --ink: #111010;
  --muted: #6f6a6c;
  --line: #d9d5d6;
  --heart: #e4472e;      /* le rouge du favicon et des nez de Kat & Archi */
  --vintage: #c4622d;    /* orange vintage du menu et de l'étiquette du vinyle */
  --print: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --u: min(1vw, 18px);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--print); font-size: 1.125rem; line-height: 1.45; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p, figure { margin: 0; }
em { font-family: var(--hand); font-style: normal; letter-spacing: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px dashed var(--heart); outline-offset: 4px; }
html.has-dot, html.has-dot a, html.has-dot button { cursor: none; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 40; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* En-tête */
.top { position: relative; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo side" "nav nav"; align-items: center; gap: 0 16px; padding: 10px var(--gutter-r) 8px var(--gutter-l); background: var(--paper); font-size: clamp(2.6rem, 5.9vw, 5.7rem); line-height: 1.05; letter-spacing: -.035em; }
.logo { grid-area: logo; justify-self: start; }
.top nav { grid-area: nav; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(2px, calc((100vw - 780px) * .025), 16px); color: var(--vintage); }
.menu a { display: block; padding: 4px; text-decoration-thickness: 5px; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration-line: line-through; }
.socials { grid-area: side; justify-self: end; display: flex; align-items: center; }
.socials svg { width: 38px; height: 38px; display: block; }
.burger { display: none; grid-area: side; justify-self: end; color: var(--vintage); }

/* Nom géant */
.wordmark { display: block; font-weight: 500; font-size: 17vw; line-height: .78; letter-spacing: -.045em; white-space: nowrap; text-align: left; }
.wordmark > span { display: inline-block; }
.wm-i { position: relative; display: inline-block; }
.wm-i svg { position: absolute; left: 50%; top: -.02em; width: .215em; height: auto; transform: translateX(-50%); }

/* Accueil : composition éparpillée */
.stage { display: flex; flex-direction: column; }
.canvas { position: relative; order: 0; width: 100%; max-width: 1800px; height: calc(var(--u) * 118); margin-inline: auto; }
.art { display: block; position: absolute; mix-blend-mode: multiply; }
.art-k { left: calc(var(--u) * 28); top: calc(var(--u) * 1); width: calc(var(--u) * 46); }
.art-b { left: calc(var(--u) * 4); top: calc(var(--u) * 46); width: calc(var(--u) * 40); }
.art-v { right: calc(var(--u) * 4); top: calc(var(--u) * 74); width: calc(var(--u) * 42); }
.frame { position: relative; isolation: isolate; display: block; }
.frame img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
.frame::after { content: ""; position: absolute; inset: 0; z-index: 1; -webkit-touch-callout: none; }
.stage-cta { position: absolute; left: var(--gutter-l); top: calc(var(--u) * 2.5); width: calc(var(--u) * 23); font-size: clamp(1.15rem, 2vw, 1.8rem); letter-spacing: -.02em; line-height: 1.1; }
.stage-cta a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.stage-cta a:hover { text-decoration-line: line-through; }
.scribble { position: absolute; left: calc(var(--u) * 75); top: calc(var(--u) * 20); width: calc(var(--u) * 20); font-family: var(--hand); font-size: clamp(1.05rem, 1.8vw, 1.6rem); line-height: 1.15; text-align: left; rotate: -3deg; }
.scribble svg { display: block; width: 2.4em; height: auto; margin-bottom: .1em; color: var(--heart); }
/* Le nom reste collé en bas de l'écran, les dessins défilent derrière, puis il se pose avant le texte */
.stage .wordmark { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; order: 1; pointer-events: none; }
.wordmark .wm-i svg { animation: coeur-tourne 3s linear infinite; }
@keyframes coeur-tourne { from { transform: translateX(-50%) rotateY(0deg); } to { transform: translateX(-50%) rotateY(360deg); } }

/* Accueil : info */
.info { display: grid; grid-template-columns: minmax(70px, 9vw) minmax(0, 46rem); gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 32px); padding: clamp(64px, 11vw, 150px) var(--gutter-r) clamp(64px, 9vw, 120px) var(--gutter-l); justify-content: center; }
.info-art { grid-column: 1 / -1; justify-self: center; width: min(100%, 34rem); height: auto; }
@media (min-width: 1000px) {
  .info { grid-template-columns: minmax(34vw, 1fr) minmax(70px, 9vw) minmax(0, 46rem); }
  .info-art { grid-column: 1; grid-row: 1 / span 2; width: 100%; max-width: 860px; }
}
.label { font-family: var(--hand); font-size: clamp(1.1rem, 1.6vw, 1.5rem); padding-top: .55em; }
.lead { display: grid; gap: .7em; font-size: clamp(1.5rem, 3.1vw, 2.75rem); line-height: 1.13; letter-spacing: -.03em; text-wrap: pretty; }
.lead.small { font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.22; letter-spacing: -.02em; }

/* Galerie */
.view-pad { padding: clamp(16px, 3vw, 40px) var(--gutter-r) clamp(64px, 9vw, 120px) var(--gutter-l); }
.big-list { display: grid; justify-items: center; text-align: center; }
.big-list button { display: block; font-size: clamp(2.5rem, 7.4vw, 7rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 400; text-wrap: balance; }
.big-list button:hover { text-decoration: line-through; text-decoration-thickness: .05em; }
.gallery-intro { max-width: 34rem; margin: clamp(24px, 3vw, 40px) auto clamp(48px, 7vw, 96px); text-align: center; font-family: var(--hand); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.25; }
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 6vw, 88px) clamp(16px, 2vw, 32px); max-width: 1500px; margin-inline: auto; }
.plate { display: grid; gap: 12px; align-content: start; text-align: left; }
.plate .frame { mix-blend-mode: multiply; }
.plate:nth-child(1) { grid-column: 1 / span 5; }
.plate:nth-child(2) { grid-column: 8 / span 4; margin-top: clamp(40px, 10vw, 150px); }
.plate:nth-child(3) { grid-column: 3 / span 5; }
.plate-cap { font-family: var(--hand); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.2; }
.drawn-note { margin: clamp(32px, 5vw, 64px) auto 0; max-width: 34rem; text-align: center; color: var(--muted); font-size: 1rem; }
.drawn-note:empty { display: none; }
.peek { position: fixed; left: 0; top: 0; z-index: 15; width: min(26vw, 380px); pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: opacity .12s linear; }
.peek.on { opacity: 1; }
.peek img { display: block; width: 100%; height: auto; }

/* Boutique, blog, book */
.soon { display: grid; gap: clamp(20px, 3vw, 36px); justify-items: center; text-align: center; padding: clamp(40px, 8vw, 110px) var(--gutter-r) clamp(70px, 11vw, 150px) var(--gutter-l); }
.soon h1 { font-size: clamp(3rem, 11vw, 11rem); font-weight: 400; line-height: .96; letter-spacing: -.05em; text-wrap: balance; }
.soon p { max-width: 36rem; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.22; letter-spacing: -.015em; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 34px; background: var(--ink); color: var(--paper); font-size: 1.1rem; font-weight: 500; transition: background-color .15s linear; }
.btn:hover { background: var(--heart); }
.btn:disabled { opacity: .55; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); max-width: 1500px; margin-inline: auto; }
.contact h1 { font-size: clamp(3.4rem, 10vw, 10rem); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.contact-intro { margin-top: clamp(16px, 2.4vw, 32px); max-width: 26rem; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; }
.contact-direct { margin-top: 24px; font-family: var(--hand); font-size: 1.2rem; user-select: all; }
form { display: grid; gap: 26px; align-content: start; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label { display: block; font-family: var(--hand); font-size: 1.15rem; }
input, textarea { display: block; width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.25rem; }
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus { outline: 3px dashed var(--heart); outline-offset: 3px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { min-height: 1.45em; }
.legal-note { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.contact-direct a:hover { text-decoration: underline; }
.legal-note a, .legal-view a { text-decoration: underline; text-underline-offset: 3px; }

/* Pages légales */
.legal-view { max-width: 44rem; margin-inline: auto; display: grid; gap: 20px; padding: clamp(32px, 6vw, 80px) var(--gutter-r) clamp(70px, 9vw, 120px) var(--gutter-l); }
.legal-view { font-size: 1.1rem; line-height: 1.55; }
.legal-view h2 { margin-top: 20px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.legal-view ul { display: grid; gap: 8px; padding-left: 1.25rem; list-style: disc; }
.legal-date { color: var(--muted); font-family: var(--hand); }
.legal-foi { color: var(--muted); }
.legal-view h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }

/* Pied de page */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 28px var(--gutter-r) 76px var(--gutter-l); border-top: 1px solid var(--line); font-size: 1.05rem; }
.foot-links { display: grid; gap: 2px; justify-items: start; font-size: clamp(1.45rem, 2.9vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.foot-insta { display: inline-flex !important; align-items: center; gap: .35em; }
.foot-insta svg { width: 1em; height: 1em; flex: none; }
.foot-links a, .foot-legal a { display: inline-block; padding-block: 6px; }
.foot-links a:hover, .foot-legal a:hover { text-decoration: line-through; text-decoration-thickness: 2px; }
.foot-center { display: grid; justify-items: center; gap: 4px; text-align: center; }
.foot-up svg { display: block; width: 44px; height: auto; transition: translate .2s ease; }
.foot-up:hover svg { translate: 0 -6px; }
.foot-right { display: grid; gap: 2px; justify-items: end; text-align: right; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.foot small { color: var(--muted); font-size: .9rem; }

/* Sélecteur de langue */
.lang { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30; font-size: 1rem; }
.lang-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.lang-btn:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.flag { width: 26px; height: 18px; display: block; flex: none; box-shadow: 0 0 0 1px var(--line); }
.chev { width: 12px; height: 8px; transition: rotate .15s linear; }
.lang-btn[aria-expanded="true"] .chev { rotate: 180deg; }
.lang-list { position: absolute; right: 0; bottom: calc(100% + 6px); min-width: 100%; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.lang-list a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 14px; white-space: nowrap; text-align: left; }
.lang-list a:hover { background: var(--ink); color: var(--paper); }
.lang-list a[aria-current="true"] { text-decoration: line-through; text-decoration-thickness: 2px; }

/* Visionneuse */
dialog.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
dialog.lb::backdrop { background: #000; }
.lb-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; gap: 8px; padding: 12px var(--gutter-r) 16px var(--gutter-l); }
.lb-close { justify-self: end; min-height: 44px; font-size: 1.15rem; }
.lb-mid { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; min-height: 0; height: 100%; }
.lb-mid .frame { justify-self: center; height: 100%; display: flex; align-items: center; min-height: 0; }
.lb-mid img { width: auto; height: auto; max-width: 100%; max-height: 100%; background: #fff; }
.lb-nav { font-size: 2rem; min-height: 56px; }
.lb-cap { text-align: center; font-family: var(--hand); font-size: 1.25rem; }

/* Point de curseur */
/* Curseur vinyle de 36 px : le trou central est réel, il montre l'endroit exact visé et s'ouvre sur ce qui est cliquable */
.dot { position: fixed; left: 0; top: 0; z-index: 50; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; opacity: 0; will-change: transform; }
html.has-dot .dot { opacity: 1; }
.dot.off { opacity: 0 !important; }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--vintage) 0 8.5px, transparent 9px),
    conic-gradient(from 25deg, rgb(255 255 255 / 0) 0 6%, rgb(255 255 255 / .38) 11%, rgb(255 255 255 / 0) 16% 50%, rgb(255 255 255 / 0) 56%, rgb(255 255 255 / .38) 61%, rgb(255 255 255 / 0) 66%),
    repeating-radial-gradient(circle, #111010 0 1px, #2c2a2a 1px 2px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .75);
  -webkit-mask: radial-gradient(circle, transparent 0 2.5px, #000 3px);
  mask: radial-gradient(circle, transparent 0 2.5px, #000 3px);
  animation: vinyl-spin 1.8s linear infinite;  /* 33 tours/minute */
}
.dot.big .vinyl {
  -webkit-mask: radial-gradient(circle, transparent 0 6.5px, #000 7px);
  mask: radial-gradient(circle, transparent 0 6.5px, #000 7px);
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

/* Téléphones et petites tablettes */
@media (max-width: 760px) {
  .top { position: sticky; top: env(safe-area-inset-top, 0px); font-size: 1.35rem; }
  .logo { font-size: min(4.05rem, 13vw); }
  .burger { display: block; min-height: 44px; min-width: 44px; text-align: right; }
  .socials { display: none; }
  .menu { display: none; grid-column: 1 / -1; flex-direction: column; align-items: center; gap: 2px; padding-block: 10px 18px; font-size: clamp(2.4rem, 13vw, 3.4rem); line-height: 1.08; letter-spacing: -.04em; }
  .menu.open { display: flex; }
  .canvas { height: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 0; padding-inline: var(--gutter-l) var(--gutter-r); padding-bottom: 24px; }
  .stage .wordmark { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .art, .scribble, .stage-cta { position: static; width: auto; }
  .stage-cta { order: -1; grid-column: 1 / -1; }
  .art-k { grid-column: 1 / -1; }
  .scribble { order: 1; grid-column: 3 / -1; margin-top: -8px; }
  .art-b { order: 2; grid-column: 1 / -1; margin-top: 24px; }
  .art-v { order: 3; grid-column: 1 / -1; margin-top: 24px; }
  .info { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lead + .label { margin-top: 36px; }
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate:nth-child(n) { grid-column: auto; margin-top: 0; }
  .plate:nth-child(2) { margin-left: 18%; }
  .plate:nth-child(1) { margin-right: 10%; }
  .contact, .two { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .foot-center { justify-items: start; text-align: left; }
  .foot-right { justify-items: start; text-align: left; }
  .foot-legal { justify-content: flex-start; }
  .lang-name-long { display: none; }
  .lb-mid { grid-template-columns: 36px minmax(0, 1fr) 36px; }
}
@media (min-width: 761px) { .lang-name-short { display: none; } }
@media (hover: none) { .peek, .dot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
