/* ============================================================
   PRIME NEXUS — style.css
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --navy:   #0A1F44;
  --navy2:  #0D2B5E;
  --gold:   #C9A84C;
  --gold2:  #E8C46A;
  --cream:  #F7F4EE;
  --white:  #FFFFFF;
  --g1:     #1C1C1C;
  --g2:     #3A3A3A;
  --g3:     #6B6B6B;
  --g4:     #B0B0B0;
  --g5:     #E8E5DF;
  --ff-d: 'Cormorant Garamond', Georgia, serif;
  --ff-b: 'DM Sans', sans-serif;
  --ff-m: 'DM Mono', monospace;
  --radius: 0;
  --transition: .25s ease;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-b); color: var(--g1); background: var(--cream); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--ff-b); cursor: pointer; }

/* i18n — show only current lang spans */
[data-fr], [data-en] { display: none; }
body.fr [data-fr],
body.en [data-en] { display: inline; }
/* block-level i18n */
body.fr p [data-fr], body.fr h1 [data-fr], body.fr h2 [data-fr],
body.en p [data-en], body.en h1 [data-en], body.en h2 [data-en] { display: block; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--ff-m); font-size: .65rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--ff-d); font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.02em; color: var(--navy);
}
.section-title em { color: var(--gold); font-style: italic; }
.section-sub {
  font-size: .95rem; font-weight: 300; line-height: 1.78;
  color: var(--g3); max-width: 520px; margin-top: .9rem;
}
.section-header {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: 2rem; margin-bottom: 3.5rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary, .btn-outline {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 2rem; transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── NAV ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 70px;
  background: rgba(10,31,68,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,.18);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.3); }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-d); font-weight: 600; font-size: 1rem; color: var(--navy);
}
.nav-logo-text {
  font-family: var(--ff-d); font-weight: 600; font-size: 1.2rem; color: var(--white);
}
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.65); transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.lang-toggle { display: flex; gap: 2px; }
.lang-btn {
  background: none; border: 1px solid rgba(201,168,76,.3); color: rgba(255,255,255,.5);
  font-family: var(--ff-m); font-size: .65rem; letter-spacing: .1em;
  padding: .3rem .6rem; transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}
.nav-cta {
  background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1.1rem; transition: background var(--transition);
  display: inline-block;
}
.nav-cta:hover { background: var(--gold2); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 190;
  background: var(--navy2); border-top: 1px solid rgba(201,168,76,.15);
  padding: 1.5rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.7); display: block; padding: .4rem 0;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: 70px;
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 130px clamp(1.5rem, 6vw, 5rem) 80px;
  position: relative; overflow: hidden; gap: 3rem;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,1) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 80% at 80% 50%, rgba(201,168,76,.05) 0%, transparent 70%);
}
.hero-h1 {
  font-family: var(--ff-d); font-weight: 300;
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 1.1; color: var(--white); margin-bottom: 1.5rem;
  letter-spacing: -.02em; position: relative; z-index: 1;
}
.hero-h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.72;
  color: rgba(255,255,255,.58); max-width: 440px; margin-bottom: 2.5rem;
  position: relative; z-index: 1;
}
.hero-actions {
  display: flex; gap: .9rem; flex-wrap: wrap; position: relative; z-index: 1;
}
.hero-right { display: flex; justify-content: flex-end; align-items: center; position: relative; z-index: 1; }
.hero-card-stack {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 400px;
}
.hero-stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 1.3rem;
  backdrop-filter: blur(4px);
  transition: border-color var(--transition);
}
.hero-stat-card:hover { border-color: rgba(201,168,76,.25); }
.hero-stat-card.gold-border { border-color: rgba(201,168,76,.35); }
.hero-stat-num {
  font-family: var(--ff-d); font-size: 2.3rem; font-weight: 300;
  color: var(--gold); line-height: 1; margin-bottom: .35rem;
}
.hero-stat-label {
  font-size: .68rem; font-weight: 400; color: rgba(255,255,255,.45); line-height: 1.5;
}
.hero-location {
  grid-column: 1 / -1;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.22);
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: .9rem;
}
.hero-location-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  flex-shrink: 0; box-shadow: 0 0 0 4px rgba(201,168,76,.18);
  animation: locpulse 2s ease infinite;
}
@keyframes locpulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(201,168,76,.18); }
  50%      { box-shadow: 0 0 0 9px rgba(201,168,76,.04); }
}
.hero-location-text { font-family: var(--ff-m); font-size: .65rem; color: rgba(255,255,255,.5); letter-spacing: .05em; }
.hero-location-text strong { display: block; color: var(--gold2); }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker { background: var(--gold); overflow: hidden; height: 40px; display: flex; align-items: center; }
.ticker-inner { display: flex; white-space: nowrap; animation: scroll-ticker 28s linear infinite; }
.ticker-item {
  font-family: var(--ff-m); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy); padding: 0 2.2rem;
  display: flex; align-items: center; gap: 2.2rem;
}
.ticker-item::after { content: '◆'; font-size: .45rem; }
@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SERVICES ────────────────────────────────────────────── */
.services { background: var(--white); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--g5);
}
.service-card {
  background: var(--white); padding: 2.3rem 1.9rem;
  position: relative; overflow: hidden; transition: background var(--transition);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { background: var(--cream); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 1.7rem; margin-bottom: 1.1rem; display: block; }
.service-num { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .1em; color: var(--g4); margin-bottom: .7rem; }
.service-title { font-family: var(--ff-d); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: .7rem; line-height: 1.2; }
.service-desc { font-size: .83rem; line-height: 1.72; color: var(--g3); font-weight: 300; }
.service-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.1rem; }
.tag { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .07em; color: var(--gold); border: 1px solid rgba(201,168,76,.3); padding: .18rem .5rem; }

