/* =========================================================
   ELM Design — feuille de style
   Palette tirée du logo : bleu nuit + or brossé
   ========================================================= */
:root {
  --navy-900: #071428;
  --navy-800: #0a1a33;
  --navy-700: #0f2547;
  --blue-600: #1d4f86;
  --blue-500: #2a68a8;
  --gold-300: #f4e2b4;
  --gold-400: #e3c486;
  --gold-500: #c9a35b;
  --gold-600: #a8823e;
  --text: #e8edf5;
  --muted: #9fb0c8;
  --line: rgba(227, 196, 134, .18);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --gold-grad: linear-gradient(135deg, #f6e7bf 0%, #d9b46c 45%, #b88d45 70%, #f1dca6 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-400); }

.gold-text, h1 em, .word--gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.btn--gold {
  background: var(--gold-grad); background-size: 200% 200%; color: var(--navy-900);
  box-shadow: 0 10px 30px -10px rgba(227, 196, 134, .6);
}
.btn--gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(227, 196, 134, .8); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }
.btn--sm { padding: .6em 1.2em; font-size: .85rem; }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-400); outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  padding: 18px 0; border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 20, 40, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line); padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; }
.nav__brand img { width: 48px; height: 35px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.nav__brand em { font-style: normal; color: var(--gold-400); }
.nav__links { display: flex; align-items: center; gap: 14px; font-size: .93rem; font-weight: 600; }
.nav__pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2.1rem; height: 3rem; padding: 0 1.75rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__pill a { position: relative; color: #c2cbdc; white-space: nowrap; transition: color .15s cubic-bezier(.2,0,0,1); }
.nav__pill a:hover, .nav__pill a.is-active { color: #fff; }
.nav__pill a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold-400); }
.nav__inner { position: relative; }
.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--gold-400); transition: transform .3s, opacity .3s; }

/* ---------- Accueil : encre animée ---------- */
.hero {
  --scrim-strong: rgba(7, 20, 40, .70);
  --scrim: rgba(7, 20, 40, .46);
  --scrim-soft: rgba(7, 20, 40, .12);
  --glass-fill: rgba(255, 255, 255, .08);
  --glass-border: rgba(255, 255, 255, .16);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100lvh; width: 100%; overflow: hidden; text-align: center;
  padding: 110px 20px 120px; background: var(--navy-900);
}
.hero.no-webgl {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(42, 104, 168, .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 72% 60%, rgba(201, 163, 91, .35), transparent 70%),
    var(--navy-900);
}
#fluid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(115% 95% at 50% 46%,
    var(--scrim-strong) 0%, var(--scrim-strong) 24%, var(--scrim) 52%, var(--scrim-soft) 100%);
}
.hero__col { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 52rem; }
.hero__logo {
  width: 92px; border-radius: 16px; margin-bottom: 26px;
  box-shadow: 0 0 0 1px var(--glass-border), 0 18px 50px -12px rgba(0,0,0,.7), 0 0 50px -10px rgba(227,196,134,.45);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em; margin: 0;
  border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-fill);
  padding: .45rem 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: #d6dceb;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }
.hero__title {
  margin: 1.6rem 0 0; max-width: 46rem;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; color: #f3f5fa;
}
.hero__sub { margin: 1.3rem 0 0; max-width: 40rem; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; color: #c2cbdc; }
.hero__formwrap { margin-top: 2.4rem; display: flex; justify-content: center; width: 100%; }
.hero__form {
  display: flex; align-items: center; width: 37rem; max-width: 100%; height: 4rem;
  border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-fill);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0,0,0,.05); padding: 0 .4rem 0 1.5rem;
  transition: border-color .3s, box-shadow .3s;
}
.hero__form:focus-within { border-color: rgba(227,196,134,.6); box-shadow: 0 0 0 4px rgba(227,196,134,.12); }
.hero__form input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none;
  font: inherit; font-size: 1.05rem; color: #f3f5fa;
}
.hero__form input::placeholder { color: #aab4c8; }
.hero__foot {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 1.5rem; font-size: .8rem; letter-spacing: .08em; color: #aab4c8; transition-property: opacity, transform, color;
}
.hero__foot:hover { color: var(--gold-300); }
.hero__mouse { position: relative; width: 22px; height: 36px; border: 1px solid var(--glass-border); border-radius: 20px; }
.hero__mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--gold-400); border-radius: 2px; animation: scroll 2s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Bouton pilule (blanc → or au survol) */
.btn--pill {
  height: 2.9rem; padding: 0 1.4rem; border-radius: 999px; white-space: nowrap;
  background: #fff; color: #2f2f33; font-size: .92rem; font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: background .15s cubic-bezier(.2,0,0,1), color .15s, transform .3s var(--ease);
}
.btn--pill:hover { background: var(--gold-300); color: var(--navy-900); }
.hero__form .btn--pill { height: 3.1rem; }

/* Apparitions au chargement (accueil + navigation) */
.stagger { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s cubic-bezier(.2,0,0,1), transform .7s cubic-bezier(.2,0,0,1); }
.nav.stagger-nav { opacity: 0; transform: translateY(-.75rem); transition: opacity .7s cubic-bezier(.2,0,0,1) .15s, transform .7s cubic-bezier(.2,0,0,1) .15s, background .4s, padding .4s, border-color .4s; }
.word { display: inline-block; opacity: 0; transform: translateY(var(--y, 20px)); transition-property: opacity, transform; transition-timing-function: cubic-bezier(.33, 1, .68, 1); }
.is-loaded .stagger, .is-loaded .word, .is-loaded .nav.stagger-nav { opacity: 1; transform: none; }

