/* ============================================================
   meilleures-assurances-vie.fr — Light banking theme
   Inspired by Banque Populaire : white + navy blue
   ============================================================ */

:root {
  --bg:           #ffffff;
  --bg-raised:   #f2f5fa;
  --surface:     #ffffff;
  --surface-2:   #eef2f7;
  --border:      #e3e8f0;
  --text:        #0b1d3a;
  --text-dim:    #3d4a63;
  --text-mute:   #6d7a92;

  --accent:      #1d4fb8;
  --accent-2:    #002b5c;
  --accent-deep: #001f47;
  --accent-soft: #eaf0fb;

  --success:     #0a8a4b;
  --warning:     #d97706;
  --danger:      #e63946;

  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 6px;

  --shadow-1: 0 1px 2px rgba(11, 29, 58, 0.05);
  --shadow-2: 0 6px 18px rgba(11, 29, 58, 0.08);
  --shadow-3: 0 14px 40px rgba(11, 29, 58, 0.14);

  --max-w: 1180px;
  --max-w-reading: 760px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }

/* Liens vers le lexique : soulignement pointillé discret */
a.lex-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  cursor: help;
}
a.lex-link:hover {
  color: var(--accent);
  border-bottom-style: solid;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 2rem 0 1rem;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; color: var(--text); }
p  { margin: 0 0 1.1rem; }
strong { color: var(--text); font-weight: 600; }
small  { color: var(--text-dim); font-size: 0.875rem; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

code {
  background: var(--surface-2);
  color: var(--accent-2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  min-width: 0;
}
.container-reading {
  max-width: var(--max-w-reading);
  margin: 0 auto;
  min-width: 0;
}
main {
  padding: 2rem 0 4rem;
  min-width: 0;
  overflow-x: clip;
}
@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .hero-section { padding: 3rem 0 2.5rem; }
  main { padding: 1.25rem 0 3rem; }
}

/* Header — style Banque Populaire : top-bar utilitaire + main-bar */
.site-header {
  background: #fff;
  border-bottom: none;
  -webkit-box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}
.top-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.top-bar a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.15s ease;
}
.top-bar a:hover { color: var(--accent); text-decoration: none; }

.main-bar { background: #fff; position: relative; }

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: none;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.05rem; flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--accent-2); }
.logo-img { height: 60px; width: auto; display: block; max-width: 100%; }
@media (max-width: 560px) {
  .logo-img { height: 46px; }
}

.main-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-nav-ghost {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 0.2rem;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.btn-nav-ghost:hover { color: var(--accent-2); text-decoration: none; }
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0;
  transition: color 0.15s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-nav:hover {
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Tablette large : compacter avant de masquer */
@media (max-width: 1180px) {
  .nav-menu { gap: 1.25rem; }
  .nav-link { font-size: 0.92rem; }
  .btn-nav-ghost { display: none; }
}

/* Tablette / mobile : top-bar masquée, nav en burger */
@media (max-width: 960px) {
  .top-bar { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .main-nav { flex: 0 0 auto; position: static; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    border-bottom: none;
    box-shadow: var(--shadow-2);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    z-index: 40;
  }
  .nav-menu.open {
    max-height: 400px;
    padding: 0.5rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu li { width: 100%; }
  .nav-link { display: block; padding: 0.75rem 0; }
  .nav-link::after { display: none; }
}

/* Hero — style Banque Populaire : fond bleu plein ou image avec overlay */
.hero-section {
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent-2) 55%, var(--accent) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
  margin: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.site-header + .hero-section,
.site-header + main,
.site-header + section { margin-top: 0; }
.hero-section .container { width: 100%; min-width: 0; }
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08) 0%, transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; min-width: 0; }
.hero-content h1 {
  margin-top: 0.75rem;
  max-width: 900px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.6rem);
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
.hero-content p {
  max-width: 720px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}
.hero-content .btn, .hero-content .btn-primary {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.hero-content .btn:hover, .hero-content .btn-primary:hover {
  background: #f2f5fa;
  color: var(--accent-2);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

/* Video container (lazy facade) */
.video-facade {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.5s ease;
}
.video-facade:hover img { opacity: 1; transform: scale(1.02); }
.video-facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.4) 100%);
}
.video-facade .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 91, 172, 0.4);
  z-index: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-facade:hover .play-button { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-2); }
