/* Polices hébergées sur le site */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Digital Essence — DA 1 « Mire » */
:root {
  --bg: #060809;
  --bg-2: #0d1112;
  --card: #151a1b;
  --line: #252c2e;
  --fg: #f2f4ef;
  --muted: #99a29e;
  --dim: #808b86;
  --accent: #f0b44b;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 80px;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--fg); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 600; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.pad { padding-top: 112px; padding-bottom: 120px; }

.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 24px; }
.eyebrow--accent { color: var(--accent); }
.h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; max-width: 820px; margin-bottom: 56px; }
.lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }
.muted { color: var(--muted); }

.link { font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.btn { display: inline-block; font-size: 15px; font-weight: 500; text-decoration: none; padding: 15px 26px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--fg); color: var(--bg); }
.btn--ghost { border-color: var(--dim); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--bg); color: var(--fg); }
.btn--dark:hover { background: var(--card); color: var(--accent); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(6, 8, 9, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 48px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.header .btn { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--dim); color: var(--fg); font: 500 13px var(--mono); letter-spacing: .08em; padding: 9px 12px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: min(820px, 92vh); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,8,9,.35) 0%, rgba(6,8,9,.55) 45%, rgba(6,8,9,.96) 100%),
    repeating-linear-gradient(0deg, rgba(242,244,239,.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(242,244,239,.06) 0 1px, transparent 1px 48px); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 160px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 104px); line-height: .94; letter-spacing: -.03em; max-width: 1080px; margin-bottom: 32px; }
.hero .lead { max-width: 760px; margin: 0 0 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.hero__tag { position: absolute; z-index: 2; top: 32px; right: var(--gutter); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 8px 12px; }

/* Grid helpers */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span6 { grid-column: span 6; } .span8 { grid-column: span 8; }

/* Studio */
.statement { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -.015em; margin: 0 0 32px; }

/* Cells (secteurs, expertises) */
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { background: var(--bg-2); padding: 28px 24px 32px; }
.section:not(.section--alt) .cell { background: var(--bg); }
.cell__n { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--accent); }
.cell h3 { font-size: 20px; line-height: 1.3; margin: 12px 0 8px; }
.cell p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.cell--sector { display: flex; flex-direction: column; padding: 32px 28px; min-height: 260px; }
.cell--sector h3 { font-size: 24px; letter-spacing: -.01em; }
.cell--sector p { margin-bottom: 24px; }
.cell--sector .link { margin-top: auto; align-self: flex-start; }
.kw { font: 500 12px var(--mono); letter-spacing: .04em; color: var(--dim); margin: 0 0 4px; }

/* Projects */
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.head-row .h2 { margin-bottom: 0; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { background: var(--card); text-decoration: none; display: block; color: var(--fg); }
.project:hover { color: var(--fg); }
.project__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__media img { transform: scale(1.03); }
.project__body { padding: 28px; }
.project__meta { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
.project h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 20px; }
.project .link { display: inline-block; }
.project:hover .link { color: var(--accent); }

/* Method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); }
.steps li { padding-top: 28px; border-top: 2px solid var(--accent); margin-top: -1px; }
.steps .cell__n { color: var(--dim); }
.steps h3 { font-size: 20px; line-height: 1.3; margin: 12px 0 8px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Matériel */
.hw-list { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.hw-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hw-list span { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--accent); padding-top: 5px; min-width: 24px; }
.hw-figure { margin: 0; background: var(--bg); border: 1px solid var(--line); }
.hw-figure img { width: 100%; }
.hw-figure figcaption { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 14px 16px; border-top: 1px solid var(--line); }
.heavym-logo { width: 180px; margin-bottom: 28px; }

/* Proof */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 72px; }
.fact { border-top: 1px solid var(--line); padding-top: 24px; }
.fact__k { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--dim); margin: 0 0 10px; }
.fact__big { font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 12px; }
.fact p:last-child { margin: 0; }
.logos { border: 1px solid var(--line); padding: 40px 48px; }
.logos img { width: 100%; opacity: .78; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; margin-top: 32px; }
.partners img { height: 32px; width: auto; opacity: .7; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px var(--mono); color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 760px; margin: -6px 0 28px; }

