:root {
    --rte-prim-color: rgb(254, 237, 202);
    --rte-prim-color-dark: rgb(250, 185, 43);
    --rte-sec-color: rgb(194, 234, 246);
    --rte-sec-color-dark: rgb(0, 166, 217);
    --rte-third-color:rgb(212, 238, 234);
    --rte-third-color-dark: rgb(75, 185, 170);
    --rte-fourth-color:#4bb9aa;
    --text-color-prim:#000;

    --border-radius-sm : 10px;

    --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.3); /* ~24px */
    --font-size-xxl: calc(var(--font-size-base) * 1.4); /* ~32px */
    --font-size-xxxl: calc(var(--font-size-base) * 1.8);
    --font-size-xxxxl: calc(var(--font-size-base) * 4);
  }

@media (min-width: 941px) {
    :root {
        --font-size-lg: calc(var(--font-size-base) * 1.1); /* ~20px */
        --font-size-xxl: calc(var(--font-size-base) * 1.7); /* ~32px */
        --font-size-xxxl: calc(var(--font-size-base) * 2.4);
    }
}

.bkg-color-prim {background-color: var(--rte-prim-color)}
.bkg-color-sec {background-color: var(--rte-sec-color)}
.bkg-color-third {background-color: var(--rte-third-color)}

.text-c-prim {color: var(--rte-prim-color-dark)}
.text-c-sec {color: var(--rte-sec-color-dark)}
.text-c-third {color: var(--rte-third-color-dark)}

body{font-family: 'Arial', sans-serif;font-optical-sizing: auto;}
h1,h2,h3,h4,h5{
             font-family: "Nunito", sans-serif;
             font-optical-sizing: auto;
         }
h2{
    font-size: var(--font-size-xxxl);
    font-weight: 800;
}
.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);
}


/********************************
PANEL 1
*********************************/

.panel-1 .picto-salaire
{
    width: 100px;
    height: auto
}
#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;
}
#cartouche-limite-invest .picto-fleche{
    float: left;
    width: 120px;
    height: auto;
    margin-right: 20px;
}
.valeur-big , .text-big{
    font-size: var(--font-size-xxxl);
    font-weight: 800;
    line-height: calc(var(--font-size-xxxl) + 0.2rem);
    font-family: "Nunito", sans-serif;
}
.valeur-big {
    white-space: nowrap;
}

.text-medium{
    font-size: var(--font-size-xxl);
    font-weight: 800;
    line-height: calc(var(--font-size-xxl) + 0.2rem);
    font-family: "Nunito", sans-serif;
}
/********************************
PANEL 2
*********************************/
#infos-investissement .picto
{
    max-width: 90px;
    max-height:70px;
    height: auto;
}

#calcul-resume .picto-coin{
    content: "";
    background-image: url('../assets/picto-happy-coin.svg');
    width: 80px;
    height: 80px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}

/********************************
PANEL 3
*********************************/
#tableau-panel-3 {
    display: grid;
    grid-template-columns: 35% 13% 13% 13% 13% 13%;
    font-size: var(--font-size-lg);
    min-width: 800px;
}
@media (min-width: 767px) {
    #tableau-panel-3 {
        grid-template-columns: 20% 16% 16% 16% 16% 16%;
        min-width: 100%;
    }
}
@media (min-width: 1200px) {
    #tableau-panel-3 {
        grid-template-columns: 35% 13% 13% 13% 13% 13%;
    }
}
#tableau-panel-3 > div {
    padding: 13px 10px;
    box-sizing: border-box;
    line-height: 1.2rem;
}
#picto-calendrier{
    width: 75px;
    height:auto;
    margin-top: -19px;
    float: right;
    margin-right: 10px;
}
#tableau-panel-3 select{
    max-width: 70%;
    min-width: 86px;
    font-weight: 700;
    margin:auto;
    color: var(--rte-third-color-dark);
}
#tableau-panel-3 .label{
    font-size: var(--font-size-base);
    font-weight: 700;
    display: flex;
}
#tableau-panel-3 .total{
    font-size: var(--font-size-lg);
    font-weight: 800;
}
.resume{ line-height: 1;}

