@charset "utf-8";

.member-access-card {
    max-width: 1120px;
    margin: 34px auto 60px;
    padding: 0 28px 36px;
}

.member-access-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

.member-access-kicker,
.success-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4c9f8c;
    margin-bottom: 7px;
}

.member-access-heading h1 {
    margin: 0 0 8px;
}

.member-access-heading p {
    margin: 0;
    color: #65706d;
    font-size: 16px;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto 34px;
}

.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    color: #89918f;
    font-size: 14px;
}

.step:not(:last-child)::after {
    content: "";
    height: 1px;
    background: #dce6e3;
    flex: 1;
    margin: 0 14px;
}

.step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd8d5;
    background: #fff;
    font-weight: 700;
}

.step.active {
    color: #2d4a43;
}

.step.active span {
    background: #71C2AE;
    border-color: #71C2AE;
    color: #fff;
}

.form_ajout_membre {
    background: #fff;
    border: 1px solid #e3ebe8;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(36, 64, 57, .08);
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section {
    padding: 32px 34px 28px;
}

.form-section + .form-section {
    border-left: 1px solid #e8efed;
    background: #fbfdfc;
}

.form-section h2 {
    margin: 0 0 24px;
    font-size: 20px;
    color: #2d4a43;
}

.field,
.field-row {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    gap: 16px;
}

.field-row.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-row.address-cols {
    grid-template-columns: .65fr .65fr 1.7fr;
}

.form_ajout_membre label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #344743;
}

.form_ajout_membre label span,
.required-note span {
    color: #b84f4f;
}

.form_ajout_membre input,
.form_ajout_membre select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfdad7;
    border-radius: 9px;
    background: #fff;
    color: #33413e;
    font: 16px/1.3 Arial, Helvetica, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form_ajout_membre input::placeholder {
    color: #9aa6a3;
}

.form_ajout_membre input:focus,
.form_ajout_membre select:focus {
    outline: none;
    border-color: #71C2AE;
    box-shadow: 0 0 0 3px rgba(113, 194, 174, .17);
}

.form_ajout_membre input.error {
    border-color: #c95757;
    background: #fffafa;
}

.form_ajout_membre input.correct {
    border-color: #71C2AE;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: #74807d;
    font-size: 12px;
    line-height: 1.45;
}

.optional-label {
    color: #84908d !important;
    font-size: 12px;
    font-weight: 400;
}

.invite-completion-note {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    padding: 15px 17px;
    border: 1px solid #d3ebe5;
    border-left: 4px solid #71C2AE;
    border-radius: 11px;
    background: #eef8f5;
    color: #49615b;
}

.invite-completion-note strong {
    display: block;
    margin-bottom: 5px;
    color: #2d4a43;
    font-size: 15px;
}

.invite-completion-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.invite-medias-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 22px;
}

.invite-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.invite-upload-zone {
    display: flex !important;
    min-height: 155px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    box-sizing: border-box;
    border: 2px dashed #bfd4ce;
    border-radius: 13px;
    background: #fbfdfc;
    color: #66736f !important;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.invite-upload-zone:hover,
.invite-upload-zone.dragover,
.invite-upload-zone--selected {
    border-color: #71C2AE;
    background: #f1faf7;
}

.invite-upload-zone__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    border-radius: 50%;
    background: #e3f3ef;
    color: #4c9f8c !important;
    font-size: 21px;
}

.invite-upload-zone strong {
    color: #294b55;
    font-size: 14px;
}

.invite-upload-zone span:not(.invite-upload-zone__icon),
.invite-upload-zone small {
    font-size: 11px;
    line-height: 1.35;
}

.alerte {
    display: none;
    margin-top: 5px;
    color: #b14444;
    font-size: 12px;
    font-style: normal;
}

.privacy-note {
    margin-top: 22px;
    padding: 15px 17px;
    border-radius: 10px;
    background: #eef8f5;
    border-left: 4px solid #71C2AE;
    color: #49615b;
}

.privacy-note strong {
    display: block;
    margin-bottom: 4px;
    color: #2d4a43;
}

.privacy-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.submit-zone {
    padding: 22px 32px 28px;
    text-align: center;
    border-top: 1px solid #e8efed;
    background: #fff;
}

.required-note {
    margin: 0 0 12px;
    color: #7a8582;
    font-size: 12px;
}

.form_ajout_membre p.Submit {
    margin: 0;
}

