/* ============================================
   LOI JEANBRUN — Site vitrine
   Charte : Institutionnel / DSFR
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  color: #1e1e1e;
  background-color: #ffffff;
  line-height: 1.7;
}

a {
  color: #000091;
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover {
  color: #0055a4;
  text-decoration: underline;
}

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

ul, ol {
  padding-left: 1.5rem;
}

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  color: #000091;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; margin-top: 2rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1rem;
}

/* --- Conteneur --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Bandeau d'alerte PLF --- */
.alert-banner {
  background-color: #fef3cd;
  border-bottom: 3px solid #e1000f;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #1e1e1e;
}

.alert-banner strong {
  color: #e1000f;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: #000091;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo span {
  color: #ffffff;
  opacity: 0.7;
  font-weight: 400;
  font-size: 0.85rem;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: #ffffff;
}

/* Navigation desktop */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
}

.main-nav a {
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Burger menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #000091 0%, #0055a4 100%);
  color: #ffffff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero .badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  text-align: center;
}

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

.btn-primary {
  background-color: #ffffff;
  color: #000091;
}

.btn-primary:hover {
  background-color: #f0f0ff;
  color: #000091;
}

.btn-secondary {
  background-color: #000091;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #0055a4;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #000091;
  border: 2px solid #000091;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: #000091;
  color: #ffffff;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #f5f5fe;
}

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

.section-title p {
  color: #666666;
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 1.1rem;
}

/* --- Cartes --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid #000091;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p {
  color: #666666;
  font-size: 0.95rem;
}

/* --- Cartes volets (dispositif) --- */
.volet-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #000091;
}

.volet-card.volet-ancien {
  border-top-color: #0055a4;
}

.volet-card h3 {
  margin-top: 0;
}

.volet-card ul {
  margin-top: 0.5rem;
}

.volet-card ul li {
  margin-bottom: 0.5rem;
}

/* --- Tableaux --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background-color: #000091;
  color: #ffffff;
}

th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

tbody tr:nth-child(even) {
  background-color: #f5f5fe;
}

tbody tr:hover {
  background-color: #eeeeff;
}

/* --- Encadrés info / alerte --- */
.info-box {
  background-color: #f5f5fe;
  border-left: 4px solid #0055a4;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.info-box p {
  margin-bottom: 0;
}

.warning-box {
  background-color: #fef3cd;
  border-left: 4px solid #e1000f;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.warning-box p {
  margin-bottom: 0;
}

/* --- Checklist --- */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0055a4;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Infographie comparatif Jeanbrun vs Pinel --- */
.infographie-comparatif {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 145, 0.1);
  border: 1px solid #d0d0e8;
}

.infographie-header {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
}

.infographie-header-pinel {
  background: #4a4a4a;
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.infographie-header-sep {
  background: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.infographie-header-jeanbrun {
  background: #000091;
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.infographie-header-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.infographie-header-pinel .infographie-header-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #ccc;
}

.infographie-header-jeanbrun .infographie-header-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.infographie-header-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.infographie-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  border-top: 1px solid #e0e0e8;
}

.infographie-pinel-val {
  background: #f5f5f5;
  padding: 0.9rem 1.25rem;
  text-align: right;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1.45;
}

.infographie-pinel-val strong {
  color: #333;
}

.infographie-critere {
  background: #fff;
  padding: 0.75rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-left: 1px solid #e0e0e8;
  border-right: 1px solid #e0e0e8;
}

.infographie-critere-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.infographie-critere-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  line-height: 1.2;
}

.infographie-jeanbrun-val {
  background: #f5f5fe;
  padding: 0.9rem 1.25rem;
  color: #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1.45;
}

.infographie-jeanbrun-val strong {
  color: #000091;
}

@media (max-width: 768px) {
  .infographie-header {
    grid-template-columns: 1fr 1fr;
  }

  .infographie-header-sep {
    display: none;
  }

  .infographie-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    border-top: 2px solid #000091;
  }

  .infographie-critere {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    background: #1e1e1e;
    border: none;
    padding: 0.5rem 1rem;
  }

  .infographie-critere-label {
    color: #ccc;
  }

  .infographie-pinel-val {
    text-align: left;
    align-items: flex-start;
    border-right: 1px solid #e0e0e8;
  }

  .infographie-pinel-val::before {
    content: "Loi Pinel";
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 0.2rem;
  }

  .infographie-jeanbrun-val::before {
    content: "Jeanbrun 2026";
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0055a4;
    margin-bottom: 0.2rem;
  }
}

