/* Présentation uniquement (style « plan technique »). La logique vit dans les fichiers PHP. */
:root { --draw: #bdbdbd; --sheet-pad: clamp(20px, 4.5vw, 64px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/26px var(--font-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: var(--border-bold) solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--accent); color: var(--on-accent); padding: var(--space-2) var(--space-4); z-index: 10; }
.skip:focus { top: var(--space-4); }

.wrap { width: calc(100% - 32px); max-width: 1200px; margin-inline: auto; }

/* Sections : séparées par l'espace, sans cadre */
main > section > .wrap { padding-block: var(--space-24); }
@media (max-width: 600px) { main > section > .wrap { padding-block: var(--space-16); } }

/* Typographie */
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
h1, .display-l, .display-xl { font-weight: 700; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.05; letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
h3 { font-weight: 700; font-size: 20px; line-height: 26px; }
.lead { margin: 0; max-width: 58ch; font-size: 18px; line-height: 29px; color: var(--ink-muted); }
.label { margin: 0; font: 600 11px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tagline { margin: 0; font-size: 13px; line-height: 20px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start; margin: 0; font: 600 11px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; flex: none; width: 10px; height: 6px; background: var(--accent); }
.prose { max-width: 68ch; }
.prose p, .prose ul { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.prose h2 { font-size: 24px; line-height: 30px; margin: var(--space-12) 0 var(--space-4); color: var(--ink); }
.prose h3 { margin: var(--space-8) 0 var(--space-3); }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--ink); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-6);
  font: 600 12px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: var(--border-hair) solid transparent; border-radius: var(--radius-0); transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary, .cta-band .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .cta-band .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: var(--border-hair) solid #1c1c1c; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 64px; }
.brand img, .brand .logo { display: block; width: 120px; height: auto; }
/* Logo : les carrés du VU-mètre s'allument en vert par moments, comme sous l'effet du son */
.logo-letter, .logo-seg { fill: var(--ink); }
.logo-seg { transition: fill .07s linear; }
.logo-seg.is-on { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: var(--space-8); }
.site-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font: 500 14px/1 var(--font-sans); text-decoration: none; color: var(--ink-muted); padding: var(--space-2) 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); }
.site-nav ul a[aria-current="page"]::before, .site-nav ul a.is-section::before { content: ""; display: inline-block; width: 8px; height: 5px; margin: 0 6px 2px 0; background: var(--accent); }
.site-nav ul a.is-section { color: var(--ink); }
/* Sous-menu : déroulant au survol ou au focus clavier (desktop), intégré en retrait (mobile) */
.has-sub { position: relative; }
.site-nav .sub-nav { position: absolute; left: calc(-1 * var(--space-4)); top: 100%; min-width: 260px; display: flex; flex-direction: column; gap: 0;
  padding: var(--space-3) var(--space-4); background: var(--lab-black); border: var(--border-hair) solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-nav a { display: block; padding: var(--space-2) 0; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4); background: transparent; color: var(--ink); border: var(--border-hair) solid var(--line-strong); font: 600 11px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--lab-black); border-bottom: var(--border-hair) solid #1c1c1c; flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-6); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: var(--space-3) 0; font-size: 16px; }
  .site-nav .sub-nav { position: static; min-width: 0; padding: 0 0 var(--space-2) var(--space-4); border: 0; border-left: var(--border-hair) solid var(--line);
    opacity: 1; visibility: visible; transform: none; transition: none; }
  .site-nav .sub-nav a { font-size: 15px; }
}

/* Hero : le « projecteur de poursuite » sur la table à dessin */
/* Fond quadrillé (papier millimétré de plan), estompé sur les bords, sans lueur */
.hero, .page-hero, .cta-band, .portrait { position: relative; isolation: isolate; background: var(--surface); }
.hero::before, .page-hero::before, .cta-band::before, .portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size); background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .wrap { display: grid; justify-items: center; gap: var(--space-6); text-align: center; padding-bottom: var(--space-12); }
.hero .eyebrow { justify-self: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-inline: auto; }
.hero .actions { justify-content: center; }
.hero-drawing { width: 100%; max-width: 1000px; margin-top: var(--space-12); }
.page-hero .wrap { display: grid; gap: var(--space-4); padding-block: var(--space-16); }