/* Contact */
.contact { background: var(--accent); color: var(--bg); }
.contact .wrap { padding-top: 112px; padding-bottom: 112px; align-items: end; }
.contact .eyebrow { color: var(--bg); }
.contact h2 { font-size: clamp(44px, 5.4vw, 72px); line-height: .94; letter-spacing: -.03em; margin: 0 0 24px; }
.contact .lead { max-width: 640px; margin: 0; }
.contact__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact a.plain { color: var(--bg); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--bg); padding-bottom: 4px; }
.contact a.plain:hover { color: var(--bg); border-bottom-width: 2px; }

/* Footer */
.footer .wrap { padding-top: 72px; padding-bottom: 40px; }
.footer nav { display: flex; flex-direction: column; gap: 12px; }
.footer nav a { white-space: nowrap; font-size: 15px; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--fg); }
.footer address { font-style: normal; font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .04em; color: var(--dim); }
.footer address a { color: var(--dim); }
.footer__bar { border-top: 1px solid var(--line); }
.footer__bar .wrap { padding-top: 24px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer__bar p, .footer__bar a { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0; text-decoration: none; }
.footer__bar a:hover { color: var(--fg); }
.socials { display: flex; gap: 24px; }

/* Responsive */
@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .nav { gap: 20px; }
  .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 960px) {
  .nav, .header .btn { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .header.is-open .nav { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; }
  .header.is-open .nav a { font-size: 20px; color: var(--fg); padding: 10px 0; }
  .grid12 > * { grid-column: 1 / -1; }
  .cells--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 32px; }
  .hw-figure { margin-top: 48px; }
  .contact__actions { margin-top: 40px; }
  .footer .grid12 { row-gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .pad { padding-top: 80px; padding-bottom: 88px; }
  .hero__tag { display: none; }
  .hero .wrap { padding-bottom: 56px; }
  .cells--3, .cells--4, .steps { grid-template-columns: 1fr; }
  .cell--sector { min-height: 0; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .project__body { padding: 22px; }
  .logos { padding: 24px; }
  .faq summary { font-size: 18px; }
  .contact .wrap { padding-top: 80px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project__media img { transition: none; }
}

/* --- v2 : hero en fondu, formulaire, pied de page --- */
.span5 { grid-column: span 5; } .span7 { grid-column: span 7; }

.hero__slides { position: absolute; inset: 0; }
.hero__slides .hero__img { opacity: 0; transition: opacity 1.6s ease; }
.hero__slides .hero__img.is-active { opacity: 1; }
.hero__tag { transition: opacity .4s; }

/* Contact + formulaire */
.contact .wrap { align-items: start; row-gap: 56px; }
.contact__alt { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 40px; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bg); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--bg);
  background: rgba(6, 8, 9, .06); border: 0; border-bottom: 1px solid var(--bg);
  border-radius: 0; padding: 12px 14px; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--bg) 50%), linear-gradient(135deg, var(--bg) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(6, 8, 9, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: rgba(6, 8, 9, .12); box-shadow: inset 0 -2px 0 var(--bg); }
.contact :focus-visible { outline-color: var(--bg); }
.field .is-invalid, .is-invalid { box-shadow: inset 0 -2px 0 #7f1610; }
.consent.is-invalid { box-shadow: none; color: #7f1610; }
.field--hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; white-space: nowrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bg); flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form button { border: 0; cursor: pointer; font-family: var(--sans); }
.form button:disabled { opacity: .6; cursor: wait; }
.form__status { margin: 0; font-size: 15px; font-weight: 500; }
.form__status.is-ok { padding: 10px 14px; background: var(--bg); color: var(--accent); }
.form__status.is-err { color: #7f1610; }
.form__status a { color: inherit; }

/* Pied de page */
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) max-content max-content minmax(0, 1.4fr); gap: 32px 64px; }
.footer nav a { white-space: normal; }

@media (max-width: 960px) {
  .span5, .span7 { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child, .footer__grid > address { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slides .hero__img { transition: none; }
}

/* =========================================================
   v3 : onglets verticaux, méthode au scroll, apparitions
   ========================================================= */

/* --- Apparitions au scroll --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- Onglets verticaux (accordéon) --- */
.vtabs { display: flex; gap: 8px; height: 720px; }
.vtab { position: relative; flex: 0 0 104px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: flex-grow .8s cubic-bezier(.7,0,.2,1), flex-basis .8s cubic-bezier(.7,0,.2,1), border-color .4s; }
.vtab.is-open { flex: 1 1 0; border-color: rgba(240,180,75,.45); }
.vtab__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.35); transform: scale(1.08); transition: filter .9s, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.vtab:not(.is-open):hover .vtab__img { filter: grayscale(.4) brightness(.5); }
.vtab.is-open .vtab__img { filter: none; transform: scale(1); }
.vtab::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,8,9,.97) 0%, rgba(6,8,9,.92) 45%, rgba(6,8,9,.45) 78%, rgba(6,8,9,.2) 100%); opacity: 0; transition: opacity .8s; }
.vtab.is-open::after { opacity: 1; }

