/* =============================================================================
 * NOSTROMOS SA · Systeme de marque web
 * Holding patrimoniale privee · Geneve · Family Office Advisory
 * Bleu nuit (Lac Leman) + Or mat + Creme · Cormorant Garamond + Inter
 * Identite distincte de l'enseigne CF Immo Group (encre noire).
 * ============================================================================= */

:root {
  --navy:        #11243E;   /* bleu nuit principal (du logo Lac Leman) */
  --navy-deep:   #0C1B30;   /* plus profond, contrastes */
  --navy-soft:   #16304f;   /* gravure / degrade */
  --navy-line:   #24405f;   /* filets sur fond sombre */
  --ink:         #0A0908;   /* texte sur fond clair */
  --ink-soft:    #34302b;   /* texte courant fonce */
  --cream:       #FBF8F1;   /* fond clair alternatif */
  --paper:       #FFFFFF;
  --gold:        #C9A66B;   /* or moyen, accents */
  --gold-bright: #D4B15E;   /* or clair */
  --gold-deep:   #8A6D3B;   /* or profond, labels */
  --mute:        #8A93A0;   /* gris secondaire sur navy */
  --mute-ink:    #6b6760;   /* gris secondaire sur clair */

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHIE ========================================================= */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.06; letter-spacing: -0.01em; margin: 0; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.75;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--light { color: var(--gold); }

/* ===== LAYOUT ============================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3rem); }
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.section--navy  { background: var(--navy);  color: #E7E9EC; }
.section--deep  { background: var(--navy-deep); color: #E7E9EC; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }

.rule { height: 1px; width: 4.5rem; background: linear-gradient(90deg, var(--gold) 0%, transparent 100%); border: 0; margin: 0; }
.rule--center { margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); width: 6rem; }

.section-head { max-width: 760px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 1.3rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-intro { margin-top: 1.5rem; color: var(--mute-ink); }
.section--navy .section-intro, .section--deep .section-intro { color: var(--mute); }

/* ===== HEADER ============================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.4rem, 5vw, 3rem);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 27, 48, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--navy-line);
  padding-top: .75rem; padding-bottom: .75rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; transition: height .5s var(--ease); }
.site-header.scrolled .brand img { height: 32px; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: #D7DBE0; position: relative; padding: .35rem 0; transition: color .35s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(201,166,107,.45); color: var(--gold) !important;
  padding: .6rem 1.25rem !important; border-radius: 1px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: rgba(201,166,107,.12); border-color: var(--gold); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 26px; height: 1.5px; background: #fff; margin: 5px 0; transition: .3s; }

/* ===== HERO ================================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(120% 80% at 50% 18%, var(--navy-soft) 0%, var(--navy) 48%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 84px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; padding: 8rem 0 5rem; }
.hero-emblem { width: clamp(320px, 52vw, 640px); margin: 0 auto 2.4rem; }
.js .hero-emblem { opacity: 0; transform: translateY(18px); }
.hero-emblem.in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.hero h1 { color: #F4F1EA; font-size: clamp(1.6rem, 3.4vw, 2.7rem); max-width: 18ch; margin: 0 auto; }
.hero .lead { color: #C7CCD3; max-width: 56ch; margin: 1.8rem auto 0; }
.hero-cta { margin-top: 2.8rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2;
  font-size: .62rem; letter-spacing: .35em; text-transform: uppercase; color: var(--mute);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); }

/* ===== BOUTONS ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; cursor: pointer;
  padding: 1rem 1.9rem; border-radius: 1px; transition: all .4s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy-deep); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid rgba(201,166,107,.45); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,166,107,.1); }
.btn-ink { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn-ink:hover { background: #000; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-deep); padding-bottom: .4rem; border-bottom: 1px solid rgba(138,109,59,.4);
  transition: gap .35s var(--ease), border-color .35s;
}
.section--navy .link-arrow, .section--deep .link-arrow { color: var(--gold); border-color: rgba(201,166,107,.4); }
.link-arrow:hover { gap: 1.1rem; border-color: var(--gold); }

/* ===== GRILLE VERTICALES =================================================== */
.cols { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.vcard {
  position: relative; padding: 2.4rem 2rem; background: rgba(255,255,255,.022);
  border: 1px solid var(--navy-line); border-radius: 2px;
  transition: transform .5s var(--ease), border-color .5s, background .5s;
  overflow: hidden;
}
.section--cream .vcard, .section--paper .vcard { background: var(--paper); border-color: #e7e0d2; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.vcard:hover { transform: translateY(-5px); border-color: var(--gold); }
.vcard .num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold); }
.vcard h3 { font-size: 1.55rem; margin: 1rem 0 .8rem; color: inherit; }
.section--navy .vcard h3, .section--deep .vcard h3 { color: #F1EEE7; }
.vcard p { font-size: .96rem; color: var(--mute-ink); margin: 0 0 1.4rem; }
.section--navy .vcard p, .section--deep .vcard p { color: var(--mute); }

/* ===== APPROCHE (3 temps) ================================================= */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.6rem,3vw,3rem); }
.pillar .pn { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.pillar h3 { font-size: 1.4rem; margin: .9rem 0 .6rem; }
.pillar p { font-size: .95rem; color: var(--mute); margin: 0; }
.pillar { padding-top: 1.4rem; border-top: 1px solid var(--navy-line); }
.section--cream .pillar { border-top-color: #e2dac9; }
.section--cream .pillar p { color: var(--mute-ink); }

/* ===== STATS =============================================================== */
.stats { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); }
.stat .v { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.2rem); color: var(--gold); line-height: 1; }
.stat .k { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-top: .7rem; }