/* ── SECTEURS ────────────────────────────────────────────── */
.secteurs { background: var(--navy); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem); }
.secteurs .section-title { color: var(--white); }
.secteurs .section-sub { color: rgba(255,255,255,.45); }
.secteurs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.secteur-card {
  border: 1px solid rgba(255,255,255,.07); padding: 2rem 1.7rem;
  transition: border-color var(--transition), background var(--transition);
}
.secteur-card:hover { border-color: rgba(201,168,76,.38); background: rgba(201,168,76,.03); }
.secteur-icon { font-size: 1.9rem; margin-bottom: .9rem; display: block; }
.secteur-title { font-family: var(--ff-d); font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: .55rem; }
.secteur-desc { font-size: .8rem; line-height: 1.68; color: rgba(255,255,255,.42); font-weight: 300; }
.secteur-ref { margin-top: .9rem; font-family: var(--ff-m); font-size: .58rem; letter-spacing: .07em; color: var(--gold); opacity: .65; }

/* ── APPROCHE ────────────────────────────────────────────── */
.approche { background: var(--cream); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem); }
.approche-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.approche-steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--g5); align-items: start;
}
.step:first-child { border-top: 1px solid var(--g5); }
.step-num {
  font-family: var(--ff-d); font-size: 2.6rem; font-weight: 300;
  color: var(--g5); line-height: 1; transition: color var(--transition);
}
.step:hover .step-num { color: var(--gold); }
.step-title { font-family: var(--ff-d); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.step-desc { font-size: .82rem; line-height: 1.72; color: var(--g3); font-weight: 300; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about { background: var(--white); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }
.about-frame {
  background: var(--navy); max-width: 360px; aspect-ratio: 4/5;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2.4rem;
  position: relative; overflow: hidden;
}
.about-frame::before {
  content: 'PN'; position: absolute; top: -24px; right: -12px;
  font-family: var(--ff-d); font-size: 13rem; font-weight: 600;
  color: rgba(201,168,76,.055); line-height: 1; pointer-events: none;
}
.about-frame-badge {
  position: absolute; top: 2rem; left: 2rem;
  background: var(--gold); color: var(--navy);
  font-family: var(--ff-m); font-size: .58rem; letter-spacing: .1em; padding: .3rem .65rem;
}
.about-frame-name { font-family: var(--ff-d); font-size: 1.75rem; font-weight: 300; color: var(--white); margin-bottom: .25rem; }
.about-frame-title { font-family: var(--ff-m); font-size: .62rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.about-offset-box {
  position: absolute; bottom: -1.4rem; right: -1.4rem;
  background: var(--gold); padding: 1.1rem 1.4rem; min-width: 150px;
}
.about-offset-num { font-family: var(--ff-d); font-size: 1.9rem; font-weight: 300; color: var(--navy); line-height: 1; }
.about-offset-label { font-size: .67rem; color: var(--navy); font-weight: 500; margin-top: .2rem; }
.about-body { font-size: .93rem; line-height: 1.82; color: var(--g2); font-weight: 300; margin: 1.4rem 0 2rem; }
.about-ids { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 2.2rem; }
.about-id-row { display: flex; gap: 1rem; font-size: .77rem; align-items: baseline; }
.id-label { font-family: var(--ff-m); font-size: .6rem; letter-spacing: .07em; color: var(--g4); width: 110px; flex-shrink: 0; }
.id-val { color: var(--g2); font-weight: 500; }
.about-vals { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.about-val-card { border-left: 2px solid var(--gold); padding: .75rem .95rem; background: var(--cream); }
.val-title { font-size: .78rem; font-weight: 600; color: var(--navy); margin-bottom: .28rem; }
.val-desc { font-size: .73rem; line-height: 1.65; color: var(--g3); font-weight: 300; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact {
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,5rem); align-items: start;
}
.contact .section-title { color: var(--white); }
.contact .section-sub { color: rgba(255,255,255,.48); margin-bottom: 2.4rem; }
.contact-channels { display: flex; flex-direction: column; gap: .9rem; }
.channel {
  display: flex; align-items: center; gap: .9rem;
  border: 1px solid rgba(255,255,255,.08); padding: .95rem 1.1rem;
  transition: border-color var(--transition);
}
.channel:hover { border-color: rgba(201,168,76,.38); }
.channel-icon { font-size: 1.1rem; width: 28px; text-align: center; }
.channel-label { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; margin-bottom: .18rem; }
.channel-val { font-size: .83rem; color: rgba(255,255,255,.75); }
.contact-form {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); padding: 2.4rem;
}
.form-group { margin-bottom: 1.3rem; }
.form-label {
  display: block; font-family: var(--ff-m); font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: .45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); color: var(--white);
  font-family: var(--ff-b); font-size: .86rem; padding: .72rem .95rem;
  outline: none; transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(201,168,76,.45); }
.form-textarea { height: 108px; resize: vertical; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C9A84C'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2rem; }
.form-select option { background: #0D2B5E; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; background: var(--gold); color: var(--navy);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .95rem; border: none; transition: background var(--transition);
}
.btn-submit:hover { background: var(--gold2); }
.form-success {
  display: none; margin-top: 1rem; text-align: center;
  font-size: .82rem; color: var(--gold2);
}
.form-success.show { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #060F20;
  padding: 3rem clamp(1.5rem,6vw,5rem);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  border-top: 1px solid rgba(201,168,76,.14);
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-desc { font-size: .78rem; line-height: 1.72; color: rgba(255,255,255,.3); font-weight: 300; max-width: 270px; margin-bottom: 1.1rem; }
.footer-rccm { font-family: var(--ff-m); font-size: .56rem; letter-spacing: .05em; color: rgba(255,255,255,.18); line-height: 1.9; }
.footer-col-title { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .78rem; color: rgba(255,255,255,.38); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.footer-copy { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .04em; color: rgba(255,255,255,.22); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero            { grid-template-columns: 1fr; gap: 3rem; padding-top: 110px; }
  .hero-right      { justify-content: flex-start; }
  .hero-card-stack { max-width: 100%; }
  .section-header  { grid-template-columns: 1fr; }
  .services-grid   { grid-template-columns: 1fr 1fr; }
  .secteurs-grid   { grid-template-columns: 1fr 1fr; }
  .about-inner     { grid-template-columns: 1fr; }
  .about-frame     { max-width: 300px; }
  .contact         { grid-template-columns: 1fr; gap: 3rem; }
  .approche-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  footer           { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid, .secteurs-grid { grid-template-columns: 1fr; }
  .hero-card-stack { grid-template-columns: 1fr 1fr; }
  .about-vals, .form-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
