/* Studio — la chambre noire. Lumière inactinique rouge, tirages qui sèchent, images qui se révèlent. */

body { --teinte: #150b09; background: #150b09; color: var(--papier); }
.titre { color: var(--papier-clair); }
.inactinique { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60vmax 50vmax at var(--lx, 50%) var(--ly, 0%), rgba(232,38,45,.28), rgba(139,42,26,.1) 40%, transparent 70%); mix-blend-mode: screen; }
.inactinique::after { content: ""; position: absolute; inset: 0; background: radial-gradient(28vmax 28vmax at var(--mx, 50%) var(--my, 50%), rgba(255,90,70,.16), transparent 70%); }
.scene { z-index: 2; }

/* 01 · le logo, comme un tirage qui apparaît dans le bain */
#seuil { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--g); }
.bain { position: relative; justify-self: center; width: min(34vw, 460px); aspect-ratio: 1; display: grid; place-items: center; }
.bain::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(232,38,45,.35), transparent 70%); filter: blur(10px); animation: respire 5s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.08); opacity: .7; } }
.bain img { position: relative; width: 78%; filter: drop-shadow(0 0 18px rgba(232,38,45,.5)); opacity: 0; animation: revele 3.2s var(--doux) .4s forwards; }
@keyframes revele { from { opacity: 0; filter: blur(14px) drop-shadow(0 0 0 rgba(232,38,45,0)); transform: scale(.96); } to { opacity: .95; } }
.seuil__titre { font-size: clamp(70px, 10vw, 170px); }
.seuil__texte { max-width: 32ch; font-size: clamp(20px, 1.6vw, 25px); margin: 22px 0 26px; color: color-mix(in srgb, var(--papier) 85%, transparent); }

/* 02 · le fil : les tirages sèchent, ils se révèlent quand on les regarde */
#fil { width: 210vw; }
.fil__corde { position: absolute; left: 0; right: 0; top: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,236,227,.45) 4%, rgba(243,236,227,.45) 96%, transparent); }
.fil__legende { position: absolute; left: var(--g); bottom: 90px; z-index: 3; }
.fil__legende h2 { font-size: clamp(46px, 5.6vw, 96px); }
.seche { position: absolute; top: 30%; width: var(--w); transform-origin: 50% -14px; animation: balance var(--d, 6s) ease-in-out infinite alternate; }
@keyframes balance { from { transform: rotate(calc(var(--r) - 1.6deg)); } to { transform: rotate(calc(var(--r) + 1.6deg)); } }
.pince { position: absolute; z-index: 3; top: -20px; left: 50%; width: 12px; height: 34px; margin-left: -6px; border-radius: 2px; background: linear-gradient(90deg, #c7b49c, #e6d5bd 50%, #b59f85); box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.seche .tirage { padding: 8px 8px 26px; cursor: zoom-in; }
.seche .tirage img { aspect-ratio: var(--ar); filter: sepia(1) saturate(.3) brightness(1.75) contrast(.45) blur(1.5px); transition: filter 3.2s var(--doux); }
.seche.revele-photo .tirage img, .seche:hover .tirage img { filter: none; }
.seche .tirage::after { opacity: .3; }
.seche figcaption { position: absolute; left: 10px; bottom: 7px; color: var(--sepia); font: 400 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }

/* 03-05 · les métiers */
.metier { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); align-items: center; }
.metier__texte { grid-column: span 5; position: relative; z-index: 3; }
.metier__numero { font: 400 13px var(--f-mono); color: #ff8a6e; letter-spacing: .2em; }
.metier h2 { font-size: clamp(56px, 7vw, 124px); margin: 12px 0 18px; }
.metier p { max-width: 32ch; font-size: clamp(19px, 1.5vw, 24px); color: color-mix(in srgb, var(--papier) 85%, transparent); }
.metier .bouton { margin-top: 26px; }
.metier__images { grid-column: span 7; position: relative; height: min(70svh, 680px); }
.metier__images > * { position: absolute; }
.planche-contact { background: #0d0706; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.planche-contact img { aspect-ratio: 3/2; object-fit: cover; width: 100%; filter: saturate(.9); transition: transform .5s var(--doux), filter .5s; }
.planche-contact img:hover { transform: scale(1.08); filter: saturate(1.1); position: relative; z-index: 2; }
.planche-contact .bord { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 400 9.5px var(--f-mono); letter-spacing: .3em; color: #f29a5d; }
.loupe { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 6px solid #2a1712; box-shadow: 0 20px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.2); pointer-events: none; background-repeat: no-repeat; opacity: 0; transition: opacity .3s; z-index: 5; }
.porte-mariage { -webkit-mask: url("../assets/arche-masque.svg") center / 100% 100% no-repeat; mask: url("../assets/arche-masque.svg") center / 100% 100% no-repeat; overflow: hidden; }
.porte-mariage img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--doux); }
a:hover .porte-mariage img { transform: scale(1.06); }

/* 06 · écrire */
#ecrire { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--g) * 2); align-items: center; }
.sujets { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.sujet { height: 44px; padding: 0 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(243,236,227,.35); font: 400 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; transition: .3s; }
.sujet:hover { box-shadow: inset 0 0 0 1px var(--papier); }
.sujet[aria-pressed="true"] { background: var(--flash); box-shadow: none; }
#ecrire .champ { color: var(--papier); }
#ecrire .champ textarea { height: 90px; padding-top: 14px; resize: none; font: 400 20px var(--f-texte); }

@media (max-width: 900px) {
  #seuil, #ecrire { grid-template-columns: 1fr; align-content: center; }
  .bain { width: 56vw; order: -1; }
  #fil { width: 380vw; }
  .metier { grid-template-columns: 1fr; align-content: center; }
  .metier__texte, .metier__images { grid-column: auto; }
  .metier__images { height: 40svh; }
  .metier h2 { font-size: 44px; }
}
