/* ==========================================================================
   Louis Fort / LouiA — Swiss grid system
   Fond #F5F5F5 · noir · accent rouge #DC2626 · Inter 400/500/700/900
   ========================================================================== */

:root {
  --bg: #f5f5f5;
  --paper: #ffffff;
  --ink: #000000;
  --red: #dc2626;
  --muted: #737373;
  --line: #e5e5e5;
  --soft: #d4d4d4;
  --gutter: 1.5rem;
  --header-h: 73px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
main { flex: 1 0 auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Typographie ---------- */
.display {
  font-size: clamp(2.6rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: .85;
  text-transform: uppercase;
  margin: 0;
}
.display--short { font-size: clamp(2.6rem, 22vw, 10rem); }
.display--sm { font-size: clamp(2.4rem, 11vw, 8rem); }
.display .red, .red { color: var(--red); }
.h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}
.h2--italic { font-style: italic; text-transform: lowercase; }
.h3 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0;
}
.label {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  display: inline-block;
}
.label--red { color: var(--red); }
.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}
.body-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; max-width: 42rem; margin: 0; }
.caps-bold { font-weight: 700; font-size: .875rem; text-transform: uppercase; line-height: 1.25; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Grille ---------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .md-4 { grid-column: auto / span 4 !important; }
  .md-5 { grid-column: auto / span 5 !important; }
  .md-6 { grid-column: auto / span 6 !important; }
  .md-7 { grid-column: auto / span 7 !important; }
  .md-8 { grid-column: auto / span 8 !important; }
  .md-12 { grid-column: 1 / -1 !important; }
  .md-start-3 { grid-column-start: 3 !important; }
  .md-start-7 { grid-column-start: 7 !important; }
  .md-start-8 { grid-column-start: 8 !important; }
  .md-start-9 { grid-column-start: 9 !important; }
}
@media (min-width: 1024px) {
  .lg-2 { grid-column: auto / span 2 !important; }
  .lg-4 { grid-column: auto / span 4 !important; }
  .lg-8 { grid-column: auto / span 8 !important; }
  .lg-10 { grid-column: auto / span 10 !important; }
}
.rule { border-top: 1px solid var(--ink); }
.section { padding-top: 8rem; padding-bottom: 8rem; }
.section--white { background: var(--paper); }
.section--black { background: var(--ink); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; }
@media (min-width: 768px) { .section-head { margin-bottom: 6rem; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(245, 245, 245, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem var(--gutter);
  height: var(--header-h);
}
.brand { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; display: flex; align-items: baseline; gap: .5rem; white-space: nowrap; }
.brand small { font-size: .625rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav a, .nav button { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"] { color: var(--ink); }
.lang { display: inline-flex; gap: .35rem; align-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.lang button { color: var(--soft); font-weight: 700; font-size: .75rem; letter-spacing: .1em; }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:hover { color: var(--red); }
.lang span { color: var(--soft); }
.menu-btn { display: none; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 860px) {
  .nav .nav-links { display: none; }
  .nav { gap: 1.25rem; }
  .menu-btn { display: inline-block; }
}
.nav-links { display: flex; gap: 2.5rem; }

/* Menu plein écran mobile */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 1.5rem var(--gutter) 2rem;
  transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.overlay.open { transform: none; visibility: visible; }
.overlay-top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - 3rem); }
.overlay nav { margin-top: auto; display: flex; flex-direction: column; gap: .25rem; }
.overlay nav a { font-size: clamp(2.75rem, 13vw, 5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; text-transform: uppercase; display: flex; align-items: baseline; gap: .75rem; }
.overlay nav a span { font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: #737373; font-style: italic; }
.overlay nav a:hover, .overlay nav a[aria-current="page"] { color: var(--red); }
.overlay .lang button { color: #525252; }
.overlay .lang button[aria-pressed="true"] { color: #fff; }
.overlay-foot { margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .3); border-top: 1px solid rgba(255, 255, 255, .1); padding: 3rem var(--gutter); display: flex; flex-direction: column; gap: 1.5rem; }
.site-footer p, .site-footer a { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; margin: 0; }
.site-footer a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--ink); color: #fff; padding: 1rem 2rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0; font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--red); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--red); color: #fff; }
.btn svg { flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.link-arrow { font-weight: 700; text-transform: uppercase; font-size: .875rem; letter-spacing: .05em; display: inline-flex; gap: .5rem; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: .15rem; transition: color .2s; }
.link-arrow:hover { color: var(--red); }

/* ---------- Hero (commun) ---------- */
.hero { position: relative; padding-top: 12rem; padding-bottom: 8rem; min-height: 80vh; display: flex; flex-direction: column; justify-content: space-between; }
.hero--short { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 0; min-height: 0; margin-bottom: 8rem; }
.hero-side { display: flex; flex-direction: column; justify-content: flex-end; }
.hero-side .label { margin-bottom: 1rem; }
.hero-side .caps-bold + .label { margin-top: 2rem; }
.hero-bottom { margin-top: 6rem; align-items: end; }
.callout { display: inline-flex; flex-direction: column; gap: .5rem; border-left: 2px solid var(--red); padding-left: 1rem; }
.callout p { margin: 0; }
.callout .t { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.callout .s { font-weight: 500; font-size: .875rem; color: #525252; }
.scroll-cue { display: flex; justify-content: center; margin-top: 3rem; }
.scroll-cue a { padding: 1rem; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .1); animation: bounce 1s infinite; display: inline-flex; }
.scroll-cue a:hover { background: rgba(0, 0, 0, .05); }
@media (min-width: 768px) { .scroll-cue { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); margin: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); } }

/* ---------- Cartes projet (portfolio) ---------- */
.card { border-top: 1px solid var(--ink); padding-top: 1rem; padding-bottom: 3rem; transition: background .3s; display: block; }
.card:hover { background: #f5f5f5; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.card-top .label { text-align: right; }
.card-num { font-size: 2.25rem; font-weight: 900; font-style: italic; line-height: 1; }
.card--featured .card-num { font-size: clamp(3rem, 5vw, 3.75rem); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); margin-bottom: 1.5rem; }
.card--featured .card-media { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .card--featured .card-media { aspect-ratio: 2 / 1; } }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .7s ease-in-out, transform .7s ease-in-out; }
.card:hover .card-media img { filter: none; transform: scale(1.05); }
.card-foot { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .card-foot { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.card-title { font-size: 1.875rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; margin: 0; transition: color .2s; }
.card--featured .card-title { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.card:hover .card-title { color: var(--red); }
.card-desc { color: #525252; margin: .5rem 0 0; }
.card--featured .card-desc { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #404040; margin-top: 1rem; max-width: 56rem; }
.card-year { flex: none; }
.work-grid { row-gap: 6rem; }

/* ---------- Hub : deux portes ---------- */
.doors { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding: 1rem 0 3rem; }
@media (min-width: 900px) {
  .door { padding: 1rem 2rem 3rem 0; }
  .door + .door { padding: 1rem 0 3rem 2rem; border-left: 1px solid var(--ink); }
}
.door-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); margin: 1.5rem 0; }
.door-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .7s, opacity .7s; }
.door-media .img-after { animation: ba-loop 6s ease-in-out infinite; }
.door:hover .door-media .img-after { animation: none; opacity: 1; }
@keyframes ba-loop { 0%, 30% { opacity: 0; } 45%, 90% { opacity: 1; } 100% { opacity: 0; } }
.door:hover .door-media img { transform: scale(1.04); }
@media (hover: hover) { .door-media img.gs { filter: grayscale(1); } .door:hover .door-media img.gs { filter: none; } }
.door-media .tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: rgba(255, 255, 255, .92); padding: .35rem .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.door-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: .9; text-transform: uppercase; margin: 0; transition: color .2s; }
.door:hover .door-title { color: var(--red); }
.door-desc { margin: 1rem 0 1.5rem; color: #404040; font-size: 1.1rem; max-width: 34rem; }
.door-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.door-list li { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--ink); padding: .3rem .6rem; }
.door .link-arrow { margin-top: auto; align-self: flex-start; }

.quick { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick a { padding: 2rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; transition: color .2s, padding .3s; }
@media (min-width: 768px) { .quick a { padding: 2.5rem 2rem 2.5rem 0; border-bottom: 0; } .quick a + a { padding-left: 2rem; border-left: 1px solid var(--line); } }
.quick a:hover { color: var(--red); }
.quick b { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; }

/* ---------- Avant / Après ---------- */
.ba { position: relative; overflow: hidden; background: var(--soft); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 3.5rem; height: 3.5rem; transform: translate(-50%, -50%); background: var(--red); color: #fff; display: grid; place-items: center; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba input[type="range"]:focus-visible ~ .ba-handle .ba-knob { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag { position: absolute; top: 1rem; z-index: 2; pointer-events: none; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; padding: .4rem .75rem; transition: opacity .3s; }
.ba-tag--before { left: 1rem; background: var(--ink); color: #fff; }
.ba-tag--after { right: 1rem; background: #fff; color: var(--ink); }
.ba-hint { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; background: rgba(0, 0, 0, .7); color: #fff; padding: .4rem .8rem; white-space: nowrap; transition: opacity .4s; }
.ba.touched .ba-hint { opacity: 0; }

.case { display: grid; grid-template-columns: 1fr; gap: 2rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.case + .case { margin-top: 6rem; }
@media (min-width: 1024px) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .case-media { grid-column: span 8; }
  .case-info { grid-column: span 4; }
  .case--flip .case-media { grid-column: 5 / span 8; grid-row: 1; }
  .case--flip .case-info { grid-column: 1 / span 4; grid-row: 1; }
}
.case-info { display: flex; flex-direction: column; gap: 1.25rem; }
.case-num { font-size: clamp(3rem, 5vw, 3.75rem); font-weight: 900; font-style: italic; line-height: 1; }
.case-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.case-steps li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.case-steps li b { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: .2rem; }
.case-steps li b.r { color: var(--red); }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid currentColor; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2rem 1rem 2rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 900px) { .stat { border-bottom: 0; padding: 2.5rem 2rem 1rem 0; } .stat + .stat { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .15); } }
.stat b { display: block; font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.05em; line-height: .9; }
.stat b sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; margin-left: .05em; }
.stat span { display: block; margin-top: .75rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: #a3a3a3; }

/* ---------- Métiers ---------- */
.trades { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 700px) { .trades { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trades { grid-template-columns: repeat(4, 1fr); } }
.trade { padding: 2rem 1.5rem 2.5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; position: relative; }
@media (min-width: 700px) { .trade { padding: 2rem 1.5rem 2.5rem; border-right: 1px solid var(--line); } }
.trade-num { font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.trade h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1; margin: 0; }
.trade p { margin: 0; color: #404040; }
.trade ul { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.trade ul li { padding: .3rem 0; }
.trade ul li::before { content: "— "; color: var(--red); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid var(--ink); padding: 1.25rem 1.5rem 2.5rem 0; }
.step b { display: block; font-size: 4rem; font-weight: 900; font-style: italic; letter-spacing: -0.05em; line-height: 1; margin-bottom: 1.5rem; }
.step h3 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; margin: 0 0 .5rem; }
.step p { margin: 0; color: #525252; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(4, 1fr); } }
.tier { padding: 2rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 900px) { .tier { border-bottom: 0; padding: 2rem 1.5rem 2.5rem; border-right: 1px solid var(--line); } .tier:first-child { padding-left: 0; } .tier:last-child { border-right: 0; } }
.tier .price { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: .9; }
.tier .price small { font-size: .9rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: .25rem; }
.tier .qty { font-weight: 900; text-transform: uppercase; font-size: 1.1rem; letter-spacing: -0.02em; }
.tier p { margin: 0; color: #525252; font-size: .95rem; }
.tier--hl { background: var(--ink); color: #fff; padding-left: 1.5rem !important; }
.tier--hl p, .tier--hl .price small { color: #a3a3a3; }
.tier--quote .price { font-size: clamp(2.25rem, 3.5vw, 3rem); }
.pricing-note { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; }
.pricing-note span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pricing-note span::before { content: "✓ "; color: var(--red); }

/* ---------- CTA ---------- */
.cta { padding-top: 8rem; padding-bottom: 8rem; }
.cta .display { margin-bottom: 3rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cross { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--ink); padding: 2.5rem 0; }
@media (min-width: 768px) { .cross { flex-direction: row; align-items: center; } }
.cross b { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; transition: color .2s; }
.cross:hover b { color: var(--red); }

/* ---------- CV ---------- */
.cv-block { border-top: 1px solid var(--ink); padding-top: 3rem; margin-bottom: 8rem; }
.cv-block:last-child { margin-bottom: 0; }
.cv-items > * + * { margin-top: 4rem; }
.cv-item { display: grid; grid-template-columns: 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.cv-item:last-child { border-bottom: 0; }
@media (min-width: 640px) { .cv-item { grid-template-columns: 1fr 3fr; } }
.cv-item .org { font-weight: 700; color: var(--red); margin: .25rem 0 1rem; text-transform: uppercase; font-size: .875rem; }
.cv-item ul { list-style: none; padding: 0; margin: 0; font-size: .875rem; font-weight: 500; text-transform: uppercase; opacity: .7; }
.cv-item ul li { padding: .1rem 0; }
.cv-item ul li::before { content: "— "; }
.cv-item p { margin: 0; }
.cv-item--new .h3::after { content: "NEW"; font-size: .6rem; letter-spacing: .15em; background: var(--red); color: #fff; padding: .2rem .45rem; margin-left: .6rem; vertical-align: middle; font-style: normal; }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
@media (min-width: 1024px) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skills ul { list-style: none; padding: 0; margin: 1rem 0 0; font-weight: 700; text-transform: uppercase; font-size: .875rem; }
.skills ul li { padding: .1rem 0; }
.skills .soft { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid #f5f5f5; }
.skills .soft ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

/* ---------- Contact ---------- */
.contact-big { font-size: clamp(1.6rem, 5.2vw, 3.75rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; transition: color .2s; overflow-wrap: anywhere; }
.contact-big:hover { color: var(--red); }
.contact-rows > * + * { margin-top: 5rem; }
.contact-rows .label { display: block; margin-bottom: 1.25rem; }
.intents { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .intents { grid-template-columns: 1fr 1fr; } }
.intent { padding: 2rem 0 2.5rem; display: flex; flex-direction: column; gap: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .intent { padding: 2rem 2rem 2.5rem 0; border-bottom: 0; } .intent + .intent { padding-left: 2rem; border-left: 1px solid var(--line); } }
.intent h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; margin: 0; }
.intent p { margin: 0; color: #404040; }
.intent ul { margin: 0; padding: 0; list-style: none; font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.intent ul li::before { content: "— "; color: var(--red); }
.intent .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Page projet ---------- */
.back { display: inline-block; margin-bottom: 3rem; }
.back:hover .label { color: var(--red); }
.proj-hero { margin-bottom: 6rem; }
.proj-hero .display { font-size: clamp(2.4rem, 10vw, 8rem); }
.proj-meta { border-left: 1px solid var(--ink); padding: 1rem 0 1rem 2rem; }
.proj-cover { aspect-ratio: 16 / 9; background: #e5e5e5; overflow: hidden; margin-bottom: 6rem; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; }
.proj-body { margin-bottom: 8rem; }
.proj-body .h2 { margin-bottom: 2rem; }
.proj-details { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.45; margin: 0 0 3rem; }
.proj-box { background: var(--ink); color: #fff; padding: 2rem; position: sticky; top: 8rem; }
.proj-box > * + * { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #262626; }
.proj-box .label { color: #a3a3a3; }
.proj-box p { margin: .5rem 0 0; font-weight: 700; text-transform: uppercase; }
.proto-btn { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--red); color: #fff; padding: 1rem 1.5rem; font-weight: 900; text-transform: uppercase; transition: background .2s, color .2s; }
.proto-btn:hover { background: #fff; color: var(--ink); }
.pulse { width: .5rem; height: .5rem; border-radius: 99px; background: #ef4444; display: inline-block; margin-right: .5rem; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.proto-frame { width: 100%; aspect-ratio: 3 / 4; background: #f5f5f5; padding: .5rem; border: 1px solid rgba(0, 0, 0, .1); border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
@media (min-width: 768px) { .proto-frame { aspect-ratio: 16 / 9; padding: 1rem; } }
.proto-frame iframe { width: 100%; height: 100%; border: 0; border-radius: .75rem; background: #fff; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 64rem; margin: 0 auto 6rem; }
@media (min-width: 768px) { .screens { gap: 2rem; } }
.screens button { background: #e5e5e5; overflow: hidden; cursor: zoom-in; }
.screens img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.screens button:hover img { transform: scale(1.03); }

.gallery { position: relative; max-width: 64rem; margin: 0 auto 6rem; aspect-ratio: 16 / 10; background: #f5f5f5; overflow: hidden; }
.gallery img.main { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: opacity .35s; }
.gallery .nav-zone { position: absolute; top: 0; bottom: 0; width: 5rem; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .2s; }
@media (min-width: 768px) { .gallery .nav-zone { width: 6rem; } }
.gallery .nav-zone:hover { background: rgba(0, 0, 0, .05); }
.gallery .prev { left: 0; } .gallery .next { right: 0; }
.gallery-foot { position: absolute; bottom: 1.25rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 0 1rem; pointer-events: none; z-index: 3; }
.gallery-cap { background: rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; padding: .7rem 1.25rem; max-width: 42rem; border-radius: 1rem; text-align: center; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.gallery-count { background: rgba(255, 255, 255, .92); padding: .35rem 1rem; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
@media (max-width: 600px) { .gallery { aspect-ratio: 4 / 3; } .gallery-cap { font-size: .75rem; padding: .5rem .8rem; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: #fff; display: none; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; }
@media (min-width: 768px) { .lightbox { padding: 3rem; } }
.lightbox.open { display: flex; animation: fade .3s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.lightbox .close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.lightbox .close:hover { color: var(--red); }
@keyframes fade { from { opacity: 0; } }

/* Loupe intérieur (Vitrosoi) */
.reveal-wrap { display: flex; flex-direction: column; align-items: center; padding: 3rem 0; }
.reveal { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; overflow: hidden; border-radius: 1rem; touch-action: none; cursor: none; }
.reveal.full { cursor: default; }
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.reveal .inside { clip-path: circle(0 at 50% 50%); }
.reveal-ring { position: fixed; width: 340px; height: 340px; border: 2px solid rgba(0, 0, 0, .2); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 90; opacity: 0; transition: opacity .3s; }
.reveal-dot { position: fixed; width: 6px; height: 6px; background: rgba(0, 0, 0, .5); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 91; opacity: 0; transition: opacity .3s; }
.reveal-btn { margin-top: 2rem; padding: 1rem 2rem; border-radius: 99px; border: 1px solid rgba(0, 0, 0, .3); font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: all .3s; }
.reveal-btn:hover { background: rgba(0, 0, 0, .05); }
.reveal-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.reveal-hint { margin-top: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .4; transition: opacity .5s; }

/* Vue éclatée au scroll (Vitrosoi) */
.explode { position: relative; width: 100vw; left: 50%; margin-left: -50vw; background: #c8c8c8; color: #222; margin-bottom: 6rem; }
.explode-intro, .explode-outro { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; position: relative; }
.explode-intro { background: linear-gradient(#e0e0e0, #c8c8c8); }
.explode-outro { background: linear-gradient(#c8c8c8, #e0e0e0); }
.explode h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 300; letter-spacing: .2em; text-transform: uppercase; color: #333; margin: 0 0 1rem; }
.explode p { font-size: 1.125rem; color: #555; letter-spacing: .05em; max-width: 48rem; line-height: 1.65; margin: 0; }
.explode-track { position: relative; height: 500vh; }
.explode-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.explode-stage img { position: absolute; max-width: 85vw; max-height: 85vh; object-fit: contain; opacity: 0; filter: drop-shadow(0 20px 60px rgba(0, 0, 0, .15)); }
.explode-stage img.on { opacity: 1; }
.explode-cue { position: absolute; bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; animation: bounce 1s infinite; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: #888; }
.explode-cue i { width: 1.5rem; height: 1.5rem; border-right: 2px solid #888; border-bottom: 2px solid #888; transform: rotate(45deg); }
.explode-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(to right, #f5c518, #ffdd44); z-index: 100; box-shadow: 0 0 10px rgba(245, 197, 24, .5); width: 0; }

.pager { border-top: 1px solid var(--ink); padding-top: 3rem; margin-top: 6rem; display: flex; flex-direction: column; gap: 2rem; justify-content: space-between; }
@media (min-width: 768px) { .pager { flex-direction: row; align-items: center; } }
.pager a { display: flex; flex-direction: column; }
.pager a:last-child { align-items: flex-end; text-align: right; }
.pager b { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; margin-top: .5rem; transition: color .2s; }
.pager a:hover b { color: var(--red); }

/* ---------- Apparition au scroll ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.page-in { animation: fade .7s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .door-media .img-after { opacity: 1; }
}

.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; }

/* ---------- Choix de la messagerie ---------- */
.mail-pop { position: fixed; z-index: 120; width: 290px; background: var(--ink); color: #fff; padding: 1.25rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: fade .2s; }
.mail-pop[hidden] { display: none; }
.mail-pop .label { color: #a3a3a3; }
.mail-to { font-size: .8rem; font-weight: 700; margin: .25rem 0 .75rem; overflow-wrap: anywhere; }
.mail-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: .8rem 0; border-top: 1px solid #262626; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1rem; color: #fff; transition: color .2s, padding .2s; }
.mail-opt:hover, .mail-opt:focus-visible { color: var(--red); padding-left: .25rem; outline: none; }
.mail-opt--main { color: var(--red); }
.mail-opt--main:hover { color: #fff; }
.mail-pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; padding: 1.5rem var(--gutter) 2rem; }

/* ---------- LouiA : hero avec avant/après ---------- */
.hero--ia { min-height: 0; padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 6rem; }
.hero--ia .display { font-size: clamp(2.6rem, 13vw, 8.5rem); }
.hero--ia .hero-bottom { margin-top: 3rem; align-items: start; }
.hero-pitch { display: flex; flex-direction: column; gap: 1.75rem; }
@media (min-width: 768px) { .hero-pitch { padding-left: 1rem; } }
.trial-cond { margin: -.75rem 0 0; font-size: .8rem; color: var(--muted); max-width: 26rem; }
.hero-mail { color: var(--ink); font-weight: 700; }
.btn--ghost { padding: calc(1rem - 1px) calc(2rem - 1px); }
.btn--wa { background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.btn--line { background: transparent; color: #fff; border: 1px solid #525252; }
.btn--line:hover { background: #fff; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.5rem 1fr 1.5rem; gap: 1rem; align-items: baseline; padding: 1.4rem 0; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.2; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-num { font-size: .75rem; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.faq-item summary i { position: relative; width: 1rem; height: 1rem; align-self: center; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .3s var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 2.5rem 1.6rem 3.5rem; color: #404040; max-width: 46rem; line-height: 1.6; }
@media (max-width: 600px) { .faq-item summary { grid-template-columns: 2rem 1fr 1.25rem; gap: .6rem; } .faq-a { padding: 0 0 1.4rem 2.6rem; } }

/* ---------- Barre d'action fixe (mobile) ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: .5rem; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); background: rgba(245, 245, 245, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .4s var(--ease); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn--red { flex: 1; justify-content: center; }
  .sticky-cta .btn--wa { padding: 1rem 1.1rem; border-color: var(--ink); }
  body[data-page="ia"] .site-footer { padding-bottom: 6.5rem; }
}

.trade--new .trade-num::after { content: "NEW"; margin-left: .5rem; font-size: .6rem; background: var(--red); color: #fff; padding: .15rem .4rem; letter-spacing: .12em; }
