/* ============================================================
   Illustrated home page ("L'Arrangeur"): /, /en/, /it/
   Visual reference: docs/maquettes/Portfolio-Julien-GTA.html.
   One dark look on purpose (no light theme), system fonts only (no download).
   The classic portfolio keeps its own stylesheet (src/styles.css).
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #141018; color: #FFF4DD; font: 16px/1.55 Arial, "Helvetica Neue", Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover, summary:hover { color: #FF85AF; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #47E6D1; outline-offset: 4px; }
img { max-width: 100%; }
.wrap { width: min(1240px, 92vw); margin: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: #FF749E; color: #160D16; padding: 8px 14px; font-weight: 800; }
.skip:focus { top: 12px; }

small { font: 700 11px/1.5 monospace; letter-spacing: .13em; text-transform: uppercase; color: #FF95B6; }
h1, h2, h3, .role, .alias {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif; font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -.065em; margin: 0; line-height: .91;
}
h2 { font-size: clamp(38px, 5vw, 72px); margin: 10px 0 32px; }
h2 .dot { color: #FF779F; }
h3 { font-size: 34px; margin: 18px 0 8px; }

/* ---------- Header ---------- */
.top, footer { background: #100D13; color: #FFF5DE; }
.bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 900; font-style: italic; letter-spacing: -.07em; font-size: 25px; }
.brand b { background: #FF679A; color: #19101B; padding: 0 8px; transform: skew(-9deg); font-size: 22px; }
.menu { display: flex; align-items: center; gap: 30px; font-weight: bold; font-size: 14px; }
.contactbtn, .cta { display: inline-block; border: 2px solid currentColor; padding: 9px 18px; }
.settings { display: flex; align-items: center; gap: 12px; }
/* Link to the classic portfolio: a small outlined button, allowed to wrap on two lines on phones */
.classic {
  font: 700 13px/1.25 Arial, sans-serif; color: #FFDEAE; border: 2px solid #FFCB93; padding: 6px 10px;
  box-shadow: 3px 3px #FA679A; text-align: center; background: #2B1B30;
}
.classic:hover { background: #48304A; color: #FFFFFF; }
.langs { display: flex; list-style: none; margin: 0; padding: 0; border: 1px solid #826B82; background: #281D30; }
.langs li { margin: 0; }
.langs a { display: block; padding: 7px 8px; font: 700 13px/1 Arial, sans-serif; }
.langs a[aria-current="true"] { background: #FF679A; color: #19101B; }

/* ---------- Hero: text on the left, illustrated portrait on the right ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 33% 100%, #602142, transparent 65%), linear-gradient(100deg, #25172D, #3E2449 65%, #FF9C7E);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#FFDDC720 1px, transparent 1.3px); background-size: 6px 6px; }
.cover { padding: 54px 0 55px; position: relative; isolation: isolate; }
/* The scene sits inside .wrap: its right edge lines up with the right edge of the project cards */
.scene {
  position: absolute; inset: 0 0 0 52%; z-index: -1; overflow: hidden;
  background: linear-gradient(135deg, #98507E, #371D3B);
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
}
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% top; }
.sticker { position: absolute; bottom: 6%; right: 5%; z-index: 1; transform: rotate(-6deg); text-align: right; }
.stars { display: block; color: #FFDD92; font-size: 27px; letter-spacing: 3px; line-height: 1.15; text-shadow: 2px 2px #130D15; }
.alias {
  display: block; background: #130F17; border: 2px solid #FFCF95; padding: 9px 17px;
  font-size: clamp(20px, 2.7vw, 40px); box-shadow: 5px 5px #FA679A;
}
.content { width: 52%; }
/* Availability stamp above the name (same message as the green dot of the classic portfolio) */
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.stamp {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; transform: skew(-9deg);
  background: #60E2C2; color: #130F17; box-shadow: 3px 3px #100D13;
  font: italic 900 12px/1.3 "Arial Black", "Arial Bold", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase;
}
a.stamp:hover { background: #9AF2E3; color: #130F17; }
.stamp-line { margin: -14px 0 18px; }
.stamp-dot { width: 8px; height: 8px; border-radius: 50%; background: #130F17; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .stamp-dot { animation: stamp-blink 1.6s ease-in-out infinite; }
  @keyframes stamp-blink { 50% { opacity: .2; } }
}
.loc { color: #FFCF98; }
.loc::before { content: "◆"; margin-right: 10px; color: #60E2C2; }
h1 { font-size: clamp(70px, 8.2vw, 122px); margin: 24px 0; text-shadow: 4px 5px 0 #140E19; letter-spacing: -.075em; }
h1 span { color: #FF689B; }
h1 span::after { content: "."; color: #FFCA88; }
.role { font-size: clamp(18px, 1.65vw, 26px); line-height: 1.2; max-width: 490px; margin: 20px 0 12px; }
.intro { max-width: 465px; color: #ECDEE4; margin: 0 0 26px; }
.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cta { border-color: #100D13; box-shadow: 4px 4px #100D13; background: #FF749E; color: #160D16; font-weight: 800; transform: skew(-4deg); }
.cta:hover { background: #FFB3C9; color: #191019; }
.career-button, .cta-alt {
  display: inline-flex; align-items: center; gap: 12px; background: #2B1B30; color: #FFDEAE;
  border: 2px solid #FFCB93; box-shadow: 3px 3px #110C14; padding: 9px 17px; transform: skew(-4deg); font-weight: 800;
}
.career-button::after { content: "↓"; color: #FF90AE; }
.career-button:hover, .cta-alt:hover { background: #48304A; color: #FFFFFF; }

/* ---------- Key figures ---------- */
.metrics { background: #FFD69B; color: #201522; border-block: 4px solid #100D13; }
.metrics ul { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 0; gap: 20px; list-style: none; margin-block: 0; }
.metric { border-left: 2px solid #946743; padding-left: 17px; margin: 0; color: #201522; }
.metric b { font-size: clamp(22px, 2.8vw, 40px); font-style: italic; letter-spacing: -.06em; line-height: 1; }
.metric span { display: block; font-size: 13px; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-bottom: 1px solid #544554; }
.section p, article p, li { color: #E0D6DF; }
.section .actions { margin-top: 20px; }
.grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split { gap: 6%; }
article, .panel { border: 1px solid #635464; background: #241E29; }
.pad, .panel { padding: 24px; }
.shot { display: block; cursor: zoom-in; }
.projectpic { display: block; width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; object-position: top; border-bottom: 3px solid #FF779F; }
.hub { object-fit: contain; background: #0C0A07; }
details { border-bottom: 1px solid #645265; padding: 15px 0; }
summary { cursor: pointer; font-weight: bold; }
details div { padding: 12px 0; }
li { margin-bottom: 8px; }
/* Other projects: framed thumbnails, slightly tilted like stickers, that open the enlarged picture */
.archive { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 22px; }
/* Thumbnail centred on the height of its text (Retabbed has a longer text and a link); at the top on phones */
.arch { display: grid; grid-template-columns: 176px 1fr; gap: 22px; align-items: center; margin: 0; }
.arch > div { padding: 0; }
.arch h4 { margin: 4px 0 6px; font-size: 17px; }
.arch p { margin: 0 0 8px; }
.thumb { display: block; padding: 4px; background: #130F17; border: 2px solid #FFCF95; box-shadow: 4px 4px #FA679A; transform: rotate(-1.5deg); cursor: zoom-in; }
.arch:nth-child(even) .thumb { transform: rotate(1.5deg); }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.thumb:hover, .thumb:focus-visible { transform: none; border-color: #FF85AF; }
@media (prefers-reduced-motion: no-preference) { .thumb { transition: transform .2s, border-color .2s; } }
/* Small skewed button for project links (zoom, Gigsaur, Retabbed), same family as "My experience" */
.mini-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 13px;
  background: #2B1B30; color: #FFDEAE; border: 2px solid #FFCB93; box-shadow: 3px 3px #FA679A;
  transform: skew(-4deg); font-weight: 800; font-size: 14px;
}
.mini-cta:hover { background: #48304A; color: #FFFFFF; }
small.live { color: #60E2C2; }
small.live::before { content: "●"; margin-right: 6px; }
.expertise { align-self: start; }
.expertise dl { margin: 24px 0 0; }
.expertise dt { border-top: 1px solid #574457; padding-top: 14px; font-weight: 800; color: #FFCC98; }
.expertise dd { margin: 4px 0 14px; color: #E0D6DF; }
.expertise dd:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer { padding: 20px 0; }
.footer { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
footer a { text-decoration: underline; }

/* ---------- Enlarged screenshot (native <dialog>) ---------- */
.zoombox { background: #151018; border: 1px solid #806578; width: min(96vw, 1500px); color: #FFFFFF; }
.zoombox.is-small { width: min(96vw, 820px); }
.zoombox img { width: 100%; max-height: 80vh; object-fit: contain; display: block; }
.zoombox::backdrop { background: #09060BDC; }
.close { display: block; margin: 0 0 8px auto; cursor: pointer; background: #281D30; color: #FFF4DD; padding: 7px; border: 1px solid #826B82; font: 700 13px Arial, sans-serif; }

/* ---------- Tablets ---------- */
@media (max-width: 960px) {
  .menu { gap: 12px; }
  .bar { flex-wrap: wrap; padding-block: 10px; }
  .settings { margin-left: auto; }
}
@media (max-width: 760px) {
  .bar { min-height: 58px; }
  .brand { font-size: 20px; }
  .menu { gap: 14px; font-size: 12px; flex-wrap: wrap; }
  .contactbtn { padding: 3px 6px; }
  .cover { padding: 32px 0; }
  .content { width: 62%; }
  h1 { font-size: clamp(49px, 10vw, 72px); }
  .role { font-size: 18px; }
  .intro { font-size: 14px; }
  .alias { padding: 5px; }
  .stars { font-size: 18px; }
  .metrics ul { grid-template-columns: 1fr 1fr; }
  .grid, .split { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 38px 0; }
  .actions { gap: 12px; }
}
@media (max-width: 760px) and (min-width: 601px) {
  .scene { left: 62%; }
}

/* ---------- Phones: portrait on top, text below ---------- */
@media (max-width: 600px) {
  .bar { justify-content: center; gap: 10px 20px; }
  .brand { width: 100%; justify-content: center; }
  .settings { gap: 10px; justify-content: center; margin-inline: auto; }
  /* The classic link stays visible and may use two lines */
  .classic { max-width: 13.5em; }
  .scene { inset: 0 0 auto; height: 260px; clip-path: none; }
  .cover { padding-top: 279px; }
  .content { width: 100%; }
  .alias { font-size: 22px; }
  .stars { font-size: 16px; }
  .arch { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
}
@media (max-width: 490px) {
  h1 { font-size: 63px; margin: 14px 0; }
  h1 br { display: none; }
  h1 span { display: block; }
  .metrics ul { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Print: plain text on white, no menu, everything unfolded (gta.js opens the <details>) ---------- */
@media print {
  body, .top, footer, .hero, .metrics, article, .panel { background: #FFFFFF !important; color: #000000; }
  .menu, .settings, .scene, .zoombox, .skip, .shot, .zoom, .thumb { display: none !important; }
  .arch { grid-template-columns: 1fr; }
  .content { width: 100%; }
  .hero::before { display: none; }
  h1, h1 span, .cta, .career-button, .cta-alt, .stamp, .mini-cta { text-shadow: none; box-shadow: none; color: #000000; }
  small, .section p, article p, li, .expertise dd, .expertise dt { color: #000000; }
  .projectpic { display: none; }
  .section { padding: 24px 0; }
}
