/* ============================== PAGE CONTACT ============================= */
#page-contact {
    padding: 4rem;
}


/* ============================== SECTION HERO ============================= */
.hero-contact {
    width: 100%;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-contact {
        width: 80%;
        padding-bottom: 1.5rem;
    }
}

@media (min-width: 992px) {
    .hero-contact {
        width: 60%;
    }
}


/* ============================== SECTION FORMULAIRE ============================= */
.section-contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .section-contact {
        flex-direction: row;
    }
}

.conteneur-form {
    width: 100%;
}

@media (min-width: 992px) {
    .conteneur-form,
    .block-imgContact {
        width: 50%;
    }
}

/* ------------------------------ Structure du formulaire ------------------------------ */
.group-form {
    margin-bottom: 1.5rem;
}

.bloc_input_form {
    display: flex;
    flex-direction: column;
}

.contenu_input {
    margin-top: 1vh;
}


/* ------------------------------ Champs radio / checkbox ------------------------------ */
.group-radio {
    display: flex;
    gap: 0.5rem;
}

.radio-pair,
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1vh;
}

.checkbox-container {
    margin-top: 2rem;
    padding: 0.5rem 0;
    width: 100%;
}

.label_radio,
.checkbox-container .checkbox-label {
    margin: 0;
    line-height: 1;
    cursor: pointer;
}

.checkbox-container .checkbox-label {
    line-height: 1.4;
    font-size: 1rem;
}


/* ------------------------------ Style des checkboxes et radios ------------------------------ */
.checkbox-custom,
.checkbox-container .checkbox-custom {
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    border: 2px solid #000;
    appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-custom:checked::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    background-color: #F24900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1250px) {
    .checkbox-custom,
    .checkbox-container .checkbox-custom {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .checkbox-custom:checked::after,
    .checkbox-container .checkbox-custom:checked::after {
        width: 2.5rem;
        height: 2.5rem;
    }
}


/* ------------------------------ Champs de texte ------------------------------ */
.form-control {
    border: solid 2px #F24900;
    border-radius: 0;
    height: 3.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    box-shadow: 0 0 0 2px #F24900;
}

/* Ajustement responsive pour les inputs */
@media (max-width: 1250px) {
    .form-control {
        height: 4.5rem;
    }
}

@media (max-width: 768px) {
    .form-control {
        height: 4rem;
    }
}

@media (max-width: 480px) {
    .form-control {
        height: 4.5rem;
    }
}


/* ------------------------------ Bouton d'envoi ------------------------------ */
.action-form {
    margin-bottom: 1rem;
}

.btn_envoi {
    margin-top: 1vh;
    background-color: #FFF5EC;
    color: #F24900;
    border: solid 2px #F24900;
    padding: 1vh;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_envoi:hover {
    background-color: #F24900;
    color: white;
    box-shadow: 0 0 10px #F24900;
}


/* ============================== SECTION IMAGE ============================= */
.block-imgContact {
    width: 100%;
    padding: 0;
}

.block-imgContact figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.img-contact {
    width: 100%;
    object-fit: cover;
    object-position: center;
}


/* ============================== RESPONSIVE ============================= */
/* ------------------------------ Écrans moyens (tablettes) ------------------------------ */
@media (max-width: 768px) {
    .checkbox-container {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .checkbox-container .checkbox-custom {
        width: 3rem;
        height: 3rem;
    }

    .checkbox-container .checkbox-label {
        font-size: 1.1rem;
    }
}

/* ------------------------------ Petits écrans (mobiles) ------------------------------ */
@media (max-width: 480px) {
    .checkbox-container .checkbox-custom {
        width: 3.5rem;
        height: 3.5rem;
    }

    .checkbox-container .checkbox-label {
        font-size: 1.2rem;
    }
}

/* ============================== ACCESSIBILITÉ ============================= */
/* Masqué visuellement mais disponible pour les lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Style pour les messages d'erreur */
.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}