/* CAPUS Production : styles partagés par toutes les pages */
:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --text: #ede8df;
  --muted: rgba(237, 232, 223, .62);
  --line: rgba(237, 232, 223, .14);
  --gold: #c8a46a;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Montserrat', sans-serif;
  --pad: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased }
body { font-family: var(--sans); font-weight: 300; line-height: 1.75; overflow-x: clip }
img, video { max-width: 100%; display: block }
a { color: var(--text); text-decoration: none; transition: color .3s }
a:hover { color: var(--gold) }
::selection { background: var(--gold); color: var(--bg) }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad) }
.section { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px) }
.section + .section { padding-top: 0 }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* Typographie */
.eyebrow { display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .42em; color: var(--gold); font-weight: 500; margin: 0 0 22px; text-transform: uppercase; line-height: 1.4 }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); flex: none }
.h2 { margin: 0 0 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02 }
.h2 em, .h3 em { color: var(--gold) }
.h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1 }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 62ch; margin: 0 0 20px }
.text { color: var(--muted); max-width: 62ch; margin: 0 0 16px }
.text strong { color: var(--text); font-weight: 500 }

/* Titre de page (pages internes) */
.page-title { padding-top: clamp(150px, 22vh, 240px); padding-bottom: clamp(56px, 7vw, 96px) }
.page-title h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 10vw, 160px); line-height: .95; display: flex; flex-wrap: wrap; column-gap: .22em }
.page-title h1 > span { display: inline-block; overflow: hidden; padding-bottom: .08em }
.page-title h1 > span > span { display: inline-block }
.page-title h1 em { color: var(--gold) }
.page-title .lead { margin-top: 32px }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 17px 28px; border: 1px solid var(--gold); color: var(--gold); background: none; font: 500 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; text-align: center; cursor: pointer; transition: background .4s, color .4s }
.btn:hover { background: var(--gold); color: var(--bg) }
.btn--solid { background: var(--gold); color: var(--bg) }
.btn--solid:hover { background: var(--text); border-color: var(--text) }
.link-arrow { display: inline-flex; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--gold) }
.link-arrow::after { content: "→"; transition: transform .4s var(--ease) }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(6px) }

/* Médias */
.media { position: relative; overflow: hidden; background: var(--bg-2) }
.media img, .media video { width: 100%; height: 100%; object-fit: cover }
.media--tall { aspect-ratio: 4 / 5 }
.media--wide { aspect-ratio: 16 / 9 }
.media--photo { aspect-ratio: 3 / 2 }
[data-parallax] { will-change: transform }
.media > [data-parallax] { height: 115%; margin-top: -7.5% }

/* Deux colonnes texte + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center }
.split--reverse > :first-child { order: 2 }
@media (max-width: 900px) { .split { grid-template-columns: 1fr } .split--reverse > :first-child { order: 0 } }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.4vw, 36px) }
.card { display: block; color: var(--text) }
.card .media { aspect-ratio: 4 / 5; margin-bottom: 26px }
.card .media img { transform: scale(1.01); filter: brightness(.85); transition: transform 1.8s var(--ease), filter 1s }
.card:hover .media img { transform: scale(1.07); filter: brightness(1) }
.card .h3 { position: relative; display: inline-block; padding-bottom: 8px }
.card .h3::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) }
.card:hover .h3::after { transform: scaleX(1) }
.card:hover { color: var(--text) }
.card-num { font-size: 11px; letter-spacing: .3em; color: var(--gold); font-weight: 500; display: block; margin-bottom: 10px }

/* Liste numérotée (prestations, thèmes) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line) }
.row { display: grid; grid-template-columns: 70px 1fr 1.4fr; gap: 24px; align-items: baseline; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); transition: padding-left .6s var(--ease) }
.row:hover { padding-left: 14px }
.row .card-num { margin: 0 }
.row .h3 { margin: 0 }
.row p { margin: 0; color: var(--muted) }
.rows--compact .row { grid-template-columns: 50px 1fr; row-gap: 6px }
.rows--compact .row p { grid-column: 2 }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px } }

/* Bandeau d'appel */
.cta-band { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.cta-band .h2 { max-width: 18ch; margin-left: auto; margin-right: auto }

/* Ligne de temps (Votre projet) */
.timeline { position: relative; padding-left: clamp(36px, 6vw, 96px) }
.timeline::before, .timeline-fill { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line) }
.timeline-fill { background: var(--gold); bottom: auto; height: 0 }
.step { position: relative; padding-bottom: clamp(64px, 8vw, 120px) }
.step:last-child { padding-bottom: 0 }
.step::before { content: ""; position: absolute; left: calc(-1 * clamp(36px, 6vw, 96px) + 1px); top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); transition: background .6s }
.step.is-in::before { background: var(--gold) }
.step-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; max-width: 70ch }
.step-list li { color: var(--muted); padding-left: 22px; position: relative }
.step-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--gold) }
.step-list strong { color: var(--text); font-weight: 500 }

