:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --secondary: #4f46e5;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-50);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.header-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.header-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Tab Group */
.tab-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background-color: white;
  color: var(--primary);
}

/* Main Content */
.main {
  padding: 2rem 0;
}

/* Calculator Section */
.calculator-section {
  margin-bottom: 3rem;
}

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

.calculator-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.text-muted {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: normal;
}

.input-wrapper {
  position: relative;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.info-box p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Results */
.results {
  margin-top: 2rem;
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.results-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--gray-600);
}

.result-value {
  font-weight: 600;
  color: var(--primary);
}

/* SMIC Info */
.smic-info {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

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

.smic-text {
  color: var(--gray-700);
}

.smic-text p {
  margin-bottom: 1rem;
}

.smic-list {
  list-style-type: none;
  margin: 1rem 0;
}

.smic-list li {
  padding: 0.5rem 0;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.smic-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

.smic-chart {
  height: 300px;
}

/* FAQ Section */
.faq-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.faq-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--gray-700);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

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

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-500);
}

/* Utilities */
.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-title {
    font-size: 2rem;
  }
  
  .header-subtitle {
    font-size: 1rem;
  }
  
  .calculator-card {
    padding: 1.5rem;
  }
  
  .tab-group {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Site Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-900);
  text-decoration: none;
}

.logo svg {
  color: var(--primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-700);
  cursor: pointer;
}

.action-btn:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.smic-btn {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

.smic-btn:hover {
  background: #fde68a;
  border-color: #f59e0b;
}

.copy-btn {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #5b21b6;
}

.copy-btn:hover {
  background: #ddd6fe;
  border-color: #8b5cf6;
}

.pdf-btn {
  background: #dcfce7;
  border-color: #34d399;
  color: #047857;
}

.pdf-btn:hover:not(:disabled) {
  background: #bbf7d0;
  border-color: #10b981;
}

/* Tax Section */
.tax-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.tax-content {
  margin-top: 2rem;
}

.tax-info {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.tax-value {
  font-weight: 600;
  color: var(--primary);
}

.tax-value.tax-negative {
  color: #ef4444;
}

.tax-total {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.tax-slider {
  margin: 2rem 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.tax-range {
  width: 100%;
  height: 0.5rem;
  background: var(--gray-200);
  border-radius: 9999px;
  appearance: none;
  margin: 1rem 0;
  cursor: pointer;
}

.tax-range::-webkit-slider-thumb {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

.tax-range::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.tax-info-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  background: none;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

.tax-info-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tax-brackets {
  margin-top: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.tax-brackets h3 {
  background: var(--gray-50);
  padding: 1rem;
  margin: 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1.125rem;
  color: var(--gray-900);
}

.tax-brackets table {
  width: 100%;
  border-collapse: collapse;
}

.tax-brackets th,
.tax-brackets td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.tax-brackets th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.tax-brackets td {
  color: var(--gray-600);
}

.tax-brackets tr:last-child td {
  border-bottom: none;
}

.tax-brackets.hidden {
  display: none;
}

/* Parameters Section */
.parameters-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.parameter-group {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.parameter-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.parameter-label svg {
  color: var(--primary);
}

.parameter-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  color: var(--gray-900);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.parameter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}

.hours-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.parameter-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.parameter-range {
  width: 100%;
  height: 0.5rem;
  background: var(--gray-200);
  border-radius: 9999px;
  appearance: none;
  margin: 0.5rem 0;
}

.parameter-range::-webkit-slider-thumb {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: var(--shadow);
}

.parameter-range::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: var(--shadow);
}

.hours-percentage {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: right;
}

.parameter-help {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Income Management Section */
.income-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

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

.income-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.income-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.income-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.income-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.income-list {
  margin-top: 1rem;
}

.income-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.income-item:last-child {
  border-bottom: none;
}

.income-label {
  color: var(--gray-700);
}

.income-value {
  font-weight: 500;
  color: var(--gray-900);
}

.income-value.positive {
  color: #059669;
}

.income-value.negative {
  color: #dc2626;
}

a {
  text-decoration: none !important; /* Enlève le soulignement de tous les liens */
  color: inherit !important; /* Hérite de la couleur du texte parent */
}

