/* ===========================================================
   BRIGADE NOMADE — FORMULAIRE DEVIS
=========================================================== */

:root{
    --bn-olive:#52522D;
    --bn-sable:#F9ECD2;
    --bn-white:rgba(255,255,255,.48);
    --bn-border:rgba(82,82,45,.22);
}

/* FORM */

.bn-form{
    max-width:920px;
    margin:0 auto;
    padding:64px;
    background:var(--bn-white);
    border:1px solid var(--bn-border);
    border-radius:28px;
    color:var(--bn-olive);
}

/* PROGRESS */

.bn-progress{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-bottom:56px;
    padding-bottom:18px;
    border-bottom:1px solid rgba(82,82,45,.25);
}

.bn-progress span{
    opacity:.35;
    font-weight:600;
}

.bn-progress span.active{
    opacity:1;
}

/* STEPS */

.bn-step{display:none;}
.bn-step.active{display:block;}

.bn-kicker{
    text-transform:uppercase;
    letter-spacing:3px;
    font-size:12px;
    font-weight:700;
}

.bn-step h2{
    font-size:42px;
    margin:12px 0 16px;
    color:var(--bn-olive);
}

/* CARDS */

.bn-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-top:36px;
}

.bn-cards label{cursor:pointer;}
.bn-cards input{display:none;}

.bn-cards span{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:180px;
    padding:28px;
    border:1px solid rgba(82,82,45,.25);
    border-radius:22px;
    background:rgba(255,255,255,.35);
    font-size:24px;
    font-weight:600;
    transition:.25s ease;
}

.bn-cards small{
    margin-top:14px;
    font-size:14px;
    font-weight:400;
    line-height:1.5;
}

.bn-cards input:checked + span{
    background:var(--bn-olive);
    color:var(--bn-sable);
    border-color:var(--bn-olive);
}

/* INPUTS */

.bn-form input,
.bn-form textarea{
    width:100%;
    margin-top:18px;
    padding:18px 20px;
    border-radius:14px;
    border:1px solid rgba(82,82,45,.25);
    background:rgba(255,255,255,.55);
    color:var(--bn-olive);
}

/* SLIDER */

.bn-slider-wrap{margin-top:40px;}

.bn-slider-value{
    text-align:center;
    font-size:42px;
    font-weight:600;
    color:var(--bn-olive);
    margin-bottom:25px;
}

#bn-invites{
    width:100%;
    appearance:none;
    -webkit-appearance:none;
    height:8px;
    border-radius:999px;
    background:rgba(82,82,45,.15);
    outline:none!important;
    border:none!important;
    box-shadow:none!important;
    accent-color:var(--bn-olive);
}

#bn-invites::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--bn-olive)!important;
    border:4px solid var(--bn-sable)!important;
    box-shadow:0 0 0 2px var(--bn-olive)!important;
    cursor:pointer;
}

#bn-invites::-moz-range-thumb{
    width:30px;
    height:30px;
    border-radius:50%;
    background:var(--bn-olive)!important;
    border:4px solid var(--bn-sable)!important;
    box-shadow:0 0 0 2px var(--bn-olive)!important;
    cursor:pointer;
}

.bn-slider-scale{
    display:flex;
    justify-content:space-between;
    margin-top:12px;
    opacity:.6;
}

/* ACTIONS */

.bn-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:48px;
}

.bn-actions button{
    border:none;
    border-radius:999px;
    padding:15px 34px;
    background:var(--bn-olive);
    color:var(--bn-sable);
    text-transform:uppercase;
    letter-spacing:1.4px;
    font-weight:700;
    cursor:pointer;
    transition:.25s ease;
}

.bn-actions button:hover{
    transform:translateY(-2px);
}

.bn-prev{
    background:transparent!important;
    color:var(--bn-olive)!important;
}

.desktop{display:inline;}
.mobile{display:none;}

.bn-submit,
.bn-success{display:none;}

/* SUCCESS */

.bn-success{
    text-align:center;
    padding:60px 20px;
}

.bn-success h2{
    font-size:42px;
    color:var(--bn-olive);
}

/* MOBILE */

@media(max-width:767px){
	
		.bn-form input[type="date"]{
        -webkit-appearance:none;
        appearance:none;
        box-sizing:border-box;
        max-width:100%;
    }
	
	.bn-form input,
	.bn-form textarea{
		box-sizing:border-box;
	}
	
    .bn-form{
        padding:32px 24px;
        border-radius:22px;
    }

    .bn-progress{
        font-size:12px;
        gap:8px;
        overflow-x:auto;
    }

    .bn-cards{
        grid-template-columns:1fr;
    }

    .bn-step h2{
        font-size:32px;
    }

    .desktop{
        display:none!important;
    }

    .mobile{
        display:flex!important;
        align-items:center;
        justify-content:center;
        font-size:28px!important;
        line-height:1;
        font-weight:500;
    }

    .bn-prev,
    .bn-next{
        width:52px!important;
        height:52px!important;
        min-width:52px!important;
        padding:0!important;
        border-radius:50%!important;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:0!important;
        letter-spacing:0!important;
        text-transform:none!important;
    }

    .bn-next{
        background:var(--bn-olive)!important;
        color:var(--bn-sable)!important;
		
    }

    .bn-next .mobile{
        color:var(--bn-sable)!important;
		-webkit-text-fill-color:var(--bn-sable)!important;
    }

    .bn-prev{
        background:transparent!important;
        color:var(--bn-olive)!important;
    }

    .bn-prev .mobile{
        color:var(--bn-olive)!important;
		-webkit-text-fill-color:var(--bn-sable)!important;
    }
	
	.bn-submit{
        width:auto;
        padding:14px 28px!important;
        font-size:14px!important;
        border-radius:999px!important;
        margin-left:auto;          /* le pousse à droite, équilibré avec prev à gauche */
    }
	
}