:root {
  --primary-blue: #1c2449;
  --primary-red: #9d0000;
  --secondary-blue: #2a3a6b;
  --secondary-red: #b80000;
  --accent-gold: #d4af37;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-light: rgba(28, 36, 73, 0.1);
  --shadow-medium: rgba(28, 36, 73, 0.2);
  --shadow-dark: rgba(28, 36, 73, 0.3);
  --gradient-primary: linear-gradient(135deg, #1c2449 0%, #1c2449 100%);
  --gradient-secondary: linear-gradient(135deg, #9d0000 0%, #b80000 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  position: relative;
  font-weight: 400;
}

.main-header {
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px var(--shadow-medium);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  position: relative;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

main {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Styles spécifiques pour les pages programme et livrets */
body.program-page,
body.livrets-page {
  color: var(--text-dark);
  background-color: var(--bg-white);
}

body.program-page .main-header,
body.livrets-page .main-header {
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.program-page .logo a,
body.livrets-page .logo a {
  color: var(--text-dark);
  text-shadow: none;
}

body.program-page .nav-links a,
body.livrets-page .nav-links a {
  color: var(--text-dark);
}

body.program-page .nav-links a:hover,
body.livrets-page .nav-links a:hover {
  color: var(--primary-blue);
  background: rgba(28, 36, 73, 0.1);
}

body.program-page .nav-links a.active,
body.livrets-page .nav-links a.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}

body.program-page main,
body.livrets-page main {
  background-color: var(--bg-white);
  color: var(--text-dark);
  max-width: 1200px;
  margin: 8rem auto 2rem;
  padding: 0 1rem;
  flex: 1;
}

body.program-page footer,
body.livrets-page footer {
  background: var(--bg-light);
  color: var(--text-dark);
  flex-shrink: 0;
  margin-top: auto;
}

body.wiki-page footer {
  background: var(--gradient-primary);
  color: white;
  flex-shrink: 0;
  margin-top: auto;
}

body.wiki-page .footer-section h4 {
  color: white;
}

body.wiki-page .footer-section p {
  color: rgba(255, 255, 255, 0.8);
}

body.wiki-page .footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

body.wiki-page .footer-section a:hover {
  color: var(--accent-gold);
}

body.wiki-page .footer-bottom {
  color: rgba(255, 255, 255, 0.7);
}

body.program-page .footer-section h4,
body.livrets-page .footer-section h4 {
  color: var(--text-dark);
}

body.program-page .footer-section p,
body.livrets-page .footer-section p {
  color: var(--text-light);
}

body.program-page .footer-section a,
body.livrets-page .footer-section a {
  color: var(--text-light);
}

body.program-page .footer-section a:hover,
body.livrets-page .footer-section a:hover {
  color: var(--primary-blue);
}

body.program-page .footer-bottom,
body.livrets-page .footer-bottom {
  color: var(--text-light);
}

.program-container {
  padding-top: 2rem;
}

.program-container h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  padding-top: 1rem;
}

.program-section {
  margin-bottom: 4rem;
}

.program-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-blue);
  color: var(--primary-blue);
  font-weight: 700;
  position: relative;
}

.program-section h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-secondary);
}

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

.chapter-card {
  background: var(--bg-white);
  border: 1px solid rgba(28, 36, 73, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.chapter-card:hover::before {
  transform: scaleX(1);
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-medium);
  border-color: var(--primary-blue);
}

.chapter-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.chapter-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.chapter-content {
  max-width: 800px;
  margin: 8rem auto 2rem;
  padding: 2rem;
  flex: 1;
}

.chapter-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.chapter-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.chapter-content p {
  margin-bottom: 1rem;
}

.chapter-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.chapter-content li {
  margin-bottom: 0.5rem;
}

.chapter-content li .proposal-explanation {
  display: block;
  margin-top: 0.3rem;
  margin-left: 0;
  font-size: 0.85rem;
  color: #b8b8b8;
  font-style: italic;
  line-height: 1.4;
}

footer {
  background: var(--gradient-primary);
  padding: 4rem 1rem 2rem;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.3rem 0;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .main-header nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .program-section h2 {
    font-size: 1.5rem;
  }

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

/* Main Hero Section */
.main-hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: -2rem;
}

.main-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(28, 36, 73, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(42, 58, 107, 0.2) 0%,
      transparent 50%
    );
  z-index: 1;
}

.hero-layout {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
  gap: 4rem;
}