.rendement-hypothese{
    max-width: 90px;
    text-align: right;
}
@media (max-width: 941px) {
    .input-group-text {
        padding: .75rem .275rem !important;
    }
    #picto-calendrier{
        margin-top: -3px;
    }
    .form-control {
        /*padding: .6rem .175rem .6rem .275rem;*/
    }
}
/********************************
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);
}

.range-slider__value {
    font-size: var(--font-size-xxl);
    font-weight: 800;
    display: inline-block;
    position: relative;
    width: Auto;
    margin-top: 1.5rem;
    color: var(--text-color-prim);
    line-height: 20px;
    text-align: center;
    padding: 12px 26px;

}
#actions_achetees .range-slider__value {
    background: var(--rte-third-color);
}

.input-mobile input {
    width: 100%;
    padding: 18px;
    text-align: right;
    font-size: var(--font-size-xxxl);
    font-weight: 800;
    color: #212529;
    background-color:var(--rte-prim-color);
    border: 1px solid var(--rte-prim-color);
    /*border-radius:var(--border-radius-sm);*/
    transition: all 0.2s ease;
}

/* focus */
.input-mobile input:focus {
    outline: none;
    border: 1px solid var(--rte-prim-color);
    background-color:var(--rte-prim-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* hover */
.input-mobile input:hover {
    border: 1px solid var(--rte-prim-color-dark);
}

/********************************
BOUTONS
*********************************/
.btn-prim {
    background-color: var(--rte-fourth-color);
    font-size: var(--font-size-xl) !important;
    color: #FFF;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    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 */
}


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;
}

.note-bas-de-page{
    margin: 10px 0;
    font-style: italic;
    font-size: 80%;
}


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
}
select#obligations_achetees{
    padding: 15px;
    font-size: 22px;
    border-radius: 6px
}
option:focus {
  background-color: orange !important;
}
.alert {
  background-color: #DBF2BB;
  color: #00185E;
  padding: 8px 12px
}
#msform .col-header{
  font-size: 1rem;
  line-height: 1.1rem;
}
.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
}

.totalcell{
   /* background-color:  var(--simul-prim-color );*/
}
.bkg-grey {
  background-color:  var(--simul-prim-color );
}
.bkg_secondary{
  background-color:  var(--sev-color); 
}
.bkg_tertiary{
  background-color:  var(--bkg-box-infos); 
}

.boxed {
  background-color:  var(--sev-color);
  padding: 15px 10px
}
.boxed p {
  margin: 0 !important;
}

.boxed.tot_apport_personnel{
    font-size: 28px;
}

.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);
}
.top-dark{
  border-top: 2px solid rgba(120, 120, 120, 0.2);
}
.monhypothese{line-height: 1rem;font-size: 1.1rem;
}
input#input_mon_hypothese {
  width: 80px;
  height: 34px;
  margin-top: 0px;
  float: right;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}
#calcul-resume p {
  line-height: 1.2rem
}
/*radio btn*/
.btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.btn{
  background-color:var(--prim-color) !important; 
  font-size: 1.3rem !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 15px inherit !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 5px 15px !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: 106px !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;
}
#simulateur.ro .mobile-width, #simulateur.ma .mobile-width{
    min-width: 700px;     
    }
.range-slider__value {
  margin-top: 2.5rem;
}

}

.range-slider{
         display: none;
     }
/*@media (max-width: 940px) {*/
/*    !*#tableau-hypotheses, .tableau .hypotheses{*!*/
/*    !*    font-size: 16px*!*/
/*    !*}*!*/
/*    !*#tableau-hypotheses, .tableau .hypotheses .colTitre {*!*/
/*    !*    font-size: 15px*!*/
/*    !*}*!*/
/*    .range-slider{*/
/*        display: none;*/
/*    }*/
/*}*/
/*@media (min-width: 941px) {*/
/*    .input-mobile{*/
/*        display: none;*/
/*    }*/
/*}*/
@media (max-width: 1024px) {
    .btn-info{
        display: none !important;
    }
}


@media (min-width:1200px) {
#msform .col-header{
  font-size: 1.1rem;
}
}