.form_ajout_membre p.Submit input {
    width: auto;
    min-width: 300px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: #71C2AE;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.form_ajout_membre p.Submit input:hover {
    background: #5eaf9b;
}

.form_ajout_membre p.Submit input:disabled {
    opacity: .65;
    cursor: wait;
}

.form-global-error {
    margin: 0 32px 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff3f3;
    color: #a13f3f;
    text-align: center;
}

.result-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 44px 28px;
    text-align: center;
}

.result-card h2 {
    margin: 6px 0 10px;
    color: #2d4a43;
}

.result-card p {
    color: #66716f;
    line-height: 1.55;
}

.success-check {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #71C2AE;
    color: white;
    font-size: 30px;
    font-weight: 700;
}

.primary-action {
    display: inline-block;
    margin: 12px 0 14px;
    padding: 13px 24px;
    border-radius: 24px;
    background: #71C2AE;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.primary-action:hover {
    background: #5eaf9b;
}

.registration-success small {
    display: block;
    color: #8a9491;
}

.result-error strong {
    color: #a13f3f;
    font-size: 20px;
}

.secondary-link {
    color: #4c9f8c;
    font-weight: 700;
}

@media screen and (max-width: 900px) {
    .member-access-card {
        padding: 0 14px 28px;
    }

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

    .form-section + .form-section {
        border-left: 0;
        border-top: 1px solid #e8efed;
    }

    .steps strong {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .member-access-card {
        margin-top: 20px;
    }

    .form-section {
        padding: 24px 18px 20px;
    }

    .field-row.two-cols,
    .field-row.address-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .invite-medias-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        margin-bottom: 24px;
    }

    .step:not(:last-child)::after {
        margin: 0 7px;
    }

    .submit-zone {
        padding: 20px 18px 24px;
    }

    .form_ajout_membre p.Submit input {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================
   PHOTO & LOGO - DRAG AND DROP
   ========================================================== */
.media-upload-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5ecea;
}

.media-upload-heading h3 {
    margin: 0 0 6px;
    color: #2d4a43;
    font-size: 17px;
}

.media-upload-heading p {
    margin: 0 0 16px;
    color: #687572;
    font-size: 13px;
    line-height: 1.5;
}

.optional-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef8f5;
    color: #4c9f8c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.upload-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.drop-zone {
    box-sizing: border-box;
    min-height: 185px;
    margin: 0 !important;
    padding: 18px 14px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #bfd4ce;
    border-radius: 13px;
    background: #fbfdfc;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.drop-zone:hover,
.upload-box.is-dragging .drop-zone {
    border-color: #71C2AE;
    background: #f1faf7;
}

.upload-box.is-dragging .drop-zone {
    transform: translateY(-2px);
}

.drop-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6f5f1;
    color: #4c9f8c;
    font-size: 22px;
}

.drop-zone strong {
    color: #2d4a43;
    font-size: 14px;
}

.drop-zone span:not(.drop-icon) {
    margin-top: 5px;
    color: #66736f;
    font-size: 12px;
}

.drop-zone small {
    margin-top: 3px;
    color: #4c9f8c;
    font-size: 12px;
}

.drop-zone em {
    margin-top: 8px;
    color: #96a09e;
    font-size: 10px;
    font-style: normal;
}

.upload-preview {
    box-sizing: border-box;
    min-height: 185px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dce7e4;
    border-radius: 13px;
    background: #fbfdfc;
}

.upload-preview[hidden] {
    display: none;
}

.upload-preview img {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 11px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e2e9e7;
}

.upload-preview > div {
    min-width: 0;
}

.upload-filename {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #344743;
    font-size: 12px;
}

.remove-upload {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a34f4f;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
}

.upload-note {
    margin: 10px 0 0;
    color: #89928f;
    font-size: 11px;
    text-align: center;
}