.video-facade .play-button::before {
  content: '';
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* Sommaire */
.sommaire-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}
.sommaire {
  background: var(--bg-raised);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.sommaire h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.sommaire ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.sommaire > nav > ul > li { margin-bottom: 0.5rem; }
.sommaire a {
  color: var(--text);
  font-weight: 500;
  padding: 0.15rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  display: block;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.sommaire a:hover {
  border-left-color: var(--accent);
  color: var(--accent-2);
  text-decoration: none;
}
.sommaire ul ul { padding-left: 1rem; margin-top: 0.25rem; }
.sommaire ul ul a { font-size: 0.9rem; color: var(--text-dim); font-weight: 400; }

.sommaire-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

@media (max-width: 860px) {
  .sommaire-container { grid-template-columns: 1fr; }
  .sommaire-image { display: none; }
}

/* Intro text */
.intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 860px;
}
.intro-text strong { color: var(--text); }

.section-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.section-image img { width: 100%; }
.content-image { border-radius: var(--radius); }

/* Feature cards */
.feature-card {
  background: var(--bg-raised);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  box-shadow: none;
}
.feature-card.security, .feature-card.fees, .feature-card.service, .feature-card.performance { /* type différencié par contenu, pas couleur */ }
.feature-card h4 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--text);
}

/* Info blocks */
.info-block {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
  background: var(--surface-2);
}
.info-block p { margin-bottom: 0.5rem; }
.info-block p:last-child { margin-bottom: 0; }
.info-block.primary  { background: var(--accent-soft); }
.info-block.warning  { background: #fef3e2; }
.info-block.success  { background: #e6f4ec; }
.info-block.tip      { background: #eaf0fb; }

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: var(--shadow-1);
}
thead th {
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(74,144,226,0.05); }
tbody tr.highlight { background: rgba(74,144,226,0.1); }

.rating-stars { color: var(--warning); letter-spacing: 0.05em; font-size: 0.95rem; }
.val-best  { color: var(--success); font-weight: 600; }
.val-worst { color: var(--danger);  font-weight: 600; }
.val-good  { color: var(--success); font-weight: 500; }

.comparison-table { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius); }
.comparison-table table { margin: 0; min-width: 640px; }

/* Buttons — style BP : plein aplat, transition propre, pas de glow */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn, .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn:hover, .btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost::after {
  content: ' ›';
  font-size: 1.1em;
  margin-left: 0.2rem;
  font-weight: 400;
}
.btn-ghost:hover {
  background: transparent;
  color: var(--accent-2);
  text-decoration: underline;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-2);
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: #fff;
  position: relative;
}
.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-box .btn, .cta-box .btn-primary {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.cta-box .btn:hover, .cta-box .btn-primary:hover {
  background: #f5f9ff;
  color: var(--accent-2);
}
.cta-box .btn { position: relative; }

/* Simulator */
.simulator-container {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-2);
}
.simulator-container h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.simulator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}
.input-group label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}
.input-group input,
.input-group select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
}
.input-group span {
  position: absolute;
  right: 0.9rem;
  top: 2rem;
  color: var(--text-mute);
  font-size: 0.9rem;
  pointer-events: none;
}

