/* Bureau : page d'accueil en forme de bureau d'ordinateur. Fond = montage de photos (une variante par dossier). */
:root {
  --night: #0c0b0a; --paper: #ebe8e1; --dust: #8d887f; --rule: rgba(235, 232, 225, .16); --sodium: #ff5b14; --ok: #3dff74;
  --win: rgba(14, 13, 12, .86); --win-solid: #121110;
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --bar: 34px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 13px/1.5 var(--font-mono); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
::selection { background: var(--sodium); color: var(--night); }
.lbl { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.dim { color: var(--dust); }
[hidden] { display: none !important; }

/* ---------- fond ---------- */
.fond { position: fixed; inset: 0; background: #000 var(--fond-d) center / cover no-repeat; transform: scale(1.04); transition: transform 2.4s var(--ease), filter 2.4s var(--ease); filter: brightness(.55); }
.is-pret .fond { transform: scale(1); filter: brightness(1); }
@media (max-width: 760px) { .fond { background-image: var(--fond-m); } }
.fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 70%, rgba(0,0,0,.6)); }

/* ---------- intro : le nom ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--night); transition: opacity .9s var(--ease), visibility .9s; cursor: pointer; }
.is-pret .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__ligne { display: grid; justify-items: center; gap: 14px; padding-inline: 16px; text-align: center; }
.intro__nom { font: 400 clamp(50px, 10vw, 170px)/.86 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; margin: 0; display: flex; overflow: hidden; padding-block: .04em; }
.intro__nom span, .intro__role span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.intro__nom span.is-up, .intro__role span.is-up { transform: none; }
.intro__role { margin: 0; overflow: hidden; padding-block: .2em; font: 500 clamp(11px, 1.1vw, 14px)/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dust); }
.intro__aide { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; opacity: 0; transition: opacity .6s; }
.intro.is-fin .intro__aide { opacity: 1; }

/* ---------- barres ---------- */
.barre { position: fixed; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar); padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); background: rgba(8, 8, 7, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.barre--haut { top: 0; padding-top: env(safe-area-inset-top); height: calc(var(--bar) + env(safe-area-inset-top)); border-bottom: 1px solid var(--rule); }
.barre--bas { bottom: 0; padding-bottom: env(safe-area-inset-bottom); height: calc(var(--bar) + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.barre__nom { display: flex; align-items: center; gap: 10px; }
.point { width: 9px; height: 9px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 12px var(--sodium); }
.barre__d { display: flex; gap: 18px; }
.barre button { background: none; border: 0; padding: 6px 0; cursor: pointer; }
.barre button:hover { color: var(--sodium); }
.ruban { position: fixed; top: calc(var(--bar) + env(safe-area-inset-top)); left: 0; right: 0; z-index: 4; overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--rule); background: rgba(8, 8, 7, .4); padding-block: 7px; pointer-events: none; }
.ruban__piste { display: inline-flex; animation: ruban 40s linear infinite; }
.ruban__piste span { padding-right: 2.4em; }
.ruban__piste span::before { content: "‹"; margin-right: 2.4em; color: var(--sodium); }
@keyframes ruban { to { transform: translateX(-50%); } }

/* ---------- nom en fond d'écran ---------- */
.papier { position: fixed; left: max(16px, 2vw); right: max(16px, 2vw); bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 14px); z-index: 1; pointer-events: none; }
.papier__nom { margin: 0; font: 400 clamp(46px, 9vw, 170px)/.82 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; color: rgba(235, 232, 225, .9); mix-blend-mode: overlay; display: flex; justify-content: space-between; }
.papier__role { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 10px; }
.papier__role b { font-weight: 500; color: var(--dust); margin-right: .4em; }

/* ---------- icônes ---------- */
.bureau { position: fixed; inset: 0; z-index: 5; }
.icone { position: absolute; width: 90px; display: grid; justify-items: center; gap: 6px; padding: 8px 4px 6px; background: none; border: 1px solid transparent; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease), background .2s, border-color .2s; }
.is-pret .icone { opacity: 1; transform: none; }
.icone:hover, .icone.is-sel { background: rgba(235, 232, 225, .1); border-color: rgba(235, 232, 225, .4); }
.icone.is-drag { cursor: grabbing; transition: none; z-index: 3; }
.icone__img { width: 46px; height: 38px; position: relative; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
.icone__nom { font: 500 11px/1.3 var(--font-mono); text-align: center; text-shadow: 0 1px 6px #000; padding: 1px 6px; }
.icone.is-sel .icone__nom { background: var(--paper); color: var(--night); text-shadow: none; }
.icone__info { font-size: 10px; color: var(--dust); text-shadow: 0 1px 6px #000; }
/* dossier dessiné en CSS */
.dossier::before { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 22%; background: var(--c, #0d0d0c); border: 1px solid rgba(235,232,225,.28); border-bottom: 0; border-radius: 3px 3px 0 0; }
.dossier::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 14%; background: var(--c, #0d0d0c); border: 1px solid rgba(235,232,225,.28); border-radius: 0 3px 3px 3px; box-shadow: inset 0 7px 0 rgba(255,255,255,.07); }
.dossier--rouge { --c: #b3221a; }
.dossier--rouge::before, .dossier--rouge::after { border-color: rgba(255,120,100,.35); }
/* fichier texte */
.fichier { width: 34px !important; height: 43px !important; background: #0d0d0c; box-shadow: inset 0 0 0 1px rgba(235,232,225,.28); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.fichier::after { content: ""; position: absolute; left: 7px; right: 7px; top: 16px; height: 18px; background: repeating-linear-gradient(rgba(235,232,225,.45) 0 1px, transparent 1px 5px); }
.fichier::before { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 22%; background: rgba(235,232,225,.35); }

/* ---------- fenêtres ---------- */
.fen { position: fixed; z-index: 10; display: flex; flex-direction: column; min-width: 300px; background: var(--win); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); border: 1px solid rgba(235,232,225,.22); box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: calc(100dvh - var(--bar) * 2 - 40px); opacity: 0; transform: scale(.96) translateY(10px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
.fen.is-ouverte { opacity: 1; transform: none; }
.fen__barre { display: flex; align-items: center; gap: 12px; height: 38px; padding-inline: 12px; border-bottom: 1px solid var(--rule); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; }
.fen__barre:active { cursor: grabbing; }
.fen__titre { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fen__x { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 1px solid var(--rule); cursor: pointer; font-size: 15px; line-height: 1; }
.fen__x:hover { background: var(--sodium); color: var(--night); border-color: var(--sodium); }
.fen__corps { overflow: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.fen.is-devant { border-color: rgba(235,232,225,.4); }

/* portfolio : liste à gauche, aperçu à droite */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100%; }
.pf__liste { border-right: 1px solid var(--rule); }
.pf__tete, .pf__ligne { display: grid; grid-template-columns: 34px minmax(0, 1fr) 128px; gap: 10px; align-items: baseline; padding: 9px 14px; }
.pf__tete { position: sticky; top: 0; background: var(--win-solid); border-bottom: 1px solid var(--rule); z-index: 1; }
.pf__groupe { padding: 14px 14px 6px; color: var(--sodium); }
.pf__ligne { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid rgba(235,232,225,.06); cursor: pointer; }
.pf__ligne:hover { background: rgba(235,232,225,.05); }
.pf__ligne.is-sel { background: var(--sodium); color: var(--night); }
.pf__ligne.is-sel .dim { color: rgba(12,11,10,.65); }
.pf__titre { font: 400 22px/1 var(--font-display); text-transform: uppercase; }
.pf__vue { position: sticky; top: 0; padding: 14px; display: grid; gap: 12px; align-content: start; }
.pf__img { background: #000; height: min(62vh, 470px); overflow: hidden; display: grid; place-items: center; }
.pf__img img { width: 100%; height: 100%; object-fit: contain; animation: apparait .5s var(--ease); }
@keyframes apparait { from { opacity: 0; transform: scale(1.03); } }
.pf__meta { display: grid; gap: 2px; }
.pf__meta p { margin: 0; }
.lbl b { font-weight: 500; color: var(--dust); margin-right: .4em; }

/* contact */
.ct { padding: 22px; display: grid; gap: 18px; }
.ct__mail { font: 400 clamp(26px, 3.4vw, 44px)/1 var(--font-display); text-transform: uppercase; word-break: break-all; user-select: all; margin: 0; }
.ct__ligne { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.btn { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--night); background: var(--paper); border: 0; padding: 13px 16px; cursor: pointer; text-decoration: none; display: inline-block; transition: background .2s, transform .1s; }
.btn:hover { background: var(--sodium); }
.btn:active { transform: translateY(1px); }
.btn--ligne { background: none; color: var(--paper); border: 1px solid var(--rule); }
.btn--ligne:hover { background: var(--paper); color: var(--night); }
.ln { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .2s; }
.ln:hover { background-size: 100% 1px; color: var(--sodium); }
.faits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.faits dt { color: var(--dust); }
.faits dd { margin: 0; }

/* formulaires (acompte, message) */
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.frm .large { grid-column: 1 / -1; }
.chp { display: grid; gap: 6px; min-width: 0; }
.chp input, .chp textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: rgba(0,0,0,.35); border: 1px solid var(--rule); border-radius: 0; font-size: 16px; }
.chp textarea { min-height: 90px; resize: vertical; }
.chp input:focus, .chp textarea:focus { outline: none; border-color: var(--sodium); }
.chp input[readonly] { font: 400 26px/1 var(--font-display); background: transparent; }
.chp input[readonly]:placeholder-shown { font: 400 13px/1.4 var(--font-mono); }
.coche { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; cursor: pointer; }
.coche input { margin-top: 3px; accent-color: var(--sodium); }
.msg { margin: 0; min-height: 1.4em; }
.msg.is-err { color: var(--sodium); }
.msg.is-ok { color: var(--paper); }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; }
.etapes li { background: var(--win-solid); padding: 12px; display: grid; gap: 4px; }
.etapes b { font: 400 20px/1 var(--font-display); text-transform: uppercase; }
.hp { position: absolute; left: -9999px; }

/* ---------- téléphone ---------- */
@media (max-width: 760px), (hover: none) and (max-width: 1024px) {
  .icone { width: 80px; }
  .fen { left: 0 !important; right: 0; top: calc(var(--bar) + env(safe-area-inset-top)) !important; bottom: calc(var(--bar) + env(safe-area-inset-bottom)); width: auto !important; height: auto !important; max-height: none; min-width: 0; border-left: 0; border-right: 0; }
  .fen__barre { cursor: default; }
  .pf { grid-template-columns: 1fr; }
  .pf__vue { position: relative; order: -1; border-bottom: 1px solid var(--rule); }
  .pf__img { height: auto; max-height: 52vh; }
  .pf__img img { height: auto; max-height: 52vh; }
  .barre--bas > span { display: none; }
  .barre--bas { justify-content: center; }
  .frm { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .barre__heure { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
}

.icone:focus-visible { outline: 1px solid var(--paper); outline-offset: 0; }
