:root {
    --text-color-prim:#000;
    --border-radius-sm : 0;
    --warning: rgba(140,50,40,1.00);
    --msg-color :#b8beb3;
    --simul-prim-color : #F2F2F2;
    --bkg-box-infos:#E5F0DF;

    /* fonts */
    --font-size-base: 18px;
    --font-size-xxs: calc(var(--font-size-base) * 0.625); /* ~10px */
    --font-size-xs: calc(var(--font-size-base) * 0.75); /* ~12px */
    --font-size-sm: calc(var(--font-size-base) * 0.875); /* ~14px */
    --font-size-md: var(--font-size-base); /* 16px */
    --font-size-lg: calc(var(--font-size-base) * 1.05); /* ~20px */
    --font-size-xl: calc(var(--font-size-base) * 1.2); /* ~24px */
    --font-size-xxl: calc(var(--font-size-base) * 1.4); /* ~32px */
    --font-size-xxxl: calc(var(--font-size-base) * 1.6);
    --font-size-xxxxl: calc(var(--font-size-base) * 4);
  }

#tableau-hypotheses{
    --padding-cels :10px 14px;
}

@media (min-width: 941px) {
    :root {
        --font-size-lg: calc(var(--font-size-base) * 1.1);
        --font-size-xxl: calc(var(--font-size-base) * 1.4);
        --font-size-xxxl: calc(var(--font-size-base) * 2.4);
    }
}

.bkg-color-prim {background-color:#fab712}
.bkg-color-sec {background-color: #193c6c}
.bkg-color-third {background-color: #37352e2e;}
.bkg-color-fourth {background-color: #0478ab;}
.bkg-color-fifth {background-color: var(--fifth-color);}

.text-c-prim {color: var(--prim-color)}
.text-c-sec {color: var(--sec-color)}
.text-c-third {color: var(--third-color)}
.text-c-fourth {color: #0478ab;}
.text-c-fifth {color: var(--fifth-color);}

h1,h2,h3,h4,h5{
             font-optical-sizing: auto;
         }
h2{
    font-size: var(--font-size-xxxl);
    font-weight: 500;
}
.f-s-lg{
    font-size: var(--font-size-lg);
}
.f-s-xl{
    font-size: var(--font-size-xl);
}
.f-s-xxl{
    font-size: var(--font-size-xxl);
}

.valeur-big , .text-big{
    font-size: var(--font-size-xxl);
    font-weight: 800;
    line-height: var(--font-size-xxl);
}
.valeur-big {
    white-space: nowrap;
}

.text-medium{
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: calc(var(--font-size-xl) + 0.2rem);
}
.valeur-medium{
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: calc(var(--font-size-xl) + 0.2rem);
}
#msform p{
    margin-bottom: 0.5rem;
}
/********************************
PANEL 1
*********************************/

#infos-salaires {
    display: none;
}
#cartouche-limite-invest{
    margin:35px 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-color-prim);
}
#cartouche-limite-invest .wrapper {
    padding: 35px;
}


/********************************
PANEL 2
*********************************/




/********************************
PANEL 3
*********************************/
#tableau-hypotheses {
    display: grid;
    grid-template-columns: 40% 15% 15% 15% 15%;
    font-size: var(--font-size-lg);
    min-width: 800px;
}
#tableau-hypotheses > *:nth-child(2) {
    grid-column: span 3;
}
@media (min-width: 767px) {
    #tableau-hypotheses {
        grid-template-columns: 40% 15% 15% 15% 15%;
        min-width: 100%;
    }
}
@media (min-width: 1200px) {
    #tableau-hypotheses{
        grid-template-columns: 40% 15% 15% 15% 15%;
    }
    #tableau-hypotheses > *:nth-child(1) {
        grid-template-columns: 40% 45% 15%;
    }
}
#tableau-hypotheses > div {
    padding:var(--padding-cels);
    box-sizing: border-box;
    line-height: 1.2rem;
}

#tableau-hypotheses .label{
    font-size: var(--font-size-base);
    font-weight: 700;
    display: flex;
}
#tableau-hypotheses .total{
    font-size: var(--font-size-lg);
    font-weight: 800;
}
.resume{ line-height: 1;}

.rendement-hypothese{
    max-width: 90px;
    text-align: right;
}
.form-control {
    padding: .375rem .4rem;
}
.input-group-text {
    padding: .375rem .25rem;
}
@media (max-width: 941px) {
    .input-group-text {
        padding: .75rem .275rem !important;
    }

        .form-control {
            padding: .375rem .5rem;
        }
}
/********************************
SLIDERS
*********************************/
.range-slider {
    width: 100%;
    margin: 30px 0 0;
}

