/* inputs */
input, textarea, select{
    padding: var(--s-1) var(--s-2);
    border-radius: var(--radius);
    border: 1px solid var(--grey);
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: var(--font-text);
    font-weight: 100;
}

input::placeholder, textarea::placeholder {
    color: var(--grey);
}

/* hover */
input:hover, textarea:hover, select:hover {
    border-color: var(--light);
    background: #f7f7f7;
}

/* focus style premium */
input:focus, textarea:focus, select:focus {
    background: white;
    border-color: var(--light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.instainp {
  padding-left: 42px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23A8B5AF' d='M128,84a44,44,0,1,0,44,44A44.04978,44.04978,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36.04061,36.04061,0,0,1,128,164ZM172,32H84A52.059,52.059,0,0,0,32,84v88a52.059,52.059,0,0,0,52,52h88a52.059,52.059,0,0,0,52-52V84A52.059,52.059,0,0,0,172,32Zm44,140a44.04978,44.04978,0,0,1-44,44H84a44.04978,44.04978,0,0,1-44-44V84A44.04978,44.04978,0,0,1,84,40h88a44.04978,44.04978,0,0,1,44,44ZM188,76a8,8,0,1,1-8-8A8.00917,8.00917,0,0,1,188,76Z'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    margin-top:5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #888;
}

.password-toggle:hover {
    color: var(--light);
}

.iti {
    width: 100%;
}

.iti input {
    width: 100%;
}


/* Tous les sliders */
input[type="range"]{
    -webkit-appearance:none;
    appearance:none;

    width:100%;
    height:3px;

    border:0;
    padding: 0;

    background:transparent;
    outline:none;
    cursor:pointer;
}

/* Barre Chrome / Safari / Edge */
input[type="range"]::-webkit-slider-runnable-track{
    height:3px;
    border:none;
    border-radius:999px;
    background:var(--light-transparent);
}

/* Poignée Chrome / Safari / Edge */
input[type="range"]::-webkit-slider-thumb{
    appearance: none;
    outline: none;

    -webkit-appearance:none;

    width:10px;
    height:10px;

    margin-top:-3px;

    border:0;
    padding: 0;
    border-radius:50%;

    background:var(--light);
    box-shadow:none;
}

/* Barre Firefox */
input[type="range"]::-moz-range-track{
    height:3px;
    border:none;
    border-radius:999px;
    background:var(--light-transparent);
}

/* Poignée Firefox */
input[type="range"]::-moz-range-thumb{
    width:15px;
    height:15px;

    border:0;
    padding: 0;
    border-radius:50%;

    background:var(--light);
    box-shadow:none;

    outline: none;
}

/* Supprime le contour au focus */
input[type="range"]:focus{
    outline:none;
}

input[type="range"]::-webkit-slider-thumb{
    transition:transform .15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover{
    transform:scale(1.15);
}

input[type="range"]::-moz-range-thumb{
    transition:transform .15s ease;
}

input[type="range"]::-moz-range-thumb:hover{
    transform:scale(1.15);
}

.checkbox-label {
    position: relative;
    display: flex;
    align-items: center;

    margin: 0;
    gap: var(--s-3);

    cursor: pointer;
    user-select: none;

    transition:
        border-color .2s,
        background .2s,
        transform .15s,
        box-shadow .2s;
}

.checkbox-label input[type="checkbox"]{

    appearance:none;
    -webkit-appearance:none;

    width:22px;
    height:22px;

    flex-shrink:0;

    border-radius:var(--radius);
    border:1px solid var(--grey);

    display:grid;
    place-items:center;

    transition:.18s;
}

label input[type="checkbox"]::before{

    content:"✓";

    color:var(--light);
    
    font-weight:700;

    transform:scale(0);
    transition:.15s;

    margin-top: -7px;
    margin-left: -6px;
}

label input[type="checkbox"]:checked{
    color:var(--light);
    border-color:var(--light);
}

label input[type="checkbox"]:checked::before{
    transform:scale(1);
}

label span{
    color:var(--dark);
    transition:.2s;
}

label:has(input:checked){
    color:var(--light);
}

label:has(input:checked) span{
    color:var(--light);
    /*font-weight:400;*/
}

label:active{
    transform:scale(.98);
}