/* Formulaire */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px }
.field { display: grid; gap: 10px }
.field--full { grid-column: 1 / -1 }
.field label, .field legend { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 0 }
.field input, .field textarea { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 300 16px var(--sans); padding: 10px 0; transition: border-color .4s; border-radius: 0 }
.field textarea { min-height: 140px; resize: vertical }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold) }
fieldset.field { border: 0; margin: 0; padding: 0 }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px }
.chip input { position: absolute; opacity: 0; pointer-events: none }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; transition: border-color .3s, background .3s, color .3s }
.chip input:checked + span { border-color: var(--gold); background: var(--gold); color: var(--bg) }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px }
.form-note { font-size: 13px; color: var(--muted); margin: 0 }
@media (max-width: 700px) { .form { grid-template-columns: 1fr } }

/* Texte long (mentions légales) */
.prose { max-width: 78ch; color: var(--muted) }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); color: var(--text); margin: 56px 0 16px; line-height: 1.15 }
.prose h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 36px 0 12px }
.prose ul { padding-left: 20px }
.prose a { color: var(--gold) }

/* Apparition au scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease) }
[data-reveal].is-in { opacity: 1; transform: none }
[data-hero-fade], [data-hero-word] { opacity: 0 }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .5s, backdrop-filter .5s, border-color .5s; border-bottom: 1px solid transparent }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; transition: height .5s var(--ease) }
.site-header.is-scrolled { background: rgba(12, 11, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line) }
.site-header.is-scrolled .wrap { height: 68px }
.logo { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; font-weight: 500; line-height: 1; position: relative; z-index: 2 }
.logo em { color: var(--gold); font-weight: 400 }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px) }
.nav a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; white-space: nowrap }
.logo { white-space: nowrap }
.nav a[aria-current="page"] { color: var(--gold) }
.nav .btn { padding: 12px 18px; letter-spacing: .2em }
.nav-group { position: relative }
.nav-group > a::after { content: " ▾"; font-size: 9px }
.nav-sub { position: absolute; top: 100%; left: -18px; padding: 18px; min-width: 220px; display: grid; gap: 12px; background: rgba(12, 11, 10, .94); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease), visibility .4s }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer }
.menu-toggle span { display: block; width: 26px; height: 1px; background: var(--text); margin: 7px 0; transition: transform .5s var(--ease) }

@media (max-width: 1340px) {
  .menu-toggle { display: block; position: relative; z-index: 2 }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: var(--bg); clip-path: circle(0 at calc(100% - 44px) 48px); visibility: hidden; transition: clip-path .8s var(--ease), visibility .8s }
  .nav a { font-size: 13px }
  .nav-group > a::after { content: "" }
  .nav-sub { position: static; opacity: 1; visibility: inherit; transform: none; background: none; border: 0; padding: 12px 0 0; min-width: 0; text-align: center }
  .nav-sub a { font-size: 11px; color: var(--muted) }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 48px); visibility: visible }
  .menu-open { overflow: hidden }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg) }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg) }
}

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 110px) 0 32px }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px }
.footer-title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1; margin: 0 0 20px }
.footer-title em { color: var(--gold) }
.footer-label { font-size: 11px; letter-spacing: .3em; color: var(--gold); font-weight: 500; margin: 0 0 18px }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5 }
.footer-list a { color: var(--muted) }
.footer-list a:hover { color: var(--gold) }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: .14em; color: var(--muted) }
.footer-bottom a { color: var(--muted) }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr } .footer-grid > :first-child { grid-column: 1 / -1 } }

/* Curseur personnalisé */
.cursor { position: fixed; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); pointer-events: none; z-index: 200; opacity: 0; transition: width .4s var(--ease), height .4s var(--ease), left .4s var(--ease), top .4s var(--ease), background .4s, opacity .3s; mix-blend-mode: difference }
.cursor.is-hover { width: 44px; height: 44px; left: -22px; top: -22px; background: var(--text) }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important }
  [data-reveal], [data-hero-fade], [data-hero-word] { opacity: 1; transform: none }
}