/* ===== CITATION =========================================================== */
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem,3vw,2.3rem); line-height: 1.35; color: #EFEBE2; }
.quote .who { margin-top: 1.8rem; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* ===== CTA BAND =========================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem,4.5vw,3.2rem); color: #F4F1EA; }
.cta-band .lead { color: var(--mute); max-width: 52ch; margin: 1.4rem auto 2.6rem; }

/* ===== FOOTER ============================================================= */
.site-footer { background: var(--navy-deep); color: #B9C0C9; padding: clamp(3.5rem,7vw,5.5rem) 0 2.2rem; border-top: 1px solid var(--navy-line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.footer-brand img { height: 34px; margin-bottom: 1.4rem; }
.footer-brand p { font-size: .9rem; color: var(--mute); max-width: 38ch; }
.footer-col h4 { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; font-family: var(--sans); font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: #B9C0C9; margin-bottom: .7rem; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-legal { margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: 1.8rem; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-legal p, .footer-legal a { font-size: .76rem; color: var(--mute); margin: 0; }
.footer-legal a:hover { color: var(--gold); }
.disclaimer { margin-top: 1.5rem; font-size: .72rem; line-height: 1.7; color: #79828d; max-width: 92ch; }

/* ===== PAGES INTERNES (hero compact) ====================================== */
.page-hero { padding: clamp(8rem,16vw,11rem) 0 clamp(3rem,6vw,5rem); background: radial-gradient(120% 90% at 50% 0%, var(--navy-soft), var(--navy-deep)); text-align: center; }
.page-hero h1 { color: #F4F1EA; font-size: clamp(2.2rem,5vw,3.6rem); margin-top: 1.2rem; }
.page-hero .lead { color: var(--mute); max-width: 60ch; margin: 1.5rem auto 0; }

/* ===== PROSE (legal) ====================================================== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; color: var(--ink); margin: 2.6rem 0 .9rem; }
.prose h3 { font-size: 1.12rem; font-family: var(--sans); font-weight: 600; margin: 1.8rem 0 .5rem; }
.prose p, .prose li { font-size: .96rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ===== REVEAL (progressive enhancement : contenu visible sans JS) ========= */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ===== RESPONSIVE ========================================================= */
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(12,27,48,.97); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav.open { transform: none; }
  .nav a { font-size: 1rem; }
  .burger { display: block; z-index: 60; }
  .nav.open ~ .burger span:nth-child(1),
  .burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .hero-emblem { opacity: 1; transform: none; }
}