@media screen and (max-width: 700px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   COMPATIBILITÉ - ANCIENS FORMULAIRES (LEADS)
   Les règles ci-dessous sont volontairement limitées aux
   formulaires .form_ajout_lead / .form_lead afin de ne pas
   impacter le nouveau formulaire de candidature.
   ========================================================== */

.form_ajout_lead {
    max-width: 760px;
    margin: 32px auto 55px;
    padding: 30px 34px 32px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e3ebe8;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(36, 64, 57, .08);
}

.form_ajout_lead .form_lead {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.lead-self-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 1px solid #cfe5df;
    border-radius: 11px;
    background: #eef8f5;
    color: #2d4a43;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.lead-self-button:hover,
.lead-self-button--active {
    border-color: #71C2AE;
    background: #e3f4ef;
    transform: translateY(-1px);
}

.lead-self-button strong {
    flex: 0 0 auto;
    font-size: 14px;
}

.lead-self-button span {
    color: #5f736e;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.form_ajout_lead p {
    margin: 0 0 18px;
}

.form_ajout_lead .invite-completion-note {
    height: auto !important;
    min-height: 0 !important;
}

.form_ajout_lead .invite-completion-note p {
    margin: 0 !important;
}

.form_ajout_lead label {
    display: block;
    margin: 0 0 7px;
    color: #344743;
    font-size: 14px;
    font-weight: 700;
}

.form_ajout_lead input,
.form_ajout_lead textarea,
.form_ajout_lead select {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cfdad7;
    border-radius: 9px;
    background: #fff;
    color: #33413e;
    font: 16px/1.35 Arial, Helvetica, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form_ajout_lead input,
.form_ajout_lead select {
    min-height: 46px;
}

.form_ajout_lead textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.45;
}

.form_ajout_lead input:focus,
.form_ajout_lead textarea:focus,
.form_ajout_lead select:focus {
    outline: none;
    border-color: #71C2AE;
    box-shadow: 0 0 0 3px rgba(113, 194, 174, .17);
}

.form_ajout_lead .error {
    border-color: #c95757 !important;
    background: #fffafa !important;
}

.form_ajout_lead .correct {
    border-color: #71C2AE !important;
}

.form_ajout_lead .alerte {
    display: block;
    margin: 5px 0 0;
    color: #b14444;
    font-size: 12px;
    font-style: normal;
}

.form_ajout_lead p.Submit {
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
}

.form_ajout_lead p.Submit input {
    width: auto;
    min-width: 220px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: #71C2AE;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.form_ajout_lead p.Submit input:hover {
    background: #5eaf9b;
}

@media screen and (max-width: 700px) {
    .form_ajout_lead {
        margin: 22px auto 40px;
        padding: 24px 18px 26px;
    }

    .form_ajout_lead .form_lead {
        max-width: none;
    }

    .lead-self-button {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .lead-self-button span {
        text-align: left;
    }

    .form_ajout_lead p.Submit input {
        width: 100%;
    }
}


/* Correction ciblée : champs texte multilignes du formulaire d'ajout de lead */
.form_ajout_lead textarea,
.form_ajout_lead textarea#adresse,
.form_ajout_lead textarea#commentaire {
    background-color: #fff !important;
    background-image: none !important;
}


/* ==========================================================
   OPTIMISATION SMARTPHONE - FORMULAIRES COURTS
   Lead / B2B / Invité
   ========================================================== */
@media screen and (max-width: 700px) {
    .contenu .form_ajout_lead {
        box-sizing: border-box;
        width: calc(100vw - 20px);
        max-width: none;
        margin-left: calc(50% - 50vw + 10px);
        margin-right: 0;
        padding: 18px 14px 22px;
    }

    .form_ajout_lead .form_lead {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .form_ajout_lead p {
        margin: 0 0 20px;
    }

    .form_ajout_lead label {
        margin-bottom: 7px;
        font-size: 18px;
        line-height: 1.35;
    }

    .form_ajout_lead input,
    .form_ajout_lead select,
    .form_ajout_lead textarea {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: 52px;
        padding: 11px 12px;
        font-size: 18px !important;
        line-height: 1.35;
    }

    .form_ajout_lead textarea {
        min-height: 145px;
    }

    .form_ajout_lead p.Submit {
        margin: 8px 0 0;
    }

    .form_ajout_lead p.Submit input {
        width: 100%;
        max-width: none;
        min-height: 54px;
        font-size: 18px !important;
    }

    .form_ajout_lead .alerte {
        font-size: 15px;
        line-height: 1.35;
    }
}

/* ==========================================================
   EN-TETE PAGE - AJOUT D'UN LEAD
   ========================================================== */
.lead-page-heading {
    margin-top: 34px;
    margin-bottom: 28px;
    padding: 0 18px;
}

.lead-page-heading h1 {
    color: #2d4a43;
}

@media screen and (max-width: 700px) {
    .lead-page-heading {
        margin-top: 24px;
        margin-bottom: 22px;
        padding: 0 12px;
    }

    .lead-page-heading h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .lead-page-heading p {
        font-size: 15px;
        line-height: 1.45;
    }
}