.vtab__head { position: absolute; z-index: 3; top: 0; left: 0; bottom: 0; width: 104px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 0; background: none; border: 0; border-right: 1px solid transparent; color: var(--fg); cursor: pointer; text-align: left; transition: border-color .4s; }
.vtab.is-open .vtab__head { border-right-color: var(--line); }
.vtab__n { font: 500 12px var(--mono); letter-spacing: .12em; color: var(--accent); }
.vtab__title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 26px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.vtab:not(.is-open) .vtab__head:hover .vtab__title { color: var(--accent); }
.vtab__plus { position: relative; width: 22px; height: 22px; border: 1px solid var(--dim); border-radius: 50%; transition: transform .6s, border-color .3s; }
.vtab__plus::before, .vtab__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--fg); transform: translate(-50%, -50%); }
.vtab__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .3s; }
.vtab.is-open .vtab__plus { transform: rotate(180deg); border-color: var(--accent); }
.vtab.is-open .vtab__plus::after { opacity: 0; }

.vtab__body { position: absolute; z-index: 2; top: 0; bottom: 0; left: 104px; right: 0; overflow: hidden; }
.vtab__inner { height: 100%; }
.vtab__content { width: 620px; max-width: calc(100vw - 2 * var(--gutter) - 3 * 104px - 60px); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 40px 44px 56px;
  opacity: 0; transform: translateX(-24px); transition: opacity .35s, transform .35s; pointer-events: none; }
.vtab.is-open .vtab__content { opacity: 1; transform: none; transition: opacity .7s .45s, transform .9s .4s cubic-bezier(.2,.7,.2,1); pointer-events: auto; }
.vtab__content h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.vtab__lead { color: var(--muted); margin: 0 0 24px; max-width: 520px; }
.vtab__list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.vtab__list li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.vtab__list strong { font-weight: 600; }
.vtab__list span { color: var(--muted); }
.vtab__content .btn { align-self: flex-start; }
.vtab.is-open .vtab__list li { animation: liIn .6s both; }
.vtab.is-open .vtab__list li:nth-child(1) { animation-delay: .55s; } .vtab.is-open .vtab__list li:nth-child(2) { animation-delay: .62s; }
.vtab.is-open .vtab__list li:nth-child(3) { animation-delay: .69s; } .vtab.is-open .vtab__list li:nth-child(4) { animation-delay: .76s; }
.vtab.is-open .vtab__list li:nth-child(5) { animation-delay: .83s; }
@keyframes liIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Méthode : section épinglée, animée au scroll --- */
.method { --steps: 5; }
.method__track { position: relative; height: calc(var(--steps) * 85vh + 100vh); }
.method__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.method__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.method .h2 { margin-bottom: 40px; }
.mstep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mstep { border-bottom: 1px solid var(--line); }
.mstep__head { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 16px 0; background: none; border: 0; color: var(--dim); font: 600 20px/1.3 var(--sans); text-align: left; cursor: pointer; transition: color .4s; }
.mstep__head .cell__n { color: var(--dim); transition: color .4s; }
.mstep__head:hover { color: var(--fg); }
.mstep p { margin: 0; padding-left: 38px; color: var(--muted); font-size: 16px; overflow: hidden; opacity: 0; max-height: 0; transition: max-height .6s cubic-bezier(.2,.7,.2,1), padding .6s, opacity .5s; }
.mstep.is-active .mstep__head { color: var(--fg); }
.mstep.is-active .mstep__head .cell__n { color: var(--accent); }
.mstep.is-active p { opacity: 1; max-height: 120px; padding-bottom: 18px; }
.method__progress { height: 2px; background: var(--line); margin-top: 28px; }
.method__progress span { display: block; height: 100%; width: 0; background: var(--accent); }

