strong, .bold {
  font-weight: 700;
}

.align-left {
  text-align: right !important;
}

.align-right {
  text-align: right !important;
}

.align-center {
  text-align: center !important;
}

.supp {
  position: relative;
  top: -5px;
}

* {
  box-sizing: border-box; /* Opera/IE 8+ */
  -moz-box-sizing: border-box; /* Firefox, autres Gecko */
  -webkit-box-sizing: border-box; /* Safari/Chrome, autres WebKit */
}

.section input[type="text"],
.section input[type="number"],
.section input[type="search"],
.section input[type="email"],
.section input[type="tel"] {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  border-radius: 0;
}

.section input[type="text"],
.section input[type="number"] {
  background: #ffffff;
  border: none;
  outline: none;
}

body {
  --color-primary: #3500b6;
  --color-secondary: #f97a19; /* TODO JK OLD #f98282; ? */
  --color-tertiary: #7a3cd9;
  --color-quaternary: #8fdde5;
  --color-black: #1d1d1d;
  --color-grey: #a0a0a0;
  --color-white: #ffffff;
}

.bg-primary {
  background-color: var(--color-primary) !important;
  color: #ffffff;
}

.bg-secondary {
  background-color: var(--color-secondary) !important;
  color: #ffffff;
}

.bg-tertiary {
  background-color: var(--color-tertiary) !important;
  color: #ffffff;
}

.bg-quaternary {
  background-color: var(--color-quaternary) !important;
  color: #000000;
}

.bg-white {
  background-color: #ffffff;
}

.section {
  margin-bottom: 35px;
  padding: 25px;
  border-radius: 25px;
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 0.8em;
  line-height: 1.3;
  color: #ffffff;
}

.section p {
  margin: 0;
  padding: 0;
}

.section .section__header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.section .numero {
  color: var(--color-white);
  font-size: 4em;
  line-height: 1;
  font-weight: bold;
  padding-left: 10px;
  min-width: 70px;
}

.section h1 {
  color: var(--color-white);
  font-size: 1.8em;
  line-height: 1;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  margin-left: 20px;
}


/*
* Toggle
*/
.toggle-section .toggle-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.toggle-section.open .toggle-content {
	max-height: 2000px; /* valeur large pour être sûre */
}

.toggle-arrow {
	transition: transform 0.3s ease;
}

.toggle-section.open .toggle-arrow {
	transform: rotate(180deg);
}

/*
* Tooltip
*/
.tooltip {
  position: relative;
  cursor: help;
  text-decoration: underline dotted;
}

.tooltip-text {
  visibility: hidden;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.875rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}


/*
 * ETAPE 1 : Quelle rémunération mensuelle nette veux-tu ?
 */

.section-remuneration {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Slider range */
.section-remuneration .slider-container {
  position: relative;
  top: 20px;
  width: 80%;
  margin: 0 auto; 
}

.section-remuneration input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  cursor: pointer;
  outline: none;
  border-radius: 15px;
  height: 10px;
  background: #ccc;
}

.section-remuneration input[type="range"]::-webkit-slider-thumb { /* Thumb: webkit */
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  border: none;
  transition: .2s ease-in-out;
}

.section-remuneration input[type="range"]::-moz-range-thumb { /* Thumb: Firefox */
  height: 20px;
  width: 20px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  border: none;
  transition: .2s ease-in-out;
}

.section-remuneration .tooltip { /* Tooltip prix */
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(10%);
  color: var(--color-primary);
  font-size: 2.6em;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
}

.section-remuneration .tooltip .tooltip-inner {
  white-space: nowrap;
  max-width: none;
  background: transparent;
  color: var(--color-secondary);
  font-weight: 700;
}

.section-remuneration .tooltip .tooltip-supp {
  position: absolute;
  right: -26px;
  top: 10px;
  font-size: 0.4em;
  font-weight: bold;
  color: var(--color-secondary);
  line-height: 14px;
}

.section-remuneration .slider-labels {
  display: flex;
  margin: 0 -30px 0 -10px;
  justify-content: space-between;
  padding: 0 2px;
  opacity: 0.7;
}

.section-remuneration .result { /* Soit un total de X € net par an  */
  text-align: right;
  margin-right: 45px !important;
}

/* 
 * Etape 2 : charges professionnelles
 * Etape 3 : charges sociales
 * Etape 4 : dépenses perso
 */

.section-charges-pro__header,
.section-charges-sociales__header,
.section-depenses-perso__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  cursor: pointer;
}

.section-charges-pro__header .header-left,
.section-charges-sociales__header .header-left,
.section-depenses-perso__header .header-left {
  display: flex;
  align-items: center;
  gap: 4px; /* l'espace que tu contrôles */
}


.section-charges-pro__header .title,
.section-charges-sociales__header .title,
.section-depenses-perso__header .title {
  font-size: 1.4em;
  font-weight: bold;
}

.section-charges-pro__header .totals,
.section-charges-sociales__header .totals,
.section-depenses-perso__header .totals {
  display: flex;
  gap: 10px;
}

