/* ══════════════════════════════════════════════════════════
   Groupe Financier Millénium — refonte premium
   Palette: encre marine #0B1830 · marine #13284C · or #C9A45C
   Type: Cormorant Garamond (titres) · Outfit (corps)
   ══════════════════════════════════════════════════════════ */

:root {
  --ink: #0B1830;
  --navy: #13284C;
  --gold: #C9A45C;
  --gold-dark: #8A6D3B;
  --gold-light: #E3C98A;
  --ivory: #F7F4EE;
  --white: #FFFFFF;
  --text-soft: #5B6474;
  --text-on-dark: #C7CEDC;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --gold-grad: linear-gradient(105deg, #8A6D3B 0%, #C9A45C 45%, #E3C98A 60%, #C9A45C 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--navy);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

/* Initial states for GSAP entrances — CSS-first so refresh/resize never
   strands elements hidden (never gsap.from). Scoped to .js so content
   stays visible when JS is disabled or the CDN is blocked. */
.js .anim { opacity: 0; transform: translateY(28px); }
.js.reduced-motion .anim { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1 !important; transform: none !important; }
}

/* ── Primitives ── */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--light { background: var(--ivory); }
.section--alt { background: #EFEAE0; }
.section--dark { background: var(--ink); color: var(--text-on-dark); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 42px; height: 1px;
  background: currentColor;
  margin-left: 14px;
  vertical-align: middle;
  opacity: 0.6;
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section--dark .section__title { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-position 0.6s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--gold {
  background: var(--gold-grad);
  background-size: 200% 100%;
  background-position: 0% 0;
  color: var(--ink);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 164, 92, 0.35); }
.btn--ghost {
  border-color: rgba(201, 164, 92, 0.55);
  color: var(--gold-light);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(201, 164, 92, 0.08); transform: translateY(-2px); }
.btn--full { width: 100%; text-align: center; border: none; font-size: 1rem; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled { background: rgba(11, 24, 48, 0.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(201,164,92,0.18); }
.nav__inner {
  width: min(1280px, 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__lang {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(201,164,92,0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav__lang:hover { color: var(--gold-light); border-color: var(--gold); }
.nav__phone {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(201,164,92,0.45);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav__phone:hover { background: var(--gold); color: var(--ink); }
.nav__burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav__burger span { width: 24px; height: 2px; background: var(--gold-light); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__mobile { display: none; }

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,24,48,0.55) 0%, rgba(11,24,48,0.35) 45%, rgba(11,24,48,0.88) 100%),
    radial-gradient(80% 60% at 30% 55%, rgba(11,24,48,0.55) 0%, transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding-top: var(--nav-h);
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  margin-bottom: 26px;
}
.hero__rating strong { color: var(--white); font-weight: 600; }
.hero__stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1.06;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-on-dark);
  margin-bottom: 40px;
}
.hero__ctas { display: flex; gap: 18px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 40px;
  border: 1px solid rgba(201,164,92,0.5);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHint 2.2s infinite var(--ease);
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* ══════════ TRUST BAR ══════════ */
.trust { background: var(--navy); padding: 22px 0; }
.trust__inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
}
.trust__item { color: var(--text-on-dark); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.trust__item strong { color: var(--gold-light); font-weight: 600; }
.trust__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dark); }

/* ══════════ STATS ══════════ */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.stat { text-align: center; padding: 34px 12px; border-top: 1px solid rgba(19,40,76,0.14); }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  font-weight: 600;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat__label { font-size: 0.92rem; color: var(--text-soft); }

/* ══════════ CLIENTÈLES ══════════ */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}
.ccard {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 4px;
  border: 1px solid rgba(19,40,76,0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.ccard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,24,48,0.12);
  border-color: rgba(201,164,92,0.5);
}
.ccard__icon {
  width: 52px; height: 52px;
  color: var(--gold-dark);
  margin-bottom: 22px;
}
.ccard__icon svg { width: 100%; height: 100%; }
.ccard h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.ccard p { font-size: 0.94rem; color: var(--text-soft); margin-bottom: 18px; }
.ccard ul { list-style: none; }
.ccard li {
  font-size: 0.88rem;
  color: var(--navy);
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid rgba(19,40,76,0.07);
}
.ccard li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 8px; height: 1.5px;
  background: var(--gold);
}

/* ══════════ DISTINCTION ══════════ */
.distinct__wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.distinct__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--gold-light);
  line-height: 1.5;
  margin-bottom: 44px;
  max-width: 560px;
}
.distinct__items { display: grid; gap: 26px; }
.ditem { display: flex; gap: 22px; align-items: flex-start; }
.ditem__num {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
  border: 1px solid rgba(201,164,92,0.4);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.ditem h3 { color: var(--white); font-size: 1.06rem; font-weight: 500; margin-bottom: 6px; letter-spacing: 0.02em; }
.ditem p { font-size: 0.92rem; }
.distinct__visual img {
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  border: 1px solid rgba(201,164,92,0.25);
}

/* ══════════ IMPÉRIUM ══════════ */
.imperium {
  background: #060B16;
  color: var(--text-on-dark);
  overflow: hidden;
}
.imperium__bg { position: absolute; inset: 0; opacity: 0.5; }
.imperium__bg img { width: 100%; height: 100%; object-fit: cover; }
.imperium__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,11,22,0.92) 0%, rgba(6,11,22,0.55) 50%, rgba(6,11,22,0.95) 100%);
}
.imperium__inner { position: relative; z-index: 2; text-align: center; }
.imperium__title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.imperium__tm { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.imperium__lead { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); font-size: 1.08rem; }
.imperium__principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.iprin {
  border: 1px solid rgba(201,164,92,0.22);
  background: rgba(11,24,48,0.5);
  backdrop-filter: blur(6px);
  padding: 32px 24px;
  border-radius: 4px;
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}
.iprin:hover { border-color: rgba(201,164,92,0.65); transform: translateY(-4px); }
.iprin h3 {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.iprin p { font-size: 0.88rem; }

.imperium__process-title {
  font-family: var(--serif);
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin-bottom: 48px;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: left;
}
.timeline__line {
  position: absolute;
  top: 7px; left: 4%; right: 4%;
  height: 1px;
  background: rgba(201,164,92,0.2);
}
.timeline__line span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-grad);
}
.tstep { padding-top: 30px; position: relative; }
.tstep__dot {
  position: absolute;
  top: 0; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
}
.tstep h4 {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tstep p { font-size: 0.84rem; }
.imperium__cta { margin-top: clamp(48px, 6vw, 72px); }

/* ══════════ ÉQUIPE ══════════ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.tcard { text-align: center; }
.tcard__photo {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 1 / 1.08;
  background: #E5DFD3;
}
.tcard__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease), filter 0.6s ease;
}
.tcard:hover .tcard__photo img { transform: scale(1.045); filter: saturate(1); }
.tcard h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.tcard__role { font-size: 0.84rem; color: var(--text-soft); margin: 6px 0 10px; min-height: 2.4em; }
.tcard__ext {
  font-size: 0.82rem;
  color: var(--gold-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(138,109,59,0.35);
  padding-bottom: 2px;
}
.tcard__ext:hover { color: var(--navy); border-color: var(--navy); }

/* ══════════ AVIS ══════════ */
.reviews { text-align: center; }
.reviews__score {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(40px, 5vw, 60px);
  text-align: left;
}
.reviews__num {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reviews__stars { display: block; color: var(--gold); font-size: 1.5rem; letter-spacing: 5px; }
.reviews__count { font-size: 0.92rem; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
  margin-bottom: 48px;
}
.rcard {
  background: rgba(19,40,76,0.55);
  border: 1px solid rgba(201,164,92,0.18);
  border-radius: 4px;
  padding: 34px 30px;
  transition: border-color 0.4s ease;
}
.rcard:hover { border-color: rgba(201,164,92,0.5); }
.rcard p {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  color: #E9ECF3;
  line-height: 1.55;
  margin-bottom: 18px;
}
.rcard footer { font-size: 0.82rem; color: var(--gold-light); letter-spacing: 0.05em; }

/* ══════════ CONTACT ══════════ */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__lead { color: var(--text-soft); margin-bottom: 34px; font-size: 1.05rem; }
.contact__details { list-style: none; margin-bottom: 34px; }
.contact__details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(19,40,76,0.1);
  font-size: 0.95rem;
}
.contact__details strong { font-weight: 600; color: var(--navy); }
.contact__details a { color: var(--gold-dark); text-decoration: none; font-weight: 500; }
.contact__details a:hover { text-decoration: underline; }
.contact__map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 4px;
  filter: grayscale(0.4);
}
.contact__form {
  background: var(--white);
  border: 1px solid rgba(19,40,76,0.1);
  border-radius: 6px;
  padding: clamp(30px, 4vw, 46px);
  box-shadow: 0 30px 70px rgba(11,24,48,0.09);
}
.contact__form h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 26px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--navy);
  background: var(--ivory);
  border: 1px solid rgba(19,40,76,0.15);
  border-radius: 3px;
  padding: 13px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,164,92,0.18);
}
.contact__privacy { font-size: 0.8rem; color: var(--text-soft); text-align: center; margin-top: 16px; }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--ink); color: #8B94A6; padding: clamp(56px, 7vw, 88px) 0 40px; }
.footer__logo { height: 44px; width: auto; margin-bottom: 20px; }
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 44px;
  max-width: 480px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,164,92,0.14);
  margin-bottom: 26px;
}
.footer__cols h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer__cols p { font-size: 0.85rem; line-height: 1.7; }
.footer__cols a { color: var(--gold-light); text-decoration: none; }
.footer__legal { font-size: 0.78rem; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .imperium__principles { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline__line { top: 0; left: 7px; right: auto; bottom: 0; width: 1px; height: auto; }
  .timeline__line span { width: 100%; height: 0%; }
  .tstep { padding-top: 0; padding-left: 38px; }
  .distinct__wrap { grid-template-columns: 1fr; }
  .distinct__visual { max-width: 440px; margin-inline: auto; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; margin-bottom: 40px; }
  .contact__wrap { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__links, .nav__phone, .nav__lang { display: none; }
  .nav__burger { display: flex; }
  .nav { background: rgba(11, 24, 48, 0.94); backdrop-filter: blur(14px); }
  .nav__mobile {
    display: flex;
    flex-direction: column;
    background: var(--ink);
    padding: 12px 5vw 28px;
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease);
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    z-index: -1;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  }
  .nav__mobile.is-open { transform: translateY(0); }
  .nav__mobile a {
    color: var(--text-on-dark);
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(201,164,92,0.12);
  }
  .nav__mobile-phone { color: var(--gold-light); font-weight: 600; }
  .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); }
}

@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 8px; }
  .imperium__principles { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .footer__cols { grid-template-columns: 1fr; }
  .contact__details li { grid-template-columns: 1fr; gap: 2px; }
}

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