@media (max-width: 480px) {
  .infographie-row {
    grid-template-columns: 1fr;
  }

  .infographie-pinel-val {
    border-right: none;
    border-bottom: 1px solid #e0e0e8;
  }
}

/* --- Pour aller plus loin --- */
.pour-aller-plus-loin {
  margin-top: 2.5rem;
  border-top: 2px solid #000091;
  padding-top: 1.5rem;
}

.pour-aller-plus-loin__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000091;
  margin-bottom: 0.5rem;
}

.pour-aller-plus-loin__intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.pour-aller-plus-loin__list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pour-aller-plus-loin__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: #f5f5fe;
  border-left: 3px solid #000091;
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  color: #1e1e1e;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.pour-aller-plus-loin__item a:hover {
  background-color: #e8e8f8;
  border-color: #0055a4;
  color: #000091;
  text-decoration: none;
}

.pour-aller-plus-loin__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pour-aller-plus-loin__item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000091;
}

.pour-aller-plus-loin__item-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #555;
}

.pour-aller-plus-loin__item-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #000091;
}

/* --- Résumé atouts --- */
.atouts-list {
  list-style: none;
  padding-left: 0;
}

.atouts-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  font-size: 1.05rem;
}

.atouts-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0055a4;
  font-weight: 700;
}

/* --- Exemple de calcul --- */
.calcul-block {
  background-color: #ffffff;
  border: 2px solid #000091;
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.calcul-block h3 {
  margin-top: 0;
}

.calcul-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.calcul-steps li {
  counter-increment: step;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
}

.calcul-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 1.8rem;
  height: 1.8rem;
  background-color: #000091;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.calcul-result {
  background-color: #f5f5fe;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000091;
  text-align: center;
}

/* --- Comparaison --- */
.comparison-highlight {
  font-weight: 700;
  color: #0055a4;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #000091 0%, #0055a4 100%);
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-section h2 {
  color: #ffffff;
  margin-top: 0;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
  background-color: #1e1e1e;
  color: #cccccc;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #cccccc;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 1.5rem;
  text-align: center;
  color: #999999;
  font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3.5rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }

  .section { padding: 3rem 0; }

  /* Sidebar → bloc pleine largeur */
  .homepage-with-sidebar {
    flex-direction: column;
  }

  .sidebar-sommaire {
    width: 100%;
    position: static;
    max-height: none;
    margin-top: 0;
    border-right: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 1.5rem;
  }

  .sidebar-sommaire .sommaire-list {
    columns: 2;
    column-gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navigation mobile */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #000091;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
  }

  /* Hero mobile */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  /* Sections mobile */
  .section { padding: 2.5rem 0; }
  .section-title { margin-bottom: 2rem; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  /* Cards mobile */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Tables mobile */
  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.6rem 0.75rem;
  }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  /* Deux colonnes volets */
  .volets-grid {
    grid-template-columns: 1fr;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .sidebar-sommaire .sommaire-list {
    columns: 1;
  }
}

/* --- Utilitaires --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Grille deux colonnes */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Volets grid */
.volets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .volets-grid {
    grid-template-columns: 1fr;
  }
}

