:root {
  --ink: #0b0f14;
  --ink-2: #121821;
  --paper: #f4f1ea;
  --paper-2: #e9e4d8;
  --gold: #d9a520;
  --gold-soft: #f0c84a;
  --white: #ffffff;
  --muted: rgba(255,255,255,.62);
  --line: rgba(255,255,255,.22);
  --serif: "Marcellus", Georgia, serif;
  --sans: "Noto Sans Display", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh; min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 68% center;
}

.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.6) 100%); }

/* Nav */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px clamp(20px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 84px; width: auto; }
.credit { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.credit:hover { color: var(--white); }
.foot-logo { height: 110px; width: auto; }
.nav-links { display: flex; gap: clamp(20px, 3.2vw, 52px); font-family: var(--serif); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a, .nav-right a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: currentColor; transition: width .35s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 28px; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.pill { border: 1px solid var(--white); border-radius: 999px; padding: 7px 16px; font-size: 11px; letter-spacing: .16em; transition: background .3s, color .3s; }
.pill:hover { background: var(--white); color: var(--ink); }

/* Titre */
.hero-title {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1100px, 92vw); text-align: center;
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 4.2vw, 58px); line-height: 1.25; letter-spacing: .22em;
}
.hero-title span { display: block; opacity: 0; transform: translateY(14px); animation: rise 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-title span:nth-child(2) { animation-delay: .35s; }
.hero-title .hero-sub { font-size: .42em; letter-spacing: .32em; margin-top: 22px; color: var(--gold-soft); animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Badge rotatif */
.badge { position: absolute; z-index: 5; left: clamp(20px, 4vw, 56px); bottom: clamp(24px, 6vh, 64px); width: 120px; height: 120px; color: var(--gold-soft); }
.badge .ring { animation: spin 22s linear infinite; transform-origin: 50% 50%; }
.badge text { font-family: var(--serif); font-size: 9.5px; letter-spacing: .2em; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Flèche scroll */
.scroll-cue { position: absolute; z-index: 5; right: clamp(40px, 9vw, 110px); bottom: 0; width: 24px; height: 18vh; min-height: 110px; display: flex; justify-content: center; }
.scroll-cue svg { width: 24px; height: 100%; overflow: visible; }
.scroll-cue line { stroke: var(--gold-soft); stroke-width: 1; stroke-dasharray: 200; animation: draw 2.4s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 200; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }

/* ================= SECTIONS ================= */
section { padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 96px); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: #8a6f3a; }
.h2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; margin-top: 18px; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.75; font-weight: 300; color: #2c3440; max-width: 62ch; margin-top: 28px; }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 120px); align-items: start; max-width: 1280px; margin: 0 auto; }
.intro .lead:first-child { margin-top: 0; }
.intro-title { font-size: clamp(22px, 2.3vw, 32px); }
.intro-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; margin-top: 40px; }
.intro-sign { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.intro-sign div { border-top: 1px solid #cfc6b2; padding-top: 16px; min-width: 150px; }
.intro-sign strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.intro-sign span { font-size: 15px; color: #5a6270; }

/* Services */
.services { background: var(--ink); color: var(--white); }
.services { padding-bottom: clamp(56px, 7vw, 96px); }
.band-img { display: block; width: 100%; aspect-ratio: 1344 / 401; min-height: 240px; object-fit: cover; object-position: center 40%; background: var(--ink); }
.services .eyebrow { color: var(--gold); }
.services-head { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.services-head p { font-size: 18px; max-width: 42ch; color: var(--muted); font-weight: 300; line-height: 1.7; }
.grid { max-width: 1280px; margin: 72px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 36px 48px; position: relative; transition: background .4s; min-height: 300px; display: flex; flex-direction: column; }
.card:hover { background: var(--ink-2); }
.card-num { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.card-icon { width: 40px; height: 40px; margin: 34px 0 26px; color: var(--gold-soft); }
.card h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: 19px; }
.card p { margin-top: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 17px; }

/* Clients */
.clients { background: var(--paper-2); text-align: center; }
.clients .h2 { margin-left: auto; margin-right: auto; }
.logos { max-width: 1180px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #cfc6b2; }
.logo { padding: 38px 16px; border-bottom: 1px solid #cfc6b2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ref + .ref .logo { border-left: 1px solid #cfc6b2; }
.ref { display: flex; flex-direction: column; }
.ref img { width: calc(100% - 4px); margin: 4px 2px 0; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(.75) contrast(1.02); transition: filter .5s ease; }
.ref:hover img { filter: none; }
.logo strong { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: .1em; text-transform: uppercase; }
.logo span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #6f6656; }
.clients-note { margin-top: 26px; font-size: 13px; color: #6f6656; }

/* Engagements */
.commit { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 64px; }
.commit h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; padding-top: 20px; border-top: 1px solid var(--gold); }
.commit p { font-size: 18px; margin-top: 14px; line-height: 1.75; color: #3a424e; font-weight: 300; }
.commit-wrap { max-width: 1280px; margin: 0 auto; }
#engagements { --overlap: clamp(90px, 9vw, 130px); padding-bottom: 0; background: linear-gradient(180deg, var(--paper) 0 calc(100% - var(--overlap)), var(--ink) calc(100% - var(--overlap)) 100%); }
.commit > div { display: flex; flex-direction: column; }
.commit p { margin-bottom: 36px; }
.commit-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; margin-top: auto; }

/* CTA */
.cta { background: var(--ink); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta .eyebrow { color: var(--gold); }
.cta .h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta p { font-size: 18px; color: var(--muted); margin: 24px auto 0; max-width: 52ch; line-height: 1.7; font-weight: 300; }
.cta-actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; padding: 16px 30px; border-radius: 999px; border: 1px solid var(--gold); transition: background .3s, color .3s; }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-soft); }
.btn-ghost:hover { background: var(--gold); color: var(--ink); }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; border-color: #25D366; color: var(--white); }
.btn-wa svg { width: 18px; height: 18px; color: #25D366; transition: color .3s; }
.btn-wa:hover { background: #25D366; color: var(--white); }
.btn-wa:hover svg { color: var(--white); }

.whatsapp { position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 100; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .25s ease, background .25s ease; }
.whatsapp svg { width: 32px; height: 32px; }
.whatsapp:hover { transform: scale(1.08); background: #1ebe5a; }
footer { background: #07090c; color: rgba(255,255,255,.55); padding: 48px clamp(20px, 6vw, 96px); font-size: 13px; }
.foot { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.legal { margin-top: 28px; max-width: 1280px; margin-left: auto; margin-right: auto; font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos { row-gap: 32px; }
  .ref:nth-child(4) .logo { border-left: 0; }
}
@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-right .hide-sm { display: none; }
    .nav-right { gap: 16px; }
  .intro, .commit { grid-template-columns: 1fr; }
  .badge { width: 92px; height: 92px; }
  .hero-title { letter-spacing: .14em; }
  .brand-logo { height: 60px; }
  .pill { padding: 6px 12px; font-size: 10px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: 1fr 1fr; }
  .ref + .ref .logo { border-left: 0; }
  .ref:nth-child(even) .logo { border-left: 1px solid #cfc6b2; }
  .ref:last-child { grid-column: 1 / -1; }
  .ref:last-child img { aspect-ratio: 2 / 1; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .hero-title span { opacity: 1; transform: none; }
}

/* ================= PAGES INTÉRIEURES ================= */
.page-head { background: var(--ink); color: var(--white); }
.page-head .nav { position: relative; }
.page-title { padding: clamp(40px, 7vw, 90px) clamp(20px, 6vw, 96px) clamp(56px, 8vw, 100px); text-align: center; }
.page-title .eyebrow { color: var(--gold); }
.page-title .h2 { margin-top: 16px; }
.doc { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) 20px; font-size: 17px; line-height: 1.8; color: #2c3440; font-weight: 300; }
.doc h2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(19px, 2vw, 23px); color: var(--ink); margin: 56px 0 18px; padding-top: 22px; border-top: 1px solid var(--gold); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul, .doc dl { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { font-weight: 500; color: var(--ink); }
.doc a { color: #8a6f3a; text-decoration: underline; text-underline-offset: 3px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; }
.doc dt { font-weight: 500; color: var(--ink); }
.doc .updated { margin-top: 56px; font-size: 14px; color: #6f6656; }
.todo { background: #ffe8a3; color: #6b4b00; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.foot a:not(.credit) { text-decoration: underline; text-underline-offset: 3px; }
.foot a:not(.credit):hover { color: var(--white); }
@media (max-width: 560px) {
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 12px; }
}
