/* ============================================================
   MPV Invest — styles partagés
   Couleurs : #F5F4F2 (fond), #0D0D0D (texte), #ECEAE5 (alt bg)
   Fontes : Cormorant Garamond (titres) · Montserrat (corps)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #0D0D0D;
  background: #F5F4F2;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; color: #0D0D0D; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: 0; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; margin-bottom: 0.6rem; }
h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.01em; }
h4 { font-size: 0.95rem; font-weight: 400; letter-spacing: 0.01em; }
p { text-align: justify; hyphens: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0; }
.section-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6E6E6E; margin-bottom: 1rem; font-weight: 500; }

/* ----- Header ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 244, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; }
.logo img { height: 44px; width: auto; display: block; mix-blend-mode: multiply; filter: contrast(1.1); }
.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav a { white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500; transition: opacity 0.2s; }
.main-nav a:hover { opacity: 0.5; }
.nav-cta { padding: 10px 20px; background: #0D0D0D; color: #F5F4F2 !important; border-radius: 2px; transition: background 0.2s; }
.nav-cta:hover { background: #2A2A2A; opacity: 1 !important; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 1px; background: #0D0D0D; transition: all 0.3s; }
@media (max-width: 1180px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 0.68rem; letter-spacing: 0.1em; }
}

/* ----- Boutons ----- */
.btn { display: inline-block; padding: 16px 32px; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; transition: all 0.25s; border-radius: 2px; }
.btn-primary { background: #0D0D0D; color: #F5F4F2; }
.btn-primary:hover { background: #2A2A2A; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #0D0D0D; border: 1px solid #0D0D0D; }
.btn-outline:hover { background: #0D0D0D; color: #F5F4F2; }
.btn-light { background: #F5F4F2; color: #0D0D0D; }
.btn-light:hover { background: #FFFFFF; }

/* ----- Hero générique pour pages internes ----- */
.page-hero { padding: 100px 0 18px; background: #ECEAE5; }
.page-hero:empty, .page-hero .container > *:only-child { padding: 0; }
.page-hero .breadcrumb { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6E6E6E; margin-bottom: 8px; }
.page-hero .breadcrumb a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.page-hero .breadcrumb a:hover { border-color: #0D0D0D; }
.page-hero h1 { max-width: 900px; margin-bottom: 8px; }
.page-hero .lead { font-size: 0.9rem; line-height: 1.5; max-width: 720px; margin-top: 4px; color: #2A2A2A; }

/* ----- Contenu éditorial ----- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; font-size: 2.2rem; }
.prose h3 { margin-top: 40px; margin-bottom: 16px; font-size: 1.5rem; }
.prose p { margin-bottom: 20px; line-height: 1.75; color: #2A2A2A; font-size: 1.02rem; }
.prose ul, .prose ol { margin: 20px 0 24px 24px; }
.prose li { margin-bottom: 10px; line-height: 1.7; color: #2A2A2A; }
.prose blockquote { border-left: 3px solid #0D0D0D; padding: 8px 0 8px 24px; margin: 32px 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: 1.4rem; line-height: 1.5; }
.prose a { border-bottom: 1px solid #0D0D0D; padding-bottom: 1px; transition: opacity 0.2s; }
.prose a:hover { opacity: 0.6; }

.callout {
  background: #ECEAE5; padding: 32px; border-radius: 4px; margin: 40px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.callout p { margin: 0; font-size: 0.95rem; }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; padding: 24px; } }

/* ----- Footer ----- */
.site-footer { background: #ECEAE5; color: #0D0D0D; padding: 64px 0 32px; border-top: 1px solid rgba(13,13,13,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; margin-bottom: 16px; }
.footer-brand-desc { font-size: 0.85rem; color: #4A4A4A; line-height: 1.6; text-align: left; hyphens: none; word-break: normal; overflow-wrap: normal; }
.footer-brand-desc a { border-bottom: 1px solid rgba(13,13,13,0.2); }
.footer-brand-desc a:hover { border-color: #0D0D0D; }
.footer-col h5 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6E6E6E; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.85rem; color: #2A2A2A; transition: color 0.2s; }
.footer-col a:hover { color: #0D0D0D; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(13, 13, 13, 0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.75rem; color: #6E6E6E; }
.footer-bottom a { color: #6E6E6E; }
.footer-bottom a:hover { color: #0D0D0D; }

/* ----- CTA digital path ----- */
.cta-digital {
  background: #ECEAE5; color: #0D0D0D; padding: 80px 24px; text-align: left;
  border-top: 1px solid rgba(13,13,13,0.06);
}
.cta-digital h2 { color: #0D0D0D; margin-bottom: 24px; }
.cta-digital p { max-width: 640px; margin: 0 0 32px; color: #4A4A4A; text-align: justify; hyphens: none; }
.cta-digital .btn-light { background: #0D0D0D; color: #F5F4F2; }
.cta-digital .btn-light:hover { background: #2A2A2A; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #F5F4F2; padding: 20px; gap: 14px; border-bottom: 1px solid rgba(13, 13, 13, 0.1); }
  .main-nav.is-open { display: flex; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 28px 0; }
  .page-hero { padding: 92px 0 18px; }
  .header-inner { padding: 12px 18px; }
  .logo img { height: 42px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-hero h1, .prose h2 { font-size: clamp(1.6rem, 5vw, 2rem); }
  .prose h3 { font-size: 1rem; }
  .prose p, .prose li { font-size: 0.95rem; }
  .cta-digital { padding: 40px 18px; }
  .header-inner { padding: 10px 16px; }
  .logo img { height: 38px; }
  .nav-cta { padding: 9px 16px; font-size: 0.72rem; }
  .btn { padding: 13px 22px; font-size: 0.74rem; }
  .site-footer { padding: 40px 0 24px; }
}

/* ----- Bouton flottant simulateur Girardin ----- */
.floating-girardin {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 30px 16px 24px;
  background: #0D0D0D; color: #F5F4F2;
  border-radius: 48px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: all 0.25s;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.floating-girardin:hover { background: #1A1A1A; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.22); }
.floating-girardin .fg-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.floating-girardin .fg-text { letter-spacing: 0.01em; }
@media (max-width: 700px) {
  .floating-girardin { bottom: 18px; right: 18px; padding: 12px 22px 12px 18px; font-size: 1.05rem; gap: 10px; }
  .floating-girardin .fg-icon { font-size: 18px; }
}

/* ----- Newsletter ----- */
.newsletter-section { background: #0D0D0D; color: #F5F4F2; padding: 88px 0; }
.newsletter-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }
.newsletter-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #B8B0A0; margin-bottom: 18px; font-weight: 500;
}
.newsletter-inner h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1;
  margin-bottom: 16px; color: #F5F4F2;
}
.newsletter-inner p {
  font-size: 1rem; color: rgba(245,244,242,0.78); line-height: 1.7;
  margin: 0 auto 36px; max-width: 580px; text-align: center;
}
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.newsletter-form input[type=email] {
  flex: 1; min-width: 220px;
  padding: 18px 22px;
  background: #FFFFFF; border: 1px solid #FFFFFF; border-radius: 2px;
  font-family: 'Montserrat', sans-serif; font-size: 1rem; color: #0D0D0D;
}
.newsletter-form input[type=email]:focus { outline: none; border-color: #B8B0A0; box-shadow: 0 0 0 3px rgba(184,176,160,0.3); }
.newsletter-form button {
  padding: 18px 36px;
  background: #F5F4F2; color: #0D0D0D;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  border-radius: 2px; cursor: pointer; border: none;
  transition: all 0.2s;
}
.newsletter-form button:hover { background: #FFFFFF; transform: translateY(-1px); }
.newsletter-consent {
  font-size: 0.78rem; color: rgba(245,244,242,0.6); margin-top: 18px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
  max-width: 560px; margin-left: auto; margin-right: auto; text-align: left;
}
.newsletter-consent input[type=checkbox] { accent-color: #F5F4F2; }
.newsletter-feedback { display: none; margin: 16px auto 0; padding: 12px 16px; border-radius: 2px; font-size: 0.85rem; max-width: 560px; }
.newsletter-feedback.success { display: block; background: rgba(232,240,229,0.15); color: #C2E6B0; border: 1px solid rgba(194,230,176,0.3); }
.newsletter-feedback.error { display: block; background: rgba(245,229,229,0.15); color: #E6B0B0; border: 1px solid rgba(230,176,176,0.3); }
