/* ═══════════════════════════════════════════════════════════════
   BEFORE PARTNERS — SHARED STYLES (multi-page)
   Design system v3 : Georgia + system-ui, light theme, Navy & Gold
═══════════════════════════════════════════════════════════════ */

:root {
  --blue: #003366;
  --blue-dark: #002244;
  --yellow: #F3C13A;
  --bg: #FFFFFF;
  --text: #222222;
  --text-muted: rgba(34,34,34,0.6);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-logo { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta {
  background: var(--blue);
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.nav-cta .cta-short { display: none; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS LAYOUT
═══════════════════════════════════════════════════════════════ */

.section { padding: 5rem 2rem; }

.section-light {
  background: linear-gradient(180deg, #F5F5F5 0%, #ffffff 100%);
  color: #222222;
}

.section-navy {
  background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0' stroke='%23ffffff' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
  color: #ffffff;
}

.section-navy .section-tag {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.section-navy .section-title {
  color: #ffffff;
}

.section-navy .section-title span,
.section-navy .section-title strong {
  color: var(--yellow);
}

.section-navy .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: rgba(0, 51, 102, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.section-dark .section-tag { background: rgba(0, 51, 102, 0.1); }

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-light .section-title { color: #222222; }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-light .section-subtitle { color: #666666; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--yellow);
  color: #222222;
}

.btn-primary:hover {
  background: #D4A832;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(243, 193, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: #ffffff;
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline-blue:hover {
  background: rgba(0, 51, 102, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════════ */

.cta-section { text-align: center; padding: 4rem 2rem; }

.cta-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo { height: 28px; width: auto; opacity: 0.9; }

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a:hover { color: var(--blue); }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p,
.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  text-decoration: none;
  display: block;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS (shared)
═══════════════════════════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 51, 102, 0.3);
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.12);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #222222;
}

.card-light:hover {
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   PRICING TABLES
═══════════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.12);
}

.pricing-card.featured {
  border-color: var(--yellow);
  background: rgba(243, 193, 58, 0.05);
  overflow: visible;
}

.pricing-card.featured .badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: #fdf4dc;
  border: 2px solid var(--yellow);
}

.pricing-card .tier-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.pricing-card .price-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .tier-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  line-height: 1.5;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

.pricing-card.featured ul li::before { color: var(--yellow); }

/* ═══════════════════════════════════════════════════════════════
   DETAIL TABLES (for flat fees, conditions)
═══════════════════════════════════════════════════════════════ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.detail-table th {
  background: rgba(0, 51, 102, 0.1);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(0, 51, 102, 0.2);
}

.detail-table td {
  padding: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.detail-table tr:hover td {
  background: rgba(0,0,0,0.02);
}

.detail-table .price-col {
  text-align: right;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS (details/summary)
═══════════════════════════════════════════════════════════════ */

details {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

details summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background 0.2s;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform 0.3s;
}

details[open] summary::after {
  content: '−';
}

details summary:hover {
  background: rgba(0,0,0,0.02);
}

details .details-content {
  padding: 0 1.5rem 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE (parcours clients)
═══════════════════════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--yellow));
}

.timeline-step {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.timeline-step:last-child::before {
  background: var(--yellow);
}

.timeline-step h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-step .step-price {
  display: inline-block;
  background: rgba(0, 51, 102, 0.1);
  color: var(--blue);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue { background: rgba(0, 51, 102, 0.15); color: var(--blue); }
.badge-yellow { background: rgba(243, 193, 58, 0.15); color: #D4A832; }
.badge-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (for sub-pages)
═══════════════════════════════════════════════════════════════ */

.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: var(--bg);
}

.page-header .section-tag { margin-bottom: 1.5rem; }

.page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   CTA NAVY (gradient)
═══════════════════════════════════════════════════════════════ */

.cta-section.section-navy {
  background: linear-gradient(135deg, #003366, #001a33);
}

.section-navy .cta-title {
  color: #ffffff;
}

.section-navy .cta-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-navy .btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

.section-navy .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   FADE-UP SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
}

@media (max-width: 768px) {
  .nav { padding: 0.75rem; gap: 0.5rem; }
  .nav-logo { height: 22px; flex-shrink: 0; }
  .nav-cta { padding: 0.4rem 0.6rem; font-size: 0.875rem; }
  .section { padding: 3rem 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-tag { font-size: 0.875rem; padding: 0.5rem 1rem; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .card-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 3rem 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { align-items: center; }

  .page-header { padding: 6rem 1.5rem 3rem; }

  .detail-table { font-size: 0.8125rem; }
  .detail-table th, .detail-table td { padding: 0.75rem 0.5rem; }
}

@media (max-width: 500px) {
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
}

@media (max-width: 480px) {
  .nav-logo { height: 20px; }
  .section-title { font-size: 1.75rem; }
  .section { padding: 2rem 1rem; }
  .cta-section { padding: 2rem 1rem; }
  .page-header { padding: 5rem 1rem 2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════════════════════════ */

.lang-switch { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.lang-switch a { color: var(--text-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch strong { color: var(--text); }