.range-slider__range {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% - 30px);
    height: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.range-slider__range:focus,
.range-slider__range:active {
    outline: none;
    box-shadow: none;
}

/* PISTE CHROME / SAFARI */
input.range-slider__range {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input.range-slider__range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 8px;
    background: var(--rte-prim-color-dark);
    border: none;
    border-radius: 5px;
    box-shadow: none;
}

input#actions_achetees.range-slider__range::-webkit-slider-runnable-track {
    background: var(--rte-third-color-dark) !important;
}

input.range-slider__range::-moz-range-track {
    height: 8px;
    background: var(--rte-prim-color-dark);
    border: none;
    border-radius: 5px;
    box-shadow: none;
}

input#actions_achetees.range-slider__range::-moz-range-track {
    background: var(--rte-third-color-dark) !important;
}

/* PISTE FIREFOX */
.range-slider__range::-moz-range-track {
    height: 8px;
    background: var(--rte-prim-color-dark);
    border: none;
    border-radius: 5px;
    box-shadow: none;
}

/* Supprime le contour interne Firefox */
.range-slider__range::-moz-focus-outer {
    border: 0;
}

/* THUMB CHROME / SAFARI */
.range-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: url('../assets/slider-handle.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    margin-top: -16px; /* (40 - 8) / 2 = 16 */
    box-shadow: none;
    transition: transform .15s ease-in-out, filter .15s ease-in-out;
}

/* THUMB FIREFOX */
.range-slider__range::-moz-range-thumb {
    width: 80px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: url('../assets/slider-handle.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    box-shadow: none;
    transition: transform .15s ease-in-out, filter .15s ease-in-out;
}

.range-slider__range:hover::-webkit-slider-thumb,
.range-slider__range:hover::-moz-range-thumb {
    transform: scale(1.08);
    filter: brightness(1.05);
}
input#actions_achetees.range-slider__range::-webkit-slider-runnable-track ,
#actions_achetees.range-slider__range::-moz-range-track {
    background: var(--rte-third-color-dark);
}


.input-field input {
    width: 100%;
    padding: 18px;
    text-align: right;
    font-size: var(--font-size-xxxl);
    font-weight: 800;
    color: #212529;/
    transition: all 0.2s ease;
}

/* focus */
.input-field input:focus {
    outline: none;
    background-color: #eff3f8;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* hover */
.input-field input:hover {
}

/********************************
BOUTONS
*********************************/
.btn-prim {
    font-size: var(--font-size-xl) !important;
    color: #FFF;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition:
            background-color .2s ease,
            transform .15s ease,
            box-shadow .2s ease,
            filter .2s ease;
}

/* HOVER */
.btn-prim:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ACTIVE (clic) */
.btn-prim:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    filter: brightness(0.95);
}

/* FOCUS (accessibilité clavier) */
.btn-prim:focus {
    outline: none;
}

.btn-prim:focus-visible {
    box-shadow: 0 0 0 3px rgba(130, 229, 2, 0.4); /* adapte à ta couleur */
}

/* flèches animées next / previous */
.arrow-anim-2::after,
.arrow-anim-2-inv::before {
    content: "\2192";
    display: inline-block;
    transition: transform .2s ease;
}

.arrow-anim-2::after {
    margin-left: 10px;
}

.arrow-anim-2-inv::before {
    margin-right: 10px;
    transform: scaleX(-1);
}

.arrow-anim-2:hover::after {
    transform: translateX(6px);
}

.arrow-anim-2-inv:hover::before {
    transform: scaleX(-1) translateX(6px);
}


form {
    transition: opacity 0.4s ease;
}
form.faded{
    opacity: 0;
}
.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    border: 5px solid var(--sec-color);
    border-top: 5px solid #FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#simulateur {
    position: relative;
    margin-bottom: 35px;
    line-height: normal

}
#simulateur button{
  margin-bottom: 5px
}

#simulateur h4{
    font-weight: 600;
    margin: 0px;
}
#msform {
  text-align: center;
  position: relative;
  height: auto
}
#msform fieldset {
  background: white;
  border: 0 none;;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}