/* Dessins */
.drawing { width: 100%; height: auto; display: block; overflow: visible; }
.d-line { fill: none; stroke: var(--draw); stroke-width: 1.1; }
.d-dash { stroke: var(--line-strong); }
.d-beam path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 5; animation: beam 1.2s ease-out both; }
.d-beam path:nth-child(2) { animation-delay: .15s; } .d-beam path:nth-child(3) { animation-delay: .3s; } .d-beam path:nth-child(4) { animation-delay: .45s; } .d-beam path:nth-child(5) { animation-delay: .6s; }
@keyframes beam { from { opacity: 0; } to { opacity: .85; } }
.d-dim line, .d-note line { stroke: var(--ink-muted); stroke-width: .8; }
.d-dim text, .d-note text { fill: var(--ink-muted); font: 600 10px var(--font-sans); letter-spacing: .15em; }
.d-note circle, .d-beam-dot circle { fill: var(--accent); }
.d-seat circle { fill: var(--line-strong); }
.d-seg { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.d-seg-on { fill: var(--ink); }
.d-seg-top { fill: var(--accent); }
.art-tile { border: var(--border-hair) solid var(--line); padding: var(--space-8); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; }
.art-tile-sm { width: 100%; max-width: 280px; padding: var(--space-6); justify-self: end; }
@media (max-width: 860px) { .art-tile-sm { justify-self: start; } }

/* VU-mètre */
.meter { display: inline-flex; align-items: flex-end; gap: var(--meter-gap); }
.meter-col { display: flex; flex-direction: column; gap: var(--meter-gap); }
.meter-col i { display: block; width: var(--meter-seg-w); height: var(--meter-seg-h); box-shadow: inset 0 0 0 var(--border-hair) var(--line-strong); }
.meter-col.is-on i { background: var(--ink); box-shadow: none; }
.meter-col.is-current i { background: var(--accent); box-shadow: none; }
.meter-lg { --meter-seg-w: 48px; --meter-seg-h: 30px; --meter-gap: 4px; }

/* Sections */
.section-head { display: grid; gap: var(--space-4); max-width: 720px; margin-bottom: var(--space-12); }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-self: center; }