.method__visual { position: relative; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 4 / 3; }
.room { display: block; width: 100%; height: 100%; }
.room text { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; fill: var(--muted); }
.room .l-grid path { stroke: #1b2123; stroke-width: 1; fill: none; }
.room .layer { opacity: 0; transition: opacity .9s ease; }
.room .layer.on { opacity: 1; }

.room .wire polygon, .room .wire polyline { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2s cubic-bezier(.6,0,.2,1); }
.room .l1.on .wire polygon, .room .l1.on .wire polyline { stroke-dashoffset: 0; }
.room .dims path { stroke: var(--accent); stroke-width: 1; fill: none; }
.room .dims text { fill: var(--accent); text-anchor: middle; }
.room .dims text + path + text { text-anchor: start; }
.room .flow circle { fill: var(--muted); }
.room .flow path { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
.room .scan { stroke: var(--accent); stroke-width: 1.5; opacity: .8; animation: scan 3.2s cubic-bezier(.5,0,.5,1) infinite; }
.room[data-step]:not([data-step="0"]) .scan { opacity: 0; transition: opacity .6s; }
@keyframes scan { 0% { transform: translateY(30px); } 50% { transform: translateY(540px); } 100% { transform: translateY(30px); } }
@keyframes dash { to { stroke-dashoffset: -20; } }

.room .zone { fill: rgba(240,180,75,.06); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 8 6; animation: dash 2s linear infinite; }
.room .swatches circle { stroke: var(--bg); stroke-width: 2; }

.room .beamshape { fill: url(#beam); mix-blend-mode: screen; animation: flicker 3s ease-in-out infinite; }
.room .beamshape:nth-of-type(2) { animation-delay: .6s; } .room .beamshape:nth-of-type(3) { animation-delay: 1.2s; }
.room .proj rect { fill: var(--fg); }
.room .sensors circle { fill: none; stroke: #2fd0c8; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 1.8s ease-out infinite; }
.room .sensors circle:nth-child(2) { animation-delay: .5s; } .room .sensors circle:nth-child(3) { animation-delay: 1s; }
@keyframes flicker { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

.room .content { opacity: .95; transform-origin: center; animation: drift 14s ease-in-out infinite alternate; }
.room .tint { fill: #7c5cff; mix-blend-mode: soft-light; opacity: .35; animation: hue 8s linear infinite alternate; }
@keyframes drift { from { transform: scale(1.05) translateX(-12px); } to { transform: scale(1.12) translateX(12px); } }
@keyframes hue { from { fill: #7c5cff; } to { fill: #f0b44b; } }
/* quand les contenus sont projetés, on atténue les étapes techniques */
.room[data-step="4"] .l3, .room[data-step="5"] .l3 { opacity: .25; }
.room[data-step="4"] .l2, .room[data-step="5"] .l2 { opacity: .2; }

.room .people path, .room .people circle { fill: #060809; stroke: rgba(242,244,239,.35); stroke-width: 1; }
.room .live circle { fill: var(--accent); animation: flicker 1.2s ease-in-out infinite; }
.room .live text { fill: var(--accent); }
.room .room__label { fill: var(--dim); font-size: 12px; }

/* --- Responsive --- */
@media (max-width: 1180px) {
  .vtab__list li { grid-template-columns: 180px 1fr; }
  .method__grid { gap: 40px; }
}
@media (max-width: 960px) {
  .vtabs { flex-direction: column; height: auto; gap: 8px; }
  .vtab, .vtab.is-open { flex: none; }
  .vtab__head { position: relative; width: 100%; height: 76px; flex-direction: row; justify-content: flex-start; gap: 18px; padding: 0 22px; border-right: 0; }
  .vtab.is-open .vtab__head { border-bottom: 1px solid var(--line); }
  .vtab__title { writing-mode: horizontal-tb; transform: none; font-size: 22px; }
  .vtab__plus { margin-left: auto; }
  .vtab__body { position: relative; left: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s cubic-bezier(.7,0,.2,1); }
  .vtab.is-open .vtab__body { grid-template-rows: 1fr; }
  .vtab__inner { min-height: 0; overflow: hidden; }
  .vtab__content { width: auto; max-width: none; height: auto; padding: 28px 22px 32px; }
  .vtab::after { background: linear-gradient(180deg, rgba(6,8,9,.55) 0%, rgba(6,8,9,.9) 40%, rgba(6,8,9,.97) 100%); }
  .vtab__list li { grid-template-columns: 1fr; gap: 2px; }

  .method__track { height: calc(var(--steps) * 75vh + 100vh); }
  .method__sticky { align-items: flex-start; padding-top: 92px; }
  .method__grid { grid-template-columns: 1fr; gap: 20px; }
  .method__visual { order: -1; max-height: 34vh; aspect-ratio: auto; height: 34vh; }
  .room { height: 100%; }
  .method .eyebrow { margin-bottom: 10px; }
  .method .h2 { font-size: 26px; margin-bottom: 16px; }
  .mstep__head { font-size: 16px; padding: 10px 0; gap: 12px; }
  .mstep p { padding-left: 32px; font-size: 15px; }
  .mstep.is-active p { padding-bottom: 12px; }
  .method__progress { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .vtab, .vtab__img, .vtab__content, .vtab__body { transition: none !important; }
  .vtab.is-open .vtab__list li { animation: none; }
  .room *, .room .layer { animation: none !important; transition: none !important; }
  .room .wire polygon, .room .wire polyline { stroke-dashoffset: 0; }
}
@media (min-width: 961px) and (max-width: 1280px) {
  .vtab::after { background: linear-gradient(90deg, rgba(6,8,9,.97) 0%, rgba(6,8,9,.93) 62%, rgba(6,8,9,.6) 88%, rgba(6,8,9,.4) 100%); }
}

/* =========================================================
   v4 : fond mire, onglets arrondis, carrousel, méthode fusionnée
   ========================================================= */

/* --- Fond quadrillé « mire » sur les sections sans image --- */
.bg-mire { position: relative; isolation: isolate; }
.bg-mire::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(242,244,239,.07) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(242,244,239,.07) 0 1px, transparent 1px 48px);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 85%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 85%); }
#studio.bg-mire::before { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000 10%, transparent 80%); }
#faq.bg-mire::before { -webkit-mask-image: radial-gradient(ellipse 50% 90% at 10% 60%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 50% 90% at 10% 60%, #000 10%, transparent 80%); }
.method__sticky.bg-mire::before { -webkit-mask-image: radial-gradient(ellipse 55% 75% at 25% 50%, #000 10%, transparent 85%); mask-image: radial-gradient(ellipse 55% 75% at 25% 50%, #000 10%, transparent 85%); }

/* --- Onglets verticaux : sans liseré, coins arrondis --- */
.vtabs { gap: 10px; }
.vtab, .vtab.is-open { border: 0; border-radius: 18px; }
.vtab.is-open .vtab__head { border-right-color: transparent; }
.vtab__head { border-right: 0 !important; }
.vtab:not(.is-open) { background: var(--card); }
@media (max-width: 960px) {
  .vtab, .vtab.is-open { border-radius: 14px; }
  .vtab.is-open .vtab__head { border-bottom: 0; }
}

/* --- Carrousel des réalisations --- */
.pad-top { padding-top: 112px; }
.pad-bottom { padding-bottom: 120px; }
.carousel-sec .head-row { align-items: flex-end; margin-bottom: 40px; }
.carousel-sec .head-row .eyebrow { margin-bottom: 16px; }
.carousel__ctrl { display: flex; align-items: center; gap: 12px; }
.carousel__count { font: 500 13px var(--mono); letter-spacing: .08em; color: var(--dim); margin-right: 12px; }
.carousel__count b { color: var(--fg); font-weight: 500; }
.carousel__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--dim); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.carousel__btn:disabled { opacity: .3; pointer-events: none; }

.carousel { position: relative; }
.carousel__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-drag .slide { pointer-events: none; }
.carousel__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.slide { flex: 0 0 min(560px, 84vw); scroll-snap-align: start; text-decoration: none; color: var(--fg); user-select: none; }
.slide:hover { color: var(--fg); }
.slide__media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--card); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.85); }
.slide:hover .slide__media img { transform: scale(1.07); filter: saturate(1.1); }
.slide__media::after { content: "Voir le projet"; position: absolute; left: 20px; bottom: 20px; font: 500 14px var(--sans); color: var(--bg); background: var(--accent); padding: 10px 16px; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.slide:hover .slide__media::after { opacity: 1; transform: none; }
.slide__n { position: absolute; top: 16px; left: 16px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--fg); background: rgba(6,8,9,.7); backdrop-filter: blur(6px); padding: 7px 10px; border-radius: 999px; }
.slide__meta { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.slide__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.slide__title span { color: var(--muted); font-weight: 500; }
.carousel__foot { display: flex; align-items: center; gap: 40px; margin-top: 44px; }
.carousel__bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.carousel__bar span { position: absolute; top: 0; left: 0; height: 100%; width: 20%; background: var(--accent); transition: transform .2s linear; }

/* --- Méthode fusionnée : titre fixe + savoir-faire par étape --- */
.method__sticky { align-items: flex-start; padding-top: max(110px, calc(50vh - 290px)); }
.method__grid { align-items: start; }
.mstep__body { overflow: hidden; max-height: 0; opacity: 0; padding-left: 38px; transition: max-height .6s cubic-bezier(.2,.7,.2,1), opacity .5s, padding .6s; }
.mstep__body p { margin: 0 0 12px; color: var(--muted); font-size: 16px; opacity: 1; max-height: none; padding: 0; }
.mstep.is-active .mstep__body { max-height: 180px; opacity: 1; padding-bottom: 18px; }
.mstep__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mstep__tags span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(240,180,75,.4); border-radius: 999px; padding: 6px 10px; }

@media (max-width: 960px) {
  .pad-top { padding-top: 80px; } .pad-bottom { padding-bottom: 88px; }
  .carousel-sec .head-row { flex-direction: row; align-items: flex-end; }
  .carousel__count { display: none; }
  .carousel__btn { width: 44px; height: 44px; }
  .carousel__track { gap: 16px; }
  .method__sticky { padding-top: 88px; }
  .mstep__body { padding-left: 32px; }
  .mstep__body p { font-size: 15px; margin-bottom: 10px; }
  .mstep__tags span { font-size: 10px; padding: 5px 8px; }
  .mstep.is-active .mstep__body { padding-bottom: 12px; }
}
@media (max-width: 640px) {
  .carousel__foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .carousel__foot .carousel__bar { width: 100%; }
}
@media (hover: none) { .carousel__track { cursor: auto; } }
.method__sticky.bg-mire { position: sticky; }
.method__visual { border: 0; border-radius: 18px; overflow: hidden; }
@media (max-width: 960px) { .method__visual { height: 30vh; max-height: 30vh; } }
@media (max-width: 640px) { .carousel__foot .carousel__bar { flex: none; height: 2px; } }

/* Carrousel : pas d'aimantation ni de défilement doux pendant un mouvement piloté */
.carousel__track.is-moving { scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track { scroll-behavior: auto; }

/* =========================================================
   v5 : bloc contact sombre, l'ambre en accent seulement
   ========================================================= */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 60% at 8% 15%, rgba(240,180,75,.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 100%, rgba(124,92,255,.10), transparent 70%); }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(242,244,239,.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(242,244,239,.06) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 15% 40%, #000 10%, transparent 80%);
          mask-image: radial-gradient(ellipse 50% 70% at 15% 40%, #000 10%, transparent 80%); }
.contact .eyebrow { color: var(--accent); }
.contact h2 { color: var(--fg); }
.contact h2 em { font-style: normal; color: var(--accent); }
.contact .lead { color: var(--muted); }
.contact a.plain { color: var(--fg); border-bottom-color: var(--accent); }
.contact a.plain:hover { color: var(--accent); border-bottom-width: 1px; }
.contact :focus-visible { outline-color: var(--accent); }

.form { background: var(--card); border-radius: 22px; padding: 40px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.field label { color: var(--dim); }
.field input, .field select, .field textarea {
  color: var(--fg); background-color: rgba(242,244,239,.04);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: #5f6966; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a4346; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: rgba(242,244,239,.06); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,180,75,.15); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); }
.field select option { background: var(--card); color: var(--fg); }
.field .is-invalid, .is-invalid { box-shadow: 0 0 0 3px rgba(255,107,91,.22); border-color: #ff6b5b; }
.consent { color: var(--muted); }
.consent input { accent-color: var(--accent); }
.consent.is-invalid { box-shadow: none; color: #ff8a7a; }
.form button { background: var(--accent); color: var(--bg); border-radius: 999px; padding: 16px 28px; font-weight: 600; }
.form button:hover { background: var(--fg); color: var(--bg); }
.form__status.is-ok { background: rgba(240,180,75,.12); color: var(--accent); border-radius: 10px; }
.form__status.is-err { color: #ff8a7a; }
@media (max-width: 640px) { .form { padding: 24px 20px; border-radius: 18px; } }

/* =========================================================
   v6 : méthode sans lignes horizontales, frise verticale
   ========================================================= */
.mstep-list { border-top: 0; }
.mstep { position: relative; border-bottom: 0; padding-left: 26px; }
.mstep::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(242,244,239,.10); transition: background .5s; }
.mstep:first-child::before { top: 14px; border-radius: 2px 2px 0 0; }
.mstep:last-child::before { bottom: 14px; border-radius: 0 0 2px 2px; }
.mstep.is-done::before { background: rgba(240,180,75,.45); }
.mstep.is-active::before { background: var(--accent); }
.mstep::after { content: ""; position: absolute; left: -4px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(242,244,239,.25); transition: border-color .4s, background .4s, transform .4s; }
.mstep.is-done::after { border-color: rgba(240,180,75,.6); background: rgba(240,180,75,.6); }
.mstep.is-active::after { border-color: var(--accent); background: var(--accent); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(240,180,75,.15); }
.mstep__head { padding: 14px 0; }
.mstep__body { padding-left: 38px; }
.method__progress { display: none; }
/* la mire ne passe plus sous le texte : elle reste côté visuel */
.method__sticky.bg-mire::before { -webkit-mask-image: radial-gradient(ellipse 40% 75% at 92% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 40% 75% at 92% 50%, #000 10%, transparent 80%); }
@media (max-width: 960px) {
  .mstep { padding-left: 22px; }
  .mstep::after { top: 16px; }
  .mstep__head { padding: 9px 0; }
  .mstep__body { padding-left: 32px; }
}

/* =========================================================
   v6 : pages projets et page Réalisations
   ========================================================= */
.nav a[aria-current="page"] { color: var(--fg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--dim); margin-bottom: 40px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.phero { padding-top: 72px; padding-bottom: 56px; }
.phero h1 { font-size: clamp(40px, 6vw, 88px); line-height: .96; letter-spacing: -.03em; max-width: 1100px; margin-bottom: 28px; }
.phero h1 span { color: var(--muted); font-weight: 500; }
.phero__lead { max-width: 820px; color: var(--fg); margin: 0 0 48px; }
.phero__media { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero--list { padding-bottom: 24px; }
.phero--list .phero__lead { margin-bottom: 40px; color: var(--muted); }

.pbody .wrap { align-items: start; }
.pfacts-col { position: sticky; top: 110px; }
.pfacts { margin: 0; background: var(--card); border-radius: 18px; padding: 8px 28px; }
.pfact { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pfact:last-child { border-bottom: 0; }
.pfact dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.pfact dd { margin: 0; font-size: 17px; font-weight: 500; }
.pfact--tech dd { font-weight: 400; font-size: 15px; color: var(--muted); line-height: 1.55; }
.pfact--tech dd p { margin: 0; }
.ptext > p:not(.eyebrow) { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; color: #d9ddd7; max-width: 760px; margin: 0 0 22px; }
.ptext > p:nth-of-type(2) { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; color: var(--fg); }
.pcredits { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 760px; }
.pcredits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pcredits li { display: grid; grid-template-columns: 260px 1fr; gap: 16px; font-size: 15px; }
.pcredits li span { color: var(--dim); }

.pvideo-sec { border-top: 0; }
.pvideo-wrap { padding-bottom: 96px; }
.pvideo { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--card); }
.pvideo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: filter .4s, transform .8s; }
.pvideo:hover img { filter: brightness(.85); transform: scale(1.02); }
.pvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pvideo__play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--bg); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(240,180,75,.18); transition: transform .3s, box-shadow .3s; }
.pvideo__play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.pvideo__play:hover { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(240,180,75,.14); }

.pgal { columns: 3 320px; column-gap: 20px; }
.pgal__item { display: block; break-inside: avoid; margin-bottom: 20px; border-radius: 16px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.pgal__item img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: saturate(.9); }
.pgal__item:hover img { transform: scale(1.04); filter: saturate(1.1); }

.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pnav__card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 28px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--fg); isolation: isolate; }
.pnav__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.6) brightness(.45); transition: filter .6s, transform .9s; }
.pnav__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,8,9,.9), rgba(6,8,9,.1)); }
.pnav__card:hover { color: var(--fg); }
.pnav__card:hover img { filter: none; transform: scale(1.04); }
.pnav__card--next { text-align: right; align-items: flex-end; }
.pnav__label { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.pnav__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.pnav__title em { font-style: normal; color: var(--muted); font-weight: 500; }
.pnav__all { margin: 40px 0 0; text-align: center; }

.pcta { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }
.pcta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 90% at 10% 50%, rgba(240,180,75,.14), transparent 70%); }
.pcta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 96px; padding-bottom: 96px; }
.pcta .eyebrow { color: var(--accent); }
.pcta h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: .98; letter-spacing: -.03em; }
.pcta h2 em { font-style: normal; color: var(--accent); }
.pcta__btn { border-radius: 999px; padding: 18px 30px; font-weight: 600; white-space: nowrap; }

/* page Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { font: 500 14px var(--sans); color: var(--muted); background: var(--card); border: 1px solid transparent; border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filter span { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 6px; }
.filter:hover { color: var(--fg); }
.filter.is-on { color: var(--bg); background: var(--accent); }
.filter.is-on span { color: rgba(6,8,9,.6); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.pgrid .slide { flex: none; }
.pcard[hidden] { display: none; }

/* visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(6,8,9,.94); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 84vh; border-radius: 12px; box-shadow: 0 40px 120px -40px #000; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(242,244,239,.08); color: var(--fg); border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.lightbox__close { top: 24px; right: 24px; width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.lightbox__nav { top: 50%; width: 56px; height: 56px; margin-top: -28px; font-size: 34px; line-height: 1; }
.lightbox__nav--prev { left: 24px; } .lightbox__nav--next { right: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--bg); }
.lightbox__count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font: 500 12px var(--mono); letter-spacing: .12em; color: var(--muted); margin: 0; }

@media (max-width: 960px) {
  .phero { padding-top: 48px; }
  .pfacts-col { position: static; margin-bottom: 40px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcta__inner { flex-direction: column; align-items: flex-start; }
  .pcredits li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .crumbs { margin-bottom: 28px; }
  .phero__media, .pvideo { border-radius: 16px; }
  .pnav { grid-template-columns: 1fr; }
  .pnav__card { min-height: 180px; }
  .pgrid { grid-template-columns: 1fr; gap: 40px; }
  .pvideo__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .lightbox__nav { width: 44px; height: 44px; margin-top: -22px; }
  .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
}

/* Mention sous le formulaire */
.form__legal { font-size: 13px; line-height: 1.5; color: var(--dim); margin: 18px 0 0; max-width: 560px; }
.form__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Pages légales */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.01em; margin: 56px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: #d9ddd7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--fg); text-underline-offset: 2px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; margin: 0 0 16px; }
.legal dt { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--dim); padding-top: 3px; }
.legal dd { margin: 0; font-size: 17px; color: #d9ddd7; }
.legal__date { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-top: 48px !important; }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* Menu à 6 entrées : on resserre sur les écrans intermédiaires */
.nav a, .brand { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1200px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .header .btn--ghost { padding-left: 14px; padding-right: 14px; font-size: 13px; }
}