/* Page header (pages intérieures) */
.page-header {
  background: linear-gradient(135deg, #000091 0%, #0055a4 100%);
  color: #ffffff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Content area */
.content-area {
  padding: 3rem 0;
}

.content-area > .container > h2:first-child {
  margin-top: 0;
}

/* Listes stylées */
.styled-list li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* --- Sommaire (pages intérieures) --- */
.sommaire {
  background-color: #f5f5fe;
  border-bottom: 2px solid #e0e0e0;
  padding: 2rem 0;
}

.sommaire-title {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.sommaire-list {
  list-style: none;
  padding-left: 0;
  counter-reset: sommaire;
  max-width: 700px;
  columns: 1;
}

.sommaire-list li {
  counter-increment: sommaire;
  margin-bottom: 0.5rem;
}

.sommaire-list li a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 1rem;
  color: #000091;
  font-weight: 600;
  transition: color 0.2s;
  text-decoration: none;
}

.sommaire-list li a::before {
  content: counter(sommaire) ". ";
  font-weight: 700;
  color: #0055a4;
}

.sommaire-list li a:hover {
  color: #0055a4;
  text-decoration: underline;
}

/* --- Sidebar Sommaire (page d'accueil) --- */
.homepage-with-sidebar {
  display: flex;
  align-items: flex-start;
}

.sidebar-sommaire {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  margin-top: 2rem;
  background-color: #f5f5fe;
  border-right: 2px solid #e0e0e0;
}

.sidebar-sommaire .sommaire-title {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #000091;
}

.sidebar-sommaire .sommaire-list {
  max-width: none;
  columns: 1;
  padding-left: 0;
}

.sidebar-sommaire .sommaire-list li {
  margin-bottom: 0.25rem;
}

.sidebar-sommaire .sommaire-list li a {
  font-size: 0.88rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  display: block;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-sommaire .sommaire-list li a:hover {
  background-color: rgba(0, 0, 145, 0.08);
  text-decoration: none;
  color: #0055a4;
}

.homepage-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .sidebar-sommaire {
    position: initial;
  }
}

@media (max-width: 480px) {
  .sidebar-sommaire {
    position: initial;
  }
}

/* --- Barre de recherche header --- */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
  width: 180px;
  transition: width 0.3s, background-color 0.2s;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-search input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  width: 220px;
}

.header-search button {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
}

/* CTA dans le header */
.header-cta {
  background-color: #ffffff;
  color: #000091;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.header-cta:hover {
  background-color: #f0f0ff;
  text-decoration: none;
  color: #000091;
}

/* Header actions (search + CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #000091;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: #000091;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  background-color: #f5f5fe;
  border-bottom: 1px solid #e0e0e0;
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  color: #1e1e1e;
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- Formulaire de téléchargement --- */
.download-form-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.download-form-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.download-form-intro h2 {
  margin-top: 0;
}

.download-form {
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group .required {
  color: #e1000f;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: #1e1e1e;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #000091;
  box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.15);
}

.form-group input.input-error {
  border-color: #e1000f;
  box-shadow: 0 0 0 3px rgba(225, 0, 15, 0.1);
}

.form-error {
  display: block;
  color: #e1000f;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

.form-actions {
  margin-top: 1.5rem;
}

.btn-download {
  width: 100%;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.form-mention {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #999999;
  text-align: center;
}

.form-mention a {
  color: #666666;
  text-decoration: underline;
}

/* --- Bouton blanc sur fond bleu (variante hero) --- */
.btn-white {
  background-color: #ffffff;
  color: #000091;
}

.btn-white:hover {
  background-color: #f0f0ff;
  color: #000091;
}

/* --- Bloc « L'essentiel à retenir » --- */
.essentiel-section {
  padding: 3rem 0;
}

.essentiel-block {
  background-color: #f5f5fe;
  border-left: 5px solid #000091;
  border-radius: 0 8px 8px 0;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.essentiel-header {
  margin-bottom: 1.5rem;
}

.essentiel-badge {
  display: inline-block;
  background-color: #000091;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.essentiel-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
  color: #000091;
}

.essentiel-divider {
  border: none;
  border-top: 1px solid #d0d0e0;
  margin: 1.5rem 0;
}

.essentiel-content .summary-grid {
  gap: 1rem;
}

.essentiel-content .summary-item {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 1.25rem 1rem;
  border: 1px solid #e0e0e0;
}

.essentiel-content .atouts-list li {
  font-size: 1rem;
  padding: 0.4rem 0 0.4rem 2rem;
}

@media (max-width: 768px) {
  .essentiel-block {
    padding: 1.5rem 1.25rem;
  }

  .essentiel-content .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .essentiel-content .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Guide inline (page d'accueil) --- */
.cta-guide-inline {
  padding: 2rem 0;
}

.cta-guide-inner {
  background: linear-gradient(135deg, #000091 0%, #0055a4 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 3rem 2.5rem;
}

.cta-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cta-guide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.cta-guide-content h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.cta-guide-content p {
  opacity: 0.92;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cta-guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-guide-checklist li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.92;
}

.cta-guide-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #90ee90;
  font-weight: 700;
  font-size: 1.1rem;
}

.cta-guide-form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-guide-form-title {
  color: #000091;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-align: center;
}

.cta-guide-form {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.cta-guide-form .form-group {
  margin-bottom: 0.85rem;
}

.cta-guide-form .form-group label {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.cta-guide-form .form-group input {
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
}

.cta-guide-form .form-actions {
  margin-top: 1.25rem;
}

.cta-guide-form .form-mention {
  margin-top: 1rem;
  font-size: 0.75rem;
}

.cta-guide-form .form-mention a {
  color: #666;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 992px) {
  .cta-guide-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .cta-guide-inner {
    padding: 2rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-guide-form-card {
    padding: 1.5rem;
  }
}

/* ==============================
   CTA Simulateur
   ============================== */
.cta-simulateur-inline {
  padding: 2rem 0;
}

.cta-simulateur-inner {
  background-color: #000091;
  color: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-simulateur-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.cta-simulateur-text {
  flex: 1;
  min-width: 200px;
}

.cta-simulateur-text h2 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.cta-simulateur-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-simulateur-action {
  flex-shrink: 0;
}

.btn-simulateur {
  display: inline-block;
  background: #fff;
  color: #000091;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
}

.btn-simulateur:hover {
  background: #e8e8f8;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cta-simulateur-inner {
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    text-align: center;
    gap: 1.25rem;
  }

  .cta-simulateur-action {
    width: 100%;
    text-align: center;
  }

  .btn-simulateur {
    width: 100%;
    text-align: center;
  }
}

/* ==============================
   Simulations chiffrées — tableau fiscal
   ============================== */
.simulation-scenario {
  background: #fff;
  border: 1px solid #e0e0ef;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.simulation-scenario h3 {
  margin-top: 0;
  color: #000091;
}

.simulation-scenario .scenario-result {
  background: #000091;
  color: #fff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* --- Résumé final (section conclusion) --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.summary-item {
  padding: 1.5rem;
}

.summary-item .summary-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000091;
  display: block;
  margin-bottom: 0.25rem;
}

.summary-item .summary-label {
  color: #666666;
  font-size: 0.95rem;
}

/* --- Responsive ajouts --- */
@media (max-width: 992px) {
  .header-search {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .header-cta-mobile {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 0.5rem;
  }

  .header-cta-mobile:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: #ffffff;
  }

  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 1rem 1.25rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Quiz --- */
.quiz-section {
  background-color: white;
}

.quiz-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 145, 0.08);
  padding: 2rem;
}

.quiz-top {
  margin-bottom: 1.5rem;
}

.quiz-counter {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000091;
  margin-bottom: 0.5rem;
}

.quiz-progress-bar-outer {
  width: 100%;
  height: 6px;
  background-color: #e8e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-bar-inner {
  height: 100%;
  background-color: #000091;
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 10%;
}

.quiz-q-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0ef;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  font-size: 0.95rem;
}

.quiz-option:hover {
  border-color: #000091;
  background-color: #f0f0ff;
}

.quiz-option input {
  accent-color: #000091;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.quiz-opt-correct {
  border-color: #008941 !important;
  background-color: #e8f7ee !important;
  color: #005a2b;
  font-weight: 600;
}

.quiz-opt-wrong {
  border-color: #c94e2a !important;
  background-color: #fdf0ed !important;
  color: #8b2000;
}

.quiz-explanation {
  background-color: #f4f4fb;
  border-left: 4px solid #000091;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

.quiz-exp-correct {
  color: #005a2b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-exp-wrong {
  color: #8b2000;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quiz-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.quiz-final {
  text-align: center;
  padding: 1rem 0;
}

.quiz-score-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
}

.quiz-score-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.quiz-score-pct {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.quiz-score-msg {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
  font-weight: 600;
}

.quiz-final-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Infographie-jeanbrun */

#infographie-jeanbrun {
  max-width: 100%;
  height: auto;
  display: block;
  width: 700px;
  margin: 0 auto;
}