:root {
  --bg: #f4efe6;
  --ink: #1b2019;
  --muted: #5d6558;
  --forest: #16211a;
  --forest-2: #1f2e24;
  --amber: #e8a24a;
  --amber-ink: #2a1a05;
  --line: rgba(27, 32, 25, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--amber); background: var(--amber); color: var(--amber-ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232, 162, 74, .35); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); box-shadow: none; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 44px); color: #fff; transition: background .35s, color .35s, padding .35s, transform .5s, box-shadow .35s; }
.nav.solid { background: rgba(244, 239, 230, .9); color: var(--ink); backdrop-filter: blur(12px); padding-block: 10px; box-shadow: 0 1px 0 var(--line); }
.film-live .nav:not(.solid) { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 21px var(--serif); }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); }
.nav nav a:not(.btn) { text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .85; }
.nav nav a:not(.btn):hover { opacity: 1; }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- film ---------- */
#film { height: 720vh; position: relative; background: #0b1016; }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
#film-stage { position: absolute; inset: 0; overflow: hidden; background: #0b1016; }
.shot { position: absolute; inset: 0; background-size: cover; will-change: transform, opacity; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(6, 10, 14, .22), rgba(6, 10, 14, .22)), radial-gradient(ellipse at center, transparent 55%, rgba(4, 6, 12, .55) 100%), linear-gradient(to top, rgba(4, 6, 12, .55), transparent 34%); }
.bars i { position: absolute; left: 0; right: 0; height: 7vh; background: #000; transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.bars i:first-child { top: 0; transform-origin: top; }
.bars i:last-child { bottom: 0; transform-origin: bottom; }
.film-live .bars i { transform: scaleY(1); }

.cap { position: absolute; opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); pointer-events: none; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cap-hero { left: clamp(20px, 7vw, 110px); right: 20px; bottom: 13vh; max-width: 760px; }
.cap-hero h1 { font-size: clamp(40px, 6.6vw, 92px); }
.eyebrow { font: 600 12.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.lead { font-size: clamp(16px, 1.5vw, 20px); max-width: 520px; margin-top: 20px; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.scroll-hint { margin-top: 34px; font-size: 13px; opacity: .7; padding-left: 26px; position: relative; }
.scroll-hint::before { content: ""; position: absolute; left: 4px; top: 2px; width: 1px; height: 18px; background: #fff; animation: hint 1.8s infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1) translateY(18px); opacity: 0; } }

.cap-side { left: clamp(20px, 7vw, 110px); bottom: 17vh; max-width: 400px; }
.cap-side.right { left: auto; right: clamp(20px, 7vw, 110px); }
.cap-side .num { font: 600 13px var(--sans); letter-spacing: .2em; color: var(--amber); display: block; margin-bottom: 12px; }
.cap-side h2 { font-size: clamp(28px, 3.4vw, 46px); }
.cap-side p { margin-top: 12px; font-size: 17px; opacity: .9; }
.cap-end { left: 0; right: 0; bottom: 18vh; text-align: center; padding: 0 20px; }
.cap-end h2 { font-size: clamp(32px, 5vw, 68px); margin-bottom: 26px; }

.film-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.film-progress i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.clean .nav, .clean .cap, .clean .bars, .clean .film-progress, .clean .vignette { display: none !important; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.dark { background: var(--forest); color: #eef0e8; }
.section.dark .sub, .section.dark .feat span { color: #a9b3a4; }
.title { font-size: clamp(32px, 4.6vw, 60px); max-width: 16ch; }
.sub { color: var(--muted); font-size: 18px; max-width: 56ch; margin-top: 18px; }
.fine { font-size: 13px; color: #8d968a; margin-top: 18px; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* chiffres */
.stats { background: var(--forest-2); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats b { display: block; font: 600 clamp(30px, 4vw, 50px)/1 var(--serif); color: var(--amber); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: #b9c2b4; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* cartes modèles */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; perspective: 1400px; }
.card { position: relative; background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; transition: opacity .9s, transform .35s ease-out, box-shadow .35s; will-change: transform; }
.card:hover { box-shadow: 0 30px 60px -24px rgba(22, 33, 26, .35); }
.card.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--amber); color: var(--amber-ink); font: 600 12px var(--sans); padding: 5px 11px; border-radius: 999px; }
.card-art { overflow: hidden; aspect-ratio: 3 / 2; background: #16211a; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art img { transform: scale(1.07); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 30px; }
.card h3 small { font: 500 15px var(--sans); color: var(--muted); margin-left: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; padding: 0; margin: 4px 0 0; font-size: 14.5px; display: grid; gap: 6px; }
.card li::before { content: ""; display: inline-block; width: 0; height: 0; border: 5px solid transparent; border-bottom: 8px solid var(--amber); margin-right: 9px; transform: translateY(-1px); }
.price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; }
.price span { font-size: 12.5px; color: var(--muted); }
.price b { font: 600 32px/1.15 var(--serif); }
.price em { font-size: 12px; color: var(--muted); font-style: normal; }
@media (max-width: 940px) { .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* structure */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.feat { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.feat li { padding-left: 20px; border-left: 2px solid var(--amber); display: grid; gap: 3px; }
.feat b { font: 600 19px var(--serif); }
.split-art { position: relative; aspect-ratio: 1 / .92; background: radial-gradient(circle at 50% 62%, #2c4132, #16211a 70%); border-radius: 26px; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
#structure-canvas { width: 100%; height: 100%; display: block; }
.step { position: absolute; left: 20px; bottom: 16px; font: 600 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* étapes */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--amber); font: 600 17px var(--serif); font-style: normal; }
.steps h3 { font-size: 23px; margin-top: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps li:nth-child(2) { --d: .1s; } .steps li:nth-child(3) { --d: .2s; } .steps li:nth-child(4) { --d: .3s; }
.cards .card:nth-child(2) { --d: .12s; } .cards .card:nth-child(3) { --d: .24s; }
.note { margin-top: 56px; padding: 24px 28px; border-radius: 18px; background: #ebe3d3; display: grid; gap: 6px; max-width: 820px; }
.note b { font: 600 20px var(--serif); }
.note p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }

/* galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 17vw, 230px); gap: 14px; margin-top: 48px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: #0d1410; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-full { grid-column: 1 / -1; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 500; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* contact */
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.form { background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 16px var(--sans); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.form-msg { font-size: 14px; color: #2f6b3d; min-height: 1.4em; }
.form-msg.err { color: #a3352b; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.footer { background: #0e1511; color: #b9c2b4; padding: 44px 0; font-size: 14.5px; }
.footer-in { display: grid; gap: 10px; }
.footer .logo { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw path { stroke-dashoffset: 0; transition: none; }
}

/* mode de contrôle : ?static masque le film et affiche tout */
.static #film { display: none; }
.static .reveal { opacity: 1; transform: none; transition: none; }
.static .draw path { stroke-dashoffset: 0; transition: none; }
.static .nav { position: absolute; }

/* comutator de limbă */
.lang { appearance: none; -webkit-appearance: none; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 7px 12px; font: 600 13px var(--sans); cursor: pointer; opacity: .85; }
.lang:hover { opacity: 1; } .lang option { color: #1b2019; }
