/* =====================================================
   FLEX FORM
   ===================================================== */
.form-line {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1em;	

}
.form-line > * {
    padding-left: 1em;
    box-sizing: border-box;
}
/* Colonnes équivalentes */
.form-col-1 { width: 100%; }
.form-col-2 { width: 50%; } 
.form-col-3 { width: 33.3333333%; }

.form-col-1.title {
    margin-bottom: 1em;
	color: #c7a075;
}
.form-col-1.top {
    margin-top: 1em;
}
				
.hidden {
    display:none;
    visibility:hidden;
}
/* =====================================================
   FLEX DESIGN
   ===================================================== */
#contact input.text,
#contact select,
#contact textarea {
    border: 1px solid #f7f7f7;
    border-radius: 0.5em;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    color: #555;
    transition: background-color 0.35s ease-in-out;
}
#contact input.text:focus,
#contact select:focus,
#contact textarea:focus {
    background: #f2f2f2;
    border-color: #191919;
    outline: none;
}
#contact textarea {
    resize: vertical; /* empêche toute manipulation */
}
/* Griser les select ou textarea désactivés */
#contact select:disabled,
#contact input:disabled,
#contact textarea:disabled {
    background: #787578;
    color: #555;
    cursor: not-allowed;
	border-color: #6b6a6b;
}


/* =====================================================
   CHECKBOX FLEX
   ===================================================== */
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
    color: #e5e5e5;
}
.checkbox-inline input {
    width: auto;
    margin: 0;
}

/* =====================================================
   CUSTOM CHECKBOX FINITIONS STYLE
   ===================================================== */
input[type="checkbox"] {
    display: none;
}
.customCheckbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.customCheckbox .mp-box {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #c7a075;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: auto;
}
.customCheckbox .mp-box::before,
.customCheckbox .mp-box::after {
    content: '';
    position: absolute;
    background: #c7a075;
    transition: all 0.3s ease;
}
.customCheckbox .mp-box::before {
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.customCheckbox .mp-box::after {
    top: 50%;
    left: 50%;
    width: 2px;
    height: 10px;
    transform: translate(-50%, -50%) scale(0);
}
input[type="checkbox"]:checked + .customCheckbox .mp-box {
    background: #c7a075;
    border-color: #c7a075;
}
input[type="checkbox"]:checked + .customCheckbox .mp-box::before,
input[type="checkbox"]:checked + .customCheckbox .mp-box::after {
    background: white;
}
input[type="checkbox"]:checked + .customCheckbox .mp-box::after {
    transform: translate(-50%, -50%) scale(1);
}

/* =====================================================
   CUSTOM CHECKBOX RGPD STYLE
   ===================================================== */
.customCheckboxRgpd .mp-box::before {
    content: none !important;
    display: none !important;
}
.customCheckboxRgpd .mp-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    background: transparent !important;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform .25s ease;
}
input[type="checkbox"]:checked + .customCheckboxRgpd .mp-box {
    background: #c7a075;
    border-color: #c7a075;
}
input[type="checkbox"]:checked + .customCheckboxRgpd .mp-box::after {
    transform: rotate(45deg) scale(1);
}
/* =====================================================
   BLOC RGPD
   ===================================================== */
.form-rgpd {
    border: #c7a075 1px solid;
    display: block;
    padding: 1em;
    box-sizing: border-box;
    border-radius: 0.5em;
    margin: 0 0 1em 1em;
}
.form-rgpd label.error {
    top: -0.5em;
}
/* =====================================================
   UPLOAD
   ===================================================== */
.form-upload {
    border: #c7a075 1px solid;
    display: block;
    padding: 1em;
    box-sizing: border-box;
    border-radius: 0.5em;
    margin: 0 0 1em 0;
	line-height: 1.5em;
}
.form-upload input[type="file"] {
	display: none;
}
.form-upload label {
	display: inline-block;
	background-color: #c7a075;
	color: #fff;
	text-align: center;
	padding: 1em;
	user-select: none;
	cursor: pointer;
	border-radius: 0.5em;
	font-size: 1em;
	font-weight: normal;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.form-upload label:hover {
    background-color: #787578;
}
				
/* =====================================================
   MESSAGES POPUP (ENVOI / ERREUR)
   ===================================================== */
#contact {
    transition: opacity 0.5s ease;
}
#msgSubmit,
#msgError {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(47, 42, 47, 0.50);
    color: #e5e5e5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    width: min(90vw, 500px);
    opacity: 1;
    transition: opacity .4s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(10px);
}
#msgSubmit.fade-out,
#msgError.fade-out {
    opacity: 0;
}
#msgSubmit .ok,
#msgError .ok {
    margin: 0;
    text-align: center;
}
.msgSubmitopacity {
    opacity:0.07;
}			
label.error {
    color: #ff0000;
    position: relative;
    top: -1em;
}
#form-errors {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 10px;
}
/* =====================================================
   BOUTON SUBMIT
   ===================================================== */
input[type="submit"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}
/* Responsive mobile : toutes les colonnes 100% */
@media screen and (max-width: 768px) {
    .form-col-1,
    .form-col-2,
    .form-col-3 {
        width: 100%;
    }
    #fichier-nom {
        display: block;
        width: 100%;
    }
    .form-upload label {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    #bloc_upload input[type="file"] {
        width: 100%;
    }
}