.hero-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-content {
  flex: 1;
  padding: 2rem 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 300;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: var(--gradient-secondary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(157, 0, 0, 0.3);
  border: 2px solid transparent;
  margin: 0 0.5rem;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(157, 0, 0, 0.4);
  background: var(--gradient-secondary);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.cta-button.secondary:hover {
  background: var(--accent-gold);
  color: var(--primary-blue);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Highlights Section */
.highlights {
  padding: 6rem 1rem;
  background: var(--bg-light);
  position: relative;
}

.highlights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.highlights h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--primary-blue);
  font-weight: 700;
  position: relative;
}

.highlights h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-light);
  transition: all 0.4s ease;
  border: 1px solid rgba(28, 36, 73, 0.1);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow-medium);
}

.highlight-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.highlight-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Vision Section */
.vision {
  background: var(--gradient-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 70%,
      rgba(28, 36, 73, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(42, 58, 107, 0.15) 0%,
      transparent 50%
    );
  z-index: 1;
}

.vision h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: white;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.vision-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.vision-content p {
  margin-bottom: 3rem;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-weight: 300;
}

.secondary-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--accent-gold);
  text-decoration: none;
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.secondary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  transition: left 0.3s ease;
  z-index: -1;
}

.secondary-button:hover::before {
  left: 0;
}

.secondary-button:hover {
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Banners Section */
.banners {
  padding: 6rem 1rem;
  background: var(--bg-white);
  position: relative;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 12px 40px var(--shadow-light);
  position: relative;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.banner-card:hover::before {
  opacity: 1;
}

.banner-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow-medium);
}

.banner-content {
  padding: 3rem;
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.banner-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 300;
}

.banner-content i {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  opacity: 0.2;
  z-index: 1;
}

.budget-banner {
  background: var(--gradient-primary);
  color: white;
}

.reorganize-banner {
  background: var(--gradient-secondary);
  color: white;
}

/* Budget Comparison Styles */
.budget-comparison {
  padding: 2rem 0;
}

/* Budget Page Styles */
.budget-main {
  flex: 1;
  padding: 8rem 1rem 4rem;
  background: var(--bg-white);
}

.budget-container {
  max-width: 1200px;
  margin: 0 auto;
}

.budget-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 4rem;
}

.budget-section {
  margin-bottom: 4rem;
}

.budget-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-blue);
  position: relative;
}

.budget-section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-secondary);
}

/* Budget Table Styles */
.budget-table-wrapper {
  background: var(--bg-white);
  border: 1px solid rgba(28, 36, 73, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 2px var(--shadow-light);
  margin-bottom: 3rem;
}

.budget-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-light);
  border-bottom: 2px solid rgba(28, 36, 73, 0.1);
}

.budget-table-col {
  padding: 1.5rem 2rem;
}

.budget-col-depenses {
  border-right: 1px solid rgba(28, 36, 73, 0.1);
}

.budget-col-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

.budget-table-body {
  display: flex;
  flex-direction: column;
}

.budget-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(28, 36, 73, 0.05);
  transition: background-color 0.2s ease;
}

.budget-table-row:hover {
  background: rgba(28, 36, 73, 0.02);
}

.budget-table-row:last-child {
  border-bottom: none;
}

.budget-table-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  gap: 1.5rem;
}

.budget-item-amount {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 140px;
  text-align: right;
}

.budget-item-amount.economie {
  color: #16a34a;
}

.budget-item-amount.negative {
  color: #dc2626;
}

.budget-item-description {
  flex: 1;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.budget-table-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-light);
  border-top: 2px solid rgba(28, 36, 73, 0.1);
}

.budget-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
}

.budget-total-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.budget-total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.budget-total-amount.economie {
  color: #16a34a;
}

.budget-total-amount.negative {
  color: #dc2626;
}

.budget-balance-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.budget-balance-card {
  background: var(--bg-white);
  border: 3px solid var(--primary-blue);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 32px var(--shadow-medium);
}

