/* ============================================================
   Mutuel Pam — Landing page styles
   Palette de marque (reprise de l'app Flutter) :
     --blue  : #0D47A1  (royalBlue)
     --gold  : #D4AF37  (goldColor)
   ============================================================ */

:root {
  --blue: #0D47A1;
  --blue-dark: #093271;
  --blue-light: #E8F0FC;
  --gold: #D4AF37;
  --gold-dark: #B8932A;
  --ink: #17233C;
  --ink-soft: #4A5568;
  --line: #E5E9F0;
  --bg: #FBFCFE;
  --white: #FFFFFF;
  --green: #1E8E5A;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 71, 161, 0.08);
  --shadow-sm: 0 4px 14px rgba(13, 71, 161, 0.06);
  --max: 1160px;

  /* Fraunces porte les titres (chaleur, caractère "institution de
     confiance"), IBM Plex Sans porte le texte courant et l'UI. */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.icon-svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

h1, h2, h3 {
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

h2.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

p.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 52px;
  font-size: 16.5px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: #241c00;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover { background: var(--gold-dark); }

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-cta .btn { padding: 10px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 90px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFE9A8;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 span { color: #FFD87A; }

.hero p.lead {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  margin: 0 0 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust .icon-svg { width: 15px; height: 15px; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 65%);
  filter: blur(4px);
}

.hero-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  width: min(360px, 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.hero-card h3 { font-family: var(--font-body); font-size: 16px; }

.hero-card .logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.hero-card .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.hero-card .stat-row:first-of-type { border-top: none; padding-top: 4px; }

.hero-card .stat-row b { color: var(--blue); font-size: 15px; }

/* ---------- Logos / stats strip ---------- */

.stats-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-strip .stat b {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--blue);
}

.stats-strip .stat b .icon-svg { width: 26px; height: 26px; }

.stats-strip .stat span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Steps ("Comment ça marche") ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 700; }

.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- Feature grid ---------- */

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}

.feature-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13.8px; color: var(--ink-soft); margin: 0; }

/* ---------- Aperçu (captures d'écran) ---------- */

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

.screen-card {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.screen-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: var(--blue-light);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  box-sizing: border-box;
  cursor: zoom-in;
}

/* ---------- Lightbox ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.88);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

.screen-card figcaption { padding: 16px 18px 20px; }

.screen-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.screen-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Audience (Admin / Membre) ---------- */

.audience { background: var(--white); }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
}

.audience-card.admin {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border: none;
}

.audience-card.member { background: var(--blue-light); }

.audience-card h3 { font-size: 20px; font-weight: 800; }

.audience-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.audience-card.admin .tag { background: rgba(255,255,255,0.15); color: #FFE9A8; }
.audience-card.member .tag { background: var(--white); color: var(--blue); }

.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 11px;
}

.audience-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.audience-card.admin li { color: rgba(255,255,255,0.92); }
.audience-card.member li { color: var(--ink); }

.check {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

.audience-card.admin .check { background: rgba(255,255,255,0.18); color: #FFE9A8; }
.audience-card.member .check { background: var(--green); color: var(--white); }

/* ---------- Security band ---------- */

.security {
  background: var(--ink);
  color: var(--white);
}

.security h2.section-title, .security p.section-lead { color: var(--white); }
.security p.section-lead { color: rgba(255,255,255,0.7); }

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

.security-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.security-item .icon { color: var(--gold); }
.security-item .icon .icon-svg { width: 19px; height: 19px; }
.security-item h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.security-item p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.65); }

/* ---------- Pricing teaser ---------- */

.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
}

.pricing-card .badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pricing-card h3 { font-size: 22px; font-weight: 800; }
.pricing-card p { color: var(--ink-soft); max-width: 480px; margin: 10px auto 26px; }

.pricing-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 30px;
  text-align: left;
}

.pricing-points li {
  list-style: none;
  display: flex;
  gap: 9px;
  font-size: 14px;
  align-items: flex-start;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--blue);
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- Final CTA ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 auto 28px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }

.footer-grid p { font-size: 13.5px; max-width: 300px; }

.footer-grid h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.72); }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .steps, .features-grid, .security-grid, .pricing-points, .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  section { padding: 60px 0; }
  .cta-band { margin: 0 16px; padding: 40px 24px; }
}

@media (max-width: 560px) {
  .steps, .features-grid, .security-grid, .pricing-points, .screens-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav panel ---------- */

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 12px 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn { margin-top: 10px; }

/* ---------- Bulle flottante "Télécharger l'app" ---------- */
/* Se replie automatiquement (voir script.js) pour ne bloquer aucun
   autre bouton, comme la bulle de support dans l'application. */

.download-bubble {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13, 71, 161, 0.35);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  max-width: 280px;
  transition: max-width 0.35s ease, padding 0.35s ease, gap 0.35s ease,
    box-shadow 0.2s ease;
}

.download-bubble .icon-svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #fff;
}

.download-bubble-label {
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.download-bubble:hover,
.download-bubble:focus-visible {
  box-shadow: 0 14px 32px rgba(13, 71, 161, 0.45);
}

.download-bubble.collapsed {
  max-width: 48px;
  padding: 13px;
  gap: 0;
}

.download-bubble.collapsed .download-bubble-label {
  opacity: 0;
  width: 0;
  display: none;
}

@media (max-width: 700px) {
  .download-bubble { right: 14px; bottom: 18px; }
}
