/* ===================================================
   Family Invest – MonPatrimoine Privé Anjou
   Charte graphique premium
   =================================================== */

:root {
  --burgundy:      #8E1F62;
  --burgundy-dark: #6A1449;
  --burgundy-light:#AB3580;
  --gold:          #C4A84A;
  --gold-light:    #D9BC68;
  --gold-pale:     #F5EDD5;
  --dark:          #1A1A1A;
  --charcoal:      #333333;
  --mid:           #666666;
  --border:        #E0D8D0;
  --light:         #F8F5F1;
  --white:         #FFFFFF;

  --font-serif:    'Playfair Display', 'Georgia', serif;
  --font-sans:     'Raleway', 'Helvetica Neue', Arial, sans-serif;

  --radius:        4px;
  --shadow-soft:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-card:   0 8px 40px rgba(0,0,0,0.12);
  --transition:    0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--mid); }
p:last-child { margin-bottom: 0; }

.text-gold    { color: var(--gold); }
.text-burgundy{ color: var(--burgundy); }
.text-center  { text-align: center; }
.text-white   { color: var(--white); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--light {
  background: var(--light);
}

.section--dark {
  background: #241830;
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--white); }

.section--burgundy {
  background: var(--burgundy);
  color: var(--white);
}

.section--burgundy h2,
.section--burgundy h3,
.section--burgundy p { color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.05rem;
}

.divider-gold {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}

.nav__logo img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav__menu a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--burgundy);
}

.nav__cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  transition: background var(--transition) !important;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--gold-light) !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 22, 87, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,62,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.93);
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__proof {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero__stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Hero form card */
.hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,150,62,0.25);
  border-radius: 8px;
  padding: 40px 32px;
  backdrop-filter: blur(8px);
}

.hero__card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.hero__card .subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
}

.btn--primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,150,62,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--burgundy {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn--burgundy:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }
.btn--lg   { padding: 18px 40px; font-size: 0.9rem; }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.form-group--light label {
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.10);
}

.form-group select option {
  background: var(--dark);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Light form variant */
.form--light .form-group input,
.form--light .form-group select,
.form--light .form-group textarea {
  background: var(--white);
  border-color: var(--border);
  color: var(--charcoal);
}

.form--light .form-group input::placeholder,
.form--light .form-group textarea::placeholder {
  color: #aaa;
}

.form--light .form-group input:focus,
.form--light .form-group select:focus,
.form--light .form-group textarea:focus {
  border-color: var(--burgundy);
}

.form--light .form-group label {
  color: var(--charcoal);
}

.form--light .form-group select option {
  background: var(--white);
  color: var(--charcoal);
}

.form-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  text-align: center;
}

.form-note--light {
  color: var(--mid);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card p { font-size: 0.92rem; }

/* Dark card */
.card--dark {
  background: #222222;
  border-color: rgba(184,150,62,0.2);
}

.card--dark h3 { color: var(--white); }
.card--dark p  { color: rgba(255,255,255,0.65); }

/* ===== SERVICE BLOCK ===== */
.service-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

.service-block__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--burgundy);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* ===== QUOTE / TESTIMONIAL ===== */
.quote {
  position: relative;
  padding: 40px 48px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-soft);
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.quote__author {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  border-radius: 8px;
  padding: 48px 40px;
  color: var(--white);
}

.highlight-box h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.highlight-box p {
  color: rgba(255,255,255,0.8);
}

/* ===== AVANTAGE LIST ===== */
.avantage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avantage-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.avantage-list--light li { color: rgba(255,255,255,0.85); }

.avantage-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231A1A1A'%3E%3Cpath d='M7 10.4l2 2 4-4' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--burgundy-dark);
  padding: 56px 0;
  border-top: 1px solid rgba(196,168,74,0.25);
  border-bottom: 1px solid rgba(196,168,74,0.25);
}

.stats-band .grid-4 {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* ===== PROCESS STEPS ===== */
.steps {
  display: flex;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.33% / 2);
  right: calc(33.33% / 2);
  height: 1px;
  background: var(--gold);
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step__num {
  width: 56px;
  height: 56px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
}

.step h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.step p {
  font-size: 0.85rem;
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  padding: 160px 0 80px;
  background-color: var(--dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,62,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p  { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 660px; margin: 0 auto; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* ===== BAND CTA ===== */
.band-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  text-align: center;
}

.band-cta h2 { color: var(--white); margin-bottom: 16px; }
.band-cta p  { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.05rem; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-info__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-info__text a,
.contact-info__text p {
  font-size: 1rem;
  color: var(--charcoal);
  margin: 0;
}

.contact-form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.contact-form-card .subtitle {
  color: var(--mid);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: #1A1225;
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand img {
  height: 52px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__col ul li a:hover { color: var(--gold); }

.footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer__contact-item span:first-child {
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer__bottom a:hover { color: var(--gold); }

.footer__legal-links {
  display: flex;
  gap: 24px;
}

/* ===== MENTIONS LÉGALES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--burgundy);
}

.legal-content h2:first-child { margin-top: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__menu { display: none; }
  .nav__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    gap: 28px;
    align-items: flex-start;
  }
  .nav__menu.open a { font-size: 1.1rem; color: var(--charcoal); }
  .nav__hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 100px; }
  .hero__card  { display: none; }
  .hero__proof { flex-wrap: wrap; gap: 24px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 24px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .section-header { margin-bottom: 40px; }

  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .band-cta .btn { width: 100%; }
}
