/* ============================================
   ULYSSE PARTNERS - STYLE PARTAGÉ
   ============================================ */

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

:root {
  --navy: #1B223D; --red: #DE314A; --gold: #C4A366; --gold-dark: #B29859;
  --white: #FFFFFF; --light: #F7F6F3; --warm-gray: #E5E4E1; --mid-gray: #CCC8BC;
  --navy-light: #223156; --text: #1B223D; --text-muted: #5a6178; --text-light: #8b90a0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.6; width: 100%; max-width: 100vw; position: relative; }
img, svg, video, iframe { max-width: 100%; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; text-wrap: balance; }
p, li, blockquote, figcaption, cite { text-wrap: pretty; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; }

/* ===== NAV ===== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(27,34,61,0.05); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 2px 32px rgba(27,34,61,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .icon-target { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--navy); display: flex; align-items: center; justify-content: center; }
.nav-brand .icon-target::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand .brand-main { display: flex; align-items: baseline; gap: 8px; }
.nav-brand .brand-name { font-weight: 800; font-size: 22px; letter-spacing: 2.5px; color: var(--navy); text-transform: uppercase; font-family: 'DM Sans'; }
.nav-brand .brand-sub { font-weight: 300; font-size: 22px; letter-spacing: 0; color: var(--navy); font-style: italic; font-family: 'Playfair Display', serif; text-transform: none; }
.nav-brand .brand-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: 12px; color: var(--gold); margin-top: 2px; letter-spacing: 0.3px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--text-muted); padding: 8px 14px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: rgba(27,34,61,0.04); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; background: white; border-radius: 12px; box-shadow: 0 12px 40px rgba(27,34,61,0.12); padding: 8px; min-width: 200px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: all 0.2s; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 16px; border-radius: 8px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: white !important; padding: 10px 24px; border-radius: 8px; font-size: 13.5px; font-weight: 600; transition: all 0.25s; border: none; cursor: pointer; font-family: 'DM Sans'; }
.btn-cta:hover { background: #c42a40; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(222,49,74,0.25); }
.btn-outline-nav { border: 1.5px solid var(--navy); color: var(--navy) !important; background: transparent; padding: 10px 24px; border-radius: 8px; font-size: 13.5px; font-weight: 600; transition: all 0.25s; }
.btn-outline-nav:hover { background: var(--navy); color: white !important; }

/* ===== SECTION LABEL ===== */
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

/* ===== FOOTER ===== */
footer { padding: 48px 0 32px; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-col .fb-name { font-weight: 800; font-size: 22px; letter-spacing: 3px; color: white; text-transform: uppercase; margin-bottom: 2px; display: inline-block; }
.footer-brand-col .fb-sub { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 500; margin-left: 6px; }
.footer-brand-col .fb-tag { font-family: 'Playfair Display'; font-style: italic; color: var(--gold); font-size: 14px; margin-bottom: 16px; margin-top: 4px; }
.footer-brand-col p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.4); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 14px; transition: all 0.2s; }
.footer-bottom .socials a:hover { background: var(--red); color: white; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger > * { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1); }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }

/* ===== PAGE HEADER (pour pages intérieures) ===== */
.page-header { padding: 160px 0 80px; background: linear-gradient(170deg, #fff 0%, var(--light) 60%, var(--warm-gray) 100%); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(222,49,74,0.03) 0%, transparent 70%); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin-bottom: 20px; max-width: 800px; }
.page-header h1 em { font-style: italic; color: var(--red); }
.page-header .lead { font-size: 18px; color: var(--text-muted); max-width: 640px; line-height: 1.7; }

/* ===== CTA FORM SECTION ===== */
.cta-section { padding: 100px 0; background: var(--light); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-left h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.cta-left .desc { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; }
.cta-left .highlight-box { padding: 20px 24px; background: white; border-radius: 12px; border-left: 4px solid var(--red); margin-bottom: 20px; }
.cta-left .highlight-box p { font-size: 14px; font-weight: 500; color: var(--navy); line-height: 1.6; }
.cta-left .channels { display: flex; gap: 12px; }
.cta-left .channels a { padding: 10px 18px; border-radius: 10px; background: var(--navy); color: white; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.cta-left .channels a:hover { background: var(--navy-light); }
.form-card { background: white; border-radius: 20px; padding: 36px; box-shadow: 0 24px 64px rgba(27,34,61,0.08); border: 1px solid rgba(27,34,61,0.04); }
.form-card h3 { font-size: 20px; margin-bottom: 4px; }
.form-card .fsub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.fg input, .fg textarea, .fg select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--warm-gray); border-radius: 10px; font-size: 13.5px; font-family: 'DM Sans'; transition: border-color 0.2s; background: var(--light); }
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--navy); background: white; }
.fg textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .btn-cta { width: 100%; justify-content: center; padding: 14px; margin-top: 6px; }
.form-notice { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ===== FINAL CTA ===== */
.final-cta { padding: 80px 0; background: var(--navy); color: white; text-align: center; }
.final-cta .brand-sig { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; text-transform: uppercase; }
.final-cta h2 { font-size: clamp(26px,3.5vw,38px); margin-bottom: 12px; color: white; max-width: 550px; margin-left: auto; margin-right: auto; }
.final-cta p { color: rgba(255,255,255,0.5); margin-bottom: 28px; }

/* ===== MOBILE NAV (hamburger + drawer) ===== */
.nav-toggle { display: none; }
.mobile-menu, .mobile-menu-backdrop { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-brand .brand-name { font-size: 16px; letter-spacing: 2px; }
  .nav-brand .brand-sub { font-size: 14px; }
  .nav-brand .brand-tagline { font-size: 11px; }
  .nav-brand .icon-target { width: 28px; height: 28px; border-width: 2px; }
  .nav-brand .icon-target::after { width: 8px; height: 8px; }
  .nav-inner { height: 64px; padding: 0 16px; }

  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.2s; z-index: 1100; }
  .nav-toggle:hover { background: rgba(27,34,61,0.06); }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu { display: flex; position: fixed; top: 64px; right: 0; bottom: 0; width: min(320px, 85vw); background: white; box-shadow: -8px 0 32px rgba(27,34,61,0.12); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s; visibility: hidden; pointer-events: none; z-index: 1050; overflow-y: auto; padding: 24px 20px 40px; flex-direction: column; gap: 4px; }
  .mobile-menu.open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .mobile-menu a { font-size: 16px; font-weight: 500; color: var(--navy); padding: 14px 16px; border-radius: 10px; transition: background 0.15s; }
  .mobile-menu a:hover, .mobile-menu a.active { background: rgba(27,34,61,0.05); color: var(--navy); }
  .mobile-menu .btn-cta { margin-top: 16px; justify-content: center; padding: 14px 24px; font-size: 14px; }
  .mobile-menu .btn-outline-nav { margin-top: 8px; text-align: center; }
  .mobile-menu .nav-dropdown { position: static; }
  .mobile-menu .nav-dropdown > a::after { content: ''; }
  .mobile-menu .nav-dropdown-menu { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; padding: 0 0 0 12px; min-width: 0; background: transparent; }
  .mobile-menu .nav-dropdown-menu a { font-size: 14px; color: var(--text-muted); padding: 10px 16px; }

  .mobile-menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(27,34,61,0.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 1040; }
  .mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-card { padding: 28px 22px; }
  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: clamp(30px, 7vw, 44px); }
  .page-header .lead { font-size: 16px; }
  .final-cta { padding: 60px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 110px 0 50px; }
  .page-header h1 { font-size: clamp(28px, 8vw, 38px); }
  .cta-section { padding: 60px 0; }
  .cta-left .channels { flex-wrap: wrap; }
  .final-cta { padding: 50px 0; }
  .final-cta h2 { font-size: clamp(22px, 6vw, 30px); }
}