.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; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Bandeau ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--navy-900);
  padding: 20px 0; font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--gold-300);
}
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track i { font-style: normal; color: var(--gold-600); font-size: 1rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.section__head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold-400); }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Cartes services */
.card {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(29, 79, 134, .28), rgba(10, 26, 51, .6));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s, box-shadow .4s, transform .5s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 196, 134, .13), transparent 45%);
}
.card:hover { border-color: rgba(227, 196, 134, .45); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 24px;
  background: rgba(227, 196, 134, .08); border: 1px solid var(--line);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .9rem; display: grid; gap: 6px; }
.card li { display: flex; gap: 10px; align-items: center; }
.card li::before { content: "✦"; color: var(--gold-500); font-size: .7rem; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--navy-900); border: 1px solid var(--gold-500);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--gold-300);
  box-shadow: 0 0 0 8px var(--navy-900), 0 0 30px -5px rgba(227, 196, 134, .45);
}
.step p { color: var(--muted); font-size: .96rem; }

/* Filtres & projets */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  font-family: inherit; font-weight: 600; font-size: .9rem; padding: .6em 1.3em; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all .3s;
}
.filter:hover { color: var(--text); border-color: var(--gold-500); }
.filter.is-active { background: var(--gold-grad); color: var(--navy-900); border-color: transparent; }

.project { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--navy-900); transition: transform .5s var(--ease), opacity .4s, box-shadow .4s; }
.project.is-hidden { display: none; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__mock {
  height: 230px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--c1), var(--c2) 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mock--browser > * { width: 78%; }
.mock--browser .mock__bar { display: flex; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,.9); border-radius: 8px 8px 0 0; }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d2d6dc; }
.mock--browser .mock__hero, .mock--browser .mock__grid, .mock--browser .mock__lines { background: rgba(255,255,255,.82); }
.mock__hero { height: 70px; background-image: linear-gradient(120deg, var(--c1), var(--c2)) !important; opacity: .9; }
.mock__lines { padding: 12px; display: grid; gap: 7px; border-radius: 0 0 8px 8px; }
.mock__lines span { height: 6px; border-radius: 3px; background: rgba(0,0,0,.12); }
.mock__lines span:nth-child(2) { width: 80%; } .mock__lines span:nth-child(3) { width: 55%; }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 0 0 8px 8px; }
.mock__grid span { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(140deg, var(--c1), var(--c2)); opacity: .75; }
.mock--phone > * { width: 112px; }
.mock--phone { gap: 0; }
.mock--phone .mock__notch { height: 22px; background: #111; border-radius: 18px 18px 0 0; position: relative; }
.mock--phone .mock__notch::after { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 7px; margin-left: -18px; border-radius: 4px; background: #333; }
.mock--phone .mock__hero { height: 74px; }
.mock--phone .mock__lines { background: #fff; border-radius: 0 0 18px 18px; padding-bottom: 22px; }
.project__mock > * { transition: transform .6s var(--ease); }
.project:hover .project__mock > * { transform: translateY(-6px); }
.project__info { padding: 20px 24px 24px; }
.project__info span { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-400); font-weight: 700; }
.project__info h3 { margin: 6px 0 0; font-size: 1.45rem; }

/* À propos */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about__frame { position: relative; border-radius: 26px; padding: 14px; background: var(--gold-grad); box-shadow: var(--shadow); max-width: 440px; margin-inline: auto; }
.about__frame img { border-radius: 16px; width: 100%; }
.about__frame::after { content: ""; position: absolute; inset: -22px; border: 1px solid var(--line); border-radius: 34px; z-index: -1; }
.about__text > p:not(.eyebrow) { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.values div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.values strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--gold-300); }
.values span { font-size: .86rem; color: var(--muted); }

/* Contact */
.contact { background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(42, 104, 168, .3), transparent 70%), var(--navy-800); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact__text > p:not(.eyebrow) { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact__list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; border: 1px solid var(--line); fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a:hover { color: var(--gold-300); }
.form { padding: 38px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(29, 79, 134, .25), rgba(7, 20, 40, .7)); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--text); padding: .85em 1em; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(7, 20, 40, .7); transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(227, 196, 134, .12); outline: none; }
.form .is-invalid { border-color: #e07a7a; }
.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; text-align: center; color: var(--gold-300); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; background: var(--navy-900); text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 6px; }
.footer p { color: var(--muted); margin: 0; font-size: .92rem; }
.footer__copy { font-size: .82rem !important; margin-top: 14px !important; }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: flex-start;
    padding: 100px 34px; gap: 26px; font-size: 1.1rem; background: rgba(7, 20, 40, .97); backdrop-filter: blur(14px);
    border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__pill { position: static; transform: none; flex-direction: column; align-items: flex-start; height: auto; padding: 0; gap: 22px; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__pill a { font-size: 1.15rem; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__burger { position: relative; z-index: 2; }
  .about, .contact__inner { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 90px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--3, .steps, .values, .form__row { grid-template-columns: 1fr; }
  .form { padding: 26px; }
  .hero__form { height: 3.5rem; padding: 0 .35rem 0 1.15rem; }
  .hero__form input { font-size: .95rem; }
  .hero__form .btn--pill { height: 2.75rem; padding: 0 1rem; font-size: .85rem; }
  .hero__logo { width: 72px; }
  .hero__foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .stagger, .word, .nav.stagger-nav { opacity: 1; transform: none; }
}
.word--gold { font-style: italic; padding-right: .06em; }