/* Prestations */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.services-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .services-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .services, .services-3 { grid-template-columns: 1fr; } }
.services-gap { height: var(--space-6); }
/* Texte réservé aux lecteurs d'écran et aux moteurs (titre de section invisible) */
.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; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }
.service { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-6); border: var(--border-hair) solid var(--line); text-decoration: none; transition: border-color .15s; }
.service:hover { color: inherit; border-color: var(--line-strong); }
.service .art { position: relative; background: var(--surface); aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; }
/* Le SVG s'inscrit entier dans le cadre 16:10 (en grille, height:100% ne se résout pas) */
.service .art .drawing { position: absolute; top: var(--space-6); left: var(--space-6); width: calc(100% - 2 * var(--space-6)); height: calc(100% - 2 * var(--space-6)); }
.service p { margin: 0; color: var(--ink-muted); }
.service .more, .ref .more { font: 600 11px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.service .more::after, .ref .more::after { content: " →"; color: var(--accent); }

/* Split texte + dessin */
.two-col, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.two-col { align-items: start; }
@media (max-width: 860px) { .two-col, .split { grid-template-columns: 1fr; gap: var(--space-8); } }
.split-copy { display: grid; gap: var(--space-6); align-content: start; }

/* Listes cochées */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.checks li { display: grid; grid-template-columns: 14px 1fr; gap: var(--space-3); color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.checks li::before { content: ""; width: 12px; height: 7px; margin-top: 9px; background: var(--accent); }
.checks strong { font-weight: 600; color: var(--ink); }
/* Liste « ce que vous n'avez plus à gérer » : trait barré gris au lieu du repère lime */
.checks-off li::before { height: 1px; margin-top: 12px; background: var(--line-strong); }
.checks-off li { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.gain-col { display: grid; gap: var(--space-6); align-content: start; }
.gain-col h3 { font-size: 20px; line-height: 26px; }

/* Références et livrables */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }
.ref { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border: var(--border-hair) solid var(--line); min-height: 170px; }
.refs-more { margin: var(--space-8) 0 0; max-width: 70ch; }
/* Référence phare : pleine largeur, avec la liste de ses productions */
.ref-featured { grid-column: 1 / -1; min-height: 0; }
.ref-list { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2); color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.ref p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.ref.is-todo { opacity: .6; }
.tag { display: inline-flex; align-items: center; justify-self: start; height: 22px; padding: 0 var(--space-2); font: 600 10px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; border: var(--border-hair) solid var(--line-strong); color: var(--ink-muted); }
.tag-accent { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.shot { margin: 0; display: grid; gap: var(--space-2); }
.shot .frame { aspect-ratio: 16 / 9; max-width: 100%; border: var(--border-hair) solid var(--line); display: grid; place-items: center; color: var(--ink-muted); font-size: 14px; text-align: center; padding: var(--space-4); }
.shot figcaption { font: 600 10px/16px var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }

/* Portrait */
.portrait picture { display: block; }
/* Buste détouré posé sur la grille (derrière lui) ; le bas et les côtés se fondent dans le noir
   via un voile AU-DESSUS de la photo et de la grille, pour que la grille ne transparaisse jamais */
.portrait img { display: block; width: 100%; height: auto; }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 58%, var(--surface) 97%),
              linear-gradient(to right, var(--surface), transparent 9%, transparent 91%, var(--surface)); }

/* Appel final */
.cta-band .wrap { display: grid; justify-items: center; gap: var(--space-6); text-align: center; }
.cta-band h2 { max-width: 20ch; }
.cta-band p:not(.eyebrow) { margin: var(--space-4) auto 0; max-width: 52ch; color: var(--ink-muted); font-size: 18px; line-height: 29px; }

/* Formulaire */
.form { display: grid; gap: var(--space-6); max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font: 600 11px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.field .opt { letter-spacing: .05em; text-transform: none; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: transparent; border: 0; border-bottom: var(--border-hair) solid var(--line-strong); border-radius: var(--radius-0); padding: var(--space-2) 0; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #6b6b6b; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.choice { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border: var(--border-hair) solid var(--line); cursor: pointer; font-size: 14px; }
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { accent-color: var(--lab-lime); width: 16px; height: 16px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 26px; margin: 0; font-weight: 600; }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: var(--danger); }
.contact-aside { display: grid; gap: var(--space-6); align-content: start; padding: var(--space-6); border: var(--border-hair) solid var(--line); }
.contact-aside p { margin: 0; }

/* Pied de page */
.site-footer { border-top: var(--border-hair) solid #1c1c1c; padding-block: var(--space-16) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); }
.footer-grid p { margin: 0 0 var(--space-2); font-size: 14px; color: var(--ink-muted); }
.footer-grid .label { margin-bottom: var(--space-3); color: var(--ink); }
.footer-grid a { text-decoration: none; }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { width: 150px; }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: var(--border-hair) solid #1c1c1c; }
.footer-bottom p { margin: 0; font-size: 12px; color: var(--ink-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Contenu à compléter (retirer avant la mise en ligne) */
.todo { outline: 1px dashed var(--danger); outline-offset: 2px; }
.cta-band .eyebrow { justify-self: center; }

/* Comparateur plan 3D / rendu (section x-comparaison) : le plan (avant) recouvre le rendu jusqu'au curseur */
.cmp-list { display: grid; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1100px) { .cmp-list { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); } }
.cmp { --pos: 50%; margin: 0; }
.cmp-stage { position: relative; overflow: hidden; background: #111; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp-stage picture, .cmp-img { display: block; width: 100%; height: auto; }
.cmp-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-avant .cmp-img { height: 100%; object-fit: cover; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.cmp-handle { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.cmp-handle::before, .cmp-handle::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.cmp-handle::before { left: 7px; border-right-color: var(--on-accent); }
.cmp-handle::after { right: 7px; border-left-color: var(--on-accent); }
.cmp-tag { position: absolute; top: var(--space-3); pointer-events: none; }
.cmp-tag-avant { left: var(--space-3); background: rgba(0, 0, 0, .72); color: #fff; border-color: transparent; }
.cmp-tag-apres { right: var(--space-3); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.cmp-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.cmp:has(.cmp-range:focus-visible) .cmp-handle { outline: 2px solid #fff; outline-offset: 3px; }
.cmp figcaption { margin-top: var(--space-3); font: 600 15px/1.3 var(--font-sans); }

/* Accueil : vidéos de rendu 3D en fond de l'en-tête (x-accueil › videos), voile sombre pour la lisibilité */
.hero-video { display: grid; align-items: center; min-height: min(88svh, 860px); overflow: hidden; background: #000; }
.hero-video::before { display: none; }
.hero-video .wrap { padding-block: var(--space-24); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-film { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .78) 75%), linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .1) 40%, #000); }
.hero-video .lead { color: #d4d4d4; }