.simulator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 860px) {
  .simulator-results { grid-template-columns: 1fr; }
}
.results-summary h3 { margin-top: 0; font-size: 1.1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.final-value, .potential-gain {
  background: var(--bg-raised);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.final-value strong {
  font-size: 1.8rem;
  color: var(--accent-2);
  font-weight: 800;
}
.potential-gain strong {
  font-size: 1.4rem;
  color: var(--success);
  font-weight: 700;
}
.final-value span, .potential-gain span { color: var(--text-dim); font-size: 0.85rem; }
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-top: 1rem;
}
.results-chart {
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 260px;
}

/* FAQ */
.faq-title { text-align: center; margin-bottom: 2rem; }
.faq-container { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-1); }
.faq-item .question {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  position: relative;
}
.faq-item .question::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--accent-2);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item.open .question::after {
  content: '−';
  transform: rotate(0deg);
}
.faq-item .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: var(--text-dim);
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .answer {
  max-height: 600px;
  padding: 0 1.25rem 1.25rem;
}

/* Resume section — bande bleu marine à la Banque Populaire */
.resume-section {
  background: var(--accent-2);
  color: #fff;
  padding: 3.5rem 0;
  margin: 3rem 0 0;
}
.resume-title { text-align: center; margin-bottom: 2.5rem; }
.resume-title h2 { margin: 0; color: #fff; }
.resume-title p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}
.resume-item {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  padding: 1.5rem 1.75rem;
  transition: background 0.2s ease;
  color: #fff;
}
.resume-item:last-child { border-right: none; }
.resume-item:hover { background: rgba(255,255,255,0.05); transform: none; }
.resume-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.resume-item-title { margin: 0 0 0.4rem; font-size: 1.15rem; color: #fff; font-weight: 700; }
.resume-item-subtitle { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0 0 1rem; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .resume-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .resume-item:last-child { border-bottom: none; }
}

/* Layout avec sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}
.content-with-sidebar > aside:first-of-type { }
@media (max-width: 992px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}

/* Sidebar des pages contrat / guide */
.page-sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (max-width: 992px) {
  .page-sidebar { position: static; }
}
.sidebar-module {
  background: var(--bg-raised, #f2f5fa);
  border: 1px solid #e3e9f2;
  border-radius: 4px;
  padding: 1.25rem;
}
.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-2, #002b5c);
  margin: 0 0 0.85rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d8e0ed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-list li { margin: 0; }
.sidebar-list a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--text, #0b1d3a);
  border-left: 2px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.sidebar-list a:hover {
  background: #fff;
  border-left-color: var(--accent, #1d4fb8);
}
.sidebar-link-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent-2, #002b5c);
}
.sidebar-link-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim, #56688a);
  margin-top: 0.15rem;
}
.sidebar-tools .sidebar-link-title { color: var(--accent, #1d4fb8); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-mute);
  padding: 1rem 0 0;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .separator { color: var(--text-mute); user-select: none; }

/* Card de contrat (pour tableau / listes) */
.contrat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contrat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border);
}
.contrat-card h3 { margin-top: 0; }
.contrat-card .note { color: var(--warning); margin-bottom: 0.5rem; }
.contrat-card .frais { color: var(--text-dim); font-size: 0.9rem; }

/* Encart E-E-A-T auteur */
.author-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-raised);
  border: none;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2.5rem 0 1.5rem;
}
.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.author-card .author-meta h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.author-card .author-meta p  { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.author-card .author-meta a { color: var(--accent-2); font-size: 0.85rem; }

/* Newsletter form (footer) */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.18);
}
.btn-subscribe {
  background: #fff;
  color: var(--accent-2);
  border: none;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.btn-subscribe:hover { background: #e3e8f0; }
.gdpr-notice p { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 0.75rem; }

/* Footer — bleu marine profond style Banque Populaire */
footer {
  background: var(--accent-deep);
  border-top: none;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 1rem;
  letter-spacing: 0;
  font-weight: 700;
  text-transform: none;
}
.footer-col.brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.footer-logo-img { height: 50px; margin-bottom: 0.75rem; max-width: 100%; }
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-icons a {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
}
.social-icons a:hover { border-color: #fff; color: #fff; text-decoration: none; background: rgba(255,255,255,0.08); }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom p { margin: 0.25rem 0; }
.footer-bottom .disclaimer { font-style: italic; max-width: 900px; line-height: 1.6; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: calc(100vw - 2rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-3);
}
.modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-content { padding: 1.5rem; }
.modal-content h4 { margin-top: 1.5rem; font-size: 1rem; }
.modal-content h4:first-child { margin-top: 0; }

/* Contact form */
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.contact-form label { font-size: 0.88rem; color: var(--text-dim); }
.contact-form input,
.contact-form textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-response { margin: 0.75rem 0; font-size: 0.9rem; }
.form-response.success { color: var(--success); }
.form-response.error { color: var(--danger); }
.form-loader { display: flex; justify-content: center; padding: 0.5rem; }
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Email capture inline */
.email-capture {
  background: linear-gradient(135deg, #f0f6ff 0%, #e4edf8 100%);
  border: 1px solid rgba(0, 91, 172, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.email-capture h4 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.email-capture p { color: var(--text-dim); margin-bottom: 1rem; }
.email-capture form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.email-capture input {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
@media (max-width: 560px) {
  .email-capture form { flex-direction: column; }
}

/* Related blocks — articles liés */
.related-block {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-block h3 { margin: 0 0 1rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.related-block h3:not(:first-child) { margin-top: 2rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}
.related-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover { border-color: var(--accent); box-shadow: var(--shadow-1); text-decoration: none; }
.related-card-title { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.related-card-meta { font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; display: flex; gap: 0.5rem; align-items: center; }
.related-note { background: var(--accent-soft); color: var(--accent-2); padding: 1px 6px; border-radius: 10px; font-weight: 700; font-size: 0.72rem; }
.related-card-cta { display: inline-block; margin-top: 0.5rem; color: var(--accent); font-size: 0.82rem; font-weight: 600; }

.related-guides {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-guides li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.related-guides li:last-child { border-bottom: none; }
.related-guides a { color: var(--text); font-weight: 500; }
.related-guides a:hover { color: var(--accent); }
.related-silo { font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-raised); padding: 2px 8px; border-radius: 10px; }

/* Utilities */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Animations subtiles */
.animated {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Refonte 2026 - design editorial premium
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-raised: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --border: #dfe6f2;
  --text: #14224a;
  --text-dim: #53627c;
  --text-mute: #7d889f;
  --accent: #3159d4;
  --accent-2: #1f3fba;
  --accent-deep: #111f49;
  --accent-soft: #eef3ff;
  --success: #65bd8a;
  --warning: #f3b833;
  --danger: #d94848;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow-1: 0 8px 24px rgba(20, 34, 74, 0.06);
  --shadow-2: 0 18px 50px rgba(20, 34, 74, 0.10);
  --shadow-3: 0 26px 70px rgba(20, 34, 74, 0.16);
  --max-w: 1180px;
}

body {
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.68;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  font-size: 3.3rem;
  line-height: 1.08;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
}

@media (max-width: 760px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.65rem; }
}

.container {
  max-width: var(--max-w);
  padding-inline: 1.5rem;
}

main,
.page-main {
  padding: 3.5rem 0 4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 230, 242, 0.95);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.top-bar {
  display: none;
}

.main-bar {
  background: transparent;
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.logo-img {
  width: 252px;
  height: 54px;
}

.main-nav {
  justify-content: center;
}

.nav-menu {
  gap: 2.05rem;
  align-items: center;
}

.nav-link {
  color: #17213f;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0.4rem 0;
}

.nav-link::after {
  display: none;
}

.nav-link-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-parent::before {
  content: "";
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.btn-nav {
  min-height: 44px;
  gap: 0.6rem;
  background: #fff;
  color: var(--accent-2);
  border: 1.5px solid rgba(49, 89, 212, 0.75);
  border-radius: 8px;
  padding: 0.7rem 1.25rem;
  box-shadow: none;
}

.btn-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-nav-icon {
  width: 16px;
  height: 16px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.btn-nav-icon::before,
.btn-nav-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1.5px;
  background: currentColor;
}

.btn-nav-icon::before { top: 5px; }
.btn-nav-icon::after { top: 9px; }

@media (max-width: 1100px) {
  .nav-menu { gap: 1.1rem; }
  .nav-link { font-size: 0.88rem; }
}

@media (max-width: 960px) {
  .header-container {
    padding: 0.85rem 1rem;
  }

  .logo-img {
    width: 210px;
    height: auto;
  }

  .nav-menu {
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 520px) {
  .logo-img { width: 178px; }
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-subscribe {
  min-height: 46px;
  border-radius: 8px;
  padding: 0.82rem 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  border-width: 1.5px;
  box-shadow: none;
}

.btn,
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn:hover,
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--accent-2);
  border-color: rgba(49, 89, 212, 0.55);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: var(--accent);
}

.btn-ghost {
  color: var(--accent-2);
  border-color: transparent;
}

.btn-ghost::after {
  content: "";
}

/* Home hero */
.home-hero,
.product-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #eef3f9;
}

.home-hero {
  min-height: 610px;
  display: flex;
  align-items: stretch;
  background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 38%, rgba(255,255,255,0.78) 56%, rgba(255,255,255,0.08) 100%), url('/assets/accompagnement-assurance-vie.jpg');
  background-size: cover;
  background-position: center right;
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 3rem;
  align-items: center;
  min-height: 610px;
  padding-block: 4rem;
}

.home-hero-copy {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid #dbe5ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.product-hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 700px;
}

.home-hero h1 {
  color: #13224a;
}

.home-hero h1 strong,
.home-hero h1 em,
.home-hero h1 span {
  color: var(--accent);
  font-style: normal;
}

.home-hero-copy p,
.product-hero-copy p,
.page-hero p {
  max-width: 610px;
  margin: 1.3rem 0 0;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin-top: 2.5rem;
}

.hero-proof span,
.product-metrics div {
  position: relative;
  padding-left: 2.1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-proof span::before,
.product-metrics div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.hero-proof span::after,
.product-metrics div::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

.hero-check-card,
.product-summary-card {
  align-self: end;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(223, 230, 242, 0.9);
  border-radius: 8px;
  padding: 1.45rem;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(8px);
}

.hero-check-card h2,
.product-summary-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.hero-check-card ul,
.product-summary-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-check-card li,
.product-summary-card li {
  position: relative;
  margin: 0;
  padding: 0.58rem 0 0.58rem 1.9rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-check-card li::before,
.product-summary-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(101, 189, 138, 0.25);
}

.hero-check-card li::after,
.product-summary-card li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.98rem;
  width: 5px;
  height: 3px;
  border-left: 1.6px solid var(--success);
  border-bottom: 1.6px solid var(--success);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.9)), url('/assets/accompagnement-assurance-vie.jpg');
    background-position: center;
  }

  .home-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 3rem;
  }

  .hero-check-card {
    align-self: stretch;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* Home sections */
.trust-strip {
  background: #f6f8fd;
  border-block: 1px solid #edf1f8;
  padding: 1.5rem 0;
  text-align: center;
}

.trust-strip p {
  margin: 0 0 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.trust-logos span {
  color: #1e2947;
  opacity: 0.58;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1;
}

.section-intro {
  padding: 3rem 0 2rem;
  text-align: center;
}

.section-intro > p {
  max-width: 620px;
  margin: 0.7rem auto 2rem;
  color: var(--text-dim);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.design-card-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.design-card,
.contrat-card,
.related-card,
.sidebar-module,
.author-card,
.feature-card,
.info-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 34, 74, 0.035);
}

.design-card {
  min-height: 230px;
  padding: 1.6rem 1.45rem;
  text-align: left;
}

.design-card h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.05rem;
}

.design-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #eff3ff;
  color: var(--accent);
  position: relative;
}

.chart-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: linear-gradient(to top, transparent 0 20%, currentColor 20% 100%) left bottom / 5px 12px no-repeat,
              linear-gradient(to top, transparent 0 20%, currentColor 20% 100%) center bottom / 5px 18px no-repeat,
              linear-gradient(to top, transparent 0 20%, currentColor 20% 100%) right bottom / 5px 24px no-repeat;
  opacity: 0.9;
}

.search-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(13px, 13px) rotate(45deg);
}

.book-icon::before {
  content: "";
  width: 26px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 2px 2px;
}

.book-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 24px;
  background: currentColor;
}

.target-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px #eff3ff, inset 0 0 0 8px currentColor;
}

.ranking-preview {
  display: grid;
  grid-template-columns: 0.78fr 1.45fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

.ranking-copy h2 {
  margin-top: 0;
}

.ranking-copy p {
  max-width: 410px;
  color: var(--text-dim);
}

.comparison-table {
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  background: #fff;
  border: 1px solid var(--border);
}

.comparison-table table {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

table {
  border-radius: 8px;
  border-color: var(--border);
}

thead th {
  background: var(--accent-deep);
  padding: 1rem 1.1rem;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

tbody td {
  padding: 1rem 1.1rem;
  color: #273452;
}

tbody tr:hover,
tbody tr.highlight {
  background: #f8faff;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: #e8edf8;
  color: #59657f;
  font-size: 0.78rem;
  font-weight: 900;
}

tbody tr:nth-child(1) .rank-badge { background: #e9c76a; color: #fff; }
tbody tr:nth-child(2) .rank-badge { background: #b8beca; color: #fff; }
tbody tr:nth-child(3) .rank-badge { background: #c98b5c; color: #fff; }

.rating-stars {
  color: var(--warning);
  letter-spacing: 0;
}

.table-link {
  display: block;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-weight: 800;
}

.split-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.split-feature.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-card {
  margin: 0;
  padding: 1.35rem 1.45rem;
  box-shadow: none;
}

.feature-card h3,
.feature-card h4,
.info-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  background: var(--surface-2);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 940px) {
  .design-card-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-preview,
  .split-feature,
  .split-feature.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .design-card-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

/* Product pages */
.product-hero {
  background-image: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0.5) 65%, rgba(255,255,255,0.12) 100%), url('/assets/comparatif-assurance vie.jpeg');
  background-size: cover;
  background-position: center right;
  padding: 1rem 0 2.2rem;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 3rem;
  align-items: center;
  min-height: 410px;
}

.product-hero-copy {
  max-width: 680px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.product-summary-card {
  align-self: center;
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-metrics span {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-metrics strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.98rem;
}

.product-tabs {
  position: sticky;
  top: 87px;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.product-tabs .container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs a {
  padding: 1rem 0;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.product-tabs a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.article-section {
  padding: 1.25rem 0;
}

.article-section h2 {
  margin-top: 0.5rem;
}

.pros-cons-grid,
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fee-grid div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
}

.fee-grid span {
  display: block;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.fee-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1.35rem;
}

.doc-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .product-hero-grid,
  .product-metrics,
  .pros-cons-grid,
  .fee-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.88)), url('/assets/comparatif-assurance vie.jpeg');
  }

  .product-tabs {
    top: 72px;
  }
}

/* Generic page hero and listings */
.compact-hero {
  padding: 1rem 0 3.5rem;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.86), rgba(255,255,255,0.35)), url('/assets/comprendre-assurance-vie.jpg');
  background-size: cover;
  background-position: center right;
}

.compact-hero .container {
  max-width: var(--max-w);
}

.compact-hero .intro-text {
  max-width: 720px;
  color: var(--text-dim);
}

.listing-grid {
  margin-top: 1.5rem;
}

.listing-card {
  display: block;
  min-height: 210px;
  padding: 1.35rem;
  text-decoration: none;
  color: var(--text);
  border-top: 0;
}

.listing-card:hover {
  border-color: rgba(49, 89, 212, 0.45);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
  text-decoration: none;
}

.listing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.listing-card h2,
.listing-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.listing-card .note {
  flex: 0 0 auto;
  color: var(--warning);
  font-size: 0.88rem;
  font-weight: 900;
}

.listing-card .frais,
.guide-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.card-metrics {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.card-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.card-metrics strong {
  color: var(--text);
}

.guide-group {
  margin: 2.5rem 0;
}

.guide-card-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Simulator and newsletter */
.simulator-container {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  padding: 2rem;
}

.section-heading-left h2 {
  margin-top: 0;
}

.section-heading-left p {
  max-width: 680px;
  color: var(--text-dim);
}

.input-group input,
.input-group select,
.contact-form input,
.contact-form textarea {
  border-radius: 8px;
  background: #f8faff;
}

.results-chart,
.final-value,
.potential-gain {
  background: #f8faff;
  border-radius: 8px;
}

.email-capture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: center;
  padding: 1.55rem 2rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, #111f49, #172a63);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}

.email-capture::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4e70e4;
  box-shadow: inset 0 0 0 18px rgba(255,255,255,0.12);
}

.email-capture h4 {
  color: #fff;
  margin: 0 0 0.3rem;
}

.email-capture p {
  color: rgba(255,255,255,0.82);
  margin: 0;
}

.email-capture form {
  max-width: none;
  margin: 0;
}

.email-capture input {
  min-height: 48px;
  background: #fff;
  border: 0;
}

.email-capture .btn {
  min-height: 48px;
}

@media (max-width: 900px) {
  .email-capture {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .email-capture::before {
    display: none;
  }
}

/* CTA and footer */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  background: linear-gradient(135deg, #111f49, #172a63);
  border-radius: 8px;
  padding: 1.7rem 2rem;
}

.cta-box::before {
  display: none;
}

.cta-box h3,
.cta-box p {
  margin: 0;
}

.cta-box p {
  margin-top: 0.35rem;
}

.cta-box > h3,
.cta-box > p {
  flex: 1 1 100%;
}

.cta-box > .btn {
  margin-top: 0.5rem;
}

.cta-box > .btn-secondary {
  margin-left: 0 !important;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-box .btn-secondary {
  background: #fff;
}

.resume-section {
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 1.8rem 0;
  margin: 0;
}

.resume-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.resume-item {
  border: 0;
  color: var(--text);
  padding: 0.5rem 0 0.5rem 3rem;
  position: relative;
}

.resume-item:hover {
  background: transparent;
}

.resume-item-icon {
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1.5px solid var(--accent);
}

.resume-item-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.resume-item-title {
  color: var(--text);
  font-size: 0.98rem;
}

.resume-item-subtitle {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.84rem;
}

footer,
.site-footer {
  margin-top: 0;
  padding: 3.5rem 0 1.4rem;
  background: #f7f9fd;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.86rem;
  text-transform: uppercase;
  font-weight: 900;
}

.footer-col.brand p {
  color: var(--text-dim);
  max-width: 280px;
}

.footer-logo-img {
  width: 252px;
  height: 54px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: var(--text-dim);
  border: 1px solid #cfd7e8;
  font-weight: 800;
}

.social-icons a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
}

.footer-links a {
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 0;
  color: var(--text-mute);
}

.footer-bottom a {
  color: var(--text-dim);
}

.footer-bottom span {
  margin: 0 0.55rem;
  color: #a2acc0;
}

@media (max-width: 900px) {
  .cta-box,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 1rem;
  }

  .hero-actions,
  .cta-actions,
  .email-capture form {
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .email-capture .btn,
  .email-capture input {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Print */
@media print {
  .site-header, footer, .btn-nav, .modal-overlay, .modal, .cta-box, .email-capture { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
