/* -- VARIABLES ET STYLES DE BASE -- */
:root {
    --bg-main: #F2F1EC;
    --bg-secondary: #DADCD9;
    --text-main: #4b574d;
    --font-main: 'Inter', sans-serif;
    --border-color: #c5c5c5;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

.bold {
    font-weight: 700;
}

hr {
    border: none;
    border-top: 2px solid var(--bg-secondary);
    margin: 4rem auto;
    width: 80%;
}

/* -- MISE EN PAGE PRINCIPALE -- */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}
 

/* -- TITRES DE PAGE -- */
.title {
    font-size: 4.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.texttitle {
    font-size: 1.25rem;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* -- FORMULAIRES -- */
form, .FAQ {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 70%;
    margin: 3rem auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group label, form legend {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 97%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(75, 87, 77, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

form p {
    text-align: center;
    font-size: 1.2rem;
}


/* -- BOUTONS -- */
.nextbutton, .finalsubmit, .editbutton {
    background-color: var(--text-main);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin: 2rem auto 0 auto;
    transition: background-color 0.2s;
}

.nextbutton:hover, .finalsubmit:hover {
    background-color: #333d36;
}

/* -- PRÉ-FORMULAIRE (RADIOS) -- */
.preform fieldset {
    border: none;
    padding: 0;
}

.preform legend {
    font-size: 1.5rem;
    text-align: left;
    width: 100%;
    margin-bottom: 1.5rem;
}

.preform label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
}
.hiddenCv {
    position: absolute;
    left: -99999px;
    opacity: 0;
}
.upload-img {
    display: block;
    margin: 0 auto;
    height: 40px;
    width: 40px;
    cursor: pointer;
}


.radio-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.radio-group label {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* -- FAQ -- */
.FAQ h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faqq {
    font-size: 1.2rem;
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
}

.questionsintro {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
}




/* -- FORMULAIRE FINAL -- */
.notation {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}
.notation p {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.stars {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
}

.star {
    transition: color 0.2s;
}
.questrem {
    font-size: 1.5rem;
    margin-top: 2rem;
    font-weight: 600;
}


/* * Style of radio buttons*/

input[type="radio"] {
    display: none;
}

.radio-button {
    margin-bottom: 10px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--bg-secondary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border-radius: 4px;
    position: relative;
}


input[type="radio"]:checked+.radio-button {
    background-color: rgb(241, 238, 238);
}

input[type="radio"]:checked+.radio-button::after {
    content: '✓';
    font-size: 16px;
    color: var(--text-main);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
}

/* -- RESPONSIVE -- */
@media (max-width: 1200px) {
    .page-container {
        padding: 2rem 1.5rem;
    }

    form,
    .FAQ {
        max-width: 80%;
    }
}

@media (max-width: 992px) {
    .title {
        font-size: 3.5rem;
    }

    .texttitle {
        font-size: 1.1rem;
    }

    form,
    .FAQ {
        max-width: 90%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .page-container {
        padding: 1.5rem 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .notation {
        padding: 1.5rem;
    }

    .stars {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 2.5rem;
    }

    .texttitle {
        font-size: 1rem;
        margin: 0 1rem 2rem 1rem;
    }

    form,
    .FAQ {
        padding: 1.5rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        margin-left: -10px;
        max-width: 100%;
    }

    .nextbutton,
    .finalsubmit,
    .editbutton {
        width: 100%;
    }

    .notation p,
    .questrem {
        font-size: 1.2rem;
    }
}
