/* ==========================================================
   WAYS DIAGNOSTICS — ESPACE PARTICIPANT
   ========================================================== */

.participant-body {
    margin: 0;
    min-height: 100vh;
    background: #f6f7f9;
    color: #485c7b;
}

/* HEADER */

.participant-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ef;
}

.participant-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.participant-logo {
    width: 165px;
    height: auto;
    display: block;
}

.participant-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.participant-header-actions form {
    margin: 0;
}

.participant-user {
    font-size: 14px;
    font-weight: 600;
}

/* MAIN */

.participant-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 32px 100px;
}

/* WELCOME */

.participant-welcome {
    margin-bottom: 60px;
}

.participant-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8c9aaf;
    margin-bottom: 14px;
}

.participant-welcome h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #485c7b;
}

.participant-intro {
    font-size: 17px;
    color: #7d8797;
    margin: 0;
}

/* SECTION */

.participant-section-header {
    margin-bottom: 25px;
}

.participant-section-header h2 {
    font-size: 24px;
    margin: 0;
    color: #485c7b;
}

/* CARDS */

.participant-diagnostics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.participant-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(30, 45, 70, 0.04);
}

.participant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 26px;
}

.participant-card h3 {
    font-size: 23px;
    line-height: 1.3;
    margin: 0;
    color: #485c7b;
}

.participant-card-parcours {
    margin: 10px 0 0;
    color: #8791a0;
    font-size: 14px;
}

.participant-card-content p {
    color: #657184;
    line-height: 1.7;
    margin: 0 0 22px;
}

/* STATUS */

.participant-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.participant-status-pending {
    background: #f0f2f6;
    color: #63748d;
}

.participant-status-progress {
    background: #fff3de;
    color: #a36b16;
}

.participant-status-completed {
    background: #e9f5f0;
    color: #34765e;
}

/* INFORMATION */

.participant-info {
    background: #f6f8fb;
    border-left: 3px solid #8194ad;
    border-radius: 6px;
    padding: 20px 24px;
}

.participant-info p {
    margin: 0;
}

.participant-info strong {
    display: block;
    margin-bottom: 8px;
}

/* EMPTY STATE */

.participant-empty {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 45px;
}

.participant-empty h3 {
    margin-top: 0;
}

.participant-empty p {
    color: #7d8797;
    margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .participant-header-inner {
        padding: 18px 20px;
    }

    .participant-logo {
        width: 120px;
    }

    .participant-header-actions {
        gap: 12px;
    }

    .participant-user {
        display: none;
    }

    .participant-main {
        padding: 45px 20px 70px;
    }

    .participant-welcome {
        margin-bottom: 40px;
    }

    .participant-welcome h1 {
        font-size: 32px;
    }

    .participant-card {
        padding: 24px;
    }

    .participant-card-top {
        flex-direction: column;
        gap: 16px;
    }

    .participant-card h3 {
        font-size: 20px;
    }

}
/* ==========================================================
   WAYS DIAGNOSTICS — PAGE DE CONNEXION
   ========================================================== */

.participant-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.participant-login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 18px;
    padding: 48px 44px;
    box-shadow: 0 16px 48px rgba(30, 45, 70, 0.07);
    box-sizing: border-box;
}

.participant-login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.participant-login-logo {
    width: 190px;
    max-width: 100%;
    height: auto;
}

.participant-login-heading {
    text-align: center;
    margin-bottom: 36px;
}

.participant-login-heading h1 {
    font-size: 25px;
    line-height: 1.35;
    color: #485c7b;
    margin: 0 0 12px;
}

.participant-login-heading p {
    font-size: 14px;
    line-height: 1.6;
    color: #8791a0;
    margin: 0;
}

.participant-login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.participant-login-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.participant-login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #485c7b;
}

.participant-login-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    background: #ffffff;
    color: #485c7b;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.participant-login-field input:focus {
    outline: none;
    border-color: #8194ad;
    box-shadow: 0 0 0 3px rgba(129, 148, 173, 0.15);
}

.participant-login-submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin-top: 4px;
    font-size: 15px;
}

.participant-login-footer {
    text-align: center;
    margin-top: 2px;
}

.participant-login-footer a {
    color: #647d9f;
    font-size: 13px;
    text-decoration: none;
}

.participant-login-footer a:hover {
    text-decoration: underline;
}

.participant-login-error {
    background: #fff0f0;
    border: 1px solid #f0caca;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: #a13d3d;
    font-size: 13px;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 520px) {

    .participant-login-wrapper {
        padding: 24px 16px;
    }

    .participant-login-card {
        padding: 36px 26px;
    }

    .participant-login-logo {
        width: 160px;
    }

    .participant-login-heading h1 {
        font-size: 22px;
    }

}
/* ==========================================================
   WAYS DIAGNOSTICS — QUESTIONNAIRE
   ========================================================== */

.questionnaire-container {
    max-width: 900px;
    margin: 0 auto;
}

.questionnaire-heading {
    margin-bottom: 42px;
}

.questionnaire-back {
    display: inline-block;
    margin-bottom: 35px;
    color: #8194ad;
    font-size: 14px;
    text-decoration: none;
}

.questionnaire-back:hover {
    text-decoration: underline;
}

.questionnaire-heading h1 {
    font-size: 34px;
    line-height: 1.3;
    color: #485c7b;
    margin: 0;
}

/* PROGRESSION */

.questionnaire-progress {
    margin-bottom: 32px;
}

.questionnaire-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #73829a;
}