.section-charges-pro__header .total-block,
.section-charges-sociales__header .total-block,
.section-depenses-perso__header .total-block {
  width: 140px;
  background-color: var(--color-primary);
  padding: 3px 5px;
  text-align: center;
  border-radius: 5px;
}

.section-charges-pro__header .total-label,
.section-charges-sociales__header .total-label,
.section-depenses-perso__header .total-label {
  font-size: 0.8em;
}

.section-charges-pro__header .total-value,
.section-charges-sociales__header .total-value,
.section-depenses-perso__header .total-value {
  font-weight: bold;
  font-size: 1.4em;
}

.charges-sociales,
.charges-pro,
.depenses-perso {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.charges-pro.open,
.charges-sociales.open,
.depenses-perso.open {
  max-height: 3000px;
}

.charges-pro .row,
.charges-sociales .row,
.depenses-perso .row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  gap: 20px;
}

.charges-pro .col.icon,
.charges-sociales .col.icon,
.depenses-perso .col.icon {
  width: 20px;
  font-size: 1.6em;
}

.charges-pro .col.title,
.charges-sociales .col.title,
.depenses-perso .col.title {
  flex: 1;
}

.charges-pro .col.month input,
.charges-pro .col.year input,
.charges-sociales .col.year input,
.depenses-perso .col.month input,
.depenses-perso .col.year input {
  width: 90px;
  height: 40px;
  padding: 5px;
  text-align: right;
  border-radius: 5px;
}

/* Toggle */

/* SVG chevron */
.toggle-arrow {
  width: 24px;
  height: 14px;
  transition: transform 240ms ease;
  transform-origin: center;
  color: var(--color-white);
  margin-right: 8px;
}

/* état ouvert → la flèche pointe vers le haut */
.section-charges-pro__header.open .toggle-arrow,
.section-depenses-perso__header.open .toggle-arrow {
  transform: rotate(180deg);
}

/* petit padding pour que l'élément soit cliquable proprement */
.section-charges-pro__header .toggle-arrow { margin-left: 2px; margin-right: 4px; }
.section-depenses-perso__header .toggle-arrow { margin-left: 2px; margin-right: 4px; }

/* Toggle bottom */
.toggle-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
    color: var(--color-white);
    font-weight: bold;
    user-select: none;
}

.toggle-bottom-arrow {
    display: inline-block;
    width: 14px;
    height: 8px;
    margin-left: 6px;
    transition: transform 240ms ease;
    transform-origin: 50% 50%;
}

.toggle-bottom.open .toggle-bottom-arrow {
    transform: rotate(180deg);
}


/*
 * Etape results TJM
 */

.section-results {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1.8em;
  line-height: 1.1em;
  text-align: center;
}

.section-results .row {
  width: 100%;
	display: flex;
	gap: 30px;
  align-items: center;
}

.section-results .col {
  flex: 1;
  font-weight: bold;
  text-align: right;
  font-size: 0.6em;
  line-height: 1.2;
}

.row-couverture {
  font-size: 0.8em;
}

#couvertureValue {
  	font-size: 1.3em;
}

.section-results .bg-white {
	background: #fff;
	padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
	color: var(--color-secondary);
  display: flex;
	align-items: flex-end;
  justify-content: flex-end;
	gap: 6px;
}

.section-results .price-int { /* Prix entier (gros, à gauche) */
	font-size: 1.7em;
	line-height: 1;
}

.section-results .price-group { /* Bloc centimes + sous-texte, 2 lignes verticales */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(-0.3rem);
}

.section-results .price-decimals { /* Centimes en exposant visuel */
	font-size: 1rem;
	line-height: 1;
}

.section-results .subtext { /* Sous-texte juste en dessous */
	font-size: 0.7rem;
	color: #666;
	line-height: 1.1;
	margin-top: 2px;
}


/*
 * Etape 5 : Comment utiliseras-tu ton temps ? 
 */

.section-jours-factures {
  color: #ffffff;
}

.section-jours-factures .jours-container {
  margin-top: 30px;
}

.section-jours-factures hr {
  margin: 20px 0;
}

.section-jours-factures h5 {
 text-align: center;
}

.section-jours-factures .line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 15px 0;
  padding: 0 75px;
}

.section-jours-factures .line:has(#dayWorksOffTotal) {
  align-items: center;
}

#nbJoursFactures {
  font-weight: bold;
  color: #3500b6;
}


.line-value {
  min-width: 60px;
  text-align: right;
}

.number-input {
  width: 70px;
  height: 40px;
  padding: 5px;
  text-align: center;
  border-radius: 5px !important;
  margin-right: 10px;
}

#dayWorksOffTotal {
  color: #195B9E;
  font-size: 1.2rem;
  font-weight: bold;
}


/*
* Etape 6
*/
.section-fame .checkbox-group {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem 1rem;
	margin-bottom: 1.5rem;
}

.section-fame .checkbox-group label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.95rem;
}
