@media (max-width: 600px) {
    .img {
        display: none !important;
    }
    .imgs {
        display: none !important;
    }
    .img {
        visibility: hidden;
        opacity: 0;
        height: 0;
    }
    .photo-container {
        width: 95%;
        /* padding: 15px; */
    }
    .form-profession {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #fff8f5;
        padding: 30px;
        border-radius: 10px;
        border: 1px solid #ccc;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        gap: 5px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: rgb(85, 226, 66);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

fieldset {
    border: 1px solid #c4c4c4;
    background-color: white;
    padding: 30px 25px 10px 25px;
    width: 200px;
    margin: 50px auto;
    border-radius: 10px;
}

.input {
    font-size: 14px;
    width: 374px;
    height: 50px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding-left: 15px;
    border-radius: 5px;
}

.input:hover {
    border-color: #27ddac;
    border: 2px solid #2fdaac;
}

.input:focus {
    outline: none;
    border-color: rgb(85, 226, 66);
    /* box-shadow: 0 0 8px rgba(0, 86, 179, 0.6);  */
    transform: scale(1.02);
    box-shadow: 0 0 5px #23cea0;
    /* background-color: #f8f9fa; */
}

label {
    font-size: 18px;
    width: 100px;
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgb(85, 226, 66);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: larger;
}

.radio-group input[type="radio"]:checked {
    background-color: rgb(85, 226, 66);
}

.radio-group input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.radio-group p {
    /* font-weight: bold; */
    margin: 0;
    font-size: 18px;
}

.radio-group input[type="radio"]:checked::before {
    display: block;
}

.title {
    text-transform: uppercase;
    text-align: center;
    color: rgb(85, 226, 66);
}

.submit {
    background-color: rgb(85, 226, 66);
    color: white;
    font-size: 17px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3 ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container {
    display: flex;
    justify-content: center;
}

.submit:hover {
    background-color: #2ee7b6;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.p-text {
    font-size: 16px;
    text-transform: none;
    text-align: center;
}

.lien {
    text-decoration: none;
    color: rgb(85, 226, 66);
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.lien:hover {
    color: #28e4b2;
    text-decoration: underline;
}

.lien:focus {
    outline: 1px dashed #ff9800;
}

.img-contain {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
}

.imgs {
    width: 500px;
    height: 850px;
    object-fit: cover;
    display: block;
}

.select-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 5px;
}

.select-container label {
    color: #333;
}

.select-container select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="gray"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 35px;
}

.select-container select:hover {
    border-color: #25e4b1;
}

.select-container select:focus {
    border-color: rgb(85, 226, 66);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    transform: scale(1.02);
}

.photo-profil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgb(85, 226, 66);
    box-shadow: 0.4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    align-items: center;
    image-resolution: 300dpi;
}

.photo-profil:hover {
    transform: scale(1.05);
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin: 60px auto;
    padding: 50px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* text-align: center; */
    max-width: 500px;
    width: 100%;
    border-radius: 10px;
}

.text-profil {
    font-size: larger;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.tooltip {
    display: none;
    color: red;
    font-size: 12px;
}

.input:focus {
    border-color: rgb(85, 226, 66);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.correct {
    border: 2px solid green;
}

.incorrect {
    border: 2px solid red;
}

.radio-group label {
    display: inline-block;
    margin-right: 10px;
}

.form-profession {
    display: flex;
    flex-direction: column;
    padding: 30px;
    align-items: center;
    border-radius: 10px;
    margin: 10 auto;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    /* grid-template-columns: 2fr 1fr 1fr; */
}

.form-profession input {
    min-width: 300px;
    min-height: 50px;
    border: 1px solid rgb(85, 226, 66);
    border-radius: 10px;
    margin: 2px;
}

.div-profession {
    display: flex;
    gap: 10px;
    width: 80%;
    padding: 10px auto;
    margin: 20px auto;
}

.text-profession {
    font-size: x-large;
    display: flex;
    padding: 10px;
    /* justify-content: center; */
    /* text-transform: capitalize; */
}

#file-submit {
    background-color: rgb(85, 226, 66);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    text-align: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M4 16v2h16v-2H4zm8-10l4 4h-3v4h-2v-4H8l4-4z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 30px;
    padding-left: 40px;
}

#file-submit:hover {
    background-color: #28dfae;
    transform: scale(1.05);
}

#upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    /* border: 2px dashed rgb(85, 226, 66);  */
    border-radius: 10px;
    background-color: #f9f9f9;
    max-width: 400px;
    margin: auto;
    text-align: center;
}

#custom-file-button {
    background-color: rgb(85, 226, 66);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}