/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
  display: none;
}
#msform h3 {
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 20px;
}
.form-control:focus{
	color:var(--prim-color);
}
/*headings*/
#msform h4 {
}
h2.stepTitle {
  margin: 1rem 0 2rem !important;
}

/*.text-bkg-HL, h4#msg_total_investissement {*/
/*  background-color: var(--sev-color);*/
/*  color: #000;*/
/*  padding: 2px 9px;*/
/*  margin-top: 15px*/
/*}*/
/*h4#msg_total_investissement {*/
/*  font-size: 1.3rem;*/
/*  padding: 12px 8px;*/
/*  line-height: 1.8rem;*/
/*}*/

input::-moz-focus-inner, input::-moz-focus-outer {
  border: 0;
}

input[type="number"].input-actions-achetees {
    font-weight: 600;
    font-size: 28px !important;
    white-space: nowrap;
   line-height: 25px; 
    max-width: 180px
}

option:focus {
  background-color: orange !important;
}
.alerte {
  background-color: #DBF2BB;
  color: #00185E;
  padding: 8px 12px
}

.devise {
  margin-left: 3px;
}
.devise.big {
  font-size: 26px;
  margin-left: 2px;
}


.annotation {
  font-size: 0.9rem;
  color: #808080;
  font-style: italic
}

.info{
    font-style: italic;
    font-size: 80%;
    margin-top: 15px;
    color:var(--warning)
}

.picto-attention{display: inline-block; width: 21px; height: auto;fill:var(--warning)}
.picto-attention svg{margin-bottom: 4px;}

.btn.btn-radio{
    line-height: normal !important
}

.bkg-grey {
  background-color:  var(--simul-prim-color );
}

.tableau  {
 line-height: 20px
}
.tableau .header {
  padding: 0.2rem 15px;
  font-weight: 600;
  height: 50px
}
.tableau .header.exemples {
  background-color: #9B9B9B;
  color: #FFF;
}
.tableau .header.monhypothese {
  background-color: var(--sec-color);
  color: #FFF;
}
.tableau .minheight {
  min-height: 66px;
  padding: 10px 15px;
  text-align: right;
  border-bottom: 2px solid rgba(255, 255, 255, 1.00);
}

@media (min-width: 767px) {
    .tableau .minheight {
      min-height: 50px;
    }
}

.minheight.bottom-dark, .bottom-dark {
  border-bottom: 2px solid rgba(120, 120, 120, 0.05);
}


.btn{
  border: none !important;
  border-radius: 0 !important;
  margin: 22px inherit !important;
}
.fcpe .btn{
  background-color:#FFF !important; 
  font-size: 1.1rem !important;
  color: #000 !important;
  font-weight: 400 !important;
  text-decoration: underline
}
.btn:active + .btn-radio, .btn:checked + .btn-radio, .btn.active, .btn:active, .btn:hover, .btn:focus {
  background-color: var(--sec-color) !important; 
}

input#mon_hypothese, input#mon_hypothese {
  text-align: right;
  font-weight: 700;
  font-size: 22px !important;
  height: 40px !important;
  width: 100% !important
}
.btn-check:active + .btn-radio, .btn-check:checked + .btn-radio, .btn-radio.active, .btn-radio:active, .btn-radio:hover, .btn-radio:focus {
    background-color: var(--sec-color) !important;
    color:#fff !important;
    outline: none; 
    text-decoration: none !important
}
/* FR */
.fcpe .btn-check:active + .btn-radio, .fcpe .btn-check:checked + .btn-radio, .fcpe .btn-radio.active, .fcpe .btn-radio:active, .fcpe .btn-radio:hover, .fcpe .btn-radio:focus {
    background-color: none !important;
}

@media (max-width:800px) {
/**forcer largeur tableaux scrollable horizontalement*/
.mobile-width {
  min-width: 660px;
}

.range-slider__value {
  margin-top: 2.5rem;
}

}

.range-slider{
         display: none;
     }

@media (max-width: 1024px) {
    .btn-info{
        display: none !important;
    }
}

@media (min-width:1200px) {
#msform .col-header{
  font-size: 1.1rem;
}
}

    #btn-connaitre-limite{
        width: auto
    }

    .cartouche-3 .info-icon {
        z-index: 10000;
        cursor: pointer;
        display: inline-flex;

    }
    .cartouche-3 .info-icon .dashicons-info-outline {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    .tooltip.cartouche3-tooltip {
        --bs-tooltip-bg: var(--third-color) !important;
        --bs-tooltip-color: #fff;
        line-height: 1;
    }