.balance-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.balance-amount-large {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.budget-comparison-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.comparison-card {
  background: var(--bg-white);
  border: 1px solid rgba(28, 36, 73, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-medium);
}

.comparison-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.comparison-result {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.comparison-result.deficit {
  background: rgba(220, 38, 38, 0.1);
}

.comparison-result.surplus {
  background: rgba(22, 163, 74, 0.1);
}

.comparison-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.comparison-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
}

.comparison-result.deficit .comparison-value {
  color: #dc2626;
}

.comparison-result.surplus .comparison-value {
  color: #16a34a;
}

.comparison-description {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 3px solid rgba(28, 36, 73, 0.1);
}

/* Budget Button */
.cta-button.budget-button {
  background: var(--gradient-accent);
  color: var(--primary-blue);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  border: 2px solid transparent;
}

.cta-button.budget-button:hover {
  background: var(--gradient-accent);
  color: var(--primary-blue);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

/* Responsive Budget */
@media (max-width: 768px) {
  .budget-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .budget-section-title {
    font-size: 1.5rem;
  }

  .budget-table-wrapper {
    border-radius: 8px;
  }

  .budget-table-header {
    grid-template-columns: 1fr;
  }

  .budget-col-depenses {
    border-right: none;
    border-bottom: 1px solid rgba(28, 36, 73, 0.1);
  }

  .budget-table-row {
    grid-template-columns: 1fr;
    border-bottom: 2px solid rgba(28, 36, 73, 0.1);
  }

  .budget-table-col {
    padding: 1rem 1.5rem;
  }

  .budget-table-item {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .budget-item-amount {
    text-align: left;
    min-width: auto;
  }

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

  .budget-col-depenses:last-child {
    border-bottom: 1px solid rgba(28, 36, 73, 0.1);
  }

  .budget-total-row {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .balance-amount-large {
    font-size: 2.5rem;
  }

  .budget-balance-card {
    padding: 2rem;
  }

  .budget-comparison-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .comparison-vs {
    order: -1;
    margin: 0 auto;
  }

  .comparison-card {
    padding: 2rem;
  }
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.budget-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.budget-card:hover {
  transform: translateY(-5px);
}

.chapter-card.budget-card {
  position: relative;
}

.budget-line {
  display: flex;
  width: 100%;
  height: 4px;
  margin-top: 1rem;
  border-radius: 2px;
  overflow: hidden;
}

.budget-line-red {
  flex: 1;
  background: var(--primary-red);
}

.budget-line-blue {
  flex: 1;
  background: var(--primary-blue);
}

.budget-section-no-bar h2::after {
  display: none;
}

.budget-section-no-bar h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
}

.budget-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.budget-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.budget-result {
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
}

.budget-result.deficit {
  background-color: #fee2e2;
  color: #dc2626;
}

.budget-result.surplus {
  background-color: #dcfce7;
  color: #16a34a;
}

.result-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.result-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.vs-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  background: #f8f9fa;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 3px solid #e9ecef;
}

/* Responsive Design pour la page d'accueil */
@media (max-width: 768px) {
  .main-header nav {
    padding: 0.8rem 1rem;
  }

  .logo img {
    height: 32px;
  }

  .logo a {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .main-hero {
    min-height: 100vh;
    padding: 2rem 1rem;
  }

  .hero-layout {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .hero-logo img {
    max-height: 300px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .cta-button {
    padding: 1rem 1.8rem;
    font-size: 1rem;
    margin: 0.3rem;
    display: block;
    text-align: center;
  }

  .highlights {
    padding: 4rem 1rem;
  }

  .highlights h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .highlight-card {
    padding: 2rem;
  }

  .vision {
    padding: 4rem 1rem;
  }

  .vision h2 {
    font-size: 2rem;
  }

  .vision-content p {
    font-size: 1.1rem;
  }

  .banners {
    padding: 4rem 1rem;
  }

  .banner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .banner-content {
    padding: 2rem;
    min-height: 200px;
  }

  .banner-content h3 {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .banner-content i {
    font-size: 2.5rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vs-separator {
    order: -1;
    margin: 0 auto;
  }

  .budget-card {
    padding: 1.5rem;
  }

  .budget-card h2 {
    font-size: 1.5rem;
  }

  .result-value {
    font-size: 1.5rem;
  }

  footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-content {
    gap: 2rem;
  }
}

/* Styles pour les tableaux style Wikipédia */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: #fff;
}

.wiki-table th,
.wiki-table td {
  border: 1px solid #a2a9b1;
  padding: 0.5rem;
}

.wiki-table th {
  background-color: #f8f9fa;
  text-align: center;
  font-weight: bold;
}

.wiki-table td {
  vertical-align: middle;
}

.wiki-table img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.wiki-table .category-header {
  background-color: #eaecf0;
  text-align: center;
  font-weight: bold;
}

.wiki-table .price {
  text-align: right;
  white-space: nowrap;
}

/* Before/After grid for economic tables */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.before-after-grid h3 {
  margin: 0 0 0.5rem 0;
}

@media (max-width: 768px) {
  .before-after-grid {
    grid-template-columns: 320px 320px; /* garde Avant | Après côte à côte */
    overflow-x: auto; /* scroll horizontal si l'écran est trop étroit */
  }
}

/* Styles pour la page de nationalisation */
.nationalization-grid {
  margin: 2rem 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.summary-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.summary-card h3 {
  color: #0066cc;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cost-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: #dc2626;
  margin: 1rem 0;
}

.summary-card ul {
  text-align: left;
  margin: 0;
  padding-left: 1.5rem;
}

.summary-card li {
  margin-bottom: 0.5rem;
  color: #666;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.objective-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.objective-card h3 {
  color: #0066cc;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.objective-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

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

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

  .cost-display {
    font-size: 2rem;
  }
}

/* Styles pour les cartes d'avions */
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.aircraft-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.aircraft-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.aircraft-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aircraft-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.assembly-percentage {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.aircraft-content {
  padding: 1.5rem;
}

.aircraft-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.aircraft-image img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aircraft-info {
  margin-bottom: 1rem;
}

.aircraft-info .wiki-table {
  margin: 0;
  font-size: 0.9rem;
}

.aircraft-info .wiki-table th,
.aircraft-info .wiki-table td {
  padding: 0.4rem 0.6rem;
}

.partnership-details {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.partnership-details h4 {
  color: #0066cc;
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
}

.partnership-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.partnership-details li {
  margin-bottom: 0.4rem;
  color: #666;
  font-size: 0.9rem;
}

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

  .aircraft-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .aircraft-image img {
    height: 150px;
  }
}

/* Styles pour les liens de livrets */
.livret-link {
  margin: 2rem 0;
  text-align: center;
}

.livret-button {
  display: inline-block;
  background: linear-gradient(135deg, #4f5af8 0%, #2a3a6b 50%, #1c2449 100%);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 47, 255, 0.4);
}

.livret-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 4, 255, 0.4);
  background: linear-gradient(135deg, #3c48f5 0%, #2a3a6b 50%, #1b2036 100%);
}

.livret-button:active {
  transform: translateY(0);
}

/* Styles pour la méthodologie */
.methodology-content {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.methodology-content p {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

.methodology-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.methodology-content li {
  margin-bottom: 0.5rem;
  color: #666;
}

/* Styles pour les cartes de nominations */
.nominations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.portrait-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

@media (max-width: 768px) {
  .before-after-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #resultats .before-after-grid > div {
    width: 100%;
  }

  #resultats .wiki-table {
    font-size: 0.9rem;
  }

  #resultats .wiki-table td {
    padding: 0.6rem 0.5rem;
  }
}

.portrait-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portrait-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.portrait-card:hover .portrait-image img {
  transform: scale(1.05);
}

.portrait-info {
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portrait-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.portrait-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Responsive pour les portraits */
@media (max-width: 1024px) {
  .nominations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nominations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portrait-image {
    height: 200px;
  }

  .portrait-info {
    padding: 1rem 0.8rem;
  }

  .portrait-info h3 {
    font-size: 1rem;
  }

  .portrait-info p {
    font-size: 0.8rem;
  }
}

/* Styles pour la page Wiki */
body.wiki-page {
  background-color: #f6f6f6;
  color: var(--text-dark);
  font-family: 'Linux Libertine', 'Times New Roman', Times, serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.wiki-page .main-header {
  display: none;
}

.wiki-header {
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.wiki-navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.wiki-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.wiki-search-container {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.wiki-search {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid #a2a9b1;
  border-radius: 4px;
  font-size: 0.95rem;
}

.wiki-search:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: -2px;
}

.wiki-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #72777d;
}

.wiki-nav-links {
  display: flex;
  gap: 1rem;
}

.wiki-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.wiki-nav-link:hover {
  background: rgba(28, 36, 73, 0.1);
  color: var(--primary-blue);
}

.wiki-color-bar {
  display: flex;
  width: 100%;
  height: 3px;
}

.wiki-color-blue {
  flex: 1;
  background: var(--primary-blue);
}

.wiki-color-gold {
  flex: 1;
  background: var(--accent-gold);
}

.wiki-color-red {
  flex: 1;
  background: var(--primary-red);
}

.wiki-main {
  margin-top: 100px;
  padding: 3rem 0;
  flex: 1;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
}

.wiki-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wiki-content {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #c8ccd1;
  padding: 3rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  width: 100%;
  flex: 1;
}

.wiki-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.5rem;
}

.wiki-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #a2a9b1;
}

.tl-link {
  color: inherit; /* garde la couleur du texte */
  text-decoration: none; /* pas de soulignement */
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* petit espace entre texte et icône */
}

.tl-link:hover .tl-link-icon {
  transform: translateX(2px); /* petite animation au hover */
  transition: transform 0.2s;
}

.wiki-tab {
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s ease;
}

.wiki-tab:hover {
  color: var(--primary-blue);
  background: rgba(28, 36, 73, 0.05);
}

.wiki-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.wiki-welcome {
  margin-bottom: 3rem;
}

.wiki-welcome-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.wiki-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-top: 1px solid #c8ccd1;
  padding-top: 1.5rem;
}

.wiki-section {
  margin: 0 0 2rem;
  padding: 0;
}

.wiki-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.wiki-article-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 0;
  display: block;
}

.wiki-article-list li {
  margin-bottom: 0.4rem;
  color: #202122;
}

.wiki-article-list a {
  color: #0645ad;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.wiki-article-list a:hover {
  text-decoration: underline;
  color: #0b0080;
}

.wiki-article-list a:visited {
  color: #0b0080;
}

/* Layout pour les pages d'articles individuels */
.wiki-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  background: #ffffff;
  border: 1px solid #c8ccd1;
  padding: 2.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.wiki-article-content {
  min-width: 0;
}

.wiki-article-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.5rem;
}

.wiki-article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.wiki-article-body p {
  margin-bottom: 1rem;
}

.wiki-article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.3rem;
}

.wiki-article-body a {
  color: #0645ad;
  text-decoration: none;
}

.wiki-article-body a:hover {
  text-decoration: underline;
}

.wiki-article-body a:visited {
  color: #0b0080;
}

/* Infobox style Wikipedia */
.wiki-infobox {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-radius: 4px;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.wiki-infobox-title {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.75rem;
  background: #eaecf0;
  border-bottom: 1px solid #a2a9b1;
  text-align: center;
}

.wiki-infobox-image {
  padding: 0.75rem;
  text-align: center;
  background: var(--bg-white);
}

.wiki-infobox-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.wiki-infobox-content {
  padding: 0.75rem;
}

.wiki-infobox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wiki-infobox-table th {
  text-align: left;
  padding: 0.4rem 0.5rem;
  vertical-align: top;
  font-weight: 600;
  width: 40%;
}

.wiki-infobox-table td {
  padding: 0.4rem 0.5rem;
  vertical-align: top;
}

.wiki-infobox-table a {
  color: #0645ad;
  text-decoration: none;
}

.wiki-infobox-table a:hover {
  text-decoration: underline;
}

.wiki-infobox-table a:visited {
  color: #0b0080;
}

/* Responsive pour la page wiki */
@media (max-width: 1024px) {
  .wiki-article-layout {
    grid-template-columns: 1fr;
    padding: 2.2rem;
  }

  .wiki-infobox {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .wiki-navbar {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .wiki-search-container {
    max-width: 100%;
    order: 2;
  }

  .wiki-nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .wiki-main {
    margin-top: 140px;
  }

  .wiki-container {
    padding: 0 1rem;
  }

  .wiki-content {
    padding: 2.2rem 1.6rem;
  }

  .wiki-article-layout {
    padding: 1.8rem 1.4rem;
  }

  .wiki-title {
    font-size: 2rem;
  }

  .wiki-article-title {
    font-size: 1.8rem;
  }

  .wiki-article-list {
    grid-template-columns: 1fr;
  }

  .wiki-section-title {
    font-size: 1.3rem;
  }
}
/* BUDGET TABLE SLIM */
.rf-budget-slim {
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem;
}
.rf-budget-table {
  display: flex;
  gap: 4rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 900px;
  width: 100%;
}
.rf-budget-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.rf-budget-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}
.rf-budget-col-depenses .rf-budget-title {
  color: #dc2626;
}
.rf-budget-col-economies .rf-budget-title {
  color: #16a34a;
}
.rf-budget-line {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.1rem;
  border-radius: 8px;
  padding: 0.36rem 0.8rem;
  transition: background 0.15s;
}
.rf-budget-line:hover {
  background: #f4f6f8;
}
.rf-budget-amount {
  font-weight: 700;
  min-width: 96px;
  font-size: 1.07rem;
  text-align: right;
}
.rf-budget-amount.depense {
  color: #dc2626; /* rouge */
}
.rf-budget-amount.economie {
  color: #16a34a; /* vert */
}
.rf-budget-desc {
  color: #222;
  font-size: 1rem;
  flex: 1 1 auto;
  word-break: break-word;
  text-align: left;
}
@media (max-width: 960px) {
  .rf-budget-table {
    flex-direction: column;
    gap: 2.2rem;
    padding: 1.2rem;
  }
  .rf-budget-col {
    gap: 0.15rem;
  }
}