.questionnaire-progress-track {
    height: 8px;
    background: #e4e9f0;
    border-radius: 100px;
    overflow: hidden;
}

.questionnaire-progress-fill {
    height: 100%;
    background: #8194ad;
    border-radius: inherit;
    transition: width 0.25s ease;
}

/* CARTE PRINCIPALE */

.questionnaire-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 42px;
    box-shadow: 0 8px 24px rgba(30, 45, 70, 0.04);
}

/* SITUATION */

.questionnaire-situation {
    margin-bottom: 38px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e6e9ef;
}

.questionnaire-situation-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8194ad;
    margin: 0 0 16px;
}

.questionnaire-situation h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    color: #485c7b;
    margin: 0;
}

/* RÉPONSES */

.questionnaire-answers {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.questionnaire-answers legend {
    font-size: 15px;
    font-weight: 600;
    color: #485c7b;
    margin-bottom: 22px;
}

.questionnaire-answer {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px;
    margin-bottom: 12px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.questionnaire-answer:hover {
    background: #f7f9fc;
    border-color: #a9b8cc;
}

.questionnaire-answer:has(input:checked) {
    background: #f0f4f9;
    border-color: #8194ad;
    box-shadow: 0 0 0 1px #8194ad;
}

.questionnaire-answer:has(input:focus-visible) {
    outline: 3px solid rgba(129, 148, 173, 0.35);
    outline-offset: 2px;
}

.questionnaire-answer input {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #647d9f;
    width: 18px;
    height: 18px;
}

.questionnaire-answer-text {
    font-size: 15px;
    line-height: 1.65;
    color: #485c7b;
}

/* NAVIGATION */

.questionnaire-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.questionnaire-navigation .ways-button {
    min-height: 46px;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .questionnaire-heading {
        margin-bottom: 30px;
    }

    .questionnaire-heading h1 {
        font-size: 26px;
    }

    .questionnaire-card {
        padding: 26px 20px;
    }

    .questionnaire-situation h2 {
        font-size: 19px;
    }

    .questionnaire-answer {
        padding: 16px;
        gap: 12px;
    }

    .questionnaire-answer-text {
        font-size: 14px;
    }

    .questionnaire-navigation {
        gap: 12px;
    }

}
/* ==========================================================
   RESPONSIVE — AJUSTEMENTS FINAUX
   ========================================================== */

/* Évite les débordements horizontaux */

.participant-body {
    width: 100%;
    overflow-x: clip;
}

.participant-main,
.questionnaire-container,
.questionnaire-card,
.questionnaire-form {
    box-sizing: border-box;
    min-width: 0;
}

.questionnaire-situation h2,
.questionnaire-answer-text,
.participant-card h3 {
    overflow-wrap: anywhere;
}

/* TABLETTES */

@media (max-width: 900px) {

    .participant-main {
        padding: 48px 24px 70px;
    }

    .questionnaire-card {
        padding: 32px;
    }

    .questionnaire-heading h1 {
        font-size: 29px;
    }
}

/* SMARTPHONES */

@media (max-width: 600px) {

    .participant-main {
        padding: 28px 16px 50px;
    }

    .questionnaire-heading {
        margin-bottom: 24px;
    }

    .questionnaire-heading h1 {
        font-size: 24px;
        line-height: 1.35;
    }

    .questionnaire-back {
        margin-bottom: 24px;
    }

    .questionnaire-progress-header {
        font-size: 12px;
    }

    .questionnaire-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .questionnaire-situation {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .questionnaire-situation h2 {
        font-size: 18px;
        line-height: 1.5;
    }

    .questionnaire-answers legend {
        font-size: 14px;
        line-height: 1.5;
    }

    .questionnaire-answer {
        padding: 16px 14px;
        min-height: 56px;
        box-sizing: border-box;
    }

    .questionnaire-answer-text {
        font-size: 14px;
        line-height: 1.55;
    }

    .questionnaire-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .questionnaire-navigation > div {
        min-width: 0;
    }

    .questionnaire-navigation .ways-button {
        width: 100%;
        min-height: 48px;
        padding: 12px 10px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }

    /* Première question : bouton Suivant à droite */

    .questionnaire-navigation > div:last-child {
        grid-column: 2;
    }

    /* Cartes du tableau de bord */

    .participant-card {
        padding: 24px 18px;
    }

    .participant-card .ways-button {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }
}

/* TRÈS PETITS ÉCRANS */

@media (max-width: 380px) {

    .questionnaire-card {
        padding: 20px 12px;
    }

    .questionnaire-answer {
        padding: 14px 12px;
    }

    .questionnaire-navigation {
        grid-template-columns: 1fr;
    }

    .questionnaire-navigation > div:last-child {
        grid-column: 1;
    }

    .questionnaire-navigation .ways-button {
        width: 100%;
    }
}
/* ==========================================================
   WAYS DIAGNOSTICS — RÉINITIALISATION DU MOT DE PASSE
   ========================================================== */

.participant-reset-info {
    background: #f6f8fb;
    border-left: 3px solid #8194ad;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 26px;
}

.participant-reset-info p {
    margin: 0;
    color: #657184;
    font-size: 13px;
    line-height: 1.7;
}

.participant-reset-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    padding: 12px 16px;
}

.participant-reset-link:hover {
    text-decoration: none;
}

@media (max-width: 520px) {

    .participant-reset-info {
        padding: 14px 16px;
    }

    .participant-reset-link {
        font-size: 14px;
    